@agrada_digital/pbm 0.0.99 → 0.0.101
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/dist/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +244 -183
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +220 -159
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/vanilla/index.js +76 -76
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
interface PBMTheme {
|
|
4
|
+
primaryColor?: string;
|
|
5
|
+
secondaryColor?: string;
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
textColor?: string;
|
|
8
|
+
borderColor?: string;
|
|
9
|
+
}
|
|
3
10
|
interface PBMProps {
|
|
4
11
|
originalProductPrice: number | string;
|
|
5
12
|
clientID: string;
|
|
6
13
|
eanProduct: string;
|
|
7
14
|
isAuthenticatedShopper: boolean;
|
|
8
15
|
customLoginUrl?: string;
|
|
16
|
+
theme?: PBMTheme;
|
|
9
17
|
}
|
|
10
18
|
type StateComponentType = "isRegistered" | "isActivated" | "isInvalid" | "isEmpty" | "isPreview" | "isError";
|
|
11
19
|
interface discountTypes {
|
|
@@ -64,4 +72,4 @@ interface PBMStore extends usePBMTypes {
|
|
|
64
72
|
declare function usePBMStore(): PBMStore;
|
|
65
73
|
declare function usePBMStore<T>(selector: (state: PBMStore) => T): T;
|
|
66
74
|
|
|
67
|
-
export { PBM, type PBMProps, type PBMStore, usePBMStore };
|
|
75
|
+
export { PBM, type PBMProps, type PBMStore, type PBMTheme, usePBMStore };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
interface PBMTheme {
|
|
4
|
+
primaryColor?: string;
|
|
5
|
+
secondaryColor?: string;
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
textColor?: string;
|
|
8
|
+
borderColor?: string;
|
|
9
|
+
}
|
|
3
10
|
interface PBMProps {
|
|
4
11
|
originalProductPrice: number | string;
|
|
5
12
|
clientID: string;
|
|
6
13
|
eanProduct: string;
|
|
7
14
|
isAuthenticatedShopper: boolean;
|
|
8
15
|
customLoginUrl?: string;
|
|
16
|
+
theme?: PBMTheme;
|
|
9
17
|
}
|
|
10
18
|
type StateComponentType = "isRegistered" | "isActivated" | "isInvalid" | "isEmpty" | "isPreview" | "isError";
|
|
11
19
|
interface discountTypes {
|
|
@@ -64,4 +72,4 @@ interface PBMStore extends usePBMTypes {
|
|
|
64
72
|
declare function usePBMStore(): PBMStore;
|
|
65
73
|
declare function usePBMStore<T>(selector: (state: PBMStore) => T): T;
|
|
66
74
|
|
|
67
|
-
export { PBM, type PBMProps, type PBMStore, usePBMStore };
|
|
75
|
+
export { PBM, type PBMProps, type PBMStore, type PBMTheme, usePBMStore };
|