@orderly.network/ui 2.4.2-alpha.0 → 2.5.0-alpha.1

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.mts CHANGED
@@ -10,7 +10,7 @@ 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, ExpandedState, OnChangeFn, CoreOptions, Column as Column$1, ColumnFilter, RowSelectionState, TableFeature, Table, RowData } from '@tanstack/react-table';
13
+ import { Row, ExpandedState, OnChangeFn, CoreOptions, Column as Column$1, ColumnFilter, RowSelectionState, TableFeature, Table, SortingState, RowData } from '@tanstack/react-table';
14
14
  export { Table, Column as TanstackColumn } from '@tanstack/react-table';
15
15
  import { DateRange, DayPickerRangeProps, DayPicker } from 'react-day-picker';
16
16
  import * as SelectPrimitive from '@radix-ui/react-select';
@@ -3710,10 +3710,23 @@ declare const Tooltip: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.T
3710
3710
 
3711
3711
  type ColumnFixed = "left" | "right";
3712
3712
  type SortOrder = "asc" | "desc";
3713
+ type TableSort = {
3714
+ sortKey: string;
3715
+ sort: SortOrder;
3716
+ };
3717
+ type MultiFieldSort = {
3718
+ sortKey: string;
3719
+ sort: SortOrder;
3720
+ };
3713
3721
  type PlainText = number | string | null | undefined;
3714
3722
  type TableCellFormatter<T> = string | ((value: any, record: T, index: number) => any);
3715
3723
  type TableCellRenderer<T> = string | ((value: any, record: T, index: number) => React.ReactNode);
3716
3724
  type TableCellPlainTextRenderer<T> = (value: any, record: T, index: number) => PlainText;
