@adsgency_npm/adsgency-ads-ui 0.1.0-alpha.2 → 0.1.0-alpha.21

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 CHANGED
@@ -4,6 +4,8 @@ import * as class_variance_authority from 'class-variance-authority';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
6
6
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
7
+ import { DayPickerProps } from '@daypicker/react';
8
+ export { DateRange as AdsDateRange } from '@daypicker/react';
7
9
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
8
10
  import * as _radix_ui_react_label from '@radix-ui/react-label';
9
11
  import { LoaderCircle } from 'lucide-react';
@@ -179,6 +181,35 @@ interface AdsCheckboxProps extends PrimitiveCheckboxProps {
179
181
  }
180
182
  declare const AdsCheckbox: React$1.ForwardRefExoticComponent<AdsCheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
181
183
 
184
+ type CalendarSystem = "gregorian" | "persian" | "hijri";
185
+ type CalendarCellSize = "md" | "lg";
186
+ type CalendarProps = DayPickerProps & {
187
+ calendarSystem?: CalendarSystem;
188
+ cellSize?: CalendarCellSize;
189
+ };
190
+
191
+ type AdsCalendarProps = CalendarProps;
192
+ type AdsCalendarSystem = CalendarSystem;
193
+ type AdsCalendarCellSize = CalendarCellSize;
194
+ interface AdsDatePickerProps extends Omit<AdsCalendarProps, "mode" | "onSelect" | "required" | "selected"> {
195
+ defaultSelected?: Date;
196
+ formatDateLabel?: (value: Date) => string;
197
+ id?: string;
198
+ label?: React$1.ReactNode;
199
+ onSelect?: (value: Date | undefined) => void;
200
+ placeholder?: string;
201
+ selected?: Date;
202
+ triggerClassName?: string;
203
+ }
204
+ interface AdsDateTimePickerProps extends AdsDatePickerProps {
205
+ onTimeChange?: React$1.ChangeEventHandler<HTMLInputElement>;
206
+ timeLabel?: React$1.ReactNode;
207
+ timeValue?: string;
208
+ }
209
+ declare const AdsCalendar: React$1.ForwardRefExoticComponent<CalendarProps & React$1.RefAttributes<HTMLDivElement>>;
210
+ declare const AdsDatePicker: React$1.ForwardRefExoticComponent<AdsDatePickerProps & React$1.RefAttributes<HTMLDivElement>>;
211
+ declare const AdsDateTimePicker: React$1.ForwardRefExoticComponent<AdsDateTimePickerProps & React$1.RefAttributes<HTMLDivElement>>;
212
+
182
213
  declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
183
214
 
184
215
  declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
@@ -299,8 +330,12 @@ type AdsInputChromeProps = {
299
330
  };
300
331
  interface AdsInputProps extends Omit<InputProps$1, "aria-invalid" | "size" | "prefix">, AdsInputChromeProps {
301
332
  action?: React$1.ReactNode;
333
+ clearable?: boolean;
334
+ clearButtonLabel?: string;
302
335
  emptyFileLabel?: string;
336
+ fileTriggerIcon?: React$1.ReactNode;
303
337
  fileTriggerLabel?: string;
338
+ onClear?: () => void;
304
339
  prefix?: React$1.ReactNode;
305
340
  size?: AdsSize;
306
341
  suffix?: React$1.ReactNode;
@@ -330,8 +365,16 @@ interface AdsInputGroupProps extends AdsInputGroupChromeProps {
330
365
  trailingAddonClassName?: string;
331
366
  }
332
367
  declare function AdsInputGroup({ children, className, controlWrapperClassName, errorText, footer, header, helperText, id, label, leadingAddon, leadingAddonClassName, surfaceClassName, trailingAddon, trailingAddonClassName, }: AdsInputGroupProps): React$1.JSX.Element;
333
- type AdsInputGroupInputProps = Omit<InputProps, "aria-invalid" | "aria-describedby">;
334
- declare const AdsInputGroupInput: React$1.ForwardRefExoticComponent<AdsInputGroupInputProps & React$1.RefAttributes<HTMLInputElement>>;
368
+ type AdsInputGroupInputProps = Omit<InputProps, "aria-invalid" | "aria-describedby"> & {
369
+ clearable?: boolean;
370
+ clearButtonLabel?: string;
371
+ onClear?: () => void;
372
+ };
373
+ declare const AdsInputGroupInput: React$1.ForwardRefExoticComponent<Omit<Omit<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>, "ref">, "aria-describedby" | "aria-invalid"> & {
374
+ clearable?: boolean;
375
+ clearButtonLabel?: string;
376
+ onClear?: () => void;
377
+ } & React$1.RefAttributes<HTMLInputElement>>;
335
378
  type AdsInputGroupTextareaProps = Omit<TextareaProps$1, "aria-invalid" | "aria-describedby">;
336
379
  declare const AdsInputGroupTextarea: React$1.ForwardRefExoticComponent<AdsInputGroupTextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
337
380
 
@@ -413,6 +456,193 @@ declare const AdsInputOTPSlot: React$1.ForwardRefExoticComponent<Omit<Omit<React
413
456
  index: number;
414
457
  } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
415
458
 
