@adsgency_npm/adsgency-ads-ui 0.1.0-alpha.3 → 0.1.0-alpha.4
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/chunk-YJFQM6IB.js.map +1 -0
- package/dist/index.d.ts +175 -5
- package/dist/index.js +1818 -654
- package/dist/index.js.map +1 -0
- package/dist/tokens/designTokens.js.map +1 -0
- package/dist/tokens/tailwindPreset.js.map +1 -0
- package/package.json +1 -1
- package/dist/styles/tokens.css +0 -121
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tokens/designTokens.ts"],"sourcesContent":["export const designTokens = {\n background: \"#151619\",\n foreground: \"#fdfdfd\",\n card: \"#1b1c21\",\n cardForeground: \"#fdfdfd\",\n popover: \"#2a2b2f\",\n popoverForeground: \"#fdfdfd\",\n primary: \"#844fff\",\n primaryForeground: \"#fdfdfd\",\n secondary: \"#3f4043\",\n secondaryForeground: \"#fdfdfd\",\n muted: \"#3f4043\",\n mutedForeground: \"#7e7f81\",\n accent: \"#3f4043\",\n accentForeground: \"#fdfdfd\",\n destructive: \"#dc2626\",\n destructiveForeground: \"#ff9b9b\",\n border: \"#545558\",\n input: \"#151619\",\n ring: \"#a984ff\",\n brandSecondary: \"#af41ff\",\n brandSecondaryForeground: \"#151619\",\n brandGradientFrom: \"#6859ff\",\n brandGradientTo: \"#af41ff\",\n success: \"#008e61\",\n successForeground: \"#fdfdfd\",\n warning: \"#cd6c00\",\n warningForeground: \"#fdfdfd\",\n info: \"#844fff\",\n infoForeground: \"#fdfdfd\",\n borderMuted: \"#3f4043\",\n active: \"#422880\",\n activeForeground: \"#fdfdfd\",\n labelForeground: \"#a8a9aa\",\n icon: \"#939496\",\n iconMuted: \"#545558\",\n spacing: {\n xs: \"0.25rem\",\n sm: \"0.5rem\",\n md: \"0.75rem\",\n lg: \"1rem\",\n xl: \"1.5rem\",\n \"2xl\": \"2rem\",\n },\n radius: {\n sm: \"0.25rem\",\n md: \"0.375rem\",\n lg: \"0.5rem\",\n xl: \"0.75rem\",\n full: \"9999px\",\n },\n size: {\n controlHeight: \"2.5rem\",\n modalWidth: \"42rem\",\n sidebarWidth: \"17.5rem\",\n },\n zIndex: {\n toolbar: 30,\n overlay: 40,\n modal: 50,\n toast: 60,\n },\n} as const;\n\nexport type DesignTokens = typeof designTokens;\n"],"mappings":";;;AAAO,IAAM,eAAe;AAAA,EAC1B,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,SAAS;AAAA,EACT,mBAAmB;AAAA,EACnB,SAAS;AAAA,EACT,mBAAmB;AAAA,EACnB,WAAW;AAAA,EACX,qBAAqB;AAAA,EACrB,OAAO;AAAA,EACP,iBAAiB;AAAA,EACjB,QAAQ;AAAA,EACR,kBAAkB;AAAA,EAClB,aAAa;AAAA,EACb,uBAAuB;AAAA,EACvB,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,0BAA0B;AAAA,EAC1B,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,SAAS;AAAA,EACT,mBAAmB;AAAA,EACnB,SAAS;AAAA,EACT,mBAAmB;AAAA,EACnB,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,MAAM;AAAA,EACN,WAAW;AAAA,EACX,SAAS;AAAA,IACP,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA,QAAQ;AAAA,IACN,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,MAAM;AAAA,EACR;AAAA,EACA,MAAM;AAAA,IACJ,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,cAAc;AAAA,EAChB;AAAA,EACA,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,SAAS;AAAA,IACT,OAAO;AAAA,IACP,OAAO;AAAA,EACT;AACF;","names":[]}
|
package/dist/index.d.ts
CHANGED
|
@@ -330,8 +330,11 @@ type AdsInputChromeProps = {
|
|
|
330
330
|
};
|
|
331
331
|
interface AdsInputProps extends Omit<InputProps$1, "aria-invalid" | "size" | "prefix">, AdsInputChromeProps {
|
|
332
332
|
action?: React$1.ReactNode;
|
|
333
|
+
clearable?: boolean;
|
|
334
|
+
clearButtonLabel?: string;
|
|
333
335
|
emptyFileLabel?: string;
|
|
334
336
|
fileTriggerLabel?: string;
|
|
337
|
+
onClear?: () => void;
|
|
335
338
|
prefix?: React$1.ReactNode;
|
|
336
339
|
size?: AdsSize;
|
|
337
340
|
suffix?: React$1.ReactNode;
|
|
@@ -361,8 +364,16 @@ interface AdsInputGroupProps extends AdsInputGroupChromeProps {
|
|
|
361
364
|
trailingAddonClassName?: string;
|
|
362
365
|
}
|
|
363
366
|
declare function AdsInputGroup({ children, className, controlWrapperClassName, errorText, footer, header, helperText, id, label, leadingAddon, leadingAddonClassName, surfaceClassName, trailingAddon, trailingAddonClassName, }: AdsInputGroupProps): React$1.JSX.Element;
|
|
364
|
-
type AdsInputGroupInputProps = Omit<InputProps, "aria-invalid" | "aria-describedby"
|
|
365
|
-
|
|
367
|
+
type AdsInputGroupInputProps = Omit<InputProps, "aria-invalid" | "aria-describedby"> & {
|
|
368
|
+
clearable?: boolean;
|
|
369
|
+
clearButtonLabel?: string;
|
|
370
|
+
onClear?: () => void;
|
|
371
|
+
};
|
|
372
|
+
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"> & {
|
|
373
|
+
clearable?: boolean;
|
|
374
|
+
clearButtonLabel?: string;
|
|
375
|
+
onClear?: () => void;
|
|
376
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
366
377
|
type AdsInputGroupTextareaProps = Omit<TextareaProps$1, "aria-invalid" | "aria-describedby">;
|
|
367
378
|
declare const AdsInputGroupTextarea: React$1.ForwardRefExoticComponent<AdsInputGroupTextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
368
379
|
|
|
@@ -444,6 +455,105 @@ declare const AdsInputOTPSlot: React$1.ForwardRefExoticComponent<Omit<Omit<React
|
|
|
444
455
|
index: number;
|
|
445
456
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
446
457
|
|
|
458
|
+
type ShowTotalRender = (total: number, range: [number, number]) => React$1.ReactNode;
|
|
459
|
+
interface AdsDataPaginationProps {
|
|
460
|
+
current?: number;
|
|
461
|
+
defaultCurrent?: number;
|
|
462
|
+
pageSize?: number;
|
|
463
|
+
defaultPageSize?: number;
|
|
464
|
+
total: number;
|
|
465
|
+
onChange?: (page: number, pageSize: number) => void;
|
|
466
|
+
showTotal?: boolean | ShowTotalRender;
|
|
467
|
+
showSizeChanger?: boolean;
|
|
468
|
+
pageSizeOptions?: number[];
|
|
469
|
+
onPageSizeChange?: (pageSize: number, page: number) => void;
|
|
470
|
+
showQuickJumper?: boolean;
|
|
471
|
+
siblingCount?: number;
|
|
472
|
+
boundaryCount?: number;
|
|
473
|
+
disabled?: boolean;
|
|
474
|
+
className?: string;
|
|
475
|
+
ariaLabel?: string;
|
|
476
|
+
}
|
|
477
|
+
declare function AdsDataPagination({ current, defaultCurrent, pageSize, defaultPageSize, total, onChange, showTotal, showSizeChanger, pageSizeOptions, onPageSizeChange, showQuickJumper, siblingCount, boundaryCount, disabled, className, ariaLabel, }: AdsDataPaginationProps): React$1.JSX.Element;
|
|
478
|
+
|
|
479
|
+
type AdsDataTableKey = React$1.Key;
|
|
480
|
+
type AdsDataTableAlign = "left" | "center" | "right";
|
|
481
|
+
type AdsDataTableSortOrder = "ascend" | "descend" | null;
|
|
482
|
+
type AdsDataTableSize = "small" | "middle" | "large";
|
|
483
|
+
type DataKey = string | number;
|
|
484
|
+
interface AdsDataTableColumn<RecordType extends object> {
|
|
485
|
+
title?: React$1.ReactNode;
|
|
486
|
+
dataIndex?: DataKey | readonly DataKey[];
|
|
487
|
+
key?: React$1.Key;
|
|
488
|
+
width?: number | string;
|
|
489
|
+
align?: AdsDataTableAlign;
|
|
490
|
+
className?: string;
|
|
491
|
+
ellipsis?: boolean | {
|
|
492
|
+
showTitle?: boolean;
|
|
493
|
+
};
|
|
494
|
+
sorter?: boolean | ((a: RecordType, b: RecordType) => number);
|
|
495
|
+
sortOrder?: AdsDataTableSortOrder;
|
|
496
|
+
defaultSortOrder?: AdsDataTableSortOrder;
|
|
497
|
+
render?: (value: unknown, record: RecordType, index: number) => React$1.ReactNode;
|
|
498
|
+
}
|
|
499
|
+
interface AdsDataTablePaginationConfig {
|
|
500
|
+
current?: number;
|
|
501
|
+
defaultCurrent?: number;
|
|
502
|
+
pageSize?: number;
|
|
503
|
+
defaultPageSize?: number;
|
|
504
|
+
total?: number;
|
|
505
|
+
pageSizeOptions?: number[];
|
|
506
|
+
showSizeChanger?: boolean;
|
|
507
|
+
showQuickJumper?: boolean;
|
|
508
|
+
showTotal?: boolean | ((total: number, range: [number, number]) => React$1.ReactNode);
|
|
509
|
+
onChange?: (page: number, pageSize: number) => void;
|
|
510
|
+
onPageSizeChange?: (pageSize: number, page: number) => void;
|
|
511
|
+
}
|
|
512
|
+
interface AdsDataTableRowSelection<RecordType extends object> {
|
|
513
|
+
type?: "checkbox" | "radio";
|
|
514
|
+
selectedRowKeys?: AdsDataTableKey[];
|
|
515
|
+
defaultSelectedRowKeys?: AdsDataTableKey[];
|
|
516
|
+
onChange?: (selectedRowKeys: AdsDataTableKey[], selectedRows: RecordType[]) => void;
|
|
517
|
+
columnWidth?: number | string;
|
|
518
|
+
}
|
|
519
|
+
interface AdsDataTableExpandable<RecordType extends object> {
|
|
520
|
+
expandedRowRender?: (record: RecordType, index: number) => React$1.ReactNode;
|
|
521
|
+
expandedRowKeys?: AdsDataTableKey[];
|
|
522
|
+
defaultExpandedRowKeys?: AdsDataTableKey[];
|
|
523
|
+
expandRowByClick?: boolean;
|
|
524
|
+
rowExpandable?: (record: RecordType) => boolean;
|
|
525
|
+
onExpand?: (expanded: boolean, record: RecordType) => void;
|
|
526
|
+
}
|
|
527
|
+
interface AdsDataTableSortState<RecordType extends object> {
|
|
528
|
+
column: AdsDataTableColumn<RecordType> | null;
|
|
529
|
+
columnKey: string;
|
|
530
|
+
order: AdsDataTableSortOrder;
|
|
531
|
+
}
|
|
532
|
+
interface AdsDataTableProps<RecordType extends object> {
|
|
533
|
+
columns: AdsDataTableColumn<RecordType>[];
|
|
534
|
+
dataSource?: RecordType[];
|
|
535
|
+
rowKey?: DataKey | ((record: RecordType, index: number) => AdsDataTableKey);
|
|
536
|
+
loading?: boolean;
|
|
537
|
+
emptyText?: React$1.ReactNode;
|
|
538
|
+
emptyState?: React$1.ReactNode;
|
|
539
|
+
rowClassName?: string | ((record: RecordType, index: number) => string | undefined);
|
|
540
|
+
size?: AdsDataTableSize;
|
|
541
|
+
pagination?: false | AdsDataTablePaginationConfig;
|
|
542
|
+
rowSelection?: AdsDataTableRowSelection<RecordType>;
|
|
543
|
+
expandable?: AdsDataTableExpandable<RecordType>;
|
|
544
|
+
scroll?: {
|
|
545
|
+
x?: number | string;
|
|
546
|
+
y?: number | string;
|
|
547
|
+
};
|
|
548
|
+
sticky?: boolean;
|
|
549
|
+
fill?: boolean;
|
|
550
|
+
footer?: React$1.ReactNode;
|
|
551
|
+
className?: string;
|
|
552
|
+
tableClassName?: string;
|
|
553
|
+
onSortChange?: (sortState: AdsDataTableSortState<RecordType> | null) => void;
|
|
554
|
+
}
|
|
555
|
+
declare function AdsDataTable<RecordType extends object>({ className, columns, dataSource, rowKey, loading, emptyText, emptyState, rowClassName, size, pagination, rowSelection, expandable, scroll, sticky, fill, footer, tableClassName, onSortChange, }: AdsDataTableProps<RecordType>): React$1.JSX.Element;
|
|
556
|
+
|
|
447
557
|
declare const Pagination: {
|
|
448
558
|
({ className, ...props }: React$1.ComponentProps<"nav">): React$1.JSX.Element;
|
|
449
559
|
displayName: string;
|
|
@@ -554,16 +664,22 @@ declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrim
|
|
|
554
664
|
|
|
555
665
|
type SelectRootProps = React$1.ComponentPropsWithoutRef<typeof Select>;
|
|
556
666
|
interface AdsSelectProps extends SelectRootProps {
|
|
667
|
+
clearable?: boolean;
|
|
668
|
+
clearButtonLabel?: string;
|
|
557
669
|
contentClassName?: string;
|
|
558
670
|
descriptionPlacement?: AdsFieldDescriptionPlacement;
|
|
559
671
|
errorText?: React$1.ReactNode;
|
|
560
672
|
helperText?: React$1.ReactNode;
|
|
561
673
|
id?: string;
|
|
562
674
|
label?: React$1.ReactNode;
|
|
675
|
+
onClear?: () => void;
|
|
676
|
+
onValueChange?: (value: string | undefined) => void;
|
|
563
677
|
placeholder?: React$1.ReactNode;
|
|
564
678
|
triggerClassName?: string;
|
|
679
|
+
value?: string;
|
|
680
|
+
defaultValue?: string;
|
|
565
681
|
}
|
|
566
|
-
declare function AdsSelect({ children, contentClassName, descriptionPlacement, errorText, helperText, id, label, placeholder, triggerClassName, ...props }: AdsSelectProps): React$1.JSX.Element;
|
|
682
|
+
declare function AdsSelect({ children, clearable, clearButtonLabel, contentClassName, defaultValue, descriptionPlacement, disabled, errorText, helperText, id, label, onClear, onValueChange, placeholder, triggerClassName, value, ...props }: AdsSelectProps): React$1.JSX.Element;
|
|
567
683
|
|
|
568
684
|
declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
569
685
|
|
|
@@ -739,7 +855,20 @@ declare function AdsEmptyContent({ className, ...props }: React$1.HTMLAttributes
|
|
|
739
855
|
declare function AdsEmptyActions({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
740
856
|
declare function AdsEmptyFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
741
857
|
|
|
742
|
-
declare const
|
|
858
|
+
declare const TableScrollArea: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
859
|
+
|
|
860
|
+
interface AdsTableScrollAreaProps extends React$1.ComponentPropsWithoutRef<typeof TableScrollArea> {
|
|
861
|
+
fill?: boolean;
|
|
862
|
+
stickyHeader?: boolean;
|
|
863
|
+
x?: number | string;
|
|
864
|
+
y?: number | string;
|
|
865
|
+
}
|
|
866
|
+
declare const AdsTableSurface: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
867
|
+
declare const AdsTableRoot: React$1.ForwardRefExoticComponent<Omit<React$1.TableHTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>, "ref"> & React$1.RefAttributes<HTMLTableElement>>;
|
|
868
|
+
declare const AdsTableScrollArea: React$1.ForwardRefExoticComponent<AdsTableScrollAreaProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
869
|
+
declare const AdsTable: React$1.ForwardRefExoticComponent<Omit<React$1.TableHTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>, "ref"> & React$1.RefAttributes<HTMLTableElement>>;
|
|
870
|
+
declare const AdsTableColGroup: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLTableColElement> & React$1.RefAttributes<HTMLTableColElement>, "ref"> & React$1.RefAttributes<HTMLTableColElement>>;
|
|
871
|
+
declare const AdsTableCol: React$1.ForwardRefExoticComponent<Omit<React$1.ColHTMLAttributes<HTMLTableColElement> & React$1.RefAttributes<HTMLTableColElement>, "ref"> & React$1.RefAttributes<HTMLTableColElement>>;
|
|
743
872
|
declare const AdsTableHeader: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>, "ref"> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
744
873
|
declare const AdsTableBody: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>, "ref"> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
745
874
|
declare const AdsTableFooter: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>, "ref"> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -747,6 +876,27 @@ declare const AdsTableRow: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAt
|
|
|
747
876
|
declare const AdsTableHead: React$1.ForwardRefExoticComponent<Omit<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
748
877
|
declare const AdsTableCell: React$1.ForwardRefExoticComponent<Omit<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
749
878
|
declare const AdsTableCaption: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>, "ref"> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
879
|
+
interface AdsTableSortHeaderProps extends Omit<React$1.ComponentPropsWithoutRef<typeof AdsTableHead>, "children" | "title"> {
|
|
880
|
+
disabled?: boolean;
|
|
881
|
+
onToggleSort?: (nextOrder: "ascend" | "descend" | null) => void;
|
|
882
|
+
sortOrder: "ascend" | "descend" | null;
|
|
883
|
+
title: React$1.ReactNode;
|
|
884
|
+
}
|
|
885
|
+
declare const AdsTableSortHeader: React$1.ForwardRefExoticComponent<AdsTableSortHeaderProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
886
|
+
interface AdsTableSelectionCellProps extends Omit<React$1.ComponentPropsWithoutRef<typeof AdsTableCell>, "children" | "onChange"> {
|
|
887
|
+
checked?: boolean;
|
|
888
|
+
disabled?: boolean;
|
|
889
|
+
onChange?: (nextValue: boolean | string) => void;
|
|
890
|
+
type?: "checkbox" | "radio";
|
|
891
|
+
value?: string;
|
|
892
|
+
}
|
|
893
|
+
declare const AdsTableSelectionCell: React$1.ForwardRefExoticComponent<AdsTableSelectionCellProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
894
|
+
interface AdsTableExpandCellProps extends Omit<React$1.ComponentPropsWithoutRef<typeof AdsTableCell>, "children"> {
|
|
895
|
+
disabled?: boolean;
|
|
896
|
+
expanded?: boolean;
|
|
897
|
+
onToggle?: (expanded: boolean) => void;
|
|
898
|
+
}
|
|
899
|
+
declare const AdsTableExpandCell: React$1.ForwardRefExoticComponent<AdsTableExpandCellProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
750
900
|
|
|
751
901
|
type AdsLocale = "en" | "zh";
|
|
752
902
|
type AdsMessages = {
|
|
@@ -761,17 +911,35 @@ type AdsMessages = {
|
|
|
761
911
|
close: string;
|
|
762
912
|
};
|
|
763
913
|
input: {
|
|
914
|
+
clear: string;
|
|
764
915
|
chooseFile: string;
|
|
765
916
|
noFileChosen: string;
|
|
766
917
|
optional: string;
|
|
767
918
|
};
|
|
919
|
+
select: {
|
|
920
|
+
clear: string;
|
|
921
|
+
};
|
|
768
922
|
toast: {
|
|
769
923
|
notifications: string;
|
|
770
924
|
};
|
|
925
|
+
table: {
|
|
926
|
+
clearSort: string;
|
|
927
|
+
collapseRow: string;
|
|
928
|
+
expandRow: string;
|
|
929
|
+
noDataAvailable: string;
|
|
930
|
+
selectRow: string;
|
|
931
|
+
sortAscending: string;
|
|
932
|
+
sortDescending: string;
|
|
933
|
+
};
|
|
771
934
|
pagination: {
|
|
772
935
|
previous: string;
|
|
773
936
|
next: string;
|
|
774
937
|
morePages: string;
|
|
938
|
+
navigation: string;
|
|
939
|
+
itemsPerPage: string;
|
|
940
|
+
itemsPerPageOption: string;
|
|
941
|
+
jumpTo: string;
|
|
942
|
+
total: string;
|
|
775
943
|
};
|
|
776
944
|
};
|
|
777
945
|
type AdsMessagesOverride = {
|
|
@@ -779,7 +947,9 @@ type AdsMessagesOverride = {
|
|
|
779
947
|
button?: Partial<AdsMessages["button"]>;
|
|
780
948
|
dialog?: Partial<AdsMessages["dialog"]>;
|
|
781
949
|
input?: Partial<AdsMessages["input"]>;
|
|
950
|
+
select?: Partial<AdsMessages["select"]>;
|
|
782
951
|
toast?: Partial<AdsMessages["toast"]>;
|
|
952
|
+
table?: Partial<AdsMessages["table"]>;
|
|
783
953
|
pagination?: Partial<AdsMessages["pagination"]>;
|
|
784
954
|
};
|
|
785
955
|
|
|
@@ -796,4 +966,4 @@ declare function useAdsI18n(): AdsI18nContextValue;
|
|
|
796
966
|
|
|
797
967
|
declare const adsDefaultMessages: Record<"en" | "zh", AdsMessages>;
|
|
798
968
|
|
|
799
|
-
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, AdsDatePicker, type AdsDatePickerProps, AdsDateTimePicker, type AdsDateTimePickerProps, 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 };
|
|
969
|
+
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 AdsDataPaginationProps, AdsDataTable, type AdsDataTableColumn, type AdsDataTableExpandable, type AdsDataTablePaginationConfig, type AdsDataTableProps, type AdsDataTableRowSelection, type AdsDataTableSortOrder, type AdsDataTableSortState, AdsDatePicker, type AdsDatePickerProps, AdsDateTimePicker, type AdsDateTimePickerProps, 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, 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, adsDefaultMessages, useAdsI18n };
|