-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move playground types to separate file (#1625)
Co-authored-by: dschlabach <daniel.schlabach@coinbase.com>
- Loading branch information
1 parent
69a759f
commit 56ca67d
Showing
12 changed files
with
75 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
playground/nextjs-app-router/components/demo/TransactionDefault.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
playground/nextjs-app-router/components/form/checkout-options.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
export enum OnchainKitComponent { | ||
Fund = 'fund', | ||
Identity = 'identity', | ||
IdentityCard = 'identity-card', | ||
Checkout = 'checkout', | ||
Swap = 'swap', | ||
SwapDefault = 'swap-default', | ||
Transaction = 'transaction', | ||
TransactionDefault = 'transaction-default', | ||
Wallet = 'wallet', | ||
WalletDefault = 'wallet-default', | ||
NFTCard = 'nft-card', | ||
NFTCardDefault = 'nft-card-default', | ||
NFTMintCard = 'nft-mint-card', | ||
NFTMintCardDefault = 'nft-mint-card-default', | ||
} | ||
|
||
export enum TransactionTypes { | ||
Calls = 'calls', | ||
Contracts = 'contracts', | ||
CallsPromise = 'callsPromise', | ||
ContractsPromise = 'contractsPromise', | ||
CallsCallback = 'callsCallback', | ||
ContractsCallback = 'contractsCallback', | ||
} | ||
|
||
export type Paymaster = { | ||
url: string; | ||
enabled: boolean; | ||
}; | ||
|
||
export type CheckoutOptions = { | ||
chargeId?: string; | ||
productId?: string; | ||
}; | ||
|
||
export enum CheckoutTypes { | ||
ChargeID = 'chargeId', | ||
ProductID = 'productId', | ||
} | ||
|
||
export type ComponentTheme = | ||
| 'base' | ||
| 'cyberpunk' | ||
| 'default' | ||
| 'hacker' | ||
| 'none'; // Simulates an undefined theme field | ||
|
||
export type ComponentMode = 'auto' | 'light' | 'dark'; |