459
+ type ShowTotalRender = (total: number, range: [number, number]) => React$1.ReactNode;
460
+ type AdsDataPaginationVariant = "default" | "compact";
461
+ interface AdsDataPaginationClassNames {
462
+ root?: string;
463
+ total?: string;
464
+ pageSizeChanger?: string;
465
+ quickJumper?: string;
466
+ }
467
+ interface AdsDataPaginationProps {
468
+ current?: number;
469
+ defaultCurrent?: number;
470
+ pageSize?: number;
471
+ defaultPageSize?: number;
472
+ total: number;
473
+ onChange?: (page: number, pageSize: number) => void;
474
+ showTotal?: boolean | ShowTotalRender;
475
+ showSizeChanger?: boolean;
476
+ pageSizeOptions?: number[];
477
+ onPageSizeChange?: (pageSize: number, page: number) => void;
478
+ showQuickJumper?: boolean;
479
+ showFirstLast?: boolean;
480
+ siblingCount?: number;
481
+ boundaryCount?: number;
482
+ variant?: AdsDataPaginationVariant;
483
+ disabled?: boolean;
484
+ className?: string;
485
+ classNames?: AdsDataPaginationClassNames;
486
+ ariaLabel?: string;
487
+ }
488
+ declare function AdsDataPagination({ current, defaultCurrent, pageSize, defaultPageSize, total, onChange, showTotal, showSizeChanger, pageSizeOptions, onPageSizeChange, showQuickJumper, showFirstLast, siblingCount, boundaryCount, variant, disabled, className, classNames, ariaLabel, }: AdsDataPaginationProps): React$1.JSX.Element;
489
+
490
+ type AdsDataTableKey = React$1.Key;
491
+ type AdsDataTableAlign = "left" | "center" | "right";
492
+ type AdsDataTableSortOrder = "ascend" | "descend" | null;
493
+ type AdsDataTableSize = "small" | "middle" | "large";
494
+ type DataKey = string | number;
495
+ type AdsDataTablePaginationMode = "client" | "server";
496
+ type AdsDataTableFilterMode = "client" | "server";
497
+ type AdsDataTableLoadingVariant = "skeleton" | "spinner";
498
+ type AdsDataTableExpandedRowSurface = "inset" | "plain" | "subtle";
499
+ type AdsDataTableEllipsisConfig = {
500
+ maxWidth?: number | string;
501
+ showTitle?: boolean;
502
+ };
503
+ type AdsDataTableCellRendererContext<RecordType extends object> = {
504
+ value: unknown;
505
+ formattedValue: unknown;
506
+ record: RecordType;
507
+ data: RecordType;
508
+ index: number;
509
+ column: AdsDataTableColumn<RecordType>;
510
+ };
511
+ interface AdsDataTableColumn<RecordType extends object> {
512
+ title?: React$1.ReactNode;
513
+ headerName?: React$1.ReactNode;
514
+ dataIndex?: DataKey | readonly DataKey[];
515
+ field?: string;
516
+ key?: React$1.Key;
517
+ width?: number | string;
518
+ minWidth?: number | string;
519
+ flex?: number;
520
+ resizable?: boolean;
521
+ align?: AdsDataTableAlign;
522
+ className?: string;
523
+ headerClassName?: string;
524
+ cellClassName?: string;
525
+ ellipsis?: boolean | AdsDataTableEllipsisConfig;
526
+ sorter?: boolean | ((a: RecordType, b: RecordType) => number);
527
+ sortOrder?: AdsDataTableSortOrder;
528
+ defaultSortOrder?: AdsDataTableSortOrder;
529
+ filter?: boolean | ((value: string, record: RecordType, index: number, rawValue: unknown) => boolean);
530
+ filterMode?: AdsDataTableFilterMode;
531
+ filterPlaceholder?: string;
532
+ filterValue?: string;
533
+ defaultFilterValue?: string;
534
+ onFilterChange?: (value: string) => void;
535
+ valueGetter?: (record: RecordType, index: number) => unknown;
536
+ valueFormatter?: (value: unknown, record: RecordType, index: number) => React$1.ReactNode;
537
+ cellRenderer?: (context: AdsDataTableCellRendererContext<RecordType>) => React$1.ReactNode;
538
+ render?: (value: unknown, record: RecordType, index: number) => React$1.ReactNode;
539
+ }
540
+ interface AdsDataTablePaginationConfig {
541
+ mode?: AdsDataTablePaginationMode;
542
+ current?: number;
543
+ defaultCurrent?: number;
544
+ pageSize?: number;
545
+ defaultPageSize?: number;
546
+ total?: number;
547
+ pageSizeOptions?: number[];
548
+ showSizeChanger?: boolean;
549
+ showQuickJumper?: boolean;
550
+ showFirstLast?: boolean;
551
+ showTotal?: boolean | ((total: number, range: [number, number]) => React$1.ReactNode);
552
+ onChange?: (page: number, pageSize: number) => void;
553
+ onPageSizeChange?: (pageSize: number, page: number) => void;
554
+ classNames?: AdsDataPaginationClassNames;
555
+ variant?: React$1.ComponentProps<typeof AdsDataPagination>["variant"];
556
+ }
557
+ interface AdsDataTableRowSelection<RecordType extends object> {
558
+ type?: "checkbox" | "radio";
559
+ selectedRowKeys?: AdsDataTableKey[];
560
+ defaultSelectedRowKeys?: AdsDataTableKey[];
561
+ hideSelectAll?: boolean;
562
+ onChange?: (selectedRowKeys: AdsDataTableKey[], selectedRows: RecordType[]) => void;
563
+ columnWidth?: number | string;
564
+ }
565
+ interface AdsDataTableExpandable<RecordType extends object> {
566
+ expandedRowRender?: (record: RecordType, index: number) => React$1.ReactNode;
567
+ expandedRowKeys?: AdsDataTableKey[];
568
+ defaultExpandedRowKeys?: AdsDataTableKey[];
569
+ expandRowByClick?: boolean;
570
+ rowExpandable?: (record: RecordType) => boolean;
571
+ onExpand?: (expanded: boolean, record: RecordType) => void;
572
+ }
573
+ interface AdsDataTableSortState<RecordType extends object> {
574
+ column: AdsDataTableColumn<RecordType> | null;
575
+ columnKey: string;
576
+ order: AdsDataTableSortOrder;
577
+ }
578
+ interface AdsDataTableProps<RecordType extends object> {
579
+ columns: AdsDataTableColumn<RecordType>[];
580
+ dataSource?: RecordType[];
581
+ rowKey?: DataKey | ((record: RecordType, index: number) => AdsDataTableKey);
582
+ loading?: boolean;
583
+ loadingVariant?: AdsDataTableLoadingVariant;
584
+ expandedRowSurface?: AdsDataTableExpandedRowSurface;
585
+ emptyText?: React$1.ReactNode;
586
+ emptyState?: React$1.ReactNode;
587
+ rowClassName?: string | ((record: RecordType, index: number) => string | undefined);
588
+ size?: AdsDataTableSize;
589
+ pagination?: false | AdsDataTablePaginationConfig;
590
+ rowSelection?: AdsDataTableRowSelection<RecordType>;
591
+ expandable?: AdsDataTableExpandable<RecordType>;
592
+ scroll?: {
593
+ x?: number | string;
594
+ y?: number | string;
595
+ };
596
+ sticky?: boolean;
597
+ fill?: boolean;
598
+ footer?: React$1.ReactNode;
599
+ className?: string;
600
+ tableClassName?: string;
601
+ classNames?: {
602
+ emptyRowCell?: string;
603
+ expandedRowContent?: string;
604
+ paginationContainer?: string;
605
+ };
606
+ onSortChange?: (sortState: AdsDataTableSortState<RecordType> | null) => void;
607
+ onRowClick?: (record: RecordType, index: number, event: React$1.MouseEvent<HTMLTableRowElement>) => void;
608
+ suppressRowClickSelection?: boolean;
609
+ }
610
+ declare function AdsDataTable<RecordType extends object>({ className, columns, dataSource, rowKey, loading, loadingVariant, expandedRowSurface, emptyText, emptyState, rowClassName, size, pagination, rowSelection, expandable, scroll, sticky, fill, footer, tableClassName, classNames, onSortChange, onRowClick, suppressRowClickSelection, }: AdsDataTableProps<RecordType>): React$1.JSX.Element;
611
+
612
+ interface AdsDataTableToolbarProps {
613
+ action?: React$1.ReactNode;
614
+ className?: string;
615
+ searchClassName?: string;
616
+ searchPlaceholder?: string;
617
+ searchValue?: string;
618
+ title?: React$1.ReactNode;
619
+ titleClassName?: string;
620
+ onSearchChange?: (value: string) => void;
621
+ onSearchClear?: () => void;
622
+ }
623
+ declare function AdsDataTableToolbar({ action, className, searchClassName, searchPlaceholder, searchValue, title, titleClassName, onSearchChange, onSearchClear, }: AdsDataTableToolbarProps): React$1.JSX.Element;
624
+
625
+ type AdsViewCustomersDataTablePagination = Omit<AdsDataTablePaginationConfig, "variant" | "showFirstLast">;
626
+ interface AdsViewCustomersDataTableProps<RecordType extends object> extends Omit<AdsDataTableProps<RecordType>, "className" | "emptyState" | "pagination"> {
627
+ columns: AdsDataTableColumn<RecordType>[];
628
+ emptyState?: React$1.ReactNode;
629
+ error?: boolean;
630
+ errorDescription?: React$1.ReactNode;
631
+ errorState?: React$1.ReactNode;
632
+ errorTitle?: React$1.ReactNode;
633
+ height?: number | string;
634
+ pagination?: false | AdsViewCustomersDataTablePagination;
635
+ retryLabel?: React$1.ReactNode;
636
+ searchPlaceholder?: string;
637
+ searchValue?: string;
638
+ title?: React$1.ReactNode;
639
+ toolbarAction?: React$1.ReactNode;
640
+ onRetry?: () => void;
641
+ onSearchChange?: (value: string) => void;
642
+ onSearchClear?: () => void;
643
+ }
644
+ declare function AdsViewCustomersDataTable<RecordType extends object>({ columns, dataSource, emptyState, error, errorDescription, errorState, errorTitle, height, loading, pagination, retryLabel, rowKey, scroll, searchPlaceholder, searchValue, sticky, title, toolbarAction, onRetry, onSearchChange, onSearchClear, ...props }: AdsViewCustomersDataTableProps<RecordType>): React$1.JSX.Element;
645
+
416
646
  declare const Pagination: {
417
647
  ({ className, ...props }: React$1.ComponentProps<"nav">): React$1.JSX.Element;
418
648
  displayName: string;
@@ -510,7 +740,11 @@ declare const AdsRadioGroupCardOption: React$1.ForwardRefExoticComponent<Omit<Om
510
740
  label: React$1.ReactNode;
511
741
  } & React$1.RefAttributes<HTMLButtonElement>>;
