@orderly.network/ui 2.10.2 → 3.0.0-beta.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.d.mts CHANGED
@@ -28,6 +28,8 @@ export * from 'embla-carousel-react';
28
28
  export { default as useEmblaCarousel } from 'embla-carousel-react';
29
29
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
30
30
  import { DropdownMenuContentProps } from '@radix-ui/react-dropdown-menu';
31
+ import { ExtensionPosition } from '@orderly.network/plugin-core';
32
+ export { Extension, ExtensionBuilder, ExtensionOptions, ExtensionPosition, ExtensionPositionEnum, ExtensionProvider, ExtensionSlot, InterceptorTargetPropsMap, KnownInterceptorTarget, OrderlyExtensionRegistry, OrderlyPlugin, OrderlyPluginAPI, OrderlyPluginContextValue, OrderlyPluginProvider, OrderlyPluginRegistry, OrderlySDK, PluginErrorBoundary, PluginInterceptor, PluginInterceptorComponent, PluginRegistrationFn, PluginScopeContext, PluginScopeProvider, PluginScopeValue, createInterceptor, createOrderlySDK, injectable, installExtension, positionToPath, setExtensionBuilder, useExtensionContext, useInjectedComponent, useOrderlyPluginContext, usePluginScope } from '@orderly.network/plugin-core';
31
33
  import * as tailwindcss_types_config from 'tailwindcss/types/config';
32
34
  export * from 'embla-carousel-auto-scroll';
33
35
  export { default as AutoScroll } from 'embla-carousel-auto-scroll';
@@ -185,6 +187,98 @@ declare const ThrottledButton: React__default.ForwardRefExoticComponent<ButtonPr
185
187
  children?: React__default.ReactNode | undefined;
186
188
  } & React__default.RefAttributes<HTMLButtonElement>>;
187
189
 
