@unifold/connect-react-native 0.1.45 → 0.1.47-beta.1
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 +1 -1
- package/dist/index.d.mts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +2 -2
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,11 +325,20 @@ interface BottomSheetProps {
|
|
|
325
325
|
noPadding?: boolean;
|
|
326
326
|
borderTopLeftRadius?: number;
|
|
327
327
|
borderTopRightRadius?: number;
|
|
328
|
-
|
|
329
|
-
|
|
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;
|
|
332
|
+
/** Extra content rendered inside the Modal layer above the sheet (e.g. a secondary overlay sheet). */
|
|
333
|
+
overlay?: React$1.ReactNode;
|
|
334
|
+
/** When false, render as an absolutely-positioned overlay instead of inside a Modal.
|
|
335
|
+
* Use this for sheets that must appear on top of an already-open Modal (iOS limitation). */
|
|
336
|
+
useModal?: boolean;
|
|
337
|
+
}
|
|
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;
|
|
330
339
|
|
|
331
340
|
/** Controls which transfer crypto input variant is rendered */
|
|
332
|
-
type TransferInputVariant = "single_input" | "double_input";
|
|
341
|
+
type TransferInputVariant = "single_input" | "double_input" | "compact";
|
|
333
342
|
/** Controls which screen opens first when the deposit modal is shown */
|
|
334
343
|
type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp";
|
|
335
344
|
interface DepositModalProps {
|
|
@@ -580,7 +589,7 @@ interface UnifoldConnectProviderConfig {
|
|
|
580
589
|
hideDepositTracker?: boolean;
|
|
581
590
|
/** Theme appearance: 'light', 'dark', or 'auto' (system preference). Defaults to 'dark' */
|
|
582
591
|
appearance?: ThemeMode | "auto";
|
|
583
|
-
/** Transfer input variant: 'single_input' (unified selector)
|
|
592
|
+
/** Transfer input variant: 'single_input' (unified selector), 'double_input' (separate token/chain), or 'compact' (minimal QR-focused layout). Defaults to 'double_input' */
|
|
584
593
|
transferInputVariant?: TransferInputVariant;
|
|
585
594
|
/** Simple accent/primary color override (applies to both light and dark modes) */
|
|
586
595
|
accentColor?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -325,11 +325,20 @@ interface BottomSheetProps {
|
|
|
325
325
|
noPadding?: boolean;
|
|
326
326
|
borderTopLeftRadius?: number;
|
|
327
327
|
borderTopRightRadius?: number;
|
|
328
|
-
|
|
329
|
-
|
|
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;
|
|
332
|
+
/** Extra content rendered inside the Modal layer above the sheet (e.g. a secondary overlay sheet). */
|
|
333
|
+
overlay?: React$1.ReactNode;
|
|
334
|
+
/** When false, render as an absolutely-positioned overlay instead of inside a Modal.
|
|
335
|
+
* Use this for sheets that must appear on top of an already-open Modal (iOS limitation). */
|
|
336
|
+
useModal?: boolean;
|
|
337
|
+
}
|
|
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;
|
|
330
339
|
|
|
331
340
|
/** Controls which transfer crypto input variant is rendered */
|
|
332
|
-
type TransferInputVariant = "single_input" | "double_input";
|
|
341
|
+
type TransferInputVariant = "single_input" | "double_input" | "compact";
|
|
333
342
|
/** Controls which screen opens first when the deposit modal is shown */
|
|
334
343
|
type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp";
|
|
335
344
|
interface DepositModalProps {
|
|
@@ -580,7 +589,7 @@ interface UnifoldConnectProviderConfig {
|
|
|
580
589
|
hideDepositTracker?: boolean;
|
|
581
590
|
/** Theme appearance: 'light', 'dark', or 'auto' (system preference). Defaults to 'dark' */
|
|
582
591
|
appearance?: ThemeMode | "auto";
|
|
583
|
-
/** Transfer input variant: 'single_input' (unified selector)
|
|
592
|
+
/** Transfer input variant: 'single_input' (unified selector), 'double_input' (separate token/chain), or 'compact' (minimal QR-focused layout). Defaults to 'double_input' */
|
|
584
593
|
transferInputVariant?: TransferInputVariant;
|
|
585
594
|
/** Simple accent/primary color override (applies to both light and dark modes) */
|
|
586
595
|
accentColor?: string;
|