512
742
 
513
- declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
743
+ type SelectProps = React$1.ComponentPropsWithoutRef<typeof SelectPrimitive.Root>;
744
+ declare function Select({ defaultOpen, onOpenChange, open: openProp, ...props }: SelectProps): React$1.JSX.Element;
745
+ declare namespace Select {
746
+ var displayName: string | undefined;
747
+ }
514
748
  declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
515
749
  declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
516
750
  declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
@@ -523,16 +757,23 @@ declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrim
523
757
 
524
758
  type SelectRootProps = React$1.ComponentPropsWithoutRef<typeof Select>;
525
759
  interface AdsSelectProps extends SelectRootProps {
760
+ clearable?: boolean;
761
+ clearButtonLabel?: string;
526
762
  contentClassName?: string;
527
763
  descriptionPlacement?: AdsFieldDescriptionPlacement;
528
764
  errorText?: React$1.ReactNode;
529
765
  helperText?: React$1.ReactNode;
530
766
  id?: string;
531
767
  label?: React$1.ReactNode;
768
+ emptyText?: React$1.ReactNode;
769
+ onClear?: () => void;
770
+ onValueChange?: (value: string | undefined) => void;
532
771
  placeholder?: React$1.ReactNode;
533
772
  triggerClassName?: string;
773
+ value?: string;
774
+ defaultValue?: string;
534
775
  }
