@agrada_digital/pbm 0.0.98 → 0.0.100
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 +274 -187
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +250 -163
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/vanilla/index.js +111 -111
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
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
|
-
type StateComponentType = "isRegistered" | "isActivated" | "isInvalid" | "isEmpty" | "isPreview";
|
|
18
|
+
type StateComponentType = "isRegistered" | "isActivated" | "isInvalid" | "isEmpty" | "isPreview" | "isError";
|
|
11
19
|
interface discountTypes {
|
|
12
20
|
unit: number;
|
|
13
21
|
total: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
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
|
-
type StateComponentType = "isRegistered" | "isActivated" | "isInvalid" | "isEmpty" | "isPreview";
|
|
18
|
+
type StateComponentType = "isRegistered" | "isActivated" | "isInvalid" | "isEmpty" | "isPreview" | "isError";
|
|
11
19
|
interface discountTypes {
|
|
12
20
|
unit: number;
|
|
13
21
|
total: number;
|