@orderly.network/ui 2.2.0 → 2.3.0
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 +73 -52
- package/dist/index.d.ts +73 -52
- package/dist/index.js +193 -188
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -3
package/dist/index.d.mts
CHANGED
|
@@ -2655,7 +2655,7 @@ declare const Statistic: React__default.ForwardRefExoticComponent<VariantProps<t
|
|
|
2655
2655
|
};
|
|
2656
2656
|
}>, unknown, unknown, undefined>>> & React__default.HTMLAttributes<HTMLDivElement> & {
|
|
2657
2657
|
label: string | ReactNode;
|
|
2658
|
-
valueProps?: NumeralProps
|
|
2658
|
+
valueProps?: Omit<NumeralProps, "children">;
|
|
2659
2659
|
classNames?: {
|
|
2660
2660
|
root?: string;
|
|
2661
2661
|
label?: string;
|
|
@@ -3701,7 +3701,7 @@ declare const TooltipArrow: (props: {
|
|
|
3701
3701
|
className?: string;
|
|
3702
3702
|
style?: React$1.CSSProperties;
|
|
3703
3703
|
}) => react_jsx_runtime.JSX.Element;
|
|
3704
|
-
declare const Tooltip: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipProps & Omit<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
3704
|
+
declare const Tooltip: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipProps & Omit<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref">, "content"> & {
|
|
3705
3705
|
className?: string;
|
|
3706
3706
|
content?: React$1.ReactNode;
|
|
3707
3707
|
arrow?: TooltipPrimitive.TooltipArrowProps;
|
|
@@ -3817,6 +3817,22 @@ type DateRangePickerProps = {
|
|
|
3817
3817
|
} & Omit<DayPickerRangeProps, "mode">;
|
|
3818
3818
|
declare const DateRangePicker: FC<DateRangePickerProps>;
|
|
3819
3819
|
|
|
3820
|
+
type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
3821
|
+
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
3822
|
+
declare namespace Calendar {
|
|
3823
|
+
var displayName: string;
|
|
3824
|
+
}
|
|
3825
|
+
|
|
3826
|
+
type DatePickerProps = {
|
|
3827
|
+
onChange?: (date: Date) => void;
|
|
3828
|
+
placeholder?: string;
|
|
3829
|
+
value?: Date;
|
|
3830
|
+
dateFormat?: string;
|
|
3831
|
+
size?: SizeType;
|
|
3832
|
+
className?: string;
|
|
3833
|
+
} & CalendarProps;
|
|
3834
|
+
declare const DatePicker$1: FC<DatePickerProps>;
|
|
3835
|
+
|
|
3820
3836
|
declare const selectVariants: tailwind_variants.TVReturnType<{
|
|
3821
3837
|
variant: {
|
|
3822
3838
|
outlined: {
|
|
@@ -4047,25 +4063,10 @@ type SelectWithOptionsProps<T = string> = SelectProps<T> & {
|
|
|
4047
4063
|
options: SelectOption[];
|
|
4048
4064
|
optionRenderer?: (option: SelectOption) => ReactElement;
|
|
4049
4065
|
testid?: string;
|
|
4066
|
+
prefix?: string;
|
|
4050
4067
|
};
|
|
4051
4068
|
declare const SelectWithOptions: FC<SelectWithOptionsProps>;
|
|
4052
4069
|
|
|
4053
|
-
type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
4054
|
-
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
4055
|
-
declare namespace Calendar {
|
|
4056
|
-
var displayName: string;
|
|
4057
|
-
}
|
|
4058
|
-
|
|
4059
|
-
type DatePickerProps = {
|
|
4060
|
-
onChange?: (date: Date) => void;
|
|
4061
|
-
placeholder?: string;
|
|
4062
|
-
value?: Date;
|
|
4063
|
-
dateFormat?: string;
|
|
4064
|
-
size?: SizeType;
|
|
4065
|
-
className?: string;
|
|
4066
|
-
} & CalendarProps;
|
|
4067
|
-
declare const DatePicker$1: FC<DatePickerProps>;
|
|
4068
|
-
|
|
4069
4070
|
declare const pickerVariants: tailwind_variants.TVReturnType<{
|
|
4070
4071
|
size: {
|
|
4071
4072
|
sm: string;
|
|
@@ -4175,6 +4176,10 @@ interface PickerProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, "dis
|
|
|
4175
4176
|
options: SelectOption[];
|
|
4176
4177
|
value?: SelectOption | string | number;
|
|
4177
4178
|
onValueChange?: (value: any) => void;
|
|
4179
|
+
valueRenderer?: (value: any, options: {
|
|
4180
|
+
open?: boolean;
|
|
4181
|
+
data?: any;
|
|
4182
|
+
}) => React.ReactNode;
|
|
4178
4183
|
}
|
|
4179
4184
|
type PickerRef = {};
|
|
4180
4185
|
declare const Picker: React$1.ForwardRefExoticComponent<PickerProps & React$1.RefAttributes<PickerRef>>;
|
|
@@ -4200,17 +4205,17 @@ type SymbolFilter = {
|
|
|
4200
4205
|
type PickerFilter = {
|
|
4201
4206
|
type: "picker";
|
|
4202
4207
|
} & PickerProps;
|
|
4203
|
-
type
|
|
4208
|
+
type DataFilterItem = DataFilterGeneral & (SelectFilter | DateFilter | DateRangeFilter | SymbolFilter | PickerFilter);
|
|
4204
4209
|
type DataFilterProps = {
|
|
4205
|
-
items:
|
|
4210
|
+
items: DataFilterItem[];
|
|
4206
4211
|
onFilter: (filter: {
|
|
4207
4212
|
name: string;
|
|
4208
4213
|
value: any;
|
|
4209
4214
|
}) => void;
|
|
4210
4215
|
className?: string;
|
|
4211
|
-
trailing?:
|
|
4216
|
+
trailing?: React__default.ReactNode;
|
|
4212
4217
|
};
|
|
4213
|
-
declare const DataFilter:
|
|
4218
|
+
declare const DataFilter: React__default.FC<DataFilterProps>;
|
|
4214
4219
|
|
|
4215
4220
|
declare const usePagination: (initial?: {
|
|
4216
4221
|
page?: number;
|
|
@@ -4231,12 +4236,7 @@ declare const usePagination: (initial?: {
|
|
|
4231
4236
|
pageSize: number;
|
|
4232
4237
|
pageTotal: number;
|
|
4233
4238
|
};
|
|
4234
|
-
pagination:
|
|
4235
|
-
page: number;
|
|
4236
|
-
pageSize: number;
|
|
4237
|
-
onPageChange: React$1.Dispatch<React$1.SetStateAction<number>>;
|
|
4238
|
-
onPageSizeChange: (size: number) => void;
|
|
4239
|
-
};
|
|
4239
|
+
pagination: PaginationMeta;
|
|
4240
4240
|
parsePagination: (meta?: {
|
|
4241
4241
|
total: number;
|
|
4242
4242
|
current_page: number;
|
|
@@ -6142,9 +6142,11 @@ type TabsProps<T = string> = {
|
|
|
6142
6142
|
leading?: ReactNode;
|
|
6143
6143
|
trailing?: ReactNode;
|
|
6144
6144
|
classNames?: {
|
|
6145
|
+
tabsListContainer?: string;
|
|
6145
6146
|
tabsList?: string;
|
|
6146
6147
|
tabsContent?: string;
|
|
6147
6148
|
scrollIndicator?: string;
|
|
6149
|
+
trigger?: string;
|
|
6148
6150
|
};
|
|
6149
6151
|
contentVisible?: boolean;
|
|
6150
6152
|
showScrollIndicator?: boolean;
|
|
@@ -6538,7 +6540,7 @@ type PopoverProps = PopoverPrimitive.PopoverProps & {
|
|
|
6538
6540
|
*/
|
|
6539
6541
|
declare const Popover: React$1.FC<React$1.PropsWithChildren<PopoverProps>>;
|
|
6540
6542
|
|
|
6541
|
-
declare const
|
|
6543
|
+
declare const cardVariants: tailwind_variants.TVReturnType<{
|
|
6542
6544
|
border: {
|
|
6543
6545
|
true: string;
|
|
6544
6546
|
};
|
|
@@ -6755,23 +6757,9 @@ declare const CardBase: React__default.ForwardRefExoticComponent<ComponentPropsW
|
|
|
6755
6757
|
12: string;
|
|
6756
6758
|
16: string;
|
|
6757
6759
|
};
|
|
6758
|
-
}>, unknown, unknown, undefined
|
|
6759
|
-
|
|
6760
|
-
declare const
|
|
6761
|
-
declare const CardDescription: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
6762
|
-
declare const CardContent: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6763
|
-
declare const CardFooter: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6764
|
-
|
|
6765
|
-
declare const Card: React$1.ForwardRefExoticComponent<{
|
|
6766
|
-
title?: ReactNode;
|
|
6767
|
-
footer?: ReactNode;
|
|
6768
|
-
classNames?: {
|
|
6769
|
-
root?: string;
|
|
6770
|
-
header?: string;
|
|
6771
|
-
content?: string;
|
|
6772
|
-
footer?: string;
|
|
6773
|
-
};
|
|
6774
|
-
} & ComponentPropsWithout<"div", "color"> & tailwind_variants.VariantProps<tailwind_variants.TVReturnType<{
|
|
6760
|
+
}>, unknown, unknown, undefined>>;
|
|
6761
|
+
type BaseCardProps = ComponentPropsWithout<"div", "color" | "title"> & VariantProps<typeof cardVariants>;
|
|
6762
|
+
declare const CardBase: React__default.ForwardRefExoticComponent<ComponentPropsWithout<"div", "title" | "color"> & VariantProps<tailwind_variants.TVReturnType<{
|
|
6775
6763
|
border: {
|
|
6776
6764
|
true: string;
|
|
6777
6765
|
};
|
|
@@ -6988,7 +6976,24 @@ declare const Card: React$1.ForwardRefExoticComponent<{
|
|
|
6988
6976
|
12: string;
|
|
6989
6977
|
16: string;
|
|
6990
6978
|
};
|
|
6991
|
-
}>, unknown, unknown, undefined>>> &
|
|
6979
|
+
}>, unknown, unknown, undefined>>> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6980
|
+
declare const CardHeader: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6981
|
+
declare const CardTitle: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLHeadingElement> & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
6982
|
+
declare const CardDescription: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
6983
|
+
declare const CardContent: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6984
|
+
declare const CardFooter: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6985
|
+
|
|
6986
|
+
interface CardProps extends BaseCardProps {
|
|
6987
|
+
title?: ReactNode;
|
|
6988
|
+
footer?: ReactNode;
|
|
6989
|
+
classNames?: {
|
|
6990
|
+
root?: string;
|
|
6991
|
+
header?: string;
|
|
6992
|
+
content?: string;
|
|
6993
|
+
footer?: string;
|
|
6994
|
+
};
|
|
6995
|
+
}
|
|
6996
|
+
declare const Card: React$1.ForwardRefExoticComponent<CardProps & {
|
|
6992
6997
|
children?: ReactNode | undefined;
|
|
6993
6998
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
6994
6999
|
|
|
@@ -6999,7 +7004,7 @@ interface HoverCardProps extends React$1.ComponentPropsWithoutRef<typeof HoverCa
|
|
|
6999
7004
|
className?: string;
|
|
7000
7005
|
content: React$1.ReactNode;
|
|
7001
7006
|
}
|
|
7002
|
-
declare const HoverCard: React$1.FC<HoverCardProps & React$1.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>>;
|
|
7007
|
+
declare const HoverCard: React$1.FC<HoverCardProps & Omit<React$1.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>, "content">>;
|
|
7003
7008
|
|
|
7004
7009
|
type DatePickerType = typeof DatePicker$1 & {
|
|
7005
7010
|
range: typeof DateRangePicker;
|
|
@@ -7727,9 +7732,7 @@ interface BaseIconProps extends ComponentPropsWithout<"svg", RemovedProps>, Vari
|
|
|
7727
7732
|
size?: number;
|
|
7728
7733
|
opacity?: number;
|
|
7729
7734
|
}
|
|
7730
|
-
declare const BaseIcon: React__default.ForwardRefExoticComponent<BaseIconProps &
|
|
7731
|
-
children?: React__default.ReactNode | undefined;
|
|
7732
|
-
} & React__default.RefAttributes<SVGSVGElement>>;
|
|
7735
|
+
declare const BaseIcon: React__default.ForwardRefExoticComponent<BaseIconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
7733
7736
|
|
|
7734
7737
|
type ChainIconProps = {
|
|
7735
7738
|
size?: "2xs" | "xs" | "sm" | "md" | "lg";
|
|
@@ -7809,6 +7812,8 @@ declare const ArrowUpSquareFillIcon: React__default.ForwardRefExoticComponent<Ba
|
|
|
7809
7812
|
|
|
7810
7813
|
declare const ArrowDownSquareFillIcon: React__default.ForwardRefExoticComponent<BaseIconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
7811
7814
|
|
|
7815
|
+
declare const ArrowLeftRightSquareFill: React__default.ForwardRefExoticComponent<BaseIconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
7816
|
+
|
|
7812
7817
|
declare const FeeTierIcon: React__default.ForwardRefExoticComponent<BaseIconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
7813
7818
|
|
|
7814
7819
|
declare const EditIcon: React__default.ForwardRefExoticComponent<BaseIconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
@@ -7825,6 +7830,8 @@ declare const OrderlyIcon: (props: BaseIconProps) => react_jsx_runtime.JSX.Eleme
|
|
|
7825
7830
|
|
|
7826
7831
|
declare const EsOrderlyIcon: (props: BaseIconProps) => react_jsx_runtime.JSX.Element;
|
|
7827
7832
|
|
|
7833
|
+
declare const InfoCircleIcon: React__default.ForwardRefExoticComponent<BaseIconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
7834
|
+
|
|
7828
7835
|
declare const avatarVariants: tailwind_variants.TVReturnType<{
|
|
7829
7836
|
size: {
|
|
7830
7837
|
'2xs': {
|
|
@@ -8260,6 +8267,10 @@ declare const LeaderboardActiveIcon: (props: BaseIconProps) => react_jsx_runtime
|
|
|
8260
8267
|
|
|
8261
8268
|
declare const LeaderboardInactiveIcon: (props: BaseIconProps) => react_jsx_runtime.JSX.Element;
|
|
8262
8269
|
|
|
8270
|
+
declare const MarketsActiveIcon: (props: BaseIconProps) => react_jsx_runtime.JSX.Element;
|
|
8271
|
+
|
|
8272
|
+
declare const MarketsInactiveIcon: (props: BaseIconProps) => react_jsx_runtime.JSX.Element;
|
|
8273
|
+
|
|
8263
8274
|
type IconType = typeof BaseIcon & {
|
|
8264
8275
|
combine: typeof CombineIcon;
|
|
8265
8276
|
};
|
|
@@ -8332,6 +8343,10 @@ type ComponentOverrides = {
|
|
|
8332
8343
|
* */
|
|
8333
8344
|
showTestnet: boolean;
|
|
8334
8345
|
};
|
|
8346
|
+
/** @hidden */
|
|
8347
|
+
announcement: {
|
|
8348
|
+
dataAdapter: (data: any[]) => any[];
|
|
8349
|
+
};
|
|
8335
8350
|
};
|
|
8336
8351
|
type GetComponentTheme = <T extends keyof ComponentOverrides>(component: T, defaultValue?: ComponentOverrides[T]) => ComponentOverrides[T];
|
|
8337
8352
|
type OrderlyThemeContextState = {
|
|
@@ -8496,4 +8511,10 @@ declare const LocaleProvider: FC<LocaleProviderProps>;
|
|
|
8496
8511
|
type LocaleComponentName = Exclude<keyof Locale, "locale">;
|
|
8497
8512
|
declare const useLocale: <C extends LocaleComponentName = LocaleComponentName>(componentName: C, defaultLocale?: Locale[C] | (() => Locale[C])) => readonly [NonNullable<Locale[C]>, string];
|
|
8498
8513
|
|
|
8499
|
-
|
|
8514
|
+
type ScrollIndicatorProps = {
|
|
8515
|
+
children: ReactNode;
|
|
8516
|
+
className?: string;
|
|
8517
|
+
};
|
|
8518
|
+
declare const ScrollIndicator: FC<ScrollIndicatorProps>;
|
|
8519
|
+
|
|
8520
|
+
export { ActionSheet, type ActionSheetItem, AffiliateIcon, AlertDialog, type AlertDialogProps, ArrowDownShortIcon, ArrowDownSquareFillIcon, ArrowDownUpIcon, ArrowLeftRightIcon, ArrowLeftRightSquareFill, ArrowLeftShortIcon, ArrowRightShortIcon, ArrowUpShortIcon, ArrowUpSquareFillIcon, Avatar, Badge, type BaseActionSheetItem, type BaseIconProps, 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, 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, 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, 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, TradingInactiveIcon, TradingRewardsIcon, TriggerDialog, type TriggerDialogProps, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -2655,7 +2655,7 @@ declare const Statistic: React__default.ForwardRefExoticComponent<VariantProps<t
|
|
|
2655
2655
|
};
|
|
2656
2656
|
}>, unknown, unknown, undefined>>> & React__default.HTMLAttributes<HTMLDivElement> & {
|
|
2657
2657
|
label: string | ReactNode;
|
|
2658
|
-
valueProps?: NumeralProps
|
|
2658
|
+
valueProps?: Omit<NumeralProps, "children">;
|
|
2659
2659
|
classNames?: {
|
|
2660
2660
|
root?: string;
|
|
2661
2661
|
label?: string;
|
|
@@ -3701,7 +3701,7 @@ declare const TooltipArrow: (props: {
|
|
|
3701
3701
|
className?: string;
|
|
3702
3702
|
style?: React$1.CSSProperties;
|
|
3703
3703
|
}) => react_jsx_runtime.JSX.Element;
|
|
3704
|
-
declare const Tooltip: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipProps & Omit<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
3704
|
+
declare const Tooltip: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipProps & Omit<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref">, "content"> & {
|
|
3705
3705
|
className?: string;
|
|
3706
3706
|
content?: React$1.ReactNode;
|
|
3707
3707
|
arrow?: TooltipPrimitive.TooltipArrowProps;
|
|
@@ -3817,6 +3817,22 @@ type DateRangePickerProps = {
|
|
|
3817
3817
|
} & Omit<DayPickerRangeProps, "mode">;
|
|
3818
3818
|
declare const DateRangePicker: FC<DateRangePickerProps>;
|
|
3819
3819
|
|
|
3820
|
+
type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
3821
|
+
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
3822
|
+
declare namespace Calendar {
|
|
3823
|
+
var displayName: string;
|
|
3824
|
+
}
|
|
3825
|
+
|
|
3826
|
+
type DatePickerProps = {
|
|
3827
|
+
onChange?: (date: Date) => void;
|
|
3828
|
+
placeholder?: string;
|
|
3829
|
+
value?: Date;
|
|
3830
|
+
dateFormat?: string;
|
|
3831
|
+
size?: SizeType;
|
|
3832
|
+
className?: string;
|
|
3833
|
+
} & CalendarProps;
|
|
3834
|
+
declare const DatePicker$1: FC<DatePickerProps>;
|
|
3835
|
+
|
|
3820
3836
|
declare const selectVariants: tailwind_variants.TVReturnType<{
|
|
3821
3837
|
variant: {
|
|
3822
3838
|
outlined: {
|
|
@@ -4047,25 +4063,10 @@ type SelectWithOptionsProps<T = string> = SelectProps<T> & {
|
|
|
4047
4063
|
options: SelectOption[];
|
|
4048
4064
|
optionRenderer?: (option: SelectOption) => ReactElement;
|
|
4049
4065
|
testid?: string;
|
|
4066
|
+
prefix?: string;
|
|
4050
4067
|
};
|
|
4051
4068
|
declare const SelectWithOptions: FC<SelectWithOptionsProps>;
|
|
4052
4069
|
|
|
4053
|
-
type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
4054
|
-
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
4055
|
-
declare namespace Calendar {
|
|
4056
|
-
var displayName: string;
|
|
4057
|
-
}
|
|
4058
|
-
|
|
4059
|
-
type DatePickerProps = {
|
|
4060
|
-
onChange?: (date: Date) => void;
|
|
4061
|
-
placeholder?: string;
|
|
4062
|
-
value?: Date;
|
|
4063
|
-
dateFormat?: string;
|
|
4064
|
-
size?: SizeType;
|
|
4065
|
-
className?: string;
|
|
4066
|
-
} & CalendarProps;
|
|
4067
|
-
declare const DatePicker$1: FC<DatePickerProps>;
|
|
4068
|
-
|
|
4069
4070
|
declare const pickerVariants: tailwind_variants.TVReturnType<{
|
|
4070
4071
|
size: {
|
|
4071
4072
|
sm: string;
|
|
@@ -4175,6 +4176,10 @@ interface PickerProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, "dis
|
|
|
4175
4176
|
options: SelectOption[];
|
|
4176
4177
|
value?: SelectOption | string | number;
|
|
4177
4178
|
onValueChange?: (value: any) => void;
|
|
4179
|
+
valueRenderer?: (value: any, options: {
|
|
4180
|
+
open?: boolean;
|
|
4181
|
+
data?: any;
|
|
4182
|
+
}) => React.ReactNode;
|
|
4178
4183
|
}
|
|
4179
4184
|
type PickerRef = {};
|
|
4180
4185
|
declare const Picker: React$1.ForwardRefExoticComponent<PickerProps & React$1.RefAttributes<PickerRef>>;
|
|
@@ -4200,17 +4205,17 @@ type SymbolFilter = {
|
|
|
4200
4205
|
type PickerFilter = {
|
|
4201
4206
|
type: "picker";
|
|
4202
4207
|
} & PickerProps;
|
|
4203
|
-
type
|
|
4208
|
+
type DataFilterItem = DataFilterGeneral & (SelectFilter | DateFilter | DateRangeFilter | SymbolFilter | PickerFilter);
|
|
4204
4209
|
type DataFilterProps = {
|
|
4205
|
-
items:
|
|
4210
|
+
items: DataFilterItem[];
|
|
4206
4211
|
onFilter: (filter: {
|
|
4207
4212
|
name: string;
|
|
4208
4213
|
value: any;
|
|
4209
4214
|
}) => void;
|
|
4210
4215
|
className?: string;
|
|
4211
|
-
trailing?:
|
|
4216
|
+
trailing?: React__default.ReactNode;
|
|
4212
4217
|
};
|
|
4213
|
-
declare const DataFilter:
|
|
4218
|
+
declare const DataFilter: React__default.FC<DataFilterProps>;
|
|
4214
4219
|
|
|
4215
4220
|
declare const usePagination: (initial?: {
|
|
4216
4221
|
page?: number;
|
|
@@ -4231,12 +4236,7 @@ declare const usePagination: (initial?: {
|
|
|
4231
4236
|
pageSize: number;
|
|
4232
4237
|
pageTotal: number;
|
|
4233
4238
|
};
|
|
4234
|
-
pagination:
|
|
4235
|
-
page: number;
|
|
4236
|
-
pageSize: number;
|
|
4237
|
-
onPageChange: React$1.Dispatch<React$1.SetStateAction<number>>;
|
|
4238
|
-
onPageSizeChange: (size: number) => void;
|
|
4239
|
-
};
|
|
4239
|
+
pagination: PaginationMeta;
|
|
4240
4240
|
parsePagination: (meta?: {
|
|
4241
4241
|
total: number;
|
|
4242
4242
|
current_page: number;
|
|
@@ -6142,9 +6142,11 @@ type TabsProps<T = string> = {
|
|
|
6142
6142
|
leading?: ReactNode;
|
|
6143
6143
|
trailing?: ReactNode;
|
|
6144
6144
|
classNames?: {
|
|
6145
|
+
tabsListContainer?: string;
|
|
6145
6146
|
tabsList?: string;
|
|
6146
6147
|
tabsContent?: string;
|
|
6147
6148
|
scrollIndicator?: string;
|
|
6149
|
+
trigger?: string;
|
|
6148
6150
|
};
|
|
6149
6151
|
contentVisible?: boolean;
|
|
6150
6152
|
showScrollIndicator?: boolean;
|
|
@@ -6538,7 +6540,7 @@ type PopoverProps = PopoverPrimitive.PopoverProps & {
|
|
|
6538
6540
|
*/
|
|
6539
6541
|
declare const Popover: React$1.FC<React$1.PropsWithChildren<PopoverProps>>;
|
|
6540
6542
|
|
|
6541
|
-
declare const
|
|
6543
|
+
declare const cardVariants: tailwind_variants.TVReturnType<{
|
|
6542
6544
|
border: {
|
|
6543
6545
|
true: string;
|
|
6544
6546
|
};
|
|
@@ -6755,23 +6757,9 @@ declare const CardBase: React__default.ForwardRefExoticComponent<ComponentPropsW
|
|
|
6755
6757
|
12: string;
|
|
6756
6758
|
16: string;
|
|
6757
6759
|
};
|
|
6758
|
-
}>, unknown, unknown, undefined
|
|
6759
|
-
|
|
6760
|
-
declare const
|
|
6761
|
-
declare const CardDescription: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
6762
|
-
declare const CardContent: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6763
|
-
declare const CardFooter: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6764
|
-
|
|
6765
|
-
declare const Card: React$1.ForwardRefExoticComponent<{
|
|
6766
|
-
title?: ReactNode;
|
|
6767
|
-
footer?: ReactNode;
|
|
6768
|
-
classNames?: {
|
|
6769
|
-
root?: string;
|
|
6770
|
-
header?: string;
|
|
6771
|
-
content?: string;
|
|
6772
|
-
footer?: string;
|
|
6773
|
-
};
|
|
6774
|
-
} & ComponentPropsWithout<"div", "color"> & tailwind_variants.VariantProps<tailwind_variants.TVReturnType<{
|
|
6760
|
+
}>, unknown, unknown, undefined>>;
|
|
6761
|
+
type BaseCardProps = ComponentPropsWithout<"div", "color" | "title"> & VariantProps<typeof cardVariants>;
|
|
6762
|
+
declare const CardBase: React__default.ForwardRefExoticComponent<ComponentPropsWithout<"div", "title" | "color"> & VariantProps<tailwind_variants.TVReturnType<{
|
|
6775
6763
|
border: {
|
|
6776
6764
|
true: string;
|
|
6777
6765
|
};
|
|
@@ -6988,7 +6976,24 @@ declare const Card: React$1.ForwardRefExoticComponent<{
|
|
|
6988
6976
|
12: string;
|
|
6989
6977
|
16: string;
|
|
6990
6978
|
};
|
|
6991
|
-
}>, unknown, unknown, undefined>>> &
|
|
6979
|
+
}>, unknown, unknown, undefined>>> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6980
|
+
declare const CardHeader: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6981
|
+
declare const CardTitle: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLHeadingElement> & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
6982
|
+
declare const CardDescription: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
6983
|
+
declare const CardContent: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6984
|
+
declare const CardFooter: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6985
|
+
|
|
6986
|
+
interface CardProps extends BaseCardProps {
|
|
6987
|
+
title?: ReactNode;
|
|
6988
|
+
footer?: ReactNode;
|
|
6989
|
+
classNames?: {
|
|
6990
|
+
root?: string;
|
|
6991
|
+
header?: string;
|
|
6992
|
+
content?: string;
|
|
6993
|
+
footer?: string;
|
|
6994
|
+
};
|
|
6995
|
+
}
|
|
6996
|
+
declare const Card: React$1.ForwardRefExoticComponent<CardProps & {
|
|
6992
6997
|
children?: ReactNode | undefined;
|
|
6993
6998
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
6994
6999
|
|
|
@@ -6999,7 +7004,7 @@ interface HoverCardProps extends React$1.ComponentPropsWithoutRef<typeof HoverCa
|
|
|
6999
7004
|
className?: string;
|
|
7000
7005
|
content: React$1.ReactNode;
|
|
7001
7006
|
}
|
|
7002
|
-
declare const HoverCard: React$1.FC<HoverCardProps & React$1.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>>;
|
|
7007
|
+
declare const HoverCard: React$1.FC<HoverCardProps & Omit<React$1.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>, "content">>;
|
|
7003
7008
|
|
|
7004
7009
|
type DatePickerType = typeof DatePicker$1 & {
|
|
7005
7010
|
range: typeof DateRangePicker;
|
|
@@ -7727,9 +7732,7 @@ interface BaseIconProps extends ComponentPropsWithout<"svg", RemovedProps>, Vari
|
|
|
7727
7732
|
size?: number;
|
|
7728
7733
|
opacity?: number;
|
|
7729
7734
|
}
|
|
7730
|
-
declare const BaseIcon: React__default.ForwardRefExoticComponent<BaseIconProps &
|
|
7731
|
-
children?: React__default.ReactNode | undefined;
|
|
7732
|
-
} & React__default.RefAttributes<SVGSVGElement>>;
|
|
7735
|
+
declare const BaseIcon: React__default.ForwardRefExoticComponent<BaseIconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
7733
7736
|
|
|
7734
7737
|
type ChainIconProps = {
|
|
7735
7738
|
size?: "2xs" | "xs" | "sm" | "md" | "lg";
|
|
@@ -7809,6 +7812,8 @@ declare const ArrowUpSquareFillIcon: React__default.ForwardRefExoticComponent<Ba
|
|
|
7809
7812
|
|
|
7810
7813
|
declare const ArrowDownSquareFillIcon: React__default.ForwardRefExoticComponent<BaseIconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
7811
7814
|
|
|
7815
|
+
declare const ArrowLeftRightSquareFill: React__default.ForwardRefExoticComponent<BaseIconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
7816
|
+
|
|
7812
7817
|
declare const FeeTierIcon: React__default.ForwardRefExoticComponent<BaseIconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
7813
7818
|
|
|
7814
7819
|
declare const EditIcon: React__default.ForwardRefExoticComponent<BaseIconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
@@ -7825,6 +7830,8 @@ declare const OrderlyIcon: (props: BaseIconProps) => react_jsx_runtime.JSX.Eleme
|
|
|
7825
7830
|
|
|
7826
7831
|
declare const EsOrderlyIcon: (props: BaseIconProps) => react_jsx_runtime.JSX.Element;
|
|
7827
7832
|
|
|
7833
|
+
declare const InfoCircleIcon: React__default.ForwardRefExoticComponent<BaseIconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
7834
|
+
|
|
7828
7835
|
declare const avatarVariants: tailwind_variants.TVReturnType<{
|
|
7829
7836
|
size: {
|
|
7830
7837
|
'2xs': {
|
|
@@ -8260,6 +8267,10 @@ declare const LeaderboardActiveIcon: (props: BaseIconProps) => react_jsx_runtime
|
|
|
8260
8267
|
|
|
8261
8268
|
declare const LeaderboardInactiveIcon: (props: BaseIconProps) => react_jsx_runtime.JSX.Element;
|
|
8262
8269
|
|
|
8270
|
+
declare const MarketsActiveIcon: (props: BaseIconProps) => react_jsx_runtime.JSX.Element;
|
|
8271
|
+
|
|
8272
|
+
declare const MarketsInactiveIcon: (props: BaseIconProps) => react_jsx_runtime.JSX.Element;
|
|
8273
|
+
|
|
8263
8274
|
type IconType = typeof BaseIcon & {
|
|
8264
8275
|
combine: typeof CombineIcon;
|
|
8265
8276
|
};
|
|
@@ -8332,6 +8343,10 @@ type ComponentOverrides = {
|
|
|
8332
8343
|
* */
|
|
8333
8344
|
showTestnet: boolean;
|
|
8334
8345
|
};
|
|
8346
|
+
/** @hidden */
|
|
8347
|
+
announcement: {
|
|
8348
|
+
dataAdapter: (data: any[]) => any[];
|
|
8349
|
+
};
|
|
8335
8350
|
};
|
|
8336
8351
|
type GetComponentTheme = <T extends keyof ComponentOverrides>(component: T, defaultValue?: ComponentOverrides[T]) => ComponentOverrides[T];
|
|
8337
8352
|
type OrderlyThemeContextState = {
|
|
@@ -8496,4 +8511,10 @@ declare const LocaleProvider: FC<LocaleProviderProps>;
|
|
|
8496
8511
|
type LocaleComponentName = Exclude<keyof Locale, "locale">;
|
|
8497
8512
|
declare const useLocale: <C extends LocaleComponentName = LocaleComponentName>(componentName: C, defaultLocale?: Locale[C] | (() => Locale[C])) => readonly [NonNullable<Locale[C]>, string];
|
|
8498
8513
|
|
|
8499
|
-
|
|
8514
|
+
type ScrollIndicatorProps = {
|
|
8515
|
+
children: ReactNode;
|
|
8516
|
+
className?: string;
|
|
8517
|
+
};
|
|
8518
|
+
declare const ScrollIndicator: FC<ScrollIndicatorProps>;
|
|
8519
|
+
|
|
8520
|
+
export { ActionSheet, type ActionSheetItem, AffiliateIcon, AlertDialog, type AlertDialogProps, ArrowDownShortIcon, ArrowDownSquareFillIcon, ArrowDownUpIcon, ArrowLeftRightIcon, ArrowLeftRightSquareFill, ArrowLeftShortIcon, ArrowRightShortIcon, ArrowUpShortIcon, ArrowUpSquareFillIcon, Avatar, Badge, type BaseActionSheetItem, type BaseIconProps, 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, 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, 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, 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, TradingInactiveIcon, TradingRewardsIcon, TriggerDialog, type TriggerDialogProps, 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 };
|