@1money/component-ui 0.1.27 → 0.1.29

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.
@@ -28,6 +28,8 @@ export interface PaymentMethodItem {
28
28
  tags?: string[];
29
29
  /** Minimum deposit amount, as a numeric string. */
30
30
  depositAmtMin?: string;
31
+ /** Asset of depositAmtMin, passed independently to formatAmount. */
32
+ depositAsset?: string;
31
33
  /** Minimum withdrawal amount, as a numeric string. */
32
34
  withdrawAmtMin?: string;
33
35
  /**
@@ -79,6 +81,13 @@ export interface PaymentMethodSelectProps extends Omit<SelectProps, 'options' |
79
81
  * @default true
80
82
  */
81
83
  showFee?: boolean;
84
+ /**
85
+ * Format the grouped numeric string in both the selected value and dropdown.
86
+ * Receives the fee's transactionFeeAsset or the minimum's depositAsset.
87
+ * Missing amounts arrive as an empty string; no currency is inferred.
88
+ * Omit to retain legacy dollar-prefixed formatting.
89
+ */
90
+ formatAmount?: (amount: string, asset?: string) => string;
82
91
  /**
83
92
  * Show tag badges next to the option label in the dropdown options.
84
93
  * @default true