From 4b9b9b045f881079ad008b687848554900200838 Mon Sep 17 00:00:00 2001 From: Davide Carpini Date: Mon, 30 Oct 2023 10:49:27 +0100 Subject: [PATCH] feat: add common enums for button theme --- packages/wallet-kit/package.json | 1 + packages/wallet-kit/src/constants/enums/index.ts | 1 + packages/wallet-kit/src/constants/enums/theme.ts | 8 ++++++++ packages/wallet-kit/src/constants/index.ts | 1 + packages/wallet-kit/src/index.ts | 1 + 5 files changed, 12 insertions(+) create mode 100644 packages/wallet-kit/src/constants/enums/index.ts create mode 100644 packages/wallet-kit/src/constants/enums/theme.ts create mode 100644 packages/wallet-kit/src/constants/index.ts diff --git a/packages/wallet-kit/package.json b/packages/wallet-kit/package.json index d92f3126..ba88766e 100644 --- a/packages/wallet-kit/package.json +++ b/packages/wallet-kit/package.json @@ -19,6 +19,7 @@ "devDependencies": { "@types/react": "^18.2.28", "@types/react-dom": "^18.2.13", + "@vechain/repo-config": "https://github.com/vechainfoundation/repo-config#v0.0.1", "eslint": "*", "tsup": "*", "typescript": "*" diff --git a/packages/wallet-kit/src/constants/enums/index.ts b/packages/wallet-kit/src/constants/enums/index.ts new file mode 100644 index 00000000..7b1f54ec --- /dev/null +++ b/packages/wallet-kit/src/constants/enums/index.ts @@ -0,0 +1 @@ +export * from './theme'; diff --git a/packages/wallet-kit/src/constants/enums/theme.ts b/packages/wallet-kit/src/constants/enums/theme.ts new file mode 100644 index 00000000..36a697e8 --- /dev/null +++ b/packages/wallet-kit/src/constants/enums/theme.ts @@ -0,0 +1,8 @@ +export const ThemeMode = { + Light: 'LIGHT', + Dark: 'DARK', +}; + +export const Theme = { + Default: 'DEFAULT', +}; diff --git a/packages/wallet-kit/src/constants/index.ts b/packages/wallet-kit/src/constants/index.ts new file mode 100644 index 00000000..14790857 --- /dev/null +++ b/packages/wallet-kit/src/constants/index.ts @@ -0,0 +1 @@ +export * from './enums'; diff --git a/packages/wallet-kit/src/index.ts b/packages/wallet-kit/src/index.ts index cae1ca4f..504f69e2 100644 --- a/packages/wallet-kit/src/index.ts +++ b/packages/wallet-kit/src/index.ts @@ -1,4 +1,5 @@ export * from './connex'; export * from './wallet'; +export * from './constants'; export type { ConnexOptions, ConnexInstance, ConnexSigner } from './types';