@orderly.network/ui 2.0.1-alpha.5 → 2.0.1-alpha.7
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.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +109 -389
- package/dist/index.d.ts +109 -389
- package/dist/index.js +212 -225
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -20
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -10,9 +10,9 @@ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
|
10
10
|
import { TooltipContentProps } from '@radix-ui/react-tooltip';
|
|
11
11
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
12
12
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
13
|
+
import { Row, CoreOptions, ColumnFilter, RowSelectionState } from '@tanstack/react-table';
|
|
13
14
|
import { DateRange, DayPickerRangeProps, DayPicker } from 'react-day-picker';
|
|
14
15
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
15
|
-
import { Row, CoreOptions, ColumnFilter, RowSelectionState } from '@tanstack/react-table';
|
|
16
16
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
17
17
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
18
18
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
@@ -3424,7 +3424,7 @@ declare const Input: InputType;
|
|
|
3424
3424
|
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
3425
3425
|
size?: number | undefined;
|
|
3426
3426
|
indicatorClassName?: string | undefined;
|
|
3427
|
-
color?: "
|
|
3427
|
+
color?: "primary" | "white" | undefined;
|
|
3428
3428
|
variant?: "radio" | "checkBox" | undefined;
|
|
3429
3429
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3430
3430
|
|
|
@@ -3703,116 +3703,23 @@ declare const Tooltip: React$1.ForwardRefExoticComponent<TooltipPrimitive.Toolti
|
|
|
3703
3703
|
} | undefined;
|
|
3704
3704
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
3705
3705
|
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
};
|
|
3711
|
-
false: {
|
|
3712
|
-
tr: string;
|
|
3713
|
-
};
|
|
3714
|
-
};
|
|
3715
|
-
}, {
|
|
3716
|
-
table: string;
|
|
3717
|
-
thead: string;
|
|
3718
|
-
tbody: string;
|
|
3719
|
-
tfoot: string;
|
|
3720
|
-
tr: string;
|
|
3721
|
-
th: string;
|
|
3722
|
-
td: string;
|
|
3723
|
-
caption: string;
|
|
3724
|
-
}, undefined, {
|
|
3725
|
-
responsiveVariants?: boolean | tailwind_variants_dist_generated.TVGeneratedScreens[] | {
|
|
3726
|
-
bordered?: boolean | tailwind_variants_dist_generated.TVGeneratedScreens[] | undefined;
|
|
3727
|
-
} | undefined;
|
|
3728
|
-
} & tailwind_variants_dist_config.TWMConfig & {
|
|
3729
|
-
twMergeConfig: {
|
|
3730
|
-
prefix: string;
|
|
3731
|
-
};
|
|
3732
|
-
}, {
|
|
3733
|
-
bordered: {
|
|
3734
|
-
true: {
|
|
3735
|
-
tr: string;
|
|
3736
|
-
};
|
|
3737
|
-
false: {
|
|
3738
|
-
tr: string;
|
|
3739
|
-
};
|
|
3740
|
-
};
|
|
3741
|
-
}, {
|
|
3742
|
-
table: string;
|
|
3743
|
-
thead: string;
|
|
3744
|
-
tbody: string;
|
|
3745
|
-
tfoot: string;
|
|
3746
|
-
tr: string;
|
|
3747
|
-
th: string;
|
|
3748
|
-
td: string;
|
|
3749
|
-
caption: string;
|
|
3750
|
-
}, tailwind_variants.TVReturnType<{
|
|
3751
|
-
bordered: {
|
|
3752
|
-
true: {
|
|
3753
|
-
tr: string;
|
|
3754
|
-
};
|
|
3755
|
-
false: {
|
|
3756
|
-
tr: string;
|
|
3757
|
-
};
|
|
3758
|
-
};
|
|
3759
|
-
}, {
|
|
3760
|
-
table: string;
|
|
3761
|
-
thead: string;
|
|
3762
|
-
tbody: string;
|
|
3763
|
-
tfoot: string;
|
|
3764
|
-
tr: string;
|
|
3765
|
-
th: string;
|
|
3766
|
-
td: string;
|
|
3767
|
-
caption: string;
|
|
3768
|
-
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
3769
|
-
bordered: {
|
|
3770
|
-
true: {
|
|
3771
|
-
tr: string;
|
|
3772
|
-
};
|
|
3773
|
-
false: {
|
|
3774
|
-
tr: string;
|
|
3775
|
-
};
|
|
3776
|
-
};
|
|
3777
|
-
}, {
|
|
3778
|
-
bordered: {
|
|
3779
|
-
true: {
|
|
3780
|
-
tr: string;
|
|
3781
|
-
};
|
|
3782
|
-
false: {
|
|
3783
|
-
tr: string;
|
|
3784
|
-
};
|
|
3785
|
-
};
|
|
3786
|
-
}>, unknown, unknown, undefined>>;
|
|
3787
|
-
interface TableRootProps extends VariantProps<typeof tableVariants>, ComponentPropsWithout<"table", "asChild" | "defaultChecked" | "defaultValue" | "color" | "border"> {
|
|
3788
|
-
}
|
|
3789
|
-
declare const Table: React__default.ForwardRefExoticComponent<TableRootProps & React__default.RefAttributes<HTMLTableElement>>;
|
|
3790
|
-
declare const TableHeader: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableSectionElement> & React__default.RefAttributes<HTMLTableSectionElement>>;
|
|
3791
|
-
declare const TableBody: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableSectionElement> & React__default.RefAttributes<HTMLTableSectionElement>>;
|
|
3792
|
-
declare const TableFooter: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableSectionElement> & React__default.RefAttributes<HTMLTableSectionElement>>;
|
|
3793
|
-
declare const TableRow: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableRowElement> & {
|
|
3794
|
-
bordered?: boolean | undefined;
|
|
3795
|
-
} & React__default.RefAttributes<HTMLTableRowElement>>;
|
|
3796
|
-
declare const TableHead: React__default.ForwardRefExoticComponent<React__default.ThHTMLAttributes<HTMLTableCellElement> & React__default.RefAttributes<HTMLTableCellElement>>;
|
|
3797
|
-
declare const TableCell: React__default.ForwardRefExoticComponent<React__default.TdHTMLAttributes<HTMLTableCellElement> & React__default.RefAttributes<HTMLTableCellElement>>;
|
|
3798
|
-
declare const TableCaption: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableCaptionElement> & React__default.RefAttributes<HTMLTableCaptionElement>>;
|
|
3799
|
-
|
|
3800
|
-
type ColumnFixed$1 = "left" | "right";
|
|
3801
|
-
type SortOrder$1 = "asc" | "desc";
|
|
3802
|
-
type TableCellFormatter$1<T> = string | ((value: any, record: T, index: number) => any);
|
|
3803
|
-
type TableCellRenderer$1<T> = string | ((value: any, record: T, index: number) => React.ReactNode);
|
|
3706
|
+
type ColumnFixed = "left" | "right";
|
|
3707
|
+
type SortOrder = "asc" | "desc";
|
|
3708
|
+
type TableCellFormatter<T> = string | ((value: any, record: T, index: number) => any);
|
|
3709
|
+
type TableCellRenderer<T> = string | ((value: any, record: T, index: number) => React.ReactNode);
|
|
3804
3710
|
type Column<RecordType extends unknown = any> = {
|
|
3805
|
-
|
|
3711
|
+
type?: "data" | "action" | "group";
|
|
3712
|
+
title?: ReactNode;
|
|
3806
3713
|
hint?: ReactNode;
|
|
3807
3714
|
hintClassName?: string;
|
|
3808
3715
|
width?: number;
|
|
3809
|
-
fixed?: ColumnFixed
|
|
3716
|
+
fixed?: ColumnFixed;
|
|
3810
3717
|
dataIndex: string;
|
|
3811
3718
|
className?: string | ((record: RecordType, index: number) => string);
|
|
3812
3719
|
align?: "left" | "center" | "right";
|
|
3813
|
-
onSort?: boolean | ((r1: RecordType, r2: RecordType, sortOrder
|
|
3814
|
-
formatter?: TableCellFormatter
|
|
3815
|
-
render?: TableCellRenderer
|
|
3720
|
+
onSort?: boolean | ((r1: RecordType, r2: RecordType, sortOrder?: SortOrder) => number);
|
|
3721
|
+
formatter?: TableCellFormatter<RecordType>;
|
|
3722
|
+
render?: TableCellRenderer<RecordType>;
|
|
3816
3723
|
getKey?: (record: RecordType, index: number) => string;
|
|
3817
3724
|
/**
|
|
3818
3725
|
* text rule for formatted text, if provided, the text will be rendered as formatted text component;
|
|
@@ -3824,17 +3731,28 @@ type Column<RecordType extends unknown = any> = {
|
|
|
3824
3731
|
*/
|
|
3825
3732
|
textProps?: Omit<FormattedTextProps, "children" | "as" | "rule"> | ((value: any, record: RecordType, index: number) => Omit<FormattedTextProps, "children" | "as" | "rule">);
|
|
3826
3733
|
};
|
|
3734
|
+
type PaginationMeta = {
|
|
3735
|
+
count?: number;
|
|
3736
|
+
page: number;
|
|
3737
|
+
pageSize: number;
|
|
3738
|
+
pageTotal?: number;
|
|
3739
|
+
onPageChange?: (page: number) => void;
|
|
3740
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
3741
|
+
};
|
|
3742
|
+
type TableSort = {
|
|
3743
|
+
sortKey: string;
|
|
3744
|
+
sort: SortOrder;
|
|
3745
|
+
};
|
|
3746
|
+
type DataTableClassNames = {
|
|
3747
|
+
root?: string;
|
|
3748
|
+
header?: string;
|
|
3749
|
+
body?: string;
|
|
3750
|
+
footer?: string;
|
|
3751
|
+
pagination?: string;
|
|
3752
|
+
scroll?: string;
|
|
3753
|
+
};
|
|
3827
3754
|
|
|
3828
|
-
|
|
3829
|
-
bordered?: boolean;
|
|
3830
|
-
justified?: boolean;
|
|
3831
|
-
renderRowContainer?: (record: RecordType, index: number, children: ReactNode) => ReactNode;
|
|
3832
|
-
generatedRowKey?: (record: RecordType, index: number) => string;
|
|
3833
|
-
onRow?: (record: RecordType, index: number) => any;
|
|
3834
|
-
expandRowRender?: (record: RecordType, index: number) => ReactNode;
|
|
3835
|
-
}
|
|
3836
|
-
|
|
3837
|
-
interface DataTableProps<RecordType> extends TBodyProps<RecordType>, VariantProps<typeof dataTableVariants> {
|
|
3755
|
+
type DataTableProps<RecordType> = {
|
|
3838
3756
|
columns: Column<RecordType>[];
|
|
3839
3757
|
dataSource?: RecordType[] | null;
|
|
3840
3758
|
/**
|
|
@@ -3842,102 +3760,30 @@ interface DataTableProps<RecordType> extends TBodyProps<RecordType>, VariantProp
|
|
|
3842
3760
|
* @default false
|
|
3843
3761
|
*/
|
|
3844
3762
|
loading?: boolean;
|
|
3845
|
-
isValidating?: boolean;
|
|
3846
3763
|
ignoreLoadingCheck?: boolean;
|
|
3847
3764
|
className?: string;
|
|
3848
|
-
classNames?:
|
|
3849
|
-
root?: string;
|
|
3850
|
-
header?: string;
|
|
3851
|
-
body?: string;
|
|
3852
|
-
footer?: string;
|
|
3853
|
-
};
|
|
3854
|
-
showMaskElement?: boolean;
|
|
3765
|
+
classNames?: DataTableClassNames;
|
|
3855
3766
|
emptyView?: ReactNode;
|
|
3856
3767
|
bordered?: boolean;
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
sortKey: string;
|
|
3860
|
-
sort: SortOrder$1;
|
|
3861
|
-
}) => void;
|
|
3862
|
-
initialSort?: {
|
|
3863
|
-
sortKey: string;
|
|
3864
|
-
sort: SortOrder$1;
|
|
3865
|
-
};
|
|
3768
|
+
onSort?: (sort?: TableSort) => void;
|
|
3769
|
+
initialSort?: TableSort;
|
|
3866
3770
|
id?: string;
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
declare const dataTableVariants: tailwind_variants.TVReturnType<{
|
|
3881
|
-
loading: {
|
|
3882
|
-
true: {
|
|
3883
|
-
root: string;
|
|
3884
|
-
};
|
|
3885
|
-
false: {
|
|
3886
|
-
root: string;
|
|
3887
|
-
};
|
|
3888
|
-
};
|
|
3889
|
-
}, {
|
|
3890
|
-
root: string;
|
|
3891
|
-
}, undefined, {
|
|
3892
|
-
responsiveVariants?: boolean | tailwind_variants_dist_generated.TVGeneratedScreens[] | {
|
|
3893
|
-
loading?: boolean | tailwind_variants_dist_generated.TVGeneratedScreens[] | undefined;
|
|
3894
|
-
} | undefined;
|
|
3895
|
-
} & tailwind_variants_dist_config.TWMConfig & {
|
|
3896
|
-
twMergeConfig: {
|
|
3897
|
-
prefix: string;
|
|
3898
|
-
};
|
|
3899
|
-
}, {
|
|
3900
|
-
loading: {
|
|
3901
|
-
true: {
|
|
3902
|
-
root: string;
|
|
3903
|
-
};
|
|
3904
|
-
false: {
|
|
3905
|
-
root: string;
|
|
3906
|
-
};
|
|
3907
|
-
};
|
|
3908
|
-
}, {
|
|
3909
|
-
root: string;
|
|
3910
|
-
}, tailwind_variants.TVReturnType<{
|
|
3911
|
-
loading: {
|
|
3912
|
-
true: {
|
|
3913
|
-
root: string;
|
|
3914
|
-
};
|
|
3915
|
-
false: {
|
|
3916
|
-
root: string;
|
|
3917
|
-
};
|
|
3918
|
-
};
|
|
3919
|
-
}, {
|
|
3920
|
-
root: string;
|
|
3921
|
-
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
3922
|
-
loading: {
|
|
3923
|
-
true: {
|
|
3924
|
-
root: string;
|
|
3925
|
-
};
|
|
3926
|
-
false: {
|
|
3927
|
-
root: string;
|
|
3928
|
-
};
|
|
3929
|
-
};
|
|
3930
|
-
}, {
|
|
3931
|
-
loading: {
|
|
3932
|
-
true: {
|
|
3933
|
-
root: string;
|
|
3934
|
-
};
|
|
3935
|
-
false: {
|
|
3936
|
-
root: string;
|
|
3937
|
-
};
|
|
3771
|
+
getRowCanExpand?: (row: Row<any>) => boolean;
|
|
3772
|
+
expandRowRender?: (row: Row<any>, index: number) => ReactNode;
|
|
3773
|
+
manualSorting?: boolean;
|
|
3774
|
+
manualPagination?: boolean;
|
|
3775
|
+
manualFiltering?: boolean;
|
|
3776
|
+
pagination?: PaginationMeta;
|
|
3777
|
+
renderRowContainer?: (record: RecordType, index: number, children: ReactNode) => ReactNode;
|
|
3778
|
+
generatedRowKey?: CoreOptions<any>["getRowId"];
|
|
3779
|
+
onRow?: (record: RecordType, index: number) => any;
|
|
3780
|
+
columnFilters?: ColumnFilter | ColumnFilter[];
|
|
3781
|
+
rowSelection?: RowSelectionState;
|
|
3782
|
+
testIds?: {
|
|
3783
|
+
body?: string;
|
|
3938
3784
|
};
|
|
3939
|
-
}
|
|
3940
|
-
declare
|
|
3785
|
+
};
|
|
3786
|
+
declare function DataTable<RecordType extends any>(props: PropsWithChildren<DataTableProps<RecordType>>): react_jsx_runtime.JSX.Element;
|
|
3941
3787
|
|
|
3942
3788
|
type DateRangePickerProps = {
|
|
3943
3789
|
onChange?: (date: DateRange) => void;
|
|
@@ -4165,6 +4011,7 @@ type SelectProps<T> = SelectPrimitive.SelectProps & {
|
|
|
4165
4011
|
contentProps?: React__default.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>;
|
|
4166
4012
|
showCaret?: boolean;
|
|
4167
4013
|
maxHeight?: number;
|
|
4014
|
+
testid?: string;
|
|
4168
4015
|
} & SelectVariantProps;
|
|
4169
4016
|
declare const Select$1: <T>(props: React__default.PropsWithChildren<SelectProps<T>>) => react_jsx_runtime.JSX.Element;
|
|
4170
4017
|
|
|
@@ -4176,6 +4023,7 @@ type SelectWithOptionsProps<T = string> = SelectProps<T> & {
|
|
|
4176
4023
|
currentValue?: string;
|
|
4177
4024
|
options: SelectOption[];
|
|
4178
4025
|
optionRenderer?: (option: SelectOption) => ReactElement;
|
|
4026
|
+
testid?: string;
|
|
4179
4027
|
};
|
|
4180
4028
|
declare const SelectWithOptions: FC<SelectWithOptionsProps>;
|
|
4181
4029
|
|
|
@@ -4195,27 +4043,27 @@ type DatePickerProps = {
|
|
|
4195
4043
|
} & CalendarProps;
|
|
4196
4044
|
declare const DatePicker$1: FC<DatePickerProps>;
|
|
4197
4045
|
|
|
4198
|
-
type FilterType
|
|
4199
|
-
type DataFilterGeneral
|
|
4046
|
+
type FilterType = "select" | "input" | "date" | "range" | "custom" | "symbol";
|
|
4047
|
+
type DataFilterGeneral = {
|
|
4200
4048
|
name: string;
|
|
4201
|
-
type: FilterType
|
|
4049
|
+
type: FilterType;
|
|
4202
4050
|
};
|
|
4203
|
-
type SelectFilter
|
|
4051
|
+
type SelectFilter = {
|
|
4204
4052
|
type: "select";
|
|
4205
4053
|
isCombine?: boolean;
|
|
4206
4054
|
} & SelectWithOptionsProps;
|
|
4207
|
-
type DateFilter
|
|
4055
|
+
type DateFilter = {
|
|
4208
4056
|
type: "date";
|
|
4209
4057
|
} & DatePickerProps;
|
|
4210
|
-
type DateRangeFilter
|
|
4058
|
+
type DateRangeFilter = {
|
|
4211
4059
|
type: "range";
|
|
4212
4060
|
} & DateRangePickerProps;
|
|
4213
|
-
type SymbolFilter
|
|
4061
|
+
type SymbolFilter = {
|
|
4214
4062
|
type: "symbol";
|
|
4215
4063
|
};
|
|
4216
|
-
type DataFilterItems
|
|
4217
|
-
type DataFilterProps
|
|
4218
|
-
items: DataFilterItems
|
|
4064
|
+
type DataFilterItems = (DataFilterGeneral & (SelectFilter | DateFilter | DateRangeFilter | SymbolFilter))[];
|
|
4065
|
+
type DataFilterProps = {
|
|
4066
|
+
items: DataFilterItems;
|
|
4219
4067
|
onFilter: (filter: {
|
|
4220
4068
|
name: string;
|
|
4221
4069
|
value: any;
|
|
@@ -4223,65 +4071,12 @@ type DataFilterProps$1 = {
|
|
|
4223
4071
|
className?: string;
|
|
4224
4072
|
trailing?: React.ReactNode;
|
|
4225
4073
|
};
|
|
4226
|
-
|
|
4227
|
-
type PaginationOptions = {
|
|
4228
|
-
page: number;
|
|
4229
|
-
pageSize: number;
|
|
4230
|
-
count: number;
|
|
4231
|
-
};
|
|
4232
|
-
|
|
4233
|
-
type DataGridProps<RecordType = any> = {
|
|
4234
|
-
filter?: DataFilterProps$1;
|
|
4235
|
-
pagination?: PaginationOptions;
|
|
4236
|
-
footer?: ReactElement;
|
|
4237
|
-
/**
|
|
4238
|
-
* The header of the table, if provided it will be rendered above the table.
|
|
4239
|
-
* If both filter configuration and header component are provided at the same time,
|
|
4240
|
-
* the header component will override the filter component.
|
|
4241
|
-
*/
|
|
4242
|
-
header?: ReactElement;
|
|
4243
|
-
} & DataTableProps<RecordType>;
|
|
4244
|
-
declare const DataGrid: <T>(props: DataGridProps<T>) => react_jsx_runtime.JSX.Element;
|
|
4245
|
-
|
|
4246
|
-
declare const DataGridFilterBar: () => react_jsx_runtime.JSX.Element | null;
|
|
4247
|
-
|
|
4248
|
-
declare const EmptyDataState: (props: {
|
|
4249
|
-
title?: string;
|
|
4250
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
4251
|
-
|
|
4252
|
-
declare const Filter: {
|
|
4253
|
-
(props: DataFilterProps$1): react_jsx_runtime.JSX.Element;
|
|
4254
|
-
displayName: string;
|
|
4255
|
-
};
|
|
4256
|
-
|
|
4257
|
-
type PaginationProps = {
|
|
4258
|
-
onPageChange?: (page: number) => void;
|
|
4259
|
-
onPageSizeChange?: (pageSize: number) => void;
|
|
4260
|
-
pageSize?: number;
|
|
4261
|
-
page: number;
|
|
4262
|
-
count: number;
|
|
4263
|
-
pageTotal: number;
|
|
4264
|
-
className?: string;
|
|
4265
|
-
classNames?: {
|
|
4266
|
-
pagination?: string;
|
|
4267
|
-
paginationContent?: string;
|
|
4268
|
-
paginationItem?: string;
|
|
4269
|
-
paginationLink?: string;
|
|
4270
|
-
paginationPrevious?: string;
|
|
4271
|
-
paginationNext?: string;
|
|
4272
|
-
paginationEllipsis?: string;
|
|
4273
|
-
};
|
|
4274
|
-
};
|
|
4275
|
-
declare const PaginationItems: (props: Omit<PaginationProps, "onPageSizeChange">) => react_jsx_runtime.JSX.Element | null;
|
|
4276
|
-
|
|
4277
|
-
declare const Pagination: {
|
|
4278
|
-
(props: Omit<PaginationProps, "classNames">): react_jsx_runtime.JSX.Element | null;
|
|
4279
|
-
displayName: string;
|
|
4280
|
-
};
|
|
4074
|
+
declare const DataFilter: (props: DataFilterProps) => react_jsx_runtime.JSX.Element;
|
|
4281
4075
|
|
|
4282
4076
|
declare const usePagination: (initial?: {
|
|
4283
4077
|
page?: number;
|
|
4284
4078
|
pageSize?: number;
|
|
4079
|
+
resetPageWhenPageSizeChange?: boolean;
|
|
4285
4080
|
}) => {
|
|
4286
4081
|
page: number;
|
|
4287
4082
|
pageSize: number;
|
|
@@ -4297,116 +4092,23 @@ declare const usePagination: (initial?: {
|
|
|
4297
4092
|
pageSize: number;
|
|
4298
4093
|
pageTotal: number;
|
|
4299
4094
|
};
|
|
4095
|
+
pagination: {
|
|
4096
|
+
page: number;
|
|
4097
|
+
pageSize: number;
|
|
4098
|
+
onPageChange: React$1.Dispatch<React$1.SetStateAction<number>>;
|
|
4099
|
+
onPageSizeChange: (size: number) => void;
|
|
4100
|
+
};
|
|
4101
|
+
parsePagination: (meta?: {
|
|
4102
|
+
total: number;
|
|
4103
|
+
current_page: number;
|
|
4104
|
+
records_per_page: number;
|
|
4105
|
+
}) => PaginationMeta;
|
|
4300
4106
|
};
|
|
4301
4107
|
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
type TableCellFormatter<T> = string | ((value: any, record: T, index: number) => any);
|
|
4305
|
-
type TableCellRenderer<T> = string | ((value: any, record: T, index: number) => React.ReactNode);
|
|
4306
|
-
type TableColumn<RecordType extends unknown = any> = {
|
|
4307
|
-
type?: "data" | "action" | "group";
|
|
4308
|
-
title?: ReactNode;
|
|
4309
|
-
hint?: ReactNode;
|
|
4310
|
-
hintClassName?: string;
|
|
4311
|
-
width?: number;
|
|
4312
|
-
fixed?: ColumnFixed;
|
|
4313
|
-
dataIndex: string;
|
|
4314
|
-
className?: string | ((record: RecordType, index: number) => string);
|
|
4315
|
-
align?: "left" | "center" | "right";
|
|
4316
|
-
onSort?: boolean | ((r1: RecordType, r2: RecordType, sortOrder?: SortOrder) => number);
|
|
4317
|
-
formatter?: TableCellFormatter<RecordType>;
|
|
4318
|
-
render?: TableCellRenderer<RecordType>;
|
|
4319
|
-
getKey?: (record: RecordType, index: number) => string;
|
|
4320
|
-
/**
|
|
4321
|
-
* text rule for formatted text, if provided, the text will be rendered as formatted text component;
|
|
4322
|
-
*/
|
|
4323
|
-
rule?: TextRule | NumeralRule;
|
|
4324
|
-
numeralProps?: Omit<NumeralProps, "children" | "as" | "rule"> | ((value: any, record: RecordType, index: number) => Omit<NumeralProps, "children" | "as" | "rule">);
|
|
4325
|
-
/**
|
|
4326
|
-
* text props for formatted text
|
|
4327
|
-
*/
|
|
4328
|
-
textProps?: Omit<FormattedTextProps, "children" | "as" | "rule"> | ((value: any, record: RecordType, index: number) => Omit<FormattedTextProps, "children" | "as" | "rule">);
|
|
4329
|
-
};
|
|
4330
|
-
type PaginationMeta = {
|
|
4331
|
-
count?: number;
|
|
4332
|
-
page: number;
|
|
4333
|
-
pageSize: number;
|
|
4334
|
-
pageTotal?: number;
|
|
4335
|
-
onPageChange?: (page: number) => void;
|
|
4336
|
-
onPageSizeChange?: (pageSize: number) => void;
|
|
4337
|
-
};
|
|
4338
|
-
type TableSort = {
|
|
4339
|
-
sortKey: string;
|
|
4340
|
-
sort: SortOrder;
|
|
4341
|
-
};
|
|
4342
|
-
type TableViewClassNames = {
|
|
4343
|
-
root?: string;
|
|
4344
|
-
header?: string;
|
|
4345
|
-
body?: string;
|
|
4346
|
-
footer?: string;
|
|
4347
|
-
pagination?: string;
|
|
4348
|
-
scroll?: string;
|
|
4349
|
-
};
|
|
4350
|
-
|
|
4351
|
-
type TableViewProps<RecordType> = {
|
|
4352
|
-
columns: TableColumn<RecordType>[];
|
|
4353
|
-
dataSource?: RecordType[] | null;
|
|
4354
|
-
/**
|
|
4355
|
-
* @description loading state
|
|
4356
|
-
* @default false
|
|
4357
|
-
*/
|
|
4358
|
-
loading?: boolean;
|
|
4359
|
-
ignoreLoadingCheck?: boolean;
|
|
4360
|
-
className?: string;
|
|
4361
|
-
classNames?: TableViewClassNames;
|
|
4362
|
-
emptyView?: ReactNode;
|
|
4363
|
-
bordered?: boolean;
|
|
4364
|
-
onSort?: (sort?: TableSort) => void;
|
|
4365
|
-
initialSort?: TableSort;
|
|
4366
|
-
id?: string;
|
|
4367
|
-
getRowCanExpand?: (row: Row<any>) => boolean;
|
|
4368
|
-
expandRowRender?: (row: Row<any>, index: number) => ReactNode;
|
|
4369
|
-
manualSorting?: boolean;
|
|
4370
|
-
manualPagination?: boolean;
|
|
4371
|
-
manualFiltering?: boolean;
|
|
4372
|
-
pagination?: PaginationMeta;
|
|
4373
|
-
renderRowContainer?: (record: RecordType, index: number, children: ReactNode) => ReactNode;
|
|
4374
|
-
generatedRowKey?: CoreOptions<any>["getRowId"];
|
|
4375
|
-
onRow?: (record: RecordType, index: number) => any;
|
|
4376
|
-
columnFilters?: ColumnFilter | ColumnFilter[];
|
|
4377
|
-
rowSelection?: RowSelectionState;
|
|
4378
|
-
};
|
|
4379
|
-
declare function TableView<RecordType extends any>(props: PropsWithChildren<TableViewProps<RecordType>>): react_jsx_runtime.JSX.Element;
|
|
4380
|
-
|
|
4381
|
-
type FilterType = "select" | "input" | "date" | "range" | "custom" | "symbol";
|
|
4382
|
-
type DataFilterGeneral = {
|
|
4383
|
-
name: string;
|
|
4384
|
-
type: FilterType;
|
|
4385
|
-
};
|
|
4386
|
-
type SelectFilter = {
|
|
4387
|
-
type: "select";
|
|
4388
|
-
isCombine?: boolean;
|
|
4389
|
-
} & SelectWithOptionsProps;
|
|
4390
|
-
type DateFilter = {
|
|
4391
|
-
type: "date";
|
|
4392
|
-
} & DatePickerProps;
|
|
4393
|
-
type DateRangeFilter = {
|
|
4394
|
-
type: "range";
|
|
4395
|
-
} & DateRangePickerProps;
|
|
4396
|
-
type SymbolFilter = {
|
|
4397
|
-
type: "symbol";
|
|
4398
|
-
};
|
|
4399
|
-
type DataFilterItems = (DataFilterGeneral & (SelectFilter | DateFilter | DateRangeFilter | SymbolFilter))[];
|
|
4400
|
-
type DataFilterProps = {
|
|
4401
|
-
items: DataFilterItems;
|
|
4402
|
-
onFilter: (filter: {
|
|
4403
|
-
name: string;
|
|
4404
|
-
value: any;
|
|
4405
|
-
}) => void;
|
|
4108
|
+
declare const EmptyDataState: FC<{
|
|
4109
|
+
title?: string;
|
|
4406
4110
|
className?: string;
|
|
4407
|
-
|
|
4408
|
-
};
|
|
4409
|
-
declare const DataFilter: (props: DataFilterProps) => react_jsx_runtime.JSX.Element;
|
|
4111
|
+
}>;
|
|
4410
4112
|
|
|
4411
4113
|
declare const scrollAreaVariants: tailwind_variants.TVReturnType<{
|
|
4412
4114
|
orientation: {
|
|
@@ -5929,6 +5631,26 @@ type TabPanelProps = {
|
|
|
5929
5631
|
};
|
|
5930
5632
|
declare const TabPanel: FC<PropsWithChildren<TabPanelProps>>;
|
|
5931
5633
|
|
|
5634
|
+
type PaginationProps = {
|
|
5635
|
+
onPageChange?: (page: number) => void;
|
|
5636
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
5637
|
+
pageSize?: number;
|
|
5638
|
+
page: number;
|
|
5639
|
+
count: number;
|
|
5640
|
+
pageTotal: number;
|
|
5641
|
+
className?: string;
|
|
5642
|
+
classNames?: {
|
|
5643
|
+
pagination?: string;
|
|
5644
|
+
paginationContent?: string;
|
|
5645
|
+
paginationItem?: string;
|
|
5646
|
+
paginationLink?: string;
|
|
5647
|
+
paginationPrevious?: string;
|
|
5648
|
+
paginationNext?: string;
|
|
5649
|
+
paginationEllipsis?: string;
|
|
5650
|
+
};
|
|
5651
|
+
};
|
|
5652
|
+
declare const PaginationItems: (props: Omit<PaginationProps, "onPageSizeChange">) => react_jsx_runtime.JSX.Element | null;
|
|
5653
|
+
|
|
5932
5654
|
type CombineSelectProps = {
|
|
5933
5655
|
placeholder?: string;
|
|
5934
5656
|
} & SelectWithOptionsProps;
|
|
@@ -8105,19 +7827,12 @@ type ExtensionPosition = ExtensionPositionEnum | string;
|
|
|
8105
7827
|
declare enum ExtensionPositionEnum {
|
|
8106
7828
|
DepositForm = "depositForm",
|
|
8107
7829
|
WithdrawForm = "withdrawForm",
|
|
8108
|
-
ListEmpty = "listEmpty",
|
|
8109
|
-
MainNav = "mainNav",
|
|
8110
|
-
SideNav = "sideNav",
|
|
8111
7830
|
/**
|
|
8112
7831
|
* Wallet button
|
|
8113
7832
|
*/
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
PortfolioLayout = "portfolioLayout",
|
|
8118
|
-
TradingRewardsLayout = "tradingRewardsLayout",
|
|
8119
|
-
AffiliateLayoutLayout = "affiliateLayoutLayout",
|
|
8120
|
-
EmptyDataState = "emptyDataState"
|
|
7833
|
+
AccountMenu = "accountMenu",
|
|
7834
|
+
MainMenus = "mainMenus",
|
|
7835
|
+
EmptyDataIdentifier = "emptyDataIdentifier"
|
|
8121
7836
|
}
|
|
8122
7837
|
|
|
8123
7838
|
/**
|
|
@@ -8163,11 +7878,16 @@ interface Props$2 {
|
|
|
8163
7878
|
}
|
|
8164
7879
|
declare const ExtensionSlot: FC<Props$2>;
|
|
8165
7880
|
|
|
7881
|
+
type ComponentOverrides = {
|
|
7882
|
+
tabs: {
|
|
7883
|
+
variant: "text" | "contained";
|
|
7884
|
+
};
|
|
7885
|
+
};
|
|
8166
7886
|
type OrderlyThemeProviderProps = {
|
|
8167
|
-
dateFormatting?: string;
|
|
8168
7887
|
components?: {
|
|
8169
7888
|
[position in ExtensionPosition]: ComponentType;
|
|
8170
7889
|
};
|
|
7890
|
+
overrides?: Partial<ComponentOverrides>;
|
|
8171
7891
|
};
|
|
8172
7892
|
declare const OrderlyThemeProvider: FC<PropsWithChildren<OrderlyThemeProviderProps>>;
|
|
8173
7893
|
|
|
@@ -8258,4 +7978,4 @@ declare function useScreen(): {
|
|
|
8258
7978
|
isDesktop: boolean;
|
|
8259
7979
|
};
|
|
8260
7980
|
|
|
8261
|
-
export { ActionSheet, type ActionSheetItem, AlertDialog, type AlertDialogProps, ArrowDownShortIcon, ArrowDownSquareFillIcon, ArrowDownUpIcon, ArrowLeftRightIcon, ArrowLeftShortIcon, ArrowRightShortIcon, ArrowUpShortIcon, ArrowUpSquareFillIcon, Avatar, Badge, type BaseActionSheetItem, type BaseIconProps, Box, type BoxProps, Button, type ButtonProps, Calendar, CalendarIcon, Card, CardBase, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CaretDownIcon, CaretLeftIcon, CaretRightIcon, CaretUpIcon, ChainIcon, type ChainSelectProps, CheckIcon, CheckSquareEmptyIcon, Checkbox, CheckedCircleFillIcon, CheckedSquareFillIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleOutlinedIcon, CloseCircleFillIcon, CloseIcon, CloseSquareFillIcon, Collapse, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, ConfirmDialog, type ConfirmProps, CopyIcon, DataFilter, type DataFilterItems
|
|
7981
|
+
export { ActionSheet, type ActionSheetItem, AlertDialog, type AlertDialogProps, ArrowDownShortIcon, ArrowDownSquareFillIcon, ArrowDownUpIcon, ArrowLeftRightIcon, ArrowLeftShortIcon, ArrowRightShortIcon, ArrowUpShortIcon, ArrowUpSquareFillIcon, Avatar, Badge, type BaseActionSheetItem, type BaseIconProps, Box, type BoxProps, Button, type ButtonProps, Calendar, CalendarIcon, Card, CardBase, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CaretDownIcon, CaretLeftIcon, CaretRightIcon, CaretUpIcon, ChainIcon, type ChainSelectProps, CheckIcon, CheckSquareEmptyIcon, Checkbox, CheckedCircleFillIcon, CheckedSquareFillIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleOutlinedIcon, CloseCircleFillIcon, CloseIcon, CloseSquareFillIcon, Collapse, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, ConfirmDialog, type ConfirmProps, CopyIcon, DataFilter, type DataFilterItems, DataTable, type DataTableClassNames, type DataTableProps, DatePicker, type DatePickerProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, type DividerProps, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuTrigger, EVMAvatar, EditIcon, Either, EmptyDataState, ExclamationFillIcon, type ExtensionPosition, ExtensionPositionEnum, ExtensionSlot, EyeCloseIcon, EyeIcon, FeeTierIcon, Flex, type FlexProps, Grid, HoverCard, HoverCardContent, type HoverCardProps, HoverCardRoot, HoverCardTrigger, Icon, type IconType, Input, InputAdditional, type InputFormatter, type InputFormatterOptions, type InputProps, ListView, Logo, type LogoProps, Match, type MenuItem, ModalContext, type ModalHocProps, ModalIdContext, ModalProvider, type NumeralProps, index as OUITailwind, OrderlyThemeProvider, PaginationItems, type PaginationMeta, Picker, PlusIcon, Popover, PopoverAnchor, PopoverContent, PopoverRoot, PopoverTrigger, QuestionFillIcon, RefreshIcon, ScrollArea, ScrollBar, Select, SelectItem, type SelectProps, ServerFillIcon, SettingFillIcon, SettingIcon, ShareIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SimpleDialog, type SimpleDialogProps, SimpleDropdownMenu, SimpleSheet, type SizeType, Slider, type SliderMarks, type SortOrder, SortingAscIcon, SortingDescIcon, SortingIcon, Spinner, type SpinnerProps, SquareOutlinedIcon, Statistic, StatisticLabel, Switch, TabPanel, Tabs, TabsBase, TabsContent, TabsList, TabsTrigger, Text, TextField, type TextFieldProps, type TextProps, type TextType, ThrottledButton, ToastTile, Toaster, TokenIcon, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger, TriggerDialog, type TriggerDialogProps, WalletIcon, boxVariants, buttonVariants, capitalizeFirstLetter, convertValueToPercentage, formatAddress, gradientTextVariants, index$1 as inputFormatter, installExtension, modal, parseNumber, registerSimpleDialog, registerSimpleSheet, scrollAreaVariants, setExtensionBuilder, statisticVariants, textVariants, tv, useModal, usePagination, useScreen };
|