@paybutton/react 2.1.2 → 3.0.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 +12 -1
- package/dist/index.d.ts +5 -13
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/{react/src → lib}/components/BarChart/BarChart.stories.d.ts +1 -1
- package/dist/{components → lib/components}/Button/Button.d.ts +2 -7
- package/dist/{components → lib/components}/Button/Button.stories.d.ts +2 -7
- package/dist/{react/src → lib}/components/PayButton/PayButton.d.ts +9 -16
- package/dist/{react/src → lib}/components/PayButton/PayButton.stories.d.ts +2 -10
- package/dist/{react/src → lib}/components/PaymentDialog/PaymentDialog.d.ts +9 -5
- package/dist/{components → lib/components}/PaymentDialog/PaymentDialog.stories.d.ts +1 -1
- package/dist/{components → lib/components}/Widget/Widget.d.ts +7 -2
- package/dist/{react/src → lib}/components/Widget/Widget.stories.d.ts +1 -1
- package/dist/{react/src → lib}/components/Widget/WidgetContainer.d.ts +9 -5
- package/dist/lib/tests/opReturn.test.d.ts +1 -0
- package/dist/{react/src → lib}/util/api-client.d.ts +7 -31
- package/dist/lib/util/opReturn.d.ts +23 -0
- package/dist/{react/src → lib}/util/satoshis.d.ts +2 -2
- package/dist/src/App.d.ts +3 -0
- package/dist/src/main.d.ts +1 -0
- package/package.json +33 -24
- package/dist/components/BarChart/BarChart.stories.d.ts +0 -25
- package/dist/components/PayButton/PayButton.d.ts +0 -39
- package/dist/components/PayButton/PayButton.stories.d.ts +0 -58
- package/dist/components/PaymentDialog/PaymentDialog.d.ts +0 -44
- package/dist/components/Widget/Widget.stories.d.ts +0 -34
- package/dist/components/Widget/WidgetContainer.d.ts +0 -33
- package/dist/react/src/assets/edit-pencil.d.ts +0 -3
- package/dist/react/src/components/BarChart/BarChart.d.ts +0 -13
- package/dist/react/src/components/BarChart/index.d.ts +0 -1
- package/dist/react/src/components/Button/Button.d.ts +0 -21
- package/dist/react/src/components/Button/Button.stories.d.ts +0 -28
- package/dist/react/src/components/Button/index.d.ts +0 -1
- package/dist/react/src/components/PayButton/index.d.ts +0 -1
- package/dist/react/src/components/PaymentDialog/PaymentDialog.stories.d.ts +0 -49
- package/dist/react/src/components/PaymentDialog/index.d.ts +0 -1
- package/dist/react/src/components/Widget/Widget.d.ts +0 -31
- package/dist/react/src/components/Widget/index.d.ts +0 -1
- package/dist/react/src/components/index.d.ts +0 -8
- package/dist/react/src/index.d.ts +0 -31
- package/dist/themes/Theme.d.ts +0 -9
- package/dist/themes/index.d.ts +0 -13
- package/dist/themes/themes/orange.d.ts +0 -3
- package/dist/themes/themes/paybutton.d.ts +0 -3
- package/dist/themes/themes/xec.d.ts +0 -3
- package/dist/util/address.d.ts +0 -10
- package/dist/util/api-client.d.ts +0 -173
- package/dist/util/format.d.ts +0 -19
- package/dist/util/randomizeSats.d.ts +0 -4
- package/dist/util/satoshis.d.ts +0 -11
- /package/dist/{assets → lib/assets}/edit-pencil.d.ts +0 -0
- /package/dist/{components → lib/components}/BarChart/BarChart.d.ts +0 -0
- /package/dist/{components → lib/components}/BarChart/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Button/index.d.ts +0 -0
- /package/dist/{components → lib/components}/PayButton/index.d.ts +0 -0
- /package/dist/{components → lib/components}/PaymentDialog/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Widget/index.d.ts +0 -0
- /package/dist/{components → lib/components}/index.d.ts +0 -0
- /package/dist/{react/src → lib}/themes/Theme.d.ts +0 -0
- /package/dist/{react/src → lib}/themes/index.d.ts +0 -0
- /package/dist/{react/src → lib}/themes/themes/orange.d.ts +0 -0
- /package/dist/{react/src → lib}/themes/themes/paybutton.d.ts +0 -0
- /package/dist/{react/src → lib}/themes/themes/xec.d.ts +0 -0
- /package/dist/{react/src → lib}/util/address.d.ts +0 -0
- /package/dist/{react/src → lib}/util/format.d.ts +0 -0
- /package/dist/{react/src → lib}/util/randomizeSats.d.ts +0 -0
package/README.md
CHANGED
|
@@ -7,17 +7,28 @@
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
npm install --save @paybutton/react
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
or
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
|
|
18
|
+
yarn add @paybutton/react
|
|
19
|
+
|
|
11
20
|
```
|
|
12
21
|
|
|
13
22
|
## Usage
|
|
14
23
|
|
|
15
24
|
```tsx
|
|
25
|
+
|
|
16
26
|
import React from 'react'
|
|
17
27
|
|
|
18
28
|
import { PayButton } from '@paybutton/react'
|
|
19
29
|
|
|
20
30
|
<PayButton to={address} />
|
|
31
|
+
|
|
21
32
|
```
|
|
22
33
|
|
|
23
34
|
## License
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as Components from './components';
|
|
2
|
+
import * as Components from './lib/components';
|
|
3
3
|
export declare const PayButton: {
|
|
4
|
-
(props: Components.PayButtonProps): import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
5
|
-
defaultProps:
|
|
6
|
-
animation: string;
|
|
7
|
-
hideToasts: boolean;
|
|
8
|
-
randomSatoshis: boolean;
|
|
9
|
-
successText: string;
|
|
10
|
-
disableEnforceFocus: boolean;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
editable: boolean;
|
|
13
|
-
};
|
|
4
|
+
(props: Components.PayButtonProps): import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
5
|
+
defaultProps: Components.PayButtonProps;
|
|
14
6
|
};
|
|
15
7
|
export declare type PayButtonProps = Components.PayButtonProps;
|
|
16
8
|
export declare const PaymentDialog: {
|
|
17
|
-
(props: Components.PaymentDialogProps): import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
9
|
+
(props: Components.PaymentDialogProps): import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
18
10
|
defaultProps: {
|
|
19
11
|
animation: string;
|
|
20
12
|
hideToasts: boolean;
|
|
@@ -27,5 +19,5 @@ export declare const PaymentDialog: {
|
|
|
27
19
|
};
|
|
28
20
|
};
|
|
29
21
|
export declare type PaymentDialogProps = Components.PaymentDialogProps;
|
|
30
|
-
export declare const Widget: import("react").
|
|
22
|
+
export declare const Widget: import("react").FunctionComponent<Components.WidgetProps>;
|
|
31
23
|
export declare type WidgetProps = Components.WidgetProps;
|