@unifold/connect-react-native 0.1.46 → 0.1.47

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/README.md CHANGED
@@ -185,7 +185,7 @@ await beginDeposit({
185
185
  | `config.appearance` | `'light' \| 'dark' \| 'auto'` | No | Theme mode (default: `'dark'`) |
186
186
  | `config.modalTitle` | `string` | No | Custom modal title |
187
187
  | `config.hideDepositTracker` | `boolean` | No | Hide the deposit tracker button |
188
- | `config.transferInputVariant` | `'single_input' \| 'double_input'` | No | Token selector style (default: `'double_input'`) |
188
+ | `config.transferInputVariant` | `'single_input' \| 'double_input' \| 'compact'` | No | Token selector style (default: `'double_input'`) |
189
189
  | `config.accentColor` | `string` | No | Primary brand color |
190
190
  | `config.theme` | `ThemeConfig` | No | Full color customization |
191
191
  | `config.fontFamily` | `string` | No | Single font family for all text |
package/dist/index.d.mts CHANGED
@@ -325,16 +325,20 @@ interface BottomSheetProps {
325
325
  noPadding?: boolean;
326
326
  borderTopLeftRadius?: number;
327
327
  borderTopRightRadius?: number;
328
+ /** Horizontal margin applied to the sheet panel (insets it from screen edges). */
329
+ marginHorizontal?: number;
330
+ /** Override the bottom margin when marginHorizontal is set. */
331
+ marginBottom?: number;
328
332
  /** Extra content rendered inside the Modal layer above the sheet (e.g. a secondary overlay sheet). */
329
333
  overlay?: React$1.ReactNode;
330
334
  /** When false, render as an absolutely-positioned overlay instead of inside a Modal.
331
335
  * Use this for sheets that must appear on top of an already-open Modal (iOS limitation). */
332
336
  useModal?: boolean;
333
337
  }
334
- declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, overlay, useModal: useModalProp, }: BottomSheetProps): react_jsx_runtime.JSX.Element | null;
338
+ declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, marginHorizontal: marginH, marginBottom: marginBottomProp, overlay, useModal: useModalProp, }: BottomSheetProps): react_jsx_runtime.JSX.Element | null;
335
339
 
336
340
  /** Controls which transfer crypto input variant is rendered */
337
- type TransferInputVariant = "single_input" | "double_input";
341
+ type TransferInputVariant = "single_input" | "double_input" | "compact";
338
342
  /** Controls which screen opens first when the deposit modal is shown */
339
343
  type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp";
340
344
  interface DepositModalProps {
@@ -585,7 +589,7 @@ interface UnifoldConnectProviderConfig {
585
589
  hideDepositTracker?: boolean;
586
590
  /** Theme appearance: 'light', 'dark', or 'auto' (system preference). Defaults to 'dark' */
587
591
  appearance?: ThemeMode | "auto";
588
- /** Transfer input variant: 'single_input' (unified selector) or 'double_input' (separate token/chain). Defaults to 'double_input' */
592
+ /** Transfer input variant: 'single_input' (unified selector), 'double_input' (separate token/chain), or 'compact' (minimal QR-focused layout). Defaults to 'double_input' */
589
593
  transferInputVariant?: TransferInputVariant;
590
594
  /** Simple accent/primary color override (applies to both light and dark modes) */
591
595
  accentColor?: string;
package/dist/index.d.ts CHANGED
@@ -325,16 +325,20 @@ interface BottomSheetProps {
325
325
  noPadding?: boolean;
326
326
  borderTopLeftRadius?: number;
327
327
  borderTopRightRadius?: number;
328
+ /** Horizontal margin applied to the sheet panel (insets it from screen edges). */
329
+ marginHorizontal?: number;
330
+ /** Override the bottom margin when marginHorizontal is set. */
331
+ marginBottom?: number;
328
332
  /** Extra content rendered inside the Modal layer above the sheet (e.g. a secondary overlay sheet). */
329
333
  overlay?: React$1.ReactNode;
330
334
  /** When false, render as an absolutely-positioned overlay instead of inside a Modal.
331
335
  * Use this for sheets that must appear on top of an already-open Modal (iOS limitation). */
332
336
  useModal?: boolean;
333
337
  }
334
- declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, overlay, useModal: useModalProp, }: BottomSheetProps): react_jsx_runtime.JSX.Element | null;
338
+ declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, marginHorizontal: marginH, marginBottom: marginBottomProp, overlay, useModal: useModalProp, }: BottomSheetProps): react_jsx_runtime.JSX.Element | null;
335
339
 
336
340
  /** Controls which transfer crypto input variant is rendered */
337
- type TransferInputVariant = "single_input" | "double_input";
341
+ type TransferInputVariant = "single_input" | "double_input" | "compact";
338
342
  /** Controls which screen opens first when the deposit modal is shown */
339
343
  type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp";
340
344
  interface DepositModalProps {
@@ -585,7 +589,7 @@ interface UnifoldConnectProviderConfig {
585
589
  hideDepositTracker?: boolean;
586
590
  /** Theme appearance: 'light', 'dark', or 'auto' (system preference). Defaults to 'dark' */
587
591
  appearance?: ThemeMode | "auto";
588
- /** Transfer input variant: 'single_input' (unified selector) or 'double_input' (separate token/chain). Defaults to 'double_input' */
592
+ /** Transfer input variant: 'single_input' (unified selector), 'double_input' (separate token/chain), or 'compact' (minimal QR-focused layout). Defaults to 'double_input' */
589
593
  transferInputVariant?: TransferInputVariant;
590
594
  /** Simple accent/primary color override (applies to both light and dark modes) */
591
595
  accentColor?: string;