@adsgency_npm/adsgency-ads-ui 0.1.0-alpha.2 → 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/README.md +3 -3
- package/dist/index.d.ts +206 -5
- package/dist/index.js +3083 -1595
- package/dist/index.js.map +1 -1
- package/package.json +30 -26
- package/dist/index.cjs +0 -4325
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -768
- package/dist/styles/tokens.css +0 -121
- package/dist/tokens/designTokens.cjs +0 -94
- package/dist/tokens/designTokens.cjs.map +0 -1
- package/dist/tokens/designTokens.d.cts +0 -66
- package/dist/tokens/tailwindPreset.cjs +0 -140
- package/dist/tokens/tailwindPreset.cjs.map +0 -1
- package/dist/tokens/tailwindPreset.d.cts +0 -114
package/README.md
CHANGED
|
@@ -44,14 +44,14 @@ import "@adsgency_npm/adsgency-ads-ui/styles.css";
|
|
|
44
44
|
Tailwind:
|
|
45
45
|
|
|
46
46
|
```js
|
|
47
|
-
|
|
47
|
+
import adsUiPreset from "@adsgency_npm/adsgency-ads-ui/tailwind-preset";
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
export default {
|
|
50
50
|
presets: [adsUiPreset],
|
|
51
51
|
content: [
|
|
52
52
|
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
|
53
53
|
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
54
|
-
"./node_modules/@adsgency_npm/adsgency-ads-ui/dist/**/*.
|
|
54
|
+
"./node_modules/@adsgency_npm/adsgency-ads-ui/dist/**/*.js",
|
|
55
55
|
],
|
|
56
56
|
};
|
|
57
57
|
```
|
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,11 @@ 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;
|
|
303
336
|
fileTriggerLabel?: string;
|
|
337
|
+
onClear?: () => void;
|
|
304
338
|
prefix?: React$1.ReactNode;
|
|
305
339
|
size?: AdsSize;
|
|
306
340
|
suffix?: React$1.ReactNode;
|
|
@@ -330,8 +364,16 @@ interface AdsInputGroupProps extends AdsInputGroupChromeProps {
|
|
|
330
364
|
trailingAddonClassName?: string;
|
|
331
365
|
}
|
|
332
366
|
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
|
-
|
|
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>>;
|
|
335
377
|
type AdsInputGroupTextareaProps = Omit<TextareaProps$1, "aria-invalid" | "aria-describedby">;
|
|
336
378
|
declare const AdsInputGroupTextarea: React$1.ForwardRefExoticComponent<AdsInputGroupTextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
337
379
|
|
|
@@ -413,6 +455,105 @@ declare const AdsInputOTPSlot: React$1.ForwardRefExoticComponent<Omit<Omit<React
|
|
|
413
455
|
index: number;
|
|
414
456
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
415
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
|
+
|
|
416
557
|
declare const Pagination: {
|
|
417
558
|
({ className, ...props }: React$1.ComponentProps<"nav">): React$1.JSX.Element;
|
|
418
559
|
displayName: string;
|
|
@@ -523,16 +664,22 @@ declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrim
|
|
|
523
664
|
|
|
524
665
|
type SelectRootProps = React$1.ComponentPropsWithoutRef<typeof Select>;
|
|
525
666
|
interface AdsSelectProps extends SelectRootProps {
|
|
667
|
+
clearable?: boolean;
|
|
668
|
+
clearButtonLabel?: string;
|
|
526
669
|
contentClassName?: string;
|
|
527
670
|
descriptionPlacement?: AdsFieldDescriptionPlacement;
|
|
528
671
|
errorText?: React$1.ReactNode;
|
|
529
672
|
helperText?: React$1.ReactNode;
|
|
530
673
|
id?: string;
|
|
531
674
|
label?: React$1.ReactNode;
|
|
675
|
+
onClear?: () => void;
|
|
676
|
+
onValueChange?: (value: string | undefined) => void;
|
|
532
677
|
placeholder?: React$1.ReactNode;
|
|
533
678
|
triggerClassName?: string;
|
|
679
|
+
value?: string;
|
|
680
|
+
defaultValue?: string;
|
|
534
681
|
}
|
|
535
|
-
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;
|
|
536
683
|
|
|
537
684
|
declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
538
685
|
|
|
@@ -708,7 +855,20 @@ declare function AdsEmptyContent({ className, ...props }: React$1.HTMLAttributes
|
|
|
708
855
|
declare function AdsEmptyActions({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
709
856
|
declare function AdsEmptyFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
710
857
|
|
|
711
|
-
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>>;
|
|
712
872
|
declare const AdsTableHeader: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>, "ref"> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
713
873
|
declare const AdsTableBody: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>, "ref"> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
714
874
|
declare const AdsTableFooter: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>, "ref"> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -716,6 +876,27 @@ declare const AdsTableRow: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAt
|
|
|
716
876
|
declare const AdsTableHead: React$1.ForwardRefExoticComponent<Omit<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
717
877
|
declare const AdsTableCell: React$1.ForwardRefExoticComponent<Omit<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
718
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>>;
|
|
719
900
|
|
|
720
901
|
type AdsLocale = "en" | "zh";
|
|
721
902
|
type AdsMessages = {
|
|
@@ -730,17 +911,35 @@ type AdsMessages = {
|
|
|
730
911
|
close: string;
|
|
731
912
|
};
|
|
732
913
|
input: {
|
|
914
|
+
clear: string;
|
|
733
915
|
chooseFile: string;
|
|
734
916
|
noFileChosen: string;
|
|
735
917
|
optional: string;
|
|
736
918
|
};
|
|
919
|
+
select: {
|
|
920
|
+
clear: string;
|
|
921
|
+
};
|
|
737
922
|
toast: {
|
|
738
923
|
notifications: string;
|
|
739
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
|
+
};
|
|
740
934
|
pagination: {
|
|
741
935
|
previous: string;
|
|
742
936
|
next: string;
|
|
743
937
|
morePages: string;
|
|
938
|
+
navigation: string;
|
|
939
|
+
itemsPerPage: string;
|
|
940
|
+
itemsPerPageOption: string;
|
|
941
|
+
jumpTo: string;
|
|
942
|
+
total: string;
|
|
744
943
|
};
|
|
745
944
|
};
|
|
746
945
|
type AdsMessagesOverride = {
|
|
@@ -748,7 +947,9 @@ type AdsMessagesOverride = {
|
|
|
748
947
|
button?: Partial<AdsMessages["button"]>;
|
|
749
948
|
dialog?: Partial<AdsMessages["dialog"]>;
|
|
750
949
|
input?: Partial<AdsMessages["input"]>;
|
|
950
|
+
select?: Partial<AdsMessages["select"]>;
|
|
751
951
|
toast?: Partial<AdsMessages["toast"]>;
|
|
952
|
+
table?: Partial<AdsMessages["table"]>;
|
|
752
953
|
pagination?: Partial<AdsMessages["pagination"]>;
|
|
753
954
|
};
|
|
754
955
|
|
|
@@ -765,4 +966,4 @@ declare function useAdsI18n(): AdsI18nContextValue;
|
|
|
765
966
|
|
|
766
967
|
declare const adsDefaultMessages: Record<"en" | "zh", AdsMessages>;
|
|
767
968
|
|
|
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 };
|
|
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 };
|