@kimafinance/kima-transaction-widget 1.1.13 → 1.1.15

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.
@@ -1,18 +1,24 @@
1
- import { DefaultProps, TransactionOption, ModeOptions, TitleOption, PaymentTitleOption } from '../interface';
1
+ /// <reference types="react" />
2
+ import { TransactionOption, ThemeOptions, ModeOptions, TitleOption, PaymentTitleOption, DAppOptions } from '../interface';
2
3
  import '../index.css';
3
- interface Props extends DefaultProps {
4
+ import { Web3Provider } from '@ethersproject/providers';
5
+ interface Props {
6
+ theme: ThemeOptions;
4
7
  mode: ModeOptions;
5
8
  txId?: number;
6
- titleOption?: TitleOption;
7
- paymentTitleOption?: PaymentTitleOption;
8
9
  useFIAT?: boolean;
10
+ autoConnect?: boolean;
11
+ dAppOption?: DAppOptions;
12
+ provider?: Web3Provider;
13
+ titleOption?: TitleOption;
9
14
  compliantOption?: boolean;
10
- kimaBackendUrl: string;
11
15
  transactionOption?: TransactionOption;
16
+ paymentTitleOption?: PaymentTitleOption;
17
+ kimaBackendUrl: string;
12
18
  kimaNodeProviderQuery: string;
13
19
  errorHandler?: (e: any) => void;
14
20
  closeHandler?: (e: any) => void;
15
21
  successHandler?: (e: any) => void;
16
22
  }
17
- export declare const KimaTransactionWidget: ({ mode, txId, theme, fontSize, titleOption, paymentTitleOption, useFIAT, compliantOption, transactionOption, kimaBackendUrl, kimaNodeProviderQuery, errorHandler, closeHandler, successHandler }: Props) => JSX.Element;
23
+ export declare const KimaTransactionWidget: ({ mode, txId, autoConnect, provider, dAppOption, theme, titleOption, paymentTitleOption, useFIAT, compliantOption, transactionOption, kimaBackendUrl, kimaNodeProviderQuery, errorHandler, closeHandler, successHandler }: Props) => JSX.Element;
18
24
  export {};
@@ -1,4 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import '../index.css';
3
- import { DefaultProps } from '../interface';
4
- export declare const TransactionWidget: ({ theme, fontSize }: DefaultProps) => JSX.Element;
3
+ import { ThemeOptions } from '../interface';
4
+ export declare const TransactionWidget: ({ theme }: {
5
+ theme: ThemeOptions;
6
+ }) => JSX.Element;
@@ -1,8 +1,10 @@
1
- import { DefaultProps, PaymentTitleOption, TitleOption } from '../interface';
1
+ /// <reference types="react" />
2
+ import { PaymentTitleOption, ThemeOptions, TitleOption } from '../interface';
2
3
  import '../index.css';
3
- interface Props extends DefaultProps {
4
+ interface Props {
5
+ theme: ThemeOptions;
4
6
  titleOption?: TitleOption;
5
7
  paymentTitleOption?: PaymentTitleOption;
6
8
  }
7
- export declare const TransferWidget: ({ theme, fontSize, titleOption, paymentTitleOption }: Props) => JSX.Element;
9
+ export declare const TransferWidget: ({ theme, titleOption, paymentTitleOption }: Props) => JSX.Element;
8
10
  export {};
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const HelpPopup: () => JSX.Element;
2
3
  export default HelpPopup;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const NetworkDropdown: ({ isOriginChain }: {
2
3
  isOriginChain?: boolean | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PaymentTitleOption } from '../../interface';
2
3
  declare const SingleForm: ({ paymentTitleOption }: {
3
4
  paymentTitleOption?: PaymentTitleOption | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const WalletButton: ({ errorBelow }: {
2
3
  errorBelow?: boolean | undefined;
3
4
  }) => JSX.Element;
package/dist/index.css CHANGED
@@ -642,7 +642,7 @@
642
642
  align-items: center;
643
643
  }
644
644
  .kima-card .kima-card-content .wallet-button button {
645
- width: 12em;
645
+ width: 14em;
646
646
  height: 3.5em;
647
647
  }
648
648
  .kima-card .kima-card-content .wallet-button .provider-error {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- export { FontSizeOptions, ThemeOptions, SupportNetworks, CurrencyOptions, ModeOptions } from './interface';
2
+ export { FontSizeOptions, ColorModeOptions, ThemeOptions, SupportNetworks, CurrencyOptions, ModeOptions, DAppOptions } from './interface';
3
3
  export { KimaTransactionWidget } from './components/KimaTransactionWidget';
4
4
  export declare const KimaProvider: ({ children }: any) => JSX.Element;