190
+ declare const iconButtonVariants: tailwind_variants.TVReturnType<{
191
+ color: {
192
+ primary: string[];
193
+ secondary: string[];
194
+ success: string[];
195
+ buy: string[];
196
+ danger: string[];
197
+ sell: string[];
198
+ warning: string[];
199
+ gray: string[];
200
+ light: string[];
201
+ };
202
+ }, undefined, string[], tailwind_variants_dist_config.TVConfig<{
203
+ color: {
204
+ primary: string[];
205
+ secondary: string[];
206
+ success: string[];
207
+ buy: string[];
208
+ danger: string[];
209
+ sell: string[];
210
+ warning: string[];
211
+ gray: string[];
212
+ light: string[];
213
+ };
214
+ }, {
215
+ color: {
216
+ primary: string[];
217
+ secondary: string[];
218
+ success: string[];
219
+ buy: string[];
220
+ danger: string[];
221
+ sell: string[];
222
+ warning: string[];
223
+ gray: string[];
224
+ light: string[];
225
+ };
226
+ }>, {
227
+ color: {
228
+ primary: string[];
229
+ secondary: string[];
230
+ success: string[];
231
+ buy: string[];
232
+ danger: string[];
233
+ sell: string[];
234
+ warning: string[];
235
+ gray: string[];
236
+ light: string[];
237
+ };
238
+ }, undefined, tailwind_variants.TVReturnType<{
239
+ color: {
240
+ primary: string[];
241
+ secondary: string[];
242
+ success: string[];
243
+ buy: string[];
244
+ danger: string[];
245
+ sell: string[];
246
+ warning: string[];
247
+ gray: string[];
248
+ light: string[];
249
+ };
250
+ }, undefined, string[], tailwind_variants_dist_config.TVConfig<{
251
+ color: {
252
+ primary: string[];
253
+ secondary: string[];
254
+ success: string[];
255
+ buy: string[];
256
+ danger: string[];
257
+ sell: string[];
258
+ warning: string[];
259
+ gray: string[];
260
+ light: string[];
261
+ };
262
+ }, {
263
+ color: {
264
+ primary: string[];
265
+ secondary: string[];
266
+ success: string[];
267
+ buy: string[];
268
+ danger: string[];
269
+ sell: string[];
270
+ warning: string[];
271
+ gray: string[];
272
+ light: string[];
273
+ };
274
+ }>, unknown, unknown, undefined>>;
275
+ interface IconButtonProps extends Omit<BaseButtonProps, "size" | "children">, VariantProps<typeof iconButtonVariants> {
276
+ children: React__default.ReactElement;
277
+ angle?: number;
278
+ "data-testid"?: string;
279
+ }
280
+ declare const IconButton: React__default.ForwardRefExoticComponent<IconButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
281
+
188
282
  declare const boxVariants: tailwind_variants.TVReturnType<{
189
283
  __position: {
190
284
  true: string;
@@ -4317,10 +4411,14 @@ declare function useMultiSort(props: {
4317
4411
  } | undefined;
4318
4412
  };
4319
4413
 
4320
- declare const EmptyDataState: FC<{
4414
+ /** Props for Table.EmptyDataIdentifier injectable; used by plugins for typed interceptor */
4415
+ interface EmptyDataStateProps {
4321
4416
  title?: string;
4322
4417
  className?: string;
4323
- }>;
4418
+ }
4419
+ declare const EmptyDataState: FC<EmptyDataStateProps>;
4420
+ /** Injectable default for Table.EmptyDataIdentifier slot - plugins can intercept via OrderlyPluginProvider */
4421
+ declare const InjectableEmptyDataState: React$1.ComponentType<EmptyDataStateProps>;
4324
4422
 
4325
4423
  type MultiSortHeaderProps = {
4326
4424
  column: Column<any>;
@@ -8558,61 +8656,25 @@ type IconType = typeof BaseIcon & {
8558
8656
  };
8559
8657
  declare const Icon: IconType;
8560
8658
 
8561
- type ExtensionPosition = ExtensionPositionEnum | string;
8562
- declare enum ExtensionPositionEnum {
8563
- DepositForm = "depositForm",
8564
- WithdrawForm = "withdrawForm",
8565
- /**
8566
- * Wallet button
8567
- */
8568
- AccountMenu = "accountMenu",
8569
- MobileAccountMenu = "mobileAccountMenu",
8570
- MainMenus = "mainMenus",
8571
- EmptyDataIdentifier = "emptyDataIdentifier"
8659
+ /** Props for Deposit.DepositForm injectable; used by plugins for typed interceptor */
8660
+ interface DepositFormProps {
8661
+ onOk?: () => void;
8662
+ position?: string;
8663
+ [k: string]: unknown;
8572
8664
  }
8573
8665
 
8574
8666
  /**
8575
- * @name ExtensionOptions
8576
- * @description Extension meta data
8667
+ * Module augmentation: maps interceptor target paths to their component props types.
8668
+ * Import this file (or import from @orderly.network/ui) to enable typed props in
8669
+ * createInterceptor('Deposit.DepositForm', (Original, props, api) => ...).
8577
8670
  */
8578
- type ExtensionOptions<Props> = {
8579
- name: string;
8580
- /**
8581
- * which ctx data the extension available to use
8582
- */
8583
- scope?: string[];
8584
- /**
8585
- * @description define the extension require @orderly.network/hook version, optional
8586
- * @default "*"
8587
- */
8588
- engines?: string;
8589
- positions: ExtensionPosition[];
8590
- builder?: (props: any) => Props;
8591
- __isInternal?: boolean;
8592
- entry?: string[];
8593
- /**
8594
- * fire when the extension is installed
8595
- * @returns
8596
- */
8597
- installed?: () => Promise<void>;
8598
- onInit?: () => void;
8599
- activate?: () => Promise<void>;
8600
- deactivate?: () => Promise<void>;
8601
- };
8602
- type ExtensionRenderComponentType<Props> = ElementType<Props> | ((props: Props) => ReactElement);
8603
- declare const installExtension: <Props>(options: ExtensionOptions<Props>) => ((component: ExtensionRenderComponentType<Props>) => void);
8604
- /**
8605
- * update the extension builder function
8606
- */
8607
- declare const setExtensionBuilder: <Props extends unknown = {}>(position: ExtensionPosition, builder: () => Props) => void;
8608
8671
 
8609
- interface SlotProps {
8610
- position: ExtensionPosition;
8611
- defaultWidget?: React__default.FC;
8612
- scope?: string[];
8613
- [key: string]: any;
8672
+ declare module "@orderly.network/plugin-core" {
8673
+ interface InterceptorTargetPropsMap {
8674
+ "Deposit.DepositForm": DepositFormProps;
8675
+ "Table.EmptyDataIdentifier": EmptyDataStateProps;
8676
+ }
8614
8677
  }
8615
- declare const ExtensionSlot: React__default.FC<SlotProps>;
8616
8678
 
8617
8679
  declare const basePlugin: () => {
8618
8680
  handler: tailwindcss_types_config.PluginCreator;
@@ -9318,4 +9380,4 @@ declare const DotStatus: {
9318
9380
  displayName: string;
9319
9381
  };
9320
9382
 
9321
- export { ActionSheet, type ActionSheetItem, AddCircleIcon, AffiliateIcon, AlertDialog, type AlertDialogProps, ArrowDownShortIcon, ArrowDownSquareFillIcon, ArrowDownUpIcon, ArrowLeftRightIcon, ArrowLeftRightSquareFill, ArrowLeftShortIcon, ArrowRightShortIcon, ArrowRightUpSquareFillIcon, ArrowUpShortIcon, ArrowUpSquareFillIcon, AssetIcon, Avatar, Badge, BarChartIcon, type BaseActionSheetItem, type BaseIconProps, BattleActiveIcon, BattleIcon, BattleInactiveIcon, BattleSolidActiveIcon, BattleSolidInactiveIcon, BellIcon, 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, CloseRoundFillIcon, CloseSquareFillIcon, Collapse, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type ColumnFixed, ConfirmDialog, type ConfirmProps, CopyIcon, DARK_THEME_CSS_VARS, 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, DotStatus, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuTrigger, EVMAvatar, EarnActiveIcon, EarnIcon, EarnInactiveIcon, EditIcon, Either, EmptyDataState, EmptyStateIcon, EsOrderlyIcon, ExclamationFillIcon, type ExtensionPosition, ExtensionPositionEnum, ExtensionSlot, EyeCloseIcon, EyeIcon, FeeTierIcon, Flex, type FlexProps, type FormattedTextProps, GradientText, Grid, HoverCard, HoverCardContent, type HoverCardProps, HoverCardRoot, HoverCardTrigger, Icon, type IconType, InfoCircleIcon, Input, InputAdditional, type InputFormatter, type InputFormatterOptions, type InputProps, type InputWithTooltipProps, LIGHT_THEME_CSS_VARS, LeaderboardActiveIcon, LeaderboardInactiveIcon, LeftNavVaultsIcon, ListView, type Locale, LocaleContext, LocaleProvider, Logo, type LogoProps, MarketsActiveIcon, MarketsInactiveIcon, Marquee, type MarqueeProps, type MenuItem, ModalContext, type ModalHocProps, ModalIdContext, ModalProvider, type MultiFieldSort, type MultiSortField, MultiSortHeader, type MultiSortHeaderProps, NewsFillIcon, type NumeralProps, index as OUITailwind, OrderlyIcon, OrderlyThemeProvider, type OrderlyThemeProviderProps, PaginationItems, type PaginationMeta, PeopleIcon, PerpsIcon, PersonIcon, Picker, PlusIcon, Popover, PopoverAnchor, PopoverContent, PopoverRoot, PopoverTrigger, PopupUnionIcon, PortfolioActiveIcon, PortfolioInactiveIcon, QuestionFillIcon, ReduceIcon, ReferralSolidIcon, RefreshIcon, RwaIcon, ScrollArea, ScrollBar, ScrollIndicator, type ScrollIndicatorProps, Select, SelectItem, type SelectOption, type SelectProps, SelectedChoicesFillIcon, 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, SpotIcon, SquareOutlinedIcon, StarChildChatActiveIcon, StarChildChatInactiveIcon, Statistic, StatisticLabel, SwapHorizIcon, Switch, TabPanel, type TabPanelProps, type TableCellContext, 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, type ThemeConfig, type ThemeCssVars, ThrottledButton, Tips, type TipsProps, ToastTile, Toaster, TokenIcon, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger, TraderMobileIcon, TradingActiveIcon, TradingIcon, TradingInactiveIcon, TradingLeftNavIcon, TradingRewardsIcon, TriggerDialog, type TriggerDialogProps, VaultsIcon, VectorIcon, WalletIcon, WarningIcon, WoofiStakeIcon, boxVariants, buttonVariants, capitalizeFirstLetter, convertValueToPercentage, dotStatusVariants, formatAddress, gradientTextVariants, index$2 as inputFormatter, installExtension, modal, parseNumber, registerSimpleDialog, registerSimpleSheet, scrollAreaVariants, setExtensionBuilder, startViewTransition, statisticVariants, textVariants, tv, useLocale, useLongPress, useMediaQuery, useModal, useMultiSort, useObserverElement, useOrderlyTheme, usePagination, useScreen, useThemeAttribute };
9383
+ export { ActionSheet, type ActionSheetItem, AddCircleIcon, AffiliateIcon, AlertDialog, type AlertDialogProps, ArrowDownShortIcon, ArrowDownSquareFillIcon, ArrowDownUpIcon, ArrowLeftRightIcon, ArrowLeftRightSquareFill, ArrowLeftShortIcon, ArrowRightShortIcon, ArrowRightUpSquareFillIcon, ArrowUpShortIcon, ArrowUpSquareFillIcon, AssetIcon, Avatar, Badge, BarChartIcon, type BaseActionSheetItem, type BaseIconProps, BattleActiveIcon, BattleIcon, BattleInactiveIcon, BattleSolidActiveIcon, BattleSolidInactiveIcon, BellIcon, 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, CloseRoundFillIcon, CloseSquareFillIcon, Collapse, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type ColumnFixed, ConfirmDialog, type ConfirmProps, CopyIcon, DARK_THEME_CSS_VARS, DataFilter, type DataFilterItem, DataTable, type DataTableClassNames, type DataTableProps, DatePicker, type DatePickerProps, type DepositFormProps, Dialog, type DialogAction, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, type DividerProps, DotStatus, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuTrigger, EVMAvatar, EarnActiveIcon, EarnIcon, EarnInactiveIcon, EditIcon, Either, EmptyDataState, type EmptyDataStateProps, EmptyStateIcon, EsOrderlyIcon, ExclamationFillIcon, EyeCloseIcon, EyeIcon, FeeTierIcon, Flex, type FlexProps, type FormattedTextProps, GradientText, Grid, HoverCard, HoverCardContent, type HoverCardProps, HoverCardRoot, HoverCardTrigger, Icon, IconButton, type IconButtonProps, type IconType, InfoCircleIcon, InjectableEmptyDataState, Input, InputAdditional, type InputFormatter, type InputFormatterOptions, type InputProps, type InputWithTooltipProps, LIGHT_THEME_CSS_VARS, LeaderboardActiveIcon, LeaderboardInactiveIcon, LeftNavVaultsIcon, ListView, type Locale, LocaleContext, LocaleProvider, Logo, type LogoProps, MarketsActiveIcon, MarketsInactiveIcon, Marquee, type MarqueeProps, type MenuItem, ModalContext, type ModalHocProps, ModalIdContext, ModalProvider, type MultiFieldSort, type MultiSortField, MultiSortHeader, type MultiSortHeaderProps, NewsFillIcon, type NumeralProps, index as OUITailwind, OrderlyIcon, OrderlyThemeProvider, type OrderlyThemeProviderProps, PaginationItems, type PaginationMeta, PeopleIcon, PerpsIcon, PersonIcon, Picker, PlusIcon, Popover, PopoverAnchor, PopoverContent, PopoverRoot, PopoverTrigger, PopupUnionIcon, PortfolioActiveIcon, PortfolioInactiveIcon, QuestionFillIcon, ReduceIcon, ReferralSolidIcon, RefreshIcon, RwaIcon, ScrollArea, ScrollBar, ScrollIndicator, type ScrollIndicatorProps, Select, SelectItem, type SelectOption, type SelectProps, SelectedChoicesFillIcon, 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, SpotIcon, SquareOutlinedIcon, StarChildChatActiveIcon, StarChildChatInactiveIcon, Statistic, StatisticLabel, SwapHorizIcon, Switch, TabPanel, type TabPanelProps, type TableCellContext, 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, type ThemeConfig, type ThemeCssVars, ThrottledButton, Tips, type TipsProps, ToastTile, Toaster, TokenIcon, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger, TraderMobileIcon, TradingActiveIcon, TradingIcon, TradingInactiveIcon, TradingLeftNavIcon, TradingRewardsIcon, TriggerDialog, type TriggerDialogProps, VaultsIcon, VectorIcon, WalletIcon, WarningIcon, WoofiStakeIcon, boxVariants, buttonVariants, capitalizeFirstLetter, convertValueToPercentage, dotStatusVariants, formatAddress, gradientTextVariants, iconButtonVariants, index$2 as inputFormatter, modal, parseNumber, registerSimpleDialog, registerSimpleSheet, scrollAreaVariants, startViewTransition, statisticVariants, textVariants, tv, useLocale, useLongPress, useMediaQuery, useModal, useMultiSort, useObserverElement, useOrderlyTheme, usePagination, useScreen, useThemeAttribute };
package/dist/index.d.ts CHANGED
@@ -28,6 +28,8 @@ export * from 'embla-carousel-react';
28
28
  export { default as useEmblaCarousel } from 'embla-carousel-react';
29
29
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
30
30
  import { DropdownMenuContentProps } from '@radix-ui/react-dropdown-menu';
31
+ import { ExtensionPosition } from '@orderly.network/plugin-core';
32
+ export { Extension, ExtensionBuilder, ExtensionOptions, ExtensionPosition, ExtensionPositionEnum, ExtensionProvider, ExtensionSlot, InterceptorTargetPropsMap, KnownInterceptorTarget, OrderlyExtensionRegistry, OrderlyPlugin, OrderlyPluginAPI, OrderlyPluginContextValue, OrderlyPluginProvider, OrderlyPluginRegistry, OrderlySDK, PluginErrorBoundary, PluginInterceptor, PluginInterceptorComponent, PluginRegistrationFn, PluginScopeContext, PluginScopeProvider, PluginScopeValue, createInterceptor, createOrderlySDK, injectable, installExtension, positionToPath, setExtensionBuilder, useExtensionContext, useInjectedComponent, useOrderlyPluginContext, usePluginScope } from '@orderly.network/plugin-core';
31
33
  import * as tailwindcss_types_config from 'tailwindcss/types/config';
32
34
  export * from 'embla-carousel-auto-scroll';
33
35
  export { default as AutoScroll } from 'embla-carousel-auto-scroll';
@@ -185,6 +187,98 @@ declare const ThrottledButton: React__default.ForwardRefExoticComponent<ButtonPr
185
187
  children?: React__default.ReactNode | undefined;
186
188
  } & React__default.RefAttributes<HTMLButtonElement>>;
187
189
 
190
+ declare const iconButtonVariants: tailwind_variants.TVReturnType<{
191
+ color: {
192
+ primary: string[];
193
+ secondary: string[];
194
+ success: string[];
195
+ buy: string[];
196
+ danger: string[];
197
+ sell: string[];
198
+ warning: string[];
199
+ gray: string[];
200
+ light: string[];
201
+ };
202
+ }, undefined, string[], tailwind_variants_dist_config.TVConfig<{
203
+ color: {
204
+ primary: string[];
205
+ secondary: string[];
206
+ success: string[];
207
+ buy: string[];
208
+ danger: string[];
209
+ sell: string[];
210
+ warning: string[];
211
+ gray: string[];
212
+ light: string[];
213
+ };
214
+ }, {
215
+ color: {
216
+ primary: string[];
217
+ secondary: string[];
218
+ success: string[];
219
+ buy: string[];
220
+ danger: string[];
221
+ sell: string[];
222
+ warning: string[];
223
+ gray: string[];
224
+ light: string[];
225
+ };
226
+ }>, {
227
+ color: {
228
+ primary: string[];
229
+ secondary: string[];
230
+ success: string[];
231
+ buy: string[];
232
+ danger: string[];
233
+ sell: string[];
234
+ warning: string[];
235
+ gray: string[];
236
+ light: string[];
237
+ };
238
+ }, undefined, tailwind_variants.TVReturnType<{
239
+ color: {
240
+ primary: string[];
241
+ secondary: string[];
242
+ success: string[];
243
+ buy: string[];
244
+ danger: string[];
245
+ sell: string[];
246
+ warning: string[];
247
+ gray: string[];
248
+ light: string[];
249
+ };
250
+ }, undefined, string[], tailwind_variants_dist_config.TVConfig<{
251
+ color: {
252
+ primary: string[];
253
+ secondary: string[];
254
+ success: string[];
255
+ buy: string[];
256
+ danger: string[];
257
+ sell: string[];
258
+ warning: string[];
259
+ gray: string[];
260
+ light: string[];
261
+ };
262
+ }, {
263
+ color: {
264
+ primary: string[];
265
+ secondary: string[];
266
+ success: string[];
267
+ buy: string[];
268
+ danger: string[];
269
+ sell: string[];
270
+ warning: string[];
271
+ gray: string[];
272
+ light: string[];
273
+ };
274
+ }>, unknown, unknown, undefined>>;
275
+ interface IconButtonProps extends Omit<BaseButtonProps, "size" | "children">, VariantProps<typeof iconButtonVariants> {
276
+ children: React__default.ReactElement;
277
+ angle?: number;
278
+ "data-testid"?: string;
279
+ }
280
+ declare const IconButton: React__default.ForwardRefExoticComponent<IconButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
281
+
188
282
  declare const boxVariants: tailwind_variants.TVReturnType<{
189
283
  __position: {
190
284
  true: string;
@@ -4317,10 +4411,14 @@ declare function useMultiSort(props: {
4317
4411
  } | undefined;
4318
4412
  };
4319
4413
 
4320
- declare const EmptyDataState: FC<{
4414
+ /** Props for Table.EmptyDataIdentifier injectable; used by plugins for typed interceptor */
4415
+ interface EmptyDataStateProps {
4321
4416
  title?: string;
4322
4417
  className?: string;
4323
- }>;
4418
+ }
4419
+ declare const EmptyDataState: FC<EmptyDataStateProps>;
4420
+ /** Injectable default for Table.EmptyDataIdentifier slot - plugins can intercept via OrderlyPluginProvider */
4421
+ declare const InjectableEmptyDataState: React$1.ComponentType<EmptyDataStateProps>;
4324
4422
 
4325
4423
  type MultiSortHeaderProps = {
4326
4424
  column: Column<any>;
@@ -8558,61 +8656,25 @@ type IconType = typeof BaseIcon & {
8558
8656
  };
8559
8657
  declare const Icon: IconType;
8560
8658
 
8561
- type ExtensionPosition = ExtensionPositionEnum | string;
8562
- declare enum ExtensionPositionEnum {
8563
- DepositForm = "depositForm",
8564
- WithdrawForm = "withdrawForm",
8565
- /**
8566
- * Wallet button
8567
- */
8568
- AccountMenu = "accountMenu",
8569
- MobileAccountMenu = "mobileAccountMenu",
8570
- MainMenus = "mainMenus",
8571
- EmptyDataIdentifier = "emptyDataIdentifier"
8659
+ /** Props for Deposit.DepositForm injectable; used by plugins for typed interceptor */
8660
+ interface DepositFormProps {
8661
+ onOk?: () => void;
8662
+ position?: string;
8663
+ [k: string]: unknown;
8572
8664
  }
8573
8665
 
8574
8666
  /**
8575
- * @name ExtensionOptions
8576
- * @description Extension meta data
8667
+ * Module augmentation: maps interceptor target paths to their component props types.
8668
+ * Import this file (or import from @orderly.network/ui) to enable typed props in
8669
+ * createInterceptor('Deposit.DepositForm', (Original, props, api) => ...).
8577
8670
  */
8578
- type ExtensionOptions<Props> = {
8579
- name: string;
8580
- /**
8581
- * which ctx data the extension available to use
8582
- */
8583
- scope?: string[];
8584
- /**
8585
- * @description define the extension require @orderly.network/hook version, optional
8586
- * @default "*"
8587
- */
8588
- engines?: string;
8589
- positions: ExtensionPosition[];
8590
- builder?: (props: any) => Props;
8591
- __isInternal?: boolean;
8592
- entry?: string[];
8593
- /**
8594
- * fire when the extension is installed
8595
- * @returns
8596
- */
8597
- installed?: () => Promise<void>;
8598
- onInit?: () => void;
8599
- activate?: () => Promise<void>;
8600
- deactivate?: () => Promise<void>;
8601
- };
8602
- type ExtensionRenderComponentType<Props> = ElementType<Props> | ((props: Props) => ReactElement);
8603
- declare const installExtension: <Props>(options: ExtensionOptions<Props>) => ((component: ExtensionRenderComponentType<Props>) => void);
8604
- /**
8605
- * update the extension builder function
8606
- */
8607
- declare const setExtensionBuilder: <Props extends unknown = {}>(position: ExtensionPosition, builder: () => Props) => void;
8608
8671
 
8609
- interface SlotProps {
8610
- position: ExtensionPosition;
8611
- defaultWidget?: React__default.FC;
8612
- scope?: string[];
8613
- [key: string]: any;
8672
+ declare module "@orderly.network/plugin-core" {
8673
+ interface InterceptorTargetPropsMap {
8674
+ "Deposit.DepositForm": DepositFormProps;
8675
+ "Table.EmptyDataIdentifier": EmptyDataStateProps;
8676
+ }
8614
8677
  }
8615
- declare const ExtensionSlot: React__default.FC<SlotProps>;
8616
8678
 
8617
8679
  declare const basePlugin: () => {
8618
8680
  handler: tailwindcss_types_config.PluginCreator;
@@ -9318,4 +9380,4 @@ declare const DotStatus: {
9318
9380
  displayName: string;
9319
9381
  };
9320
9382
 
9321
- export { ActionSheet, type ActionSheetItem, AddCircleIcon, AffiliateIcon, AlertDialog, type AlertDialogProps, ArrowDownShortIcon, ArrowDownSquareFillIcon, ArrowDownUpIcon, ArrowLeftRightIcon, ArrowLeftRightSquareFill, ArrowLeftShortIcon, ArrowRightShortIcon, ArrowRightUpSquareFillIcon, ArrowUpShortIcon, ArrowUpSquareFillIcon, AssetIcon, Avatar, Badge, BarChartIcon, type BaseActionSheetItem, type BaseIconProps, BattleActiveIcon, BattleIcon, BattleInactiveIcon, BattleSolidActiveIcon, BattleSolidInactiveIcon, BellIcon, 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, CloseRoundFillIcon, CloseSquareFillIcon, Collapse, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type ColumnFixed, ConfirmDialog, type ConfirmProps, CopyIcon, DARK_THEME_CSS_VARS, 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, DotStatus, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuTrigger, EVMAvatar, EarnActiveIcon, EarnIcon, EarnInactiveIcon, EditIcon, Either, EmptyDataState, EmptyStateIcon, EsOrderlyIcon, ExclamationFillIcon, type ExtensionPosition, ExtensionPositionEnum, ExtensionSlot, EyeCloseIcon, EyeIcon, FeeTierIcon, Flex, type FlexProps, type FormattedTextProps, GradientText, Grid, HoverCard, HoverCardContent, type HoverCardProps, HoverCardRoot, HoverCardTrigger, Icon, type IconType, InfoCircleIcon, Input, InputAdditional, type InputFormatter, type InputFormatterOptions, type InputProps, type InputWithTooltipProps, LIGHT_THEME_CSS_VARS, LeaderboardActiveIcon, LeaderboardInactiveIcon, LeftNavVaultsIcon, ListView, type Locale, LocaleContext, LocaleProvider, Logo, type LogoProps, MarketsActiveIcon, MarketsInactiveIcon, Marquee, type MarqueeProps, type MenuItem, ModalContext, type ModalHocProps, ModalIdContext, ModalProvider, type MultiFieldSort, type MultiSortField, MultiSortHeader, type MultiSortHeaderProps, NewsFillIcon, type NumeralProps, index as OUITailwind, OrderlyIcon, OrderlyThemeProvider, type OrderlyThemeProviderProps, PaginationItems, type PaginationMeta, PeopleIcon, PerpsIcon, PersonIcon, Picker, PlusIcon, Popover, PopoverAnchor, PopoverContent, PopoverRoot, PopoverTrigger, PopupUnionIcon, PortfolioActiveIcon, PortfolioInactiveIcon, QuestionFillIcon, ReduceIcon, ReferralSolidIcon, RefreshIcon, RwaIcon, ScrollArea, ScrollBar, ScrollIndicator, type ScrollIndicatorProps, Select, SelectItem, type SelectOption, type SelectProps, SelectedChoicesFillIcon, 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, SpotIcon, SquareOutlinedIcon, StarChildChatActiveIcon, StarChildChatInactiveIcon, Statistic, StatisticLabel, SwapHorizIcon, Switch, TabPanel, type TabPanelProps, type TableCellContext, 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, type ThemeConfig, type ThemeCssVars, ThrottledButton, Tips, type TipsProps, ToastTile, Toaster, TokenIcon, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger, TraderMobileIcon, TradingActiveIcon, TradingIcon, TradingInactiveIcon, TradingLeftNavIcon, TradingRewardsIcon, TriggerDialog, type TriggerDialogProps, VaultsIcon, VectorIcon, WalletIcon, WarningIcon, WoofiStakeIcon, boxVariants, buttonVariants, capitalizeFirstLetter, convertValueToPercentage, dotStatusVariants, formatAddress, gradientTextVariants, index$2 as inputFormatter, installExtension, modal, parseNumber, registerSimpleDialog, registerSimpleSheet, scrollAreaVariants, setExtensionBuilder, startViewTransition, statisticVariants, textVariants, tv, useLocale, useLongPress, useMediaQuery, useModal, useMultiSort, useObserverElement, useOrderlyTheme, usePagination, useScreen, useThemeAttribute };
9383
+ export { ActionSheet, type ActionSheetItem, AddCircleIcon, AffiliateIcon, AlertDialog, type AlertDialogProps, ArrowDownShortIcon, ArrowDownSquareFillIcon, ArrowDownUpIcon, ArrowLeftRightIcon, ArrowLeftRightSquareFill, ArrowLeftShortIcon, ArrowRightShortIcon, ArrowRightUpSquareFillIcon, ArrowUpShortIcon, ArrowUpSquareFillIcon, AssetIcon, Avatar, Badge, BarChartIcon, type BaseActionSheetItem, type BaseIconProps, BattleActiveIcon, BattleIcon, BattleInactiveIcon, BattleSolidActiveIcon, BattleSolidInactiveIcon, BellIcon, 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, CloseRoundFillIcon, CloseSquareFillIcon, Collapse, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type ColumnFixed, ConfirmDialog, type ConfirmProps, CopyIcon, DARK_THEME_CSS_VARS, DataFilter, type DataFilterItem, DataTable, type DataTableClassNames, type DataTableProps, DatePicker, type DatePickerProps, type DepositFormProps, Dialog, type DialogAction, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, type DividerProps, DotStatus, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuTrigger, EVMAvatar, EarnActiveIcon, EarnIcon, EarnInactiveIcon, EditIcon, Either, EmptyDataState, type EmptyDataStateProps, EmptyStateIcon, EsOrderlyIcon, ExclamationFillIcon, EyeCloseIcon, EyeIcon, FeeTierIcon, Flex, type FlexProps, type FormattedTextProps, GradientText, Grid, HoverCard, HoverCardContent, type HoverCardProps, HoverCardRoot, HoverCardTrigger, Icon, IconButton, type IconButtonProps, type IconType, InfoCircleIcon, InjectableEmptyDataState, Input, InputAdditional, type InputFormatter, type InputFormatterOptions, type InputProps, type InputWithTooltipProps, LIGHT_THEME_CSS_VARS, LeaderboardActiveIcon, LeaderboardInactiveIcon, LeftNavVaultsIcon, ListView, type Locale, LocaleContext, LocaleProvider, Logo, type LogoProps, MarketsActiveIcon, MarketsInactiveIcon, Marquee, type MarqueeProps, type MenuItem, ModalContext, type ModalHocProps, ModalIdContext, ModalProvider, type MultiFieldSort, type MultiSortField, MultiSortHeader, type MultiSortHeaderProps, NewsFillIcon, type NumeralProps, index as OUITailwind, OrderlyIcon, OrderlyThemeProvider, type OrderlyThemeProviderProps, PaginationItems, type PaginationMeta, PeopleIcon, PerpsIcon, PersonIcon, Picker, PlusIcon, Popover, PopoverAnchor, PopoverContent, PopoverRoot, PopoverTrigger, PopupUnionIcon, PortfolioActiveIcon, PortfolioInactiveIcon, QuestionFillIcon, ReduceIcon, ReferralSolidIcon, RefreshIcon, RwaIcon, ScrollArea, ScrollBar, ScrollIndicator, type ScrollIndicatorProps, Select, SelectItem, type SelectOption, type SelectProps, SelectedChoicesFillIcon, 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, SpotIcon, SquareOutlinedIcon, StarChildChatActiveIcon, StarChildChatInactiveIcon, Statistic, StatisticLabel, SwapHorizIcon, Switch, TabPanel, type TabPanelProps, type TableCellContext, 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, type ThemeConfig, type ThemeCssVars, ThrottledButton, Tips, type TipsProps, ToastTile, Toaster, TokenIcon, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger, TraderMobileIcon, TradingActiveIcon, TradingIcon, TradingInactiveIcon, TradingLeftNavIcon, TradingRewardsIcon, TriggerDialog, type TriggerDialogProps, VaultsIcon, VectorIcon, WalletIcon, WarningIcon, WoofiStakeIcon, boxVariants, buttonVariants, capitalizeFirstLetter, convertValueToPercentage, dotStatusVariants, formatAddress, gradientTextVariants, iconButtonVariants, index$2 as inputFormatter, modal, parseNumber, registerSimpleDialog, registerSimpleSheet, scrollAreaVariants, startViewTransition, statisticVariants, textVariants, tv, useLocale, useLongPress, useMediaQuery, useModal, useMultiSort, useObserverElement, useOrderlyTheme, usePagination, useScreen, useThemeAttribute };