@orderly.network/ui-order-entry 3.1.3-alpha.0 → 3.1.3

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
@@ -4,6 +4,7 @@ import * as _orderly_network_types from '@orderly.network/types';
4
4
  import { MarginMode, OrderSide, OrderType, OrderLevel, OrderlyOrder, API } from '@orderly.network/types';
5
5
  import * as _orderly_network_hooks from '@orderly.network/hooks';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
+ import { InputProps } from '@orderly.network/ui';
7
8
 
8
9
  /** One entry in the order-type dropdown. */
9
10
  type OrderTypeOption = {
@@ -259,6 +260,27 @@ type AdditionalInfoProps = {
259
260
  };
260
261
  declare const AdditionalInfo: FC<AdditionalInfoProps>;
261
262
 
263
+ type CustomInputProps = {
264
+ label: string;
265
+ suffix?: ReactNode;
266
+ placeholder?: string;
267
+ id: string;
268
+ className?: string;
269
+ name?: string;
270
+ onChange?: (value: string) => void;
271
+ value?: InputProps["value"];
272
+ autoFocus?: InputProps["autoFocus"];
273
+ error?: string;
274
+ onFocus?: InputProps["onFocus"];
275
+ onBlur?: InputProps["onBlur"];
276
+ formatters?: InputProps["formatters"];
277
+ overrideFormatters?: InputProps["formatters"];
278
+ classNames?: InputProps["classNames"];
279
+ readonly?: boolean;
280
+ prefix?: ReactNode;
281
+ };
282
+ declare const CustomInput: react.ForwardRefExoticComponent<CustomInputProps & react.RefAttributes<HTMLInputElement>>;
283
+
262
284
  declare const LTVRiskTooltipWidget: react__default.FC<{
263
285
  marginMode?: MarginMode;
264
286
  }>;
@@ -274,4 +296,4 @@ type SymbolBadgeProps = {
274
296
  };
275
297
  declare const SymbolBadge: FC<SymbolBadgeProps>;
276
298
 
277
- export { AdditionalInfo, FeesWidget, LTVRiskTooltipWidget, OrderConfirmDialog, OrderEntry, OrderEntryWidget, SymbolBadge, useOrderEntryScript };
299
+ export { AdditionalInfo, CustomInput, type CustomInputProps, FeesWidget, LTVRiskTooltipWidget, OrderConfirmDialog, OrderEntry, OrderEntryWidget, SymbolBadge, useOrderEntryScript };
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import * as _orderly_network_types from '@orderly.network/types';
4
4
  import { MarginMode, OrderSide, OrderType, OrderLevel, OrderlyOrder, API } from '@orderly.network/types';
5
5
  import * as _orderly_network_hooks from '@orderly.network/hooks';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
+ import { InputProps } from '@orderly.network/ui';
7
8
 
8
9
  /** One entry in the order-type dropdown. */
9
10
  type OrderTypeOption = {
@@ -259,6 +260,27 @@ type AdditionalInfoProps = {
259
260
  };
260
261
  declare const AdditionalInfo: FC<AdditionalInfoProps>;
261
262
 
263
+ type CustomInputProps = {
264
+ label: string;
265
+ suffix?: ReactNode;
266
+ placeholder?: string;
267
+ id: string;
268
+ className?: string;
269
+ name?: string;
270
+ onChange?: (value: string) => void;
271
+ value?: InputProps["value"];
272
+ autoFocus?: InputProps["autoFocus"];
273
+ error?: string;
274
+ onFocus?: InputProps["onFocus"];
275
+ onBlur?: InputProps["onBlur"];
276
+ formatters?: InputProps["formatters"];
277
+ overrideFormatters?: InputProps["formatters"];
278
+ classNames?: InputProps["classNames"];
279
+ readonly?: boolean;
280
+ prefix?: ReactNode;
281
+ };
282
+ declare const CustomInput: react.ForwardRefExoticComponent<CustomInputProps & react.RefAttributes<HTMLInputElement>>;
283
+
262
284
  declare const LTVRiskTooltipWidget: react__default.FC<{
263
285
  marginMode?: MarginMode;
264
286
  }>;
@@ -274,4 +296,4 @@ type SymbolBadgeProps = {
274
296
  };
275
297
  declare const SymbolBadge: FC<SymbolBadgeProps>;
276
298
 
277
- export { AdditionalInfo, FeesWidget, LTVRiskTooltipWidget, OrderConfirmDialog, OrderEntry, OrderEntryWidget, SymbolBadge, useOrderEntryScript };
299
+ export { AdditionalInfo, CustomInput, type CustomInputProps, FeesWidget, LTVRiskTooltipWidget, OrderConfirmDialog, OrderEntry, OrderEntryWidget, SymbolBadge, useOrderEntryScript };
package/dist/index.js CHANGED
@@ -6739,6 +6739,7 @@ var OrderEntryWidget = (props) => {
6739
6739
  };
6740
6740
 
6741
6741
  exports.AdditionalInfo = AdditionalInfo;
6742
+ exports.CustomInput = CustomInput;
6742
6743
  exports.FeesWidget = FeesWidget;
6743
6744
  exports.LTVRiskTooltipWidget = LTVRiskTooltipWidget;
6744
6745
  exports.OrderConfirmDialog = OrderConfirmDialog;