3725
+ type MultiSortField = {
3726
+ sortKey: string;
3727
+ label?: string;
3728
+ className?: string;
3729
+ };
3717
3730
  type Column<RecordType extends unknown = any> = {
3718
3731
  type?: "data" | "action" | "group";
3719
3732
  title?: ReactNode;
@@ -3729,6 +3742,11 @@ type Column<RecordType extends unknown = any> = {
3729
3742
  className?: string | ((record: RecordType, index: number) => string);
3730
3743
  align?: "left" | "center" | "right";
3731
3744
  onSort?: boolean | ((r1: RecordType, r2: RecordType, sortOrder?: SortOrder) => number);
3745
+ multiSort?: {
3746
+ fields: MultiSortField[];
3747
+ initialSort?: MultiFieldSort[];
3748
+ onSort?: (fieldKey: string, sortOrder?: SortOrder) => void;
3749
+ };
3732
3750
  formatter?: TableCellFormatter<RecordType>;
3733
3751
  render?: TableCellRenderer<RecordType>;
3734
3752
  /**
@@ -3754,10 +3772,6 @@ type PaginationMeta = {
3754
3772
  onPageChange?: (page: number) => void;
3755
3773
  onPageSizeChange?: (pageSize: number) => void;
3756
3774
  };
3757
- type TableSort = {
3758
- sortKey: string;
3759
- sort: SortOrder;
3760
- };
3761
3775
  type DataTableClassNames = {
3762
3776
  root?: string;
3763
3777
  header?: string;
@@ -3765,6 +3779,7 @@ type DataTableClassNames = {
3765
3779
  footer?: string;
3766
3780
  pagination?: string;
3767
3781
  scroll?: string;
3782
+ empty?: string;
3768
3783
  };
3769
3784
 
3770
3785
  type DataTableProps<RecordType> = {
@@ -4245,11 +4260,34 @@ declare const usePagination: (initial?: {
4245
4260
  }) => PaginationMeta;
4246
4261
  };
4247
4262
 
4263
+ declare function useMultiSort(props: {
4264
+ columnKey: string;
4265
+ onSort?: (fieldKey: string, sortOrder?: SortOrder) => void;
4266
+ initialSort?: MultiFieldSort[];
4267
+ currentSorting?: {
4268
+ sortKey: string;
4269
+ sort: SortOrder;
4270
+ };
4271
+ }): {
4272
+ handleFieldSort: (fieldKey: string) => void;
4273
+ getFieldSort: (fieldKey: string) => {
4274
+ sortKey: string;
4275
+ sort: SortOrder;
4276
+ } | undefined;
4277
+ };
4278
+
4248
4279
  declare const EmptyDataState: FC<{
4249
4280
  title?: string;
4250
4281
  className?: string;
4251
4282
  }>;
4252
4283
 
4284
+ type MultiSortHeaderProps = {
4285
+ column: Column<any>;
4286
+ className?: string;
4287
+ sorting?: SortingState;
4288
+ };
4289
+ declare const MultiSortHeader: FC<MultiSortHeaderProps>;
4290
+
4253
4291
  interface DownloadInstance {
4254
4292
  getPlainTextData: () => any[];
4255
4293
  download: (filename?: string) => void;
@@ -6188,18 +6226,18 @@ declare const PaginationItems: (props: Omit<PaginationProps, "onPageSizeChange">
6188
6226
  type CombineSelectProps = {
6189
6227
  placeholder?: string;
6190
6228
  } & SelectWithOptionsProps;
6191
- declare const CombineSelect: (props: CombineSelectProps) => react_jsx_runtime.JSX.Element;
6229
+ declare const CombineSelect: React__default.FC<CombineSelectProps>;
6192
6230
 
6193
6231
  type TokenItem = {
6194
6232
  name: string;
6195
6233
  [x: string]: any;
6196
6234
  };
6197
- type TokenSelect = {
6235
+ type TokenSelectProps = {
6198
6236
  tokens: TokenItem[];
6199
6237
  showIcon?: boolean;
6200
6238
  optionRenderer?: (option: SelectOption) => ReactElement;
6201
6239
  } & SelectProps<string>;
6202
- declare const TokenSelect: (props: TokenSelect) => react_jsx_runtime.JSX.Element;
6240
+ declare const TokenSelect: React__default.FC<TokenSelectProps>;
6203
6241
 
6204
6242
  declare const chainSelectVariants: tailwind_variants.TVReturnType<{
6205
6243
  size: {
@@ -7843,7 +7881,7 @@ declare const InfoCircleIcon: React__default.ForwardRefExoticComponent<BaseIconP
7843
7881
 
7844
7882
  declare const avatarVariants: tailwind_variants.TVReturnType<{
7845
7883
  size: {
7846
- '2xs': {
7884
+ "2xs": {
7847
7885
  root: string;
7848
7886
  };
7849
7887
  xs: {
@@ -7876,7 +7914,7 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
7876
7914
  };
7877
7915
  }, {
7878
7916
  size: {
7879
- '2xs': {
7917
+ "2xs": {
7880
7918
  root: string;
7881
7919
  };
7882
7920
  xs: {
@@ -7901,7 +7939,7 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
7901
7939
  fallback: string;
7902
7940
  }, tailwind_variants.TVReturnType<{
7903
7941
  size: {
7904
- '2xs': {
7942
+ "2xs": {
7905
7943
  root: string;
7906
7944
  };
7907
7945
  xs: {
@@ -7926,7 +7964,7 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
7926
7964
  fallback: string;
7927
7965
  }, undefined, tailwind_variants_dist_config.TVConfig<{
7928
7966
  size: {
7929
- '2xs': {
7967
+ "2xs": {
7930
7968
  root: string;
7931
7969
  };
7932
7970
  xs: {
@@ -7947,7 +7985,7 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
7947
7985
  };
7948
7986
  }, {
7949
7987
  size: {
7950
- '2xs': {
7988
+ "2xs": {
7951
7989
  root: string;
7952
7990
  };
7953
7991
  xs: {
@@ -7969,7 +8007,7 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
7969
8007
  }>, unknown, unknown, undefined>>;
7970
8008
  declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & VariantProps<tailwind_variants.TVReturnType<{
7971
8009
  size: {
7972
- '2xs': {
8010
+ "2xs": {
7973
8011
  root: string;
7974
8012
  };
7975
8013
  xs: {
@@ -8002,7 +8040,7 @@ declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive
8002
8040
  };
8003
8041
  }, {
8004
8042
  size: {
8005
- '2xs': {
8043
+ "2xs": {
8006
8044
  root: string;
8007
8045
  };
8008
8046
  xs: {
@@ -8027,7 +8065,7 @@ declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive
8027
8065
  fallback: string;
8028
8066
  }, tailwind_variants.TVReturnType<{
8029
8067
  size: {
8030
- '2xs': {
8068
+ "2xs": {
8031
8069
  root: string;
8032
8070
  };
8033
8071
  xs: {
@@ -8052,7 +8090,7 @@ declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive
8052
8090
  fallback: string;
8053
8091
  }, undefined, tailwind_variants_dist_config.TVConfig<{
8054
8092
  size: {
8055
- '2xs': {
8093
+ "2xs": {
8056
8094
  root: string;
8057
8095
  };
8058
8096
  xs: {
@@ -8073,7 +8111,7 @@ declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive
8073
8111
  };
8074
8112
  }, {
8075
8113
  size: {
8076
- '2xs': {
8114
+ "2xs": {
8077
8115
  root: string;
8078
8116
  };
8079
8117
  xs: {
@@ -8103,7 +8141,7 @@ type AvatarProps = React$1.ComponentProps<typeof AvatarBase> & VariantProps<type
8103
8141
  declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
8104
8142
  declare const EVMAvatar: React$1.ForwardRefExoticComponent<Omit<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & VariantProps<tailwind_variants.TVReturnType<{
8105
8143
  size: {
8106
- '2xs': {
8144
+ "2xs": {
8107
8145
  root: string;
8108
8146
  };
8109
8147
  xs: {
@@ -8136,7 +8174,7 @@ declare const EVMAvatar: React$1.ForwardRefExoticComponent<Omit<Omit<AvatarPrimi
8136
8174
  };
8137
8175
  }, {
8138
8176
  size: {
8139
- '2xs': {
8177
+ "2xs": {
8140
8178
  root: string;
8141
8179
  };
8142
8180
  xs: {
@@ -8161,7 +8199,7 @@ declare const EVMAvatar: React$1.ForwardRefExoticComponent<Omit<Omit<AvatarPrimi
8161
8199
  fallback: string;
8162
8200
  }, tailwind_variants.TVReturnType<{
8163
8201
  size: {
8164
- '2xs': {
8202
+ "2xs": {
8165
8203
  root: string;
8166
8204
  };
8167
8205
  xs: {
@@ -8186,7 +8224,7 @@ declare const EVMAvatar: React$1.ForwardRefExoticComponent<Omit<Omit<AvatarPrimi
8186
8224
  fallback: string;
8187
8225
  }, undefined, tailwind_variants_dist_config.TVConfig<{
8188
8226
  size: {
8189
- '2xs': {
8227
+ "2xs": {
8190
8228
  root: string;
8191
8229
  };
8192
8230
  xs: {
@@ -8207,7 +8245,7 @@ declare const EVMAvatar: React$1.ForwardRefExoticComponent<Omit<Omit<AvatarPrimi
8207
8245
  };
8208
8246
  }, {
8209
8247
  size: {
8210
- '2xs': {
8248
+ "2xs": {
8211
8249
  root: string;
8212
8250
  };
8213
8251
  xs: {
@@ -8542,4 +8580,4 @@ type ScrollIndicatorProps = {
8542
8580
  };
8543
8581
  declare const ScrollIndicator: FC<ScrollIndicatorProps>;
8544
8582
 
8545
- export { ActionSheet, type ActionSheetItem, AffiliateIcon, AlertDialog, type AlertDialogProps, ArrowDownShortIcon, ArrowDownSquareFillIcon, ArrowDownUpIcon, ArrowLeftRightIcon, ArrowLeftRightSquareFill, ArrowLeftShortIcon, ArrowRightShortIcon, ArrowUpShortIcon, ArrowUpSquareFillIcon, AssetIcon, Avatar, Badge, BarChartIcon, type BaseActionSheetItem, type BaseIconProps, BattleIcon, Box, type BoxProps, Button, type ButtonProps, Calendar, CalendarIcon, CalendarMinusIcon, 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, type ColumnFixed, ConfirmDialog, type ConfirmProps, CopyIcon, DataFilter, type DataFilterItem, DataTable, type DataTableClassNames, type DataTableProps, DatePicker, type DatePickerProps, Dialog, type DialogAction, 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, EmptyStateIcon, EsOrderlyIcon, ExclamationFillIcon, type ExtensionPosition, ExtensionPositionEnum, ExtensionSlot, EyeCloseIcon, EyeIcon, FeeTierIcon, Flex, type FlexProps, Grid, HoverCard, HoverCardContent, type HoverCardProps, HoverCardRoot, HoverCardTrigger, Icon, type IconType, InfoCircleIcon, Input, InputAdditional, type InputFormatter, type InputFormatterOptions, type InputProps, LeaderboardActiveIcon, LeaderboardInactiveIcon, ListView, type Locale, LocaleContext, LocaleProvider, Logo, type LogoProps, MarketsActiveIcon, MarketsInactiveIcon, Match, type MenuItem, ModalContext, type ModalHocProps, ModalIdContext, ModalProvider, type NumeralProps, index as OUITailwind, OrderlyIcon, OrderlyThemeProvider, type OrderlyThemeProviderProps, PaginationItems, type PaginationMeta, PeopleIcon, PersonIcon, Picker, PlusIcon, Popover, PopoverAnchor, PopoverContent, PopoverRoot, PopoverTrigger, PortfolioActiveIcon, PortfolioInactiveIcon, QuestionFillIcon, ReduceIcon, RefreshIcon, ScrollArea, ScrollBar, ScrollIndicator, type ScrollIndicatorProps, Select, SelectItem, type SelectProps, ServerFillIcon, SettingFillIcon, SettingIcon, ShareIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SimpleDialog, SimpleDialogFooter, type SimpleDialogFooterProps, type SimpleDialogProps, SimpleDropdownMenu, SimpleSheet, type SizeType, Slider, type SliderMarks, type SortOrder, SortingAscIcon, SortingDescIcon, SortingIcon, Spinner, type SpinnerProps, SquareOutlinedIcon, Statistic, StatisticLabel, SwapHorizIcon, Switch, TabPanel, type TableCellFormatter, type TableCellPlainTextRenderer, type TableCellRenderer, index$1 as TableFeatures, type TableSort, Tabs, TabsBase, TabsContent, TabsList, TabsTrigger, Text, TextField, type TextFieldProps, type TextProps, type TextType, ThrottledButton, ToastTile, Toaster, TokenIcon, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger, TraderMobileIcon, TradingActiveIcon, TradingIcon, TradingInactiveIcon, TradingLeftNavIcon, TradingRewardsIcon, TriggerDialog, type TriggerDialogProps, VectorIcon, WalletIcon, boxVariants, buttonVariants, capitalizeFirstLetter, convertValueToPercentage, formatAddress, gradientTextVariants, index$2 as inputFormatter, installExtension, modal, parseNumber, registerSimpleDialog, registerSimpleSheet, scrollAreaVariants, setExtensionBuilder, statisticVariants, textVariants, tv, useLocale, useMediaQuery, useModal, useObserverElement, useOrderlyTheme, usePagination, useScreen };
8583
+ export { ActionSheet, type ActionSheetItem, AffiliateIcon, AlertDialog, type AlertDialogProps, ArrowDownShortIcon, ArrowDownSquareFillIcon, ArrowDownUpIcon, ArrowLeftRightIcon, ArrowLeftRightSquareFill, ArrowLeftShortIcon, ArrowRightShortIcon, ArrowUpShortIcon, ArrowUpSquareFillIcon, AssetIcon, Avatar, Badge, BarChartIcon, type BaseActionSheetItem, type BaseIconProps, BattleIcon, Box, type BoxProps, Button, type ButtonProps, Calendar, CalendarIcon, CalendarMinusIcon, 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, type ColumnFixed, ConfirmDialog, type ConfirmProps, CopyIcon, DataFilter, type DataFilterItem, DataTable, type DataTableClassNames, type DataTableProps, DatePicker, type DatePickerProps, Dialog, type DialogAction, 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, EmptyStateIcon, EsOrderlyIcon, ExclamationFillIcon, type ExtensionPosition, ExtensionPositionEnum, ExtensionSlot, EyeCloseIcon, EyeIcon, FeeTierIcon, Flex, type FlexProps, Grid, HoverCard, HoverCardContent, type HoverCardProps, HoverCardRoot, HoverCardTrigger, Icon, type IconType, InfoCircleIcon, Input, InputAdditional, type InputFormatter, type InputFormatterOptions, type InputProps, LeaderboardActiveIcon, LeaderboardInactiveIcon, ListView, type Locale, LocaleContext, LocaleProvider, Logo, type LogoProps, MarketsActiveIcon, MarketsInactiveIcon, Match, type MenuItem, ModalContext, type ModalHocProps, ModalIdContext, ModalProvider, type MultiFieldSort, type MultiSortField, MultiSortHeader, type MultiSortHeaderProps, type NumeralProps, index as OUITailwind, OrderlyIcon, OrderlyThemeProvider, type OrderlyThemeProviderProps, PaginationItems, type PaginationMeta, PeopleIcon, PersonIcon, Picker, PlusIcon, Popover, PopoverAnchor, PopoverContent, PopoverRoot, PopoverTrigger, PortfolioActiveIcon, PortfolioInactiveIcon, QuestionFillIcon, ReduceIcon, RefreshIcon, ScrollArea, ScrollBar, ScrollIndicator, type ScrollIndicatorProps, Select, SelectItem, type SelectProps, ServerFillIcon, SettingFillIcon, SettingIcon, ShareIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SimpleDialog, SimpleDialogFooter, type SimpleDialogFooterProps, type SimpleDialogProps, SimpleDropdownMenu, SimpleSheet, type SizeType, Slider, type SliderMarks, type SortOrder, SortingAscIcon, SortingDescIcon, SortingIcon, Spinner, type SpinnerProps, SquareOutlinedIcon, Statistic, StatisticLabel, SwapHorizIcon, Switch, TabPanel, type TableCellFormatter, type TableCellPlainTextRenderer, type TableCellRenderer, index$1 as TableFeatures, type TableSort, Tabs, TabsBase, TabsContent, TabsList, TabsTrigger, Text, TextField, type TextFieldProps, type TextProps, type TextType, ThrottledButton, ToastTile, Toaster, TokenIcon, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger, TraderMobileIcon, TradingActiveIcon, TradingIcon, TradingInactiveIcon, TradingLeftNavIcon, TradingRewardsIcon, TriggerDialog, type TriggerDialogProps, VectorIcon, WalletIcon, boxVariants, buttonVariants, capitalizeFirstLetter, convertValueToPercentage, formatAddress, gradientTextVariants, index$2 as inputFormatter, installExtension, modal, parseNumber, registerSimpleDialog, registerSimpleSheet, scrollAreaVariants, setExtensionBuilder, statisticVariants, textVariants, tv, useLocale, useMediaQuery, useModal, useMultiSort, useObserverElement, useOrderlyTheme, usePagination, useScreen };
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ 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, ExpandedState, OnChangeFn, CoreOptions, Column as Column$1, ColumnFilter, RowSelectionState, TableFeature, Table, RowData } from '@tanstack/react-table';
13
+ import { Row, ExpandedState, OnChangeFn, CoreOptions, Column as Column$1, ColumnFilter, RowSelectionState, TableFeature, Table, SortingState, RowData } from '@tanstack/react-table';
14
14
  export { Table, Column as TanstackColumn } from '@tanstack/react-table';
15
15
  import { DateRange, DayPickerRangeProps, DayPicker } from 'react-day-picker';
16
16
  import * as SelectPrimitive from '@radix-ui/react-select';
@@ -3710,10 +3710,23 @@ declare const Tooltip: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.T
3710
3710
 
3711
3711
  type ColumnFixed = "left" | "right";
3712
3712
  type SortOrder = "asc" | "desc";
3713
+ type TableSort = {
3714
+ sortKey: string;
3715
+ sort: SortOrder;
3716
+ };
3717
+ type MultiFieldSort = {
3718
+ sortKey: string;
3719
+ sort: SortOrder;
3720
+ };
3713
3721
  type PlainText = number | string | null | undefined;
3714
3722
  type TableCellFormatter<T> = string | ((value: any, record: T, index: number) => any);
3715
3723
  type TableCellRenderer<T> = string | ((value: any, record: T, index: number) => React.ReactNode);
3716
3724
  type TableCellPlainTextRenderer<T> = (value: any, record: T, index: number) => PlainText;
3725
+ type MultiSortField = {
3726
+ sortKey: string;
3727
+ label?: string;
3728
+ className?: string;
3729
+ };
3717
3730
  type Column<RecordType extends unknown = any> = {
3718
3731
  type?: "data" | "action" | "group";
3719
3732
  title?: ReactNode;
@@ -3729,6 +3742,11 @@ type Column<RecordType extends unknown = any> = {
3729
3742
  className?: string | ((record: RecordType, index: number) => string);
3730
3743
  align?: "left" | "center" | "right";
3731
3744
  onSort?: boolean | ((r1: RecordType, r2: RecordType, sortOrder?: SortOrder) => number);
3745
+ multiSort?: {
3746
+ fields: MultiSortField[];
3747
+ initialSort?: MultiFieldSort[];
3748
+ onSort?: (fieldKey: string, sortOrder?: SortOrder) => void;
3749
+ };
3732
3750
  formatter?: TableCellFormatter<RecordType>;
3733
3751
  render?: TableCellRenderer<RecordType>;
3734
3752
  /**
@@ -3754,10 +3772,6 @@ type PaginationMeta = {
3754
3772
  onPageChange?: (page: number) => void;
3755
3773
  onPageSizeChange?: (pageSize: number) => void;
3756
3774
  };
3757
- type TableSort = {
3758
- sortKey: string;
3759
- sort: SortOrder;
3760
- };
3761
3775
  type DataTableClassNames = {
3762
3776
  root?: string;
3763
3777
  header?: string;
@@ -3765,6 +3779,7 @@ type DataTableClassNames = {
3765
3779
  footer?: string;
3766
3780
  pagination?: string;
3767
3781
  scroll?: string;
3782
+ empty?: string;
3768
3783
  };
3769
3784
 
3770
3785
  type DataTableProps<RecordType> = {
@@ -4245,11 +4260,34 @@ declare const usePagination: (initial?: {
4245
4260
  }) => PaginationMeta;
4246
4261
  };
4247
4262
 
4263
+ declare function useMultiSort(props: {
4264
+ columnKey: string;
4265
+ onSort?: (fieldKey: string, sortOrder?: SortOrder) => void;
4266
+ initialSort?: MultiFieldSort[];
4267
+ currentSorting?: {
4268
+ sortKey: string;
4269
+ sort: SortOrder;
4270
+ };
4271
+ }): {
4272
+ handleFieldSort: (fieldKey: string) => void;
4273
+ getFieldSort: (fieldKey: string) => {
4274
+ sortKey: string;
4275
+ sort: SortOrder;
4276
+ } | undefined;
4277
+ };
4278
+
4248
4279
  declare const EmptyDataState: FC<{
4249
4280
  title?: string;
4250
4281
  className?: string;
4251
4282
  }>;
4252
4283
 
4284
+ type MultiSortHeaderProps = {
4285
+ column: Column<any>;
4286
+ className?: string;
4287
+ sorting?: SortingState;
4288
+ };
4289
+ declare const MultiSortHeader: FC<MultiSortHeaderProps>;
4290
+
4253
4291
  interface DownloadInstance {
4254
4292
  getPlainTextData: () => any[];
4255
4293
  download: (filename?: string) => void;
@@ -6188,18 +6226,18 @@ declare const PaginationItems: (props: Omit<PaginationProps, "onPageSizeChange">
6188
6226
  type CombineSelectProps = {
6189
6227
  placeholder?: string;
6190
6228
  } & SelectWithOptionsProps;
6191
- declare const CombineSelect: (props: CombineSelectProps) => react_jsx_runtime.JSX.Element;
6229
+ declare const CombineSelect: React__default.FC<CombineSelectProps>;
6192
6230
 
6193
6231
  type TokenItem = {
6194
6232
  name: string;
6195
6233
  [x: string]: any;
6196
6234
  };
6197
- type TokenSelect = {
6235
+ type TokenSelectProps = {
6198
6236
  tokens: TokenItem[];
6199
6237
  showIcon?: boolean;
6200
6238
  optionRenderer?: (option: SelectOption) => ReactElement;
6201
6239
  } & SelectProps<string>;
6202
- declare const TokenSelect: (props: TokenSelect) => react_jsx_runtime.JSX.Element;
6240
+ declare const TokenSelect: React__default.FC<TokenSelectProps>;
6203
6241
 
6204
6242
  declare const chainSelectVariants: tailwind_variants.TVReturnType<{
6205
6243
  size: {
@@ -7843,7 +7881,7 @@ declare const InfoCircleIcon: React__default.ForwardRefExoticComponent<BaseIconP
7843
7881
 
7844
7882
  declare const avatarVariants: tailwind_variants.TVReturnType<{
7845
7883
  size: {
7846
- '2xs': {
7884
+ "2xs": {
7847
7885
  root: string;
7848
7886
  };
7849
7887
  xs: {
@@ -7876,7 +7914,7 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
7876
7914
  };
7877
7915
  }, {
7878
7916
  size: {
7879
- '2xs': {
7917
+ "2xs": {
7880
7918
  root: string;
7881
7919
  };
7882
7920
  xs: {
@@ -7901,7 +7939,7 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
7901
7939
  fallback: string;
7902
7940
  }, tailwind_variants.TVReturnType<{
7903
7941
  size: {
7904
- '2xs': {
7942
+ "2xs": {
7905
7943
  root: string;
7906
7944
  };
7907
7945
  xs: {
@@ -7926,7 +7964,7 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
7926
7964
  fallback: string;
7927
7965
  }, undefined, tailwind_variants_dist_config.TVConfig<{
7928
7966
  size: {
7929
- '2xs': {
7967
+ "2xs": {
7930
7968
  root: string;
7931
7969
  };
7932
7970
  xs: {
@@ -7947,7 +7985,7 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
7947
7985
  };
7948
7986
  }, {
7949
7987
  size: {
7950
- '2xs': {
7988
+ "2xs": {
7951
7989
  root: string;
7952
7990
  };
7953
7991
  xs: {
@@ -7969,7 +8007,7 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
7969
8007
  }>, unknown, unknown, undefined>>;
7970
8008
  declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & VariantProps<tailwind_variants.TVReturnType<{
7971
8009
  size: {
7972
- '2xs': {
8010
+ "2xs": {
7973
8011
  root: string;
7974
8012
  };
7975
8013
  xs: {
@@ -8002,7 +8040,7 @@ declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive
8002
8040
  };
8003
8041
  }, {
8004
8042
  size: {
8005
- '2xs': {
8043
+ "2xs": {
8006
8044
  root: string;
8007
8045
  };
8008
8046
  xs: {
@@ -8027,7 +8065,7 @@ declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive
8027
8065
  fallback: string;
8028
8066
  }, tailwind_variants.TVReturnType<{
8029
8067
  size: {
8030
- '2xs': {
8068
+ "2xs": {
8031
8069
  root: string;
8032
8070
  };
8033
8071
  xs: {
@@ -8052,7 +8090,7 @@ declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive
8052
8090
  fallback: string;
8053
8091
  }, undefined, tailwind_variants_dist_config.TVConfig<{
8054
8092
  size: {
8055
- '2xs': {
8093
+ "2xs": {
8056
8094
  root: string;
8057
8095
  };
8058
8096
  xs: {
@@ -8073,7 +8111,7 @@ declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive
8073
8111
  };
8074
8112
  }, {
8075
8113
  size: {
8076
- '2xs': {
8114
+ "2xs": {
8077
8115
  root: string;
8078
8116
  };
8079
8117
  xs: {
@@ -8103,7 +8141,7 @@ type AvatarProps = React$1.ComponentProps<typeof AvatarBase> & VariantProps<type
8103
8141
  declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
8104
8142
  declare const EVMAvatar: React$1.ForwardRefExoticComponent<Omit<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & VariantProps<tailwind_variants.TVReturnType<{
8105
8143
  size: {
8106
- '2xs': {
8144
+ "2xs": {
8107
8145
  root: string;
8108
8146
  };
8109
8147
  xs: {
@@ -8136,7 +8174,7 @@ declare const EVMAvatar: React$1.ForwardRefExoticComponent<Omit<Omit<AvatarPrimi
8136
8174
  };
8137
8175
  }, {
8138
8176
  size: {
8139
- '2xs': {
8177
+ "2xs": {
8140
8178
  root: string;
8141
8179
  };
8142
8180
  xs: {
@@ -8161,7 +8199,7 @@ declare const EVMAvatar: React$1.ForwardRefExoticComponent<Omit<Omit<AvatarPrimi
8161
8199
  fallback: string;
8162
8200
  }, tailwind_variants.TVReturnType<{
8163
8201
  size: {
8164
- '2xs': {
8202
+ "2xs": {
8165
8203
  root: string;
8166
8204
  };
8167
8205
  xs: {
@@ -8186,7 +8224,7 @@ declare const EVMAvatar: React$1.ForwardRefExoticComponent<Omit<Omit<AvatarPrimi
8186
8224
  fallback: string;
8187
8225
  }, undefined, tailwind_variants_dist_config.TVConfig<{
8188
8226
  size: {
8189
- '2xs': {
8227
+ "2xs": {
8190
8228
  root: string;
8191
8229
  };
8192
8230
  xs: {
@@ -8207,7 +8245,7 @@ declare const EVMAvatar: React$1.ForwardRefExoticComponent<Omit<Omit<AvatarPrimi
8207
8245
  };
8208
8246
  }, {
8209
8247
  size: {
8210
- '2xs': {
8248
+ "2xs": {
8211
8249
  root: string;
8212
8250
  };
8213
8251
  xs: {
@@ -8542,4 +8580,4 @@ type ScrollIndicatorProps = {
8542
8580
  };
8543
8581
  declare const ScrollIndicator: FC<ScrollIndicatorProps>;
8544
8582
 
8545
- export { ActionSheet, type ActionSheetItem, AffiliateIcon, AlertDialog, type AlertDialogProps, ArrowDownShortIcon, ArrowDownSquareFillIcon, ArrowDownUpIcon, ArrowLeftRightIcon, ArrowLeftRightSquareFill, ArrowLeftShortIcon, ArrowRightShortIcon, ArrowUpShortIcon, ArrowUpSquareFillIcon, AssetIcon, Avatar, Badge, BarChartIcon, type BaseActionSheetItem, type BaseIconProps, BattleIcon, Box, type BoxProps, Button, type ButtonProps, Calendar, CalendarIcon, CalendarMinusIcon, 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, type ColumnFixed, ConfirmDialog, type ConfirmProps, CopyIcon, DataFilter, type DataFilterItem, DataTable, type DataTableClassNames, type DataTableProps, DatePicker, type DatePickerProps, Dialog, type DialogAction, 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, EmptyStateIcon, EsOrderlyIcon, ExclamationFillIcon, type ExtensionPosition, ExtensionPositionEnum, ExtensionSlot, EyeCloseIcon, EyeIcon, FeeTierIcon, Flex, type FlexProps, Grid, HoverCard, HoverCardContent, type HoverCardProps, HoverCardRoot, HoverCardTrigger, Icon, type IconType, InfoCircleIcon, Input, InputAdditional, type InputFormatter, type InputFormatterOptions, type InputProps, LeaderboardActiveIcon, LeaderboardInactiveIcon, ListView, type Locale, LocaleContext, LocaleProvider, Logo, type LogoProps, MarketsActiveIcon, MarketsInactiveIcon, Match, type MenuItem, ModalContext, type ModalHocProps, ModalIdContext, ModalProvider, type NumeralProps, index as OUITailwind, OrderlyIcon, OrderlyThemeProvider, type OrderlyThemeProviderProps, PaginationItems, type PaginationMeta, PeopleIcon, PersonIcon, Picker, PlusIcon, Popover, PopoverAnchor, PopoverContent, PopoverRoot, PopoverTrigger, PortfolioActiveIcon, PortfolioInactiveIcon, QuestionFillIcon, ReduceIcon, RefreshIcon, ScrollArea, ScrollBar, ScrollIndicator, type ScrollIndicatorProps, Select, SelectItem, type SelectProps, ServerFillIcon, SettingFillIcon, SettingIcon, ShareIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SimpleDialog, SimpleDialogFooter, type SimpleDialogFooterProps, type SimpleDialogProps, SimpleDropdownMenu, SimpleSheet, type SizeType, Slider, type SliderMarks, type SortOrder, SortingAscIcon, SortingDescIcon, SortingIcon, Spinner, type SpinnerProps, SquareOutlinedIcon, Statistic, StatisticLabel, SwapHorizIcon, Switch, TabPanel, type TableCellFormatter, type TableCellPlainTextRenderer, type TableCellRenderer, index$1 as TableFeatures, type TableSort, Tabs, TabsBase, TabsContent, TabsList, TabsTrigger, Text, TextField, type TextFieldProps, type TextProps, type TextType, ThrottledButton, ToastTile, Toaster, TokenIcon, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger, TraderMobileIcon, TradingActiveIcon, TradingIcon, TradingInactiveIcon, TradingLeftNavIcon, TradingRewardsIcon, TriggerDialog, type TriggerDialogProps, VectorIcon, WalletIcon, boxVariants, buttonVariants, capitalizeFirstLetter, convertValueToPercentage, formatAddress, gradientTextVariants, index$2 as inputFormatter, installExtension, modal, parseNumber, registerSimpleDialog, registerSimpleSheet, scrollAreaVariants, setExtensionBuilder, statisticVariants, textVariants, tv, useLocale, useMediaQuery, useModal, useObserverElement, useOrderlyTheme, usePagination, useScreen };
8583
+ export { ActionSheet, type ActionSheetItem, AffiliateIcon, AlertDialog, type AlertDialogProps, ArrowDownShortIcon, ArrowDownSquareFillIcon, ArrowDownUpIcon, ArrowLeftRightIcon, ArrowLeftRightSquareFill, ArrowLeftShortIcon, ArrowRightShortIcon, ArrowUpShortIcon, ArrowUpSquareFillIcon, AssetIcon, Avatar, Badge, BarChartIcon, type BaseActionSheetItem, type BaseIconProps, BattleIcon, Box, type BoxProps, Button, type ButtonProps, Calendar, CalendarIcon, CalendarMinusIcon, 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, type ColumnFixed, ConfirmDialog, type ConfirmProps, CopyIcon, DataFilter, type DataFilterItem, DataTable, type DataTableClassNames, type DataTableProps, DatePicker, type DatePickerProps, Dialog, type DialogAction, 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, EmptyStateIcon, EsOrderlyIcon, ExclamationFillIcon, type ExtensionPosition, ExtensionPositionEnum, ExtensionSlot, EyeCloseIcon, EyeIcon, FeeTierIcon, Flex, type FlexProps, Grid, HoverCard, HoverCardContent, type HoverCardProps, HoverCardRoot, HoverCardTrigger, Icon, type IconType, InfoCircleIcon, Input, InputAdditional, type InputFormatter, type InputFormatterOptions, type InputProps, LeaderboardActiveIcon, LeaderboardInactiveIcon, ListView, type Locale, LocaleContext, LocaleProvider, Logo, type LogoProps, MarketsActiveIcon, MarketsInactiveIcon, Match, type MenuItem, ModalContext, type ModalHocProps, ModalIdContext, ModalProvider, type MultiFieldSort, type MultiSortField, MultiSortHeader, type MultiSortHeaderProps, type NumeralProps, index as OUITailwind, OrderlyIcon, OrderlyThemeProvider, type OrderlyThemeProviderProps, PaginationItems, type PaginationMeta, PeopleIcon, PersonIcon, Picker, PlusIcon, Popover, PopoverAnchor, PopoverContent, PopoverRoot, PopoverTrigger, PortfolioActiveIcon, PortfolioInactiveIcon, QuestionFillIcon, ReduceIcon, RefreshIcon, ScrollArea, ScrollBar, ScrollIndicator, type ScrollIndicatorProps, Select, SelectItem, type SelectProps, ServerFillIcon, SettingFillIcon, SettingIcon, ShareIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SimpleDialog, SimpleDialogFooter, type SimpleDialogFooterProps, type SimpleDialogProps, SimpleDropdownMenu, SimpleSheet, type SizeType, Slider, type SliderMarks, type SortOrder, SortingAscIcon, SortingDescIcon, SortingIcon, Spinner, type SpinnerProps, SquareOutlinedIcon, Statistic, StatisticLabel, SwapHorizIcon, Switch, TabPanel, type TableCellFormatter, type TableCellPlainTextRenderer, type TableCellRenderer, index$1 as TableFeatures, type TableSort, Tabs, TabsBase, TabsContent, TabsList, TabsTrigger, Text, TextField, type TextFieldProps, type TextProps, type TextType, ThrottledButton, ToastTile, Toaster, TokenIcon, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger, TraderMobileIcon, TradingActiveIcon, TradingIcon, TradingInactiveIcon, TradingLeftNavIcon, TradingRewardsIcon, TriggerDialog, type TriggerDialogProps, VectorIcon, WalletIcon, boxVariants, buttonVariants, capitalizeFirstLetter, convertValueToPercentage, formatAddress, gradientTextVariants, index$2 as inputFormatter, installExtension, modal, parseNumber, registerSimpleDialog, registerSimpleSheet, scrollAreaVariants, setExtensionBuilder, statisticVariants, textVariants, tv, useLocale, useMediaQuery, useModal, useMultiSort, useObserverElement, useOrderlyTheme, usePagination, useScreen };