535
- declare function AdsSelect({ children, contentClassName, descriptionPlacement, errorText, helperText, id, label, placeholder, triggerClassName, ...props }: AdsSelectProps): React$1.JSX.Element;
776
+ declare function AdsSelect({ children, clearable, clearButtonLabel, contentClassName, defaultValue, descriptionPlacement, disabled, emptyText, errorText, helperText, id, label, onClear, onValueChange, placeholder, triggerClassName, value, ...props }: AdsSelectProps): React$1.JSX.Element;
536
777
 
537
778
  declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
538
779
 
@@ -670,6 +911,7 @@ interface DialogContentProps extends React$1.ComponentPropsWithoutRef<typeof Dia
670
911
  hideCloseButton?: boolean;
671
912
  }
672
913
  type DialogHeaderProps = React$1.HTMLAttributes<HTMLDivElement>;
914
+ type DialogBodyProps = React$1.HTMLAttributes<HTMLDivElement>;
673
915
  type DialogFooterProps = React$1.HTMLAttributes<HTMLDivElement>;
674
916
  type DialogTitleProps = React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;
675
917
  type DialogDescriptionProps = React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
@@ -680,6 +922,7 @@ declare const AdsDialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPri
680
922
  declare const AdsDialogClose: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
681
923
  declare const AdsDialogContent: React$1.ForwardRefExoticComponent<DialogContentProps & React$1.RefAttributes<HTMLDivElement>>;
682
924
  declare const AdsDialogHeader: React$1.ForwardRefExoticComponent<DialogHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
925
+ declare const AdsDialogBody: React$1.ForwardRefExoticComponent<DialogBodyProps & React$1.RefAttributes<HTMLDivElement>>;
683
926
  declare const AdsDialogFooter: React$1.ForwardRefExoticComponent<DialogFooterProps & React$1.RefAttributes<HTMLDivElement>>;
684
927
  declare const AdsDialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
685
928
  declare const AdsDialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
@@ -690,6 +933,7 @@ type AdsDialogOverlayProps = DialogOverlayProps;
690
933
  type AdsDialogCloseProps = DialogCloseProps;
691
934
  type AdsDialogContentProps = DialogContentProps;
692
935
  type AdsDialogHeaderProps = DialogHeaderProps;
936
+ type AdsDialogBodyProps = DialogBodyProps;
693
937
  type AdsDialogFooterProps = DialogFooterProps;
694
938
  type AdsDialogTitleProps = DialogTitleProps;
695
939
  type AdsDialogDescriptionProps = DialogDescriptionProps;
@@ -708,7 +952,52 @@ declare function AdsEmptyContent({ className, ...props }: React$1.HTMLAttributes
708
952
  declare function AdsEmptyActions({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
709
953
  declare function AdsEmptyFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
710
954
 
711
- declare const AdsTable: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>, "ref"> & React$1.RefAttributes<HTMLTableElement>>;
955
+ type AdsMasonryClassNames = {
956
+ empty?: string;
957
+ item?: string;
958
+ root?: string;
959
+ skeleton?: string;
960
+ };
961
+ interface AdsMasonryProps<Item> {
962
+ items: Item[];
963
+ renderItem: (item: Item, meta: {
964
+ index: number;
965
+ width: number;
966
+ }) => React$1.ReactNode;
967
+ layoutKey?: React$1.Key;
968
+ getItemKey?: (item: Item, index: number) => string | number;
969
+ columnWidth?: number;
970
+ maxColumnCount?: number;
971
+ gap?: number;
972
+ itemHeightEstimate?: number;
973
+ overscanBy?: number;
974
+ scrollFps?: number;
975
+ ssrWidth?: number;
976
+ ssrHeight?: number;
977
+ emptyState?: React$1.ReactNode;
978
+ loading?: boolean;
979
+ loadingItemCount?: number;
980
+ className?: string;
981
+ itemClassName?: string;
982
+ classNames?: AdsMasonryClassNames;
983
+ onRender?: (startIndex: number, stopIndex: number, items: Item[]) => void;
984
+ }
985
+ declare function AdsMasonry<Item>({ items, renderItem, layoutKey, getItemKey, columnWidth, maxColumnCount, gap, itemHeightEstimate, overscanBy, scrollFps, ssrWidth, ssrHeight, emptyState, loading, loadingItemCount, className, itemClassName, classNames, onRender, }: AdsMasonryProps<Item>): React$1.JSX.Element | null;
986
+
987
+ declare const TableScrollArea: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
988
+
989
+ interface AdsTableScrollAreaProps extends React$1.ComponentPropsWithoutRef<typeof TableScrollArea> {
990
+ fill?: boolean;
991
+ stickyHeader?: boolean;
992
+ x?: number | string;
993
+ y?: number | string;
994
+ }
995
+ declare const AdsTableSurface: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
996
+ declare const AdsTableRoot: React$1.ForwardRefExoticComponent<Omit<React$1.TableHTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>, "ref"> & React$1.RefAttributes<HTMLTableElement>>;
997
+ declare const AdsTableScrollArea: React$1.ForwardRefExoticComponent<AdsTableScrollAreaProps & React$1.RefAttributes<HTMLDivElement>>;
998
+ declare const AdsTable: React$1.ForwardRefExoticComponent<Omit<React$1.TableHTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>, "ref"> & React$1.RefAttributes<HTMLTableElement>>;
999
+ declare const AdsTableColGroup: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLTableColElement> & React$1.RefAttributes<HTMLTableColElement>, "ref"> & React$1.RefAttributes<HTMLTableColElement>>;
1000
+ declare const AdsTableCol: React$1.ForwardRefExoticComponent<Omit<React$1.ColHTMLAttributes<HTMLTableColElement> & React$1.RefAttributes<HTMLTableColElement>, "ref"> & React$1.RefAttributes<HTMLTableColElement>>;
712
1001
  declare const AdsTableHeader: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>, "ref"> & React$1.RefAttributes<HTMLTableSectionElement>>;
713
1002
  declare const AdsTableBody: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>, "ref"> & React$1.RefAttributes<HTMLTableSectionElement>>;
714
1003
  declare const AdsTableFooter: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>, "ref"> & React$1.RefAttributes<HTMLTableSectionElement>>;
@@ -716,6 +1005,27 @@ declare const AdsTableRow: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAt
716
1005
  declare const AdsTableHead: React$1.ForwardRefExoticComponent<Omit<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
717
1006
  declare const AdsTableCell: React$1.ForwardRefExoticComponent<Omit<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
718
1007
  declare const AdsTableCaption: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>, "ref"> & React$1.RefAttributes<HTMLTableCaptionElement>>;
1008
+ interface AdsTableSortHeaderProps extends Omit<React$1.ComponentPropsWithoutRef<typeof AdsTableHead>, "children" | "title"> {
1009
+ disabled?: boolean;
1010
+ onToggleSort?: (nextOrder: "ascend" | "descend" | null) => void;
1011
+ sortOrder: "ascend" | "descend" | null;
1012
+ title: React$1.ReactNode;
1013
+ }
1014
+ declare const AdsTableSortHeader: React$1.ForwardRefExoticComponent<AdsTableSortHeaderProps & React$1.RefAttributes<HTMLTableCellElement>>;
1015
+ interface AdsTableSelectionCellProps extends Omit<React$1.ComponentPropsWithoutRef<typeof AdsTableCell>, "children" | "onChange"> {
1016
+ checked?: boolean;
1017
+ disabled?: boolean;
1018
+ onChange?: (nextValue: boolean | string) => void;
1019
+ type?: "checkbox" | "radio";
1020
+ value?: string;
1021
+ }
1022
+ declare const AdsTableSelectionCell: React$1.ForwardRefExoticComponent<AdsTableSelectionCellProps & React$1.RefAttributes<HTMLTableCellElement>>;
1023
+ interface AdsTableExpandCellProps extends Omit<React$1.ComponentPropsWithoutRef<typeof AdsTableCell>, "children"> {
1024
+ disabled?: boolean;
1025
+ expanded?: boolean;
1026
+ onToggle?: (expanded: boolean) => void;
1027
+ }
1028
+ declare const AdsTableExpandCell: React$1.ForwardRefExoticComponent<AdsTableExpandCellProps & React$1.RefAttributes<HTMLTableCellElement>>;
719
1029
 
720
1030
  type AdsLocale = "en" | "zh";
721
1031
  type AdsMessages = {
@@ -730,17 +1040,43 @@ type AdsMessages = {
730
1040
  close: string;
731
1041
  };
732
1042
  input: {
1043
+ clear: string;
733
1044
  chooseFile: string;
734
1045
  noFileChosen: string;
735
1046
  optional: string;
736
1047
  };
1048
+ select: {
1049
+ clear: string;
1050
+ noOptionsAvailable: string;
1051
+ };
737
1052
  toast: {
738
1053
  notifications: string;
739
1054
  };
1055
+ table: {
1056
+ clearSort: string;
1057
+ collapseRow: string;
1058
+ expandRow: string;
1059
+ filterColumn: string;
1060
+ loadingRows: string;
1061
+ noDataAvailable: string;
1062
+ selectAllRows: string;
1063
+ selectRow: string;
1064
+ sortAscending: string;
1065
+ sortDescending: string;
1066
+ };
740
1067
  pagination: {
1068
+ first: string;
1069
+ last: string;
741
1070
  previous: string;
742
1071
  next: string;
743
1072
  morePages: string;
1073
+ navigation: string;
1074
+ itemsPerPage: string;
1075
+ itemsPerPageOption: string;
1076
+ jumpTo: string;
1077
+ total: string;
1078
+ compactTotal: string;
1079
+ pageStatus: string;
744
1080
  };
745
1081
  };
746
1082
  type AdsMessagesOverride = {
@@ -748,7 +1084,9 @@ type AdsMessagesOverride = {
748
1084
  button?: Partial<AdsMessages["button"]>;
749
1085
  dialog?: Partial<AdsMessages["dialog"]>;
750
1086
  input?: Partial<AdsMessages["input"]>;
1087
+ select?: Partial<AdsMessages["select"]>;
751
1088
  toast?: Partial<AdsMessages["toast"]>;
1089
+ table?: Partial<AdsMessages["table"]>;
752
1090
  pagination?: Partial<AdsMessages["pagination"]>;
753
1091
  };
754
1092
 
@@ -765,4 +1103,4 @@ declare function useAdsI18n(): AdsI18nContextValue;
765
1103
 
766
1104
  declare const adsDefaultMessages: Record<"en" | "zh", AdsMessages>;
767
1105
 
768
- export { AdsAccordion, type AdsAccordionItem, type AdsAccordionMode, type AdsAccordionProps, Alert as AdsAlert, AlertDescription as AdsAlertDescription, AdsAlertDialog, AdsAlertDialogAction, type AdsAlertDialogActionProps, AdsAlertDialogCancel, type AdsAlertDialogCancelProps, AdsAlertDialogContent, type AdsAlertDialogContentProps, AdsAlertDialogDescription, type AdsAlertDialogDescriptionProps, AdsAlertDialogFooter, type AdsAlertDialogFooterProps, AdsAlertDialogHeader, type AdsAlertDialogHeaderProps, AdsAlertDialogOverlay, type AdsAlertDialogOverlayProps, AdsAlertDialogPortal, type AdsAlertDialogPortalProps, type AdsAlertDialogProps, AdsAlertDialogTitle, type AdsAlertDialogTitleProps, AdsAlertDialogTrigger, type AdsAlertDialogTriggerProps, AlertTitle as AdsAlertTitle, AdsBadge, type AdsBadgeProps, AdsBreadcrumb, AdsBreadcrumbEllipsis, type AdsBreadcrumbEllipsisProps, AdsBreadcrumbItem, type AdsBreadcrumbItemProps, AdsBreadcrumbLink, type AdsBreadcrumbLinkProps, AdsBreadcrumbList, type AdsBreadcrumbListProps, AdsBreadcrumbPage, type AdsBreadcrumbPageProps, type AdsBreadcrumbProps, AdsBreadcrumbSeparator, type AdsBreadcrumbSeparatorIcon, type AdsBreadcrumbSeparatorProps, AdsButton, AdsButtonGroup, AdsButtonGroupInput, type AdsButtonGroupInputProps, type AdsButtonGroupProps, AdsButtonGroupSeparator, type AdsButtonGroupSeparatorProps, AdsButtonGroupText, type AdsButtonGroupTextProps, type AdsButtonProps, AdsCheckbox, AdsDialog, AdsDialogClose, type AdsDialogCloseProps, AdsDialogContent, type AdsDialogContentProps, AdsDialogDescription, type AdsDialogDescriptionProps, AdsDialogFooter, type AdsDialogFooterProps, AdsDialogHeader, type AdsDialogHeaderProps, AdsDialogOverlay, type AdsDialogOverlayProps, AdsDialogPortal, type AdsDialogPortalProps, type AdsDialogProps, AdsDialogTitle, type AdsDialogTitleProps, AdsDialogTrigger, type AdsDialogTriggerProps, AdsEmpty, AdsEmptyActions, AdsEmptyContent, AdsEmptyDescription, AdsEmptyFooter, AdsEmptyHeader, AdsEmptyMedia, type AdsEmptyProps, AdsEmptyTitle, AdsField, AdsFieldActions, AdsFieldCheckboxRow, AdsFieldChoiceCard, AdsFieldDescription, AdsFieldError, AdsFieldGroup, AdsFieldHeader, AdsFieldItem, AdsFieldLabel, AdsFieldLegend, AdsFieldSeparator, AdsFieldSet, AdsI18nProvider, AdsInput, AdsInputGroup, AdsInputGroupInput, type AdsInputGroupInputProps, type AdsInputGroupProps, AdsInputGroupTextarea, type AdsInputGroupTextareaProps, AdsInputOTP, AdsInputOTPGroup, type AdsInputOTPProps, AdsInputOTPSeparator, AdsInputOTPSlot, type AdsInputProps, type AdsIntent, type AdsLocale, type AdsMessages, type AdsMessagesOverride, AdsPagination, AdsPaginationContent, type AdsPaginationContentProps, AdsPaginationEllipsis, type AdsPaginationEllipsisProps, AdsPaginationItem, type AdsPaginationItemProps, AdsPaginationLink, type AdsPaginationLinkProps, AdsPaginationNext, type AdsPaginationNextProps, AdsPaginationPrevious, type AdsPaginationPreviousProps, type AdsPaginationProps, AdsPopover, AdsPopoverBody, type AdsPopoverBodyProps, AdsPopoverContent, type AdsPopoverContentProps, AdsPopoverDescription, type AdsPopoverDescriptionProps, AdsPopoverHeader, type AdsPopoverHeaderProps, type AdsPopoverProps, AdsPopoverTitle, type AdsPopoverTitleProps, AdsPopoverTrigger, type AdsPopoverTriggerProps, AdsProgress, type AdsProgressProps, type AdsProgressVariant, AdsRadioGroup, AdsRadioGroupCardOption, AdsRadioGroupOption, AdsSelect, SelectContent as AdsSelectContent, SelectGroup as AdsSelectGroup, SelectItem as AdsSelectItem, SelectLabel as AdsSelectLabel, Select as AdsSelectRoot, SelectScrollDownButton as AdsSelectScrollDownButton, SelectScrollUpButton as AdsSelectScrollUpButton, SelectSeparator as AdsSelectSeparator, SelectTrigger as AdsSelectTrigger, SelectValue as AdsSelectValue, AdsSeparator, type AdsSeparatorProps, type AdsSize, AdsSkeleton, type AdsSkeletonProps, AdsSlider, type AdsSliderProps, AdsSpinner, type AdsSpinnerProps, type AdsSpinnerSize, type AdsSpinnerTone, AdsSwitch, AdsTable, AdsTableBody, AdsTableCaption, AdsTableCell, AdsTableFooter, AdsTableHead, AdsTableHeader, AdsTableRow, AdsTabs, AdsTabsContent, type AdsTabsContentProps, AdsTabsList, type AdsTabsListProps, type AdsTabsProps, AdsTabsTrigger, type AdsTabsTriggerProps, AdsTextarea, AdsToast, type AdsToastAction, type AdsToastIntent, AdsToastManager, type AdsToastOptions, type AdsToastProps, AdsToaster, type AdsToasterProps, AdsToggle, AdsToggleGroup, AdsToggleGroupItem, type AdsToggleGroupItemProps, type AdsToggleGroupProps, type AdsToggleProps, AdsTooltip, AdsTooltipArrow, AdsTooltipContent, AdsTooltipProvider, AdsTooltipTrigger, adsDefaultMessages, useAdsI18n };
1106
+ export { AdsAccordion, type AdsAccordionItem, type AdsAccordionMode, type AdsAccordionProps, Alert as AdsAlert, AlertDescription as AdsAlertDescription, AdsAlertDialog, AdsAlertDialogAction, type AdsAlertDialogActionProps, AdsAlertDialogCancel, type AdsAlertDialogCancelProps, AdsAlertDialogContent, type AdsAlertDialogContentProps, AdsAlertDialogDescription, type AdsAlertDialogDescriptionProps, AdsAlertDialogFooter, type AdsAlertDialogFooterProps, AdsAlertDialogHeader, type AdsAlertDialogHeaderProps, AdsAlertDialogOverlay, type AdsAlertDialogOverlayProps, AdsAlertDialogPortal, type AdsAlertDialogPortalProps, type AdsAlertDialogProps, AdsAlertDialogTitle, type AdsAlertDialogTitleProps, AdsAlertDialogTrigger, type AdsAlertDialogTriggerProps, AlertTitle as AdsAlertTitle, AdsBadge, type AdsBadgeProps, AdsBreadcrumb, AdsBreadcrumbEllipsis, type AdsBreadcrumbEllipsisProps, AdsBreadcrumbItem, type AdsBreadcrumbItemProps, AdsBreadcrumbLink, type AdsBreadcrumbLinkProps, AdsBreadcrumbList, type AdsBreadcrumbListProps, AdsBreadcrumbPage, type AdsBreadcrumbPageProps, type AdsBreadcrumbProps, AdsBreadcrumbSeparator, type AdsBreadcrumbSeparatorIcon, type AdsBreadcrumbSeparatorProps, AdsButton, AdsButtonGroup, AdsButtonGroupInput, type AdsButtonGroupInputProps, type AdsButtonGroupProps, AdsButtonGroupSeparator, type AdsButtonGroupSeparatorProps, AdsButtonGroupText, type AdsButtonGroupTextProps, type AdsButtonProps, AdsCalendar, type AdsCalendarCellSize, type AdsCalendarProps, type AdsCalendarSystem, AdsCheckbox, AdsDataPagination, type AdsDataPaginationClassNames, type AdsDataPaginationProps, AdsDataTable, type AdsDataTableColumn, type AdsDataTableExpandable, type AdsDataTableExpandedRowSurface, type AdsDataTableLoadingVariant, type AdsDataTablePaginationConfig, type AdsDataTableProps, type AdsDataTableRowSelection, type AdsDataTableSortOrder, type AdsDataTableSortState, AdsDataTableToolbar, type AdsDataTableToolbarProps, AdsDatePicker, type AdsDatePickerProps, AdsDateTimePicker, type AdsDateTimePickerProps, AdsDialog, AdsDialogBody, type AdsDialogBodyProps, AdsDialogClose, type AdsDialogCloseProps, AdsDialogContent, type AdsDialogContentProps, AdsDialogDescription, type AdsDialogDescriptionProps, AdsDialogFooter, type AdsDialogFooterProps, AdsDialogHeader, type AdsDialogHeaderProps, AdsDialogOverlay, type AdsDialogOverlayProps, AdsDialogPortal, type AdsDialogPortalProps, type AdsDialogProps, AdsDialogTitle, type AdsDialogTitleProps, AdsDialogTrigger, type AdsDialogTriggerProps, AdsEmpty, AdsEmptyActions, AdsEmptyContent, AdsEmptyDescription, AdsEmptyFooter, AdsEmptyHeader, AdsEmptyMedia, type AdsEmptyProps, AdsEmptyTitle, AdsField, AdsFieldActions, AdsFieldCheckboxRow, AdsFieldChoiceCard, AdsFieldDescription, AdsFieldError, AdsFieldGroup, AdsFieldHeader, AdsFieldItem, AdsFieldLabel, AdsFieldLegend, AdsFieldSeparator, AdsFieldSet, AdsI18nProvider, AdsInput, AdsInputGroup, AdsInputGroupInput, type AdsInputGroupInputProps, type AdsInputGroupProps, AdsInputGroupTextarea, type AdsInputGroupTextareaProps, AdsInputOTP, AdsInputOTPGroup, type AdsInputOTPProps, AdsInputOTPSeparator, AdsInputOTPSlot, type AdsInputProps, type AdsIntent, type AdsLocale, AdsMasonry, type AdsMasonryProps, type AdsMessages, type AdsMessagesOverride, AdsPagination, AdsPaginationContent, type AdsPaginationContentProps, AdsPaginationEllipsis, type AdsPaginationEllipsisProps, AdsPaginationItem, type AdsPaginationItemProps, AdsPaginationLink, type AdsPaginationLinkProps, AdsPaginationNext, type AdsPaginationNextProps, AdsPaginationPrevious, type AdsPaginationPreviousProps, type AdsPaginationProps, AdsPopover, AdsPopoverBody, type AdsPopoverBodyProps, AdsPopoverContent, type AdsPopoverContentProps, AdsPopoverDescription, type AdsPopoverDescriptionProps, AdsPopoverHeader, type AdsPopoverHeaderProps, type AdsPopoverProps, AdsPopoverTitle, type AdsPopoverTitleProps, AdsPopoverTrigger, type AdsPopoverTriggerProps, AdsProgress, type AdsProgressProps, type AdsProgressVariant, AdsRadioGroup, AdsRadioGroupCardOption, AdsRadioGroupOption, AdsSelect, SelectContent as AdsSelectContent, SelectGroup as AdsSelectGroup, SelectItem as AdsSelectItem, SelectLabel as AdsSelectLabel, Select as AdsSelectRoot, SelectScrollDownButton as AdsSelectScrollDownButton, SelectScrollUpButton as AdsSelectScrollUpButton, SelectSeparator as AdsSelectSeparator, SelectTrigger as AdsSelectTrigger, SelectValue as AdsSelectValue, AdsSeparator, type AdsSeparatorProps, type AdsSize, AdsSkeleton, type AdsSkeletonProps, AdsSlider, type AdsSliderProps, AdsSpinner, type AdsSpinnerProps, type AdsSpinnerSize, type AdsSpinnerTone, AdsSwitch, AdsTable, AdsTableBody, AdsTableCaption, AdsTableCell, AdsTableCol, AdsTableColGroup, AdsTableExpandCell, type AdsTableExpandCellProps, AdsTableFooter, AdsTableHead, AdsTableHeader, AdsTableRoot, AdsTableRow, AdsTableScrollArea, type AdsTableScrollAreaProps, AdsTableSelectionCell, type AdsTableSelectionCellProps, AdsTableSortHeader, type AdsTableSortHeaderProps, AdsTableSurface, AdsTabs, AdsTabsContent, type AdsTabsContentProps, AdsTabsList, type AdsTabsListProps, type AdsTabsProps, AdsTabsTrigger, type AdsTabsTriggerProps, AdsTextarea, AdsToast, type AdsToastAction, type AdsToastIntent, AdsToastManager, type AdsToastOptions, type AdsToastProps, AdsToaster, type AdsToasterProps, AdsToggle, AdsToggleGroup, AdsToggleGroupItem, type AdsToggleGroupItemProps, type AdsToggleGroupProps, type AdsToggleProps, AdsTooltip, AdsTooltipArrow, AdsTooltipContent, AdsTooltipProvider, AdsTooltipTrigger, AdsViewCustomersDataTable, type AdsViewCustomersDataTableProps, adsDefaultMessages, useAdsI18n };