@digvation/ui 1.1.0 → 1.2.0

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.cts CHANGED
@@ -20,8 +20,8 @@ interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
20
20
  }
21
21
  declare function DBadge({ className, variant, dot, dotClassName, children, ...props }: BadgeProps): react.JSX.Element;
22
22
 
23
- type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'soft' | 'info' | 'success' | 'warning' | 'danger' | 'link';
24
- type ButtonSize = 'sm' | 'md' | 'lg' | 'icon';
23
+ type ButtonVariant = "primary" | "secondary" | "outline" | "ghost" | "soft" | "info" | "success" | "warning" | "danger" | "link";
24
+ type ButtonSize = "sm" | "md" | "lg" | "icon";
25
25
  interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
26
26
  variant?: ButtonVariant;
27
27
  size?: ButtonSize;
@@ -41,7 +41,7 @@ declare function DCardHeader({ className, ...props }: HTMLAttributes<HTMLDivElem
41
41
  declare function DCardContent({ className, ...props }: HTMLAttributes<HTMLDivElement>): react.JSX.Element;
42
42
  declare function DCardFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>): react.JSX.Element;
43
43
 
44
- type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>;
44
+ type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, "type">;
45
45
  declare const DCheckbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
46
46
 
47
47
  type FloatingPlacement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
@@ -59,7 +59,7 @@ interface DropdownProps {
59
59
  closeOnEsc?: boolean;
60
60
  open?: boolean;
61
61
  onOpenChange?: (open: boolean) => void;
62
- contentRole?: 'listbox' | 'menu' | 'dialog';
62
+ contentRole?: "listbox" | "menu" | "dialog";
63
63
  className?: string;
64
64
  contentClassName?: string;
65
65
  /** Disable the generic vertical panel padding when a component owns its inner spacing. */
@@ -88,7 +88,7 @@ interface SelectOption {
88
88
  disabled?: boolean;
89
89
  }
90
90
  declare function selectOptionsFromChildren(children: ReactNode): SelectOption[];
91
- interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'onChange' | 'value' | 'defaultValue'> {
91
+ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "onChange" | "value" | "defaultValue"> {
92
92
  label?: ReactNode;
93
93
  hint?: ReactNode;
94
94
  error?: ReactNode;
@@ -189,12 +189,12 @@ interface ConnectionErrorProps {
189
189
  detail?: ReactNode;
190
190
  diagnostics?: ReactNode;
191
191
  }
192
- declare function DConnectionError({ onRetry, isRetrying, title, message, detail, diagnostics }: ConnectionErrorProps): react.JSX.Element;
192
+ declare function DConnectionError({ onRetry, isRetrying, title, message, detail, diagnostics, }: ConnectionErrorProps): react.JSX.Element;
193
193
 
194
194
  type TimePrecision = 'hour' | 'hour-minute';
195
195
  type TimeMinuteStep = 1 | 5 | 10 | 15 | 30;
196
196
 
197
- type DatePickerVariant = 'date' | 'date-hour' | 'date-time';
197
+ type DatePickerVariant = "date" | "date-hour" | "date-time";
198
198
  type DatePickerMinuteStep = TimeMinuteStep;
199
199
  interface DatePickerProps {
200
200
  label?: ReactNode;
@@ -214,7 +214,7 @@ interface DatePickerProps {
214
214
  minuteStep?: DatePickerMinuteStep;
215
215
  scrollBehavior?: FloatingScrollBehavior;
216
216
  }
217
- declare function DDatePicker({ label, value, onChange, onClear, placeholder, error, hint, disabled, clearable, containerClassName, minDate, maxDate, size, variant, minuteStep, scrollBehavior }: DatePickerProps): react.JSX.Element;
217
+ declare function DDatePicker({ label, value, onChange, onClear, placeholder, error, hint, disabled, clearable, containerClassName, minDate, maxDate, size, variant, minuteStep, scrollBehavior, }: DatePickerProps): react.JSX.Element;
218
218
 
219
219
  type TimePickerVariant = TimePrecision;
220
220
  type TimePickerMinuteStep = TimeMinuteStep;
@@ -253,7 +253,7 @@ declare function DEmptyState({ title, description, action, icon, className, }: {
253
253
  className?: string;
254
254
  }): react.JSX.Element;
255
255
 
256
- type ExportFormat = 'pdf' | 'excel';
256
+ type ExportFormat = "pdf" | "excel";
257
257
  interface ExportButtonProps {
258
258
  onExport: (format: ExportFormat) => Promise<Blob> | Blob | void;
259
259
  filename?: string;
@@ -350,9 +350,9 @@ interface InfoNoteProps {
350
350
  }
351
351
  declare function DInfoNote({ variant, title, icon, children, className }: InfoNoteProps): react.JSX.Element;
352
352
 
353
- type InputFormat = 'plain' | 'currency' | 'percentage';
354
- type InputType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
355
- interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange' | 'size' | 'prefix'> {
353
+ type InputFormat = "plain" | "currency" | "percentage";
354
+ type InputType = "text" | "email" | "password" | "number" | "tel" | "url" | "search";
355
+ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange" | "size" | "prefix"> {
356
356
  label?: ReactNode;
357
357
  labelInfo?: ReactNode;
358
358
  error?: ReactNode;
@@ -379,7 +379,7 @@ interface DecimalNormalizationOptions {
379
379
  integer?: boolean;
380
380
  }
381
381
  declare function normalizeDecimalInput(input: string, { scale, integer }?: DecimalNormalizationOptions): string;
382
- interface DecimalInputProps extends Omit<InputProps, 'inputMode' | 'onChange' | 'onNativeChange' | 'type' | 'value' | 'defaultValue' | 'format'> {
382
+ interface DecimalInputProps extends Omit<InputProps, "inputMode" | "onChange" | "onNativeChange" | "type" | "value" | "defaultValue" | "format"> {
383
383
  value: string;
384
384
  onValueChange: (value: string) => void;
385
385
  scale?: number;
@@ -392,7 +392,7 @@ interface CurrencyFormatOptions {
392
392
  }
393
393
  declare function formatCurrencyInputValue(value: string, { groupSeparator, decimalSeparator }?: CurrencyFormatOptions): string;
394
394
  declare function parseCurrencyInputValue(value: string, { groupSeparator, decimalSeparator }?: CurrencyFormatOptions): string;
395
- interface CurrencyInputProps extends Omit<DecimalInputProps, 'integer' | 'onValueChange'> {
395
+ interface CurrencyInputProps extends Omit<DecimalInputProps, "integer" | "onValueChange"> {
396
396
  onValueChange: (value: string) => void;
397
397
  currencySymbol?: ReactNode;
398
398
  groupSeparator?: string;
@@ -553,7 +553,7 @@ interface NotificationItem {
553
553
  id: string;
554
554
  title: string;
555
555
  message: string;
556
- type: 'info' | 'success' | 'warning' | 'error';
556
+ type: "info" | "success" | "warning" | "error";
557
557
  read: boolean;
558
558
  createdAt: string;
559
559
  }
@@ -597,7 +597,7 @@ interface RangeDatePickerProps {
597
597
  containerClassName?: string;
598
598
  scrollBehavior?: FloatingScrollBehavior;
599
599
  }
600
- declare function DRangeDatePicker({ label, placeholder, value, size, onChange, error, hint, disabled, clearable, containerClassName, scrollBehavior }: RangeDatePickerProps): react.JSX.Element;
600
+ declare function DRangeDatePicker({ label, placeholder, value, size, onChange, error, hint, disabled, clearable, containerClassName, scrollBehavior, }: RangeDatePickerProps): react.JSX.Element;
601
601
 
602
602
  interface SearchInputProps {
603
603
  value: string;
@@ -605,7 +605,7 @@ interface SearchInputProps {
605
605
  placeholder?: string;
606
606
  debounceMs?: number;
607
607
  className?: string;
608
- align?: 'left' | 'right';
608
+ align?: "left" | "right";
609
609
  expandedWidth?: string;
610
610
  }
611
611
  declare function DSearchInput({ value, onChange, placeholder, debounceMs, className, align, expandedWidth, }: SearchInputProps): react.JSX.Element;
@@ -669,8 +669,8 @@ interface StatusFilterProps {
669
669
  }
670
670
  declare function DStatusFilter({ label, options, value, onChange, allLabel }: StatusFilterProps): react.JSX.Element;
671
671
 
672
- type SortDirection = 'asc' | 'desc';
673
- type CellTransform = 'uppercase' | 'lowercase' | 'capitalize' | 'none' | ((value: unknown) => ReactNode);
672
+ type SortDirection = "asc" | "desc";
673
+ type CellTransform = "uppercase" | "lowercase" | "capitalize" | "none" | ((value: unknown) => ReactNode);
674
674
  type LegacyTableCellRenderer = Function & {
675
675
  readonly __legacyTableCellRenderer?: never;
676
676
  };
@@ -678,10 +678,10 @@ interface TableColumn<T> {
678
678
  key: keyof T | string;
679
679
  label: ReactNode;
680
680
  render?: ((row: T, index: number) => ReactNode) | LegacyTableCellRenderer;
681
- align?: 'left' | 'center' | 'right';
681
+ align?: "left" | "center" | "right";
682
682
  width?: string;
683
683
  sortable?: boolean;
684
- type?: 'text' | 'currency' | 'number' | 'date';
684
+ type?: "text" | "currency" | "number" | "date";
685
685
  transform?: CellTransform;
686
686
  trasform?: CellTransform;
687
687
  }
@@ -689,7 +689,7 @@ interface TableAction<T> {
689
689
  label: ReactNode;
690
690
  onClick: (row: T) => void;
691
691
  icon?: ReactNode;
692
- variant?: 'default' | 'danger';
692
+ variant?: "default" | "danger";
693
693
  show?: (row: T) => boolean;
694
694
  }
695
695
  interface TablePagination {
@@ -712,6 +712,7 @@ interface DataTableProps<T> {
712
712
  pagination?: TablePagination;
713
713
  onPageChange?: (page: number) => void;
714
714
  onPageSizeChange?: (size: number) => void;
715
+ pageSizeOptions?: readonly number[];
715
716
  actions?: readonly TableAction<T>[] | ((row: T, index: number) => ReactNode);
716
717
  searchable?: boolean;
717
718
  searchPlaceholder?: string;
@@ -720,9 +721,9 @@ interface DataTableProps<T> {
720
721
  headerActions?: ReactNode;
721
722
  filters?: ReactNode;
722
723
  }
723
- declare function DDataTable<T>({ columns, data, rowKey, loading, emptyMessage, onRowClick, sortBy, sortDirection, sortDir, onSort, pagination, onPageChange, onPageSizeChange, actions, searchable, searchPlaceholder, searchValue, onSearchChange, headerActions, filters }: DataTableProps<T>): react.JSX.Element;
724
+ declare function DDataTable<T>({ columns, data, rowKey, loading, emptyMessage, onRowClick, sortBy, sortDirection, sortDir, onSort, pagination, onPageChange, onPageSizeChange, pageSizeOptions, actions, searchable, searchPlaceholder, searchValue, onSearchChange, headerActions, filters, }: DataTableProps<T>): react.JSX.Element;
724
725
 
725
- interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'> {
726
+ interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange"> {
726
727
  label?: ReactNode;
727
728
  error?: ReactNode;
728
729
  hint?: ReactNode;
@@ -772,7 +773,7 @@ interface ToastContainerProps {
772
773
  /** Controlled viewport matching oldUi DToastContainer visuals without coupling UI to an app store. */
773
774
  declare function DToastContainer({ toasts, onDismiss, className }: ToastContainerProps): react.JSX.Element | null;
774
775
 
775
- type RadioProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>;
776
+ type RadioProps = Omit<InputHTMLAttributes<HTMLInputElement>, "type">;
776
777
  declare const DRadio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLInputElement>>;
777
778
 
778
779
  interface ToggleProps {
@@ -920,7 +921,7 @@ interface PaginationProps {
920
921
  disabled?: boolean;
921
922
  className?: string;
922
923
  }
923
- declare function getPaginationItems(page: number, total: number, sibling?: number): (number | 'ellipsis')[];
924
+ declare function getPaginationItems(page: number, total: number, sibling?: number): (number | "ellipsis")[];
924
925
  declare function DPagination({ page, totalPages, onChange, siblingCount, disabled, className, }: PaginationProps): react.JSX.Element;
925
926
 
926
927
  interface TabsProps extends HTMLAttributes<HTMLDivElement> {
@@ -947,16 +948,16 @@ declare function DTabsContent({ value, className, ...props }: TabsContentProps):
947
948
  * card = one bordered surface with separators inside
948
949
  * separated = each item is its own bordered surface
949
950
  */
950
- type AccordionVariant = 'default' | 'separator' | 'card' | 'separated';
951
+ type AccordionVariant = "default" | "separator" | "card" | "separated";
951
952
  interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
952
- type?: 'single' | 'multiple';
953
+ type?: "single" | "multiple";
953
954
  value?: string[];
954
955
  defaultValue?: string[];
955
956
  onValueChange?: (value: string[]) => void;
956
957
  variant?: AccordionVariant;
957
958
  }
958
959
  declare function DAccordion({ type, value, defaultValue, onValueChange, variant, className, ...props }: AccordionProps): react.JSX.Element;
959
- interface AccordionItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
960
+ interface AccordionItemProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
960
961
  value: string;
961
962
  title: ReactNode;
962
963
  disabled?: boolean;
package/dist/index.d.ts CHANGED
@@ -20,8 +20,8 @@ interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
20
20
  }
21
21
  declare function DBadge({ className, variant, dot, dotClassName, children, ...props }: BadgeProps): react.JSX.Element;
22
22
 
23
- type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'soft' | 'info' | 'success' | 'warning' | 'danger' | 'link';
24
- type ButtonSize = 'sm' | 'md' | 'lg' | 'icon';
23
+ type ButtonVariant = "primary" | "secondary" | "outline" | "ghost" | "soft" | "info" | "success" | "warning" | "danger" | "link";
24
+ type ButtonSize = "sm" | "md" | "lg" | "icon";
25
25
  interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
26
26
  variant?: ButtonVariant;
27
27
  size?: ButtonSize;
@@ -41,7 +41,7 @@ declare function DCardHeader({ className, ...props }: HTMLAttributes<HTMLDivElem
41
41
  declare function DCardContent({ className, ...props }: HTMLAttributes<HTMLDivElement>): react.JSX.Element;
42
42
  declare function DCardFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>): react.JSX.Element;
43
43
 
44
- type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>;
44
+ type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, "type">;
45
45
  declare const DCheckbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
46
46
 
47
47
  type FloatingPlacement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
@@ -59,7 +59,7 @@ interface DropdownProps {
59
59
  closeOnEsc?: boolean;
60
60
  open?: boolean;
61
61
  onOpenChange?: (open: boolean) => void;
62
- contentRole?: 'listbox' | 'menu' | 'dialog';
62
+ contentRole?: "listbox" | "menu" | "dialog";
63
63
  className?: string;
64
64
  contentClassName?: string;
65
65
  /** Disable the generic vertical panel padding when a component owns its inner spacing. */
@@ -88,7 +88,7 @@ interface SelectOption {
88
88
  disabled?: boolean;
89
89
  }
90
90
  declare function selectOptionsFromChildren(children: ReactNode): SelectOption[];
91
- interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'onChange' | 'value' | 'defaultValue'> {
91
+ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "onChange" | "value" | "defaultValue"> {
92
92
  label?: ReactNode;
93
93
  hint?: ReactNode;
94
94
  error?: ReactNode;
@@ -189,12 +189,12 @@ interface ConnectionErrorProps {
189
189
  detail?: ReactNode;
190
190
  diagnostics?: ReactNode;
191
191
  }
192
- declare function DConnectionError({ onRetry, isRetrying, title, message, detail, diagnostics }: ConnectionErrorProps): react.JSX.Element;
192
+ declare function DConnectionError({ onRetry, isRetrying, title, message, detail, diagnostics, }: ConnectionErrorProps): react.JSX.Element;
193
193
 
194
194
  type TimePrecision = 'hour' | 'hour-minute';
195
195
  type TimeMinuteStep = 1 | 5 | 10 | 15 | 30;
196
196
 
197
- type DatePickerVariant = 'date' | 'date-hour' | 'date-time';
197
+ type DatePickerVariant = "date" | "date-hour" | "date-time";
198
198
  type DatePickerMinuteStep = TimeMinuteStep;
199
199
  interface DatePickerProps {
200
200
  label?: ReactNode;
@@ -214,7 +214,7 @@ interface DatePickerProps {
214
214
  minuteStep?: DatePickerMinuteStep;
215
215
  scrollBehavior?: FloatingScrollBehavior;
216
216
  }
217
- declare function DDatePicker({ label, value, onChange, onClear, placeholder, error, hint, disabled, clearable, containerClassName, minDate, maxDate, size, variant, minuteStep, scrollBehavior }: DatePickerProps): react.JSX.Element;
217
+ declare function DDatePicker({ label, value, onChange, onClear, placeholder, error, hint, disabled, clearable, containerClassName, minDate, maxDate, size, variant, minuteStep, scrollBehavior, }: DatePickerProps): react.JSX.Element;
218
218
 
219
219
  type TimePickerVariant = TimePrecision;
220
220
  type TimePickerMinuteStep = TimeMinuteStep;
@@ -253,7 +253,7 @@ declare function DEmptyState({ title, description, action, icon, className, }: {
253
253
  className?: string;
254
254
  }): react.JSX.Element;
255
255
 
256
- type ExportFormat = 'pdf' | 'excel';
256
+ type ExportFormat = "pdf" | "excel";
257
257
  interface ExportButtonProps {
258
258
  onExport: (format: ExportFormat) => Promise<Blob> | Blob | void;
259
259
  filename?: string;
@@ -350,9 +350,9 @@ interface InfoNoteProps {
350
350
  }
351
351
  declare function DInfoNote({ variant, title, icon, children, className }: InfoNoteProps): react.JSX.Element;
352
352
 
353
- type InputFormat = 'plain' | 'currency' | 'percentage';
354
- type InputType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
355
- interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange' | 'size' | 'prefix'> {
353
+ type InputFormat = "plain" | "currency" | "percentage";
354
+ type InputType = "text" | "email" | "password" | "number" | "tel" | "url" | "search";
355
+ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange" | "size" | "prefix"> {
356
356
  label?: ReactNode;
357
357
  labelInfo?: ReactNode;
358
358
  error?: ReactNode;
@@ -379,7 +379,7 @@ interface DecimalNormalizationOptions {
379
379
  integer?: boolean;
380
380
  }
381
381
  declare function normalizeDecimalInput(input: string, { scale, integer }?: DecimalNormalizationOptions): string;
382
- interface DecimalInputProps extends Omit<InputProps, 'inputMode' | 'onChange' | 'onNativeChange' | 'type' | 'value' | 'defaultValue' | 'format'> {
382
+ interface DecimalInputProps extends Omit<InputProps, "inputMode" | "onChange" | "onNativeChange" | "type" | "value" | "defaultValue" | "format"> {
383
383
  value: string;
384
384
  onValueChange: (value: string) => void;
385
385
  scale?: number;
@@ -392,7 +392,7 @@ interface CurrencyFormatOptions {
392
392
  }
393
393
  declare function formatCurrencyInputValue(value: string, { groupSeparator, decimalSeparator }?: CurrencyFormatOptions): string;
394
394
  declare function parseCurrencyInputValue(value: string, { groupSeparator, decimalSeparator }?: CurrencyFormatOptions): string;
395
- interface CurrencyInputProps extends Omit<DecimalInputProps, 'integer' | 'onValueChange'> {
395
+ interface CurrencyInputProps extends Omit<DecimalInputProps, "integer" | "onValueChange"> {
396
396
  onValueChange: (value: string) => void;
397
397
  currencySymbol?: ReactNode;
398
398
  groupSeparator?: string;
@@ -553,7 +553,7 @@ interface NotificationItem {
553
553
  id: string;
554
554
  title: string;
555
555
  message: string;
556
- type: 'info' | 'success' | 'warning' | 'error';
556
+ type: "info" | "success" | "warning" | "error";
557
557
  read: boolean;
558
558
  createdAt: string;
559
559
  }
@@ -597,7 +597,7 @@ interface RangeDatePickerProps {
597
597
  containerClassName?: string;
598
598
  scrollBehavior?: FloatingScrollBehavior;
599
599
  }
600
- declare function DRangeDatePicker({ label, placeholder, value, size, onChange, error, hint, disabled, clearable, containerClassName, scrollBehavior }: RangeDatePickerProps): react.JSX.Element;
600
+ declare function DRangeDatePicker({ label, placeholder, value, size, onChange, error, hint, disabled, clearable, containerClassName, scrollBehavior, }: RangeDatePickerProps): react.JSX.Element;
601
601
 
602
602
  interface SearchInputProps {
603
603
  value: string;
@@ -605,7 +605,7 @@ interface SearchInputProps {
605
605
  placeholder?: string;
606
606
  debounceMs?: number;
607
607
  className?: string;
608
- align?: 'left' | 'right';
608
+ align?: "left" | "right";
609
609
  expandedWidth?: string;
610
610
  }
611
611
  declare function DSearchInput({ value, onChange, placeholder, debounceMs, className, align, expandedWidth, }: SearchInputProps): react.JSX.Element;
@@ -669,8 +669,8 @@ interface StatusFilterProps {
669
669
  }
670
670
  declare function DStatusFilter({ label, options, value, onChange, allLabel }: StatusFilterProps): react.JSX.Element;
671
671
 
672
- type SortDirection = 'asc' | 'desc';
673
- type CellTransform = 'uppercase' | 'lowercase' | 'capitalize' | 'none' | ((value: unknown) => ReactNode);
672
+ type SortDirection = "asc" | "desc";
673
+ type CellTransform = "uppercase" | "lowercase" | "capitalize" | "none" | ((value: unknown) => ReactNode);
674
674
  type LegacyTableCellRenderer = Function & {
675
675
  readonly __legacyTableCellRenderer?: never;
676
676
  };
@@ -678,10 +678,10 @@ interface TableColumn<T> {
678
678
  key: keyof T | string;
679
679
  label: ReactNode;
680
680
  render?: ((row: T, index: number) => ReactNode) | LegacyTableCellRenderer;
681
- align?: 'left' | 'center' | 'right';
681
+ align?: "left" | "center" | "right";
682
682
  width?: string;
683
683
  sortable?: boolean;
684
- type?: 'text' | 'currency' | 'number' | 'date';
684
+ type?: "text" | "currency" | "number" | "date";
685
685
  transform?: CellTransform;
686
686
  trasform?: CellTransform;
687
687
  }
@@ -689,7 +689,7 @@ interface TableAction<T> {
689
689
  label: ReactNode;
690
690
  onClick: (row: T) => void;
691
691
  icon?: ReactNode;
692
- variant?: 'default' | 'danger';
692
+ variant?: "default" | "danger";
693
693
  show?: (row: T) => boolean;
694
694
  }
695
695
  interface TablePagination {
@@ -712,6 +712,7 @@ interface DataTableProps<T> {
712
712
  pagination?: TablePagination;
713
713
  onPageChange?: (page: number) => void;
714
714
  onPageSizeChange?: (size: number) => void;
715
+ pageSizeOptions?: readonly number[];
715
716
  actions?: readonly TableAction<T>[] | ((row: T, index: number) => ReactNode);
716
717
  searchable?: boolean;
717
718
  searchPlaceholder?: string;
@@ -720,9 +721,9 @@ interface DataTableProps<T> {
720
721
  headerActions?: ReactNode;
721
722
  filters?: ReactNode;
722
723
  }
723
- declare function DDataTable<T>({ columns, data, rowKey, loading, emptyMessage, onRowClick, sortBy, sortDirection, sortDir, onSort, pagination, onPageChange, onPageSizeChange, actions, searchable, searchPlaceholder, searchValue, onSearchChange, headerActions, filters }: DataTableProps<T>): react.JSX.Element;
724
+ declare function DDataTable<T>({ columns, data, rowKey, loading, emptyMessage, onRowClick, sortBy, sortDirection, sortDir, onSort, pagination, onPageChange, onPageSizeChange, pageSizeOptions, actions, searchable, searchPlaceholder, searchValue, onSearchChange, headerActions, filters, }: DataTableProps<T>): react.JSX.Element;
724
725
 
725
- interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'> {
726
+ interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange"> {
726
727
  label?: ReactNode;
727
728
  error?: ReactNode;
728
729
  hint?: ReactNode;
@@ -772,7 +773,7 @@ interface ToastContainerProps {
772
773
  /** Controlled viewport matching oldUi DToastContainer visuals without coupling UI to an app store. */
773
774
  declare function DToastContainer({ toasts, onDismiss, className }: ToastContainerProps): react.JSX.Element | null;
774
775
 
775
- type RadioProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>;
776
+ type RadioProps = Omit<InputHTMLAttributes<HTMLInputElement>, "type">;
776
777
  declare const DRadio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLInputElement>>;
777
778
 
778
779
  interface ToggleProps {
@@ -920,7 +921,7 @@ interface PaginationProps {
920
921
  disabled?: boolean;
921
922
  className?: string;
922
923
  }
923
- declare function getPaginationItems(page: number, total: number, sibling?: number): (number | 'ellipsis')[];
924
+ declare function getPaginationItems(page: number, total: number, sibling?: number): (number | "ellipsis")[];
924
925
  declare function DPagination({ page, totalPages, onChange, siblingCount, disabled, className, }: PaginationProps): react.JSX.Element;
925
926
 
926
927
  interface TabsProps extends HTMLAttributes<HTMLDivElement> {
@@ -947,16 +948,16 @@ declare function DTabsContent({ value, className, ...props }: TabsContentProps):
947
948
  * card = one bordered surface with separators inside
948
949
  * separated = each item is its own bordered surface
949
950
  */
950
- type AccordionVariant = 'default' | 'separator' | 'card' | 'separated';
951
+ type AccordionVariant = "default" | "separator" | "card" | "separated";
951
952
  interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
952
- type?: 'single' | 'multiple';
953
+ type?: "single" | "multiple";
953
954
  value?: string[];
954
955
  defaultValue?: string[];
955
956
  onValueChange?: (value: string[]) => void;
956
957
  variant?: AccordionVariant;
957
958
  }
958
959
  declare function DAccordion({ type, value, defaultValue, onValueChange, variant, className, ...props }: AccordionProps): react.JSX.Element;
959
- interface AccordionItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
960
+ interface AccordionItemProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
960
961
  value: string;
961
962
  title: ReactNode;
962
963
  disabled?: boolean;