@suportepos/split-checkout 0.4.5 → 0.4.7
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 +207 -207
- package/dist/README.md +207 -207
- package/dist/index.es.js +708 -893
- package/dist/index.umd.js +3 -3
- package/dist/standalone/suportepos-checkout.js +2 -2
- package/dist/types/CheckoutFlow.d.ts +1 -0
- package/dist/types/CheckoutFlowContent.d.ts +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/lib/CheckoutFlow.d.ts +1 -0
- package/dist/types/lib/CheckoutFlowContent.d.ts +1 -1
- package/dist/types/lib/theme.d.ts +1 -12
- package/dist/types/standalone.d.ts +2 -1
- package/dist/types/theme.d.ts +1 -12
- package/package.json +46 -46
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function CheckoutFlowContent({ step, setStep, valor, merchantName, produtos, splits, cliente, merchantId, codigoPedido, uuid, producao, onResponse, paymentEnabled, }: any): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export default function CheckoutFlowContent({ step, setStep, valor, merchantName, produtos, splits, cliente, merchantId, codigoPedido, uuid, producao, onResponse, paymentEnabled, cor }: any): import("react/jsx-runtime").JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,5 +4,4 @@ export { default as SplitCardForm } from "./lib/SplitCardForm";
|
|
|
4
4
|
export { default as SplitPixForm } from "./lib/SplitPixForm";
|
|
5
5
|
export { default as CheckoutFlowContent } from "./lib/CheckoutFlowContent";
|
|
6
6
|
export type { PaymentResult } from "./lib/types";
|
|
7
|
-
export * from "./lib/theme";
|
|
8
7
|
export * from "./lib/validators";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function CheckoutFlowContent({ step, setStep, valor, merchantName, produtos, splits, cliente, merchantId, codigoPedido, uuid, producao, onResponse, paymentEnabled, }: any): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export default function CheckoutFlowContent({ step, setStep, valor, merchantName, produtos, splits, cliente, merchantId, codigoPedido, uuid, producao, onResponse, paymentEnabled, cor }: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
primary: string;
|
|
3
|
-
primaryHover: string;
|
|
4
|
-
ink: string;
|
|
5
|
-
muted: string;
|
|
6
|
-
bg: string;
|
|
7
|
-
surface: string;
|
|
8
|
-
border: string;
|
|
9
|
-
ring: string;
|
|
10
|
-
};
|
|
11
|
-
declare const theme: import("@mui/material").Theme;
|
|
12
|
-
export default theme;
|
|
1
|
+
export declare const createBrandTheme: (color?: string) => import("@mui/material").Theme;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Product, Split, Customer } from "./lib/CheckoutFlow";
|
|
2
2
|
import { PaymentResult } from "./lib/types";
|
|
3
|
-
export declare function renderCheckout({ elementId, merchantId, producao, codigoPedido, produtos, splits, cliente, merchantName, valorTotal, onResponse, }: {
|
|
3
|
+
export declare function renderCheckout({ elementId, merchantId, producao, codigoPedido, produtos, splits, cliente, merchantName, valorTotal, onResponse, cor }: {
|
|
4
4
|
elementId: string;
|
|
5
5
|
merchantId: string;
|
|
6
6
|
codigoPedido: string;
|
|
@@ -11,4 +11,5 @@ export declare function renderCheckout({ elementId, merchantId, producao, codigo
|
|
|
11
11
|
merchantName: string;
|
|
12
12
|
valorTotal?: number;
|
|
13
13
|
onResponse?: (result: PaymentResult) => void;
|
|
14
|
+
cor?: string;
|
|
14
15
|
}): void;
|
package/dist/types/theme.d.ts
CHANGED
|
@@ -1,12 +1 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
primary: string;
|
|
3
|
-
primaryHover: string;
|
|
4
|
-
ink: string;
|
|
5
|
-
muted: string;
|
|
6
|
-
bg: string;
|
|
7
|
-
surface: string;
|
|
8
|
-
border: string;
|
|
9
|
-
ring: string;
|
|
10
|
-
};
|
|
11
|
-
declare const theme: import("@mui/material").Theme;
|
|
12
|
-
export default theme;
|
|
1
|
+
export declare const createBrandTheme: (color?: string) => import("@mui/material").Theme;
|
package/package.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@suportepos/split-checkout",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "dist/index.umd.js",
|
|
6
|
-
"module": "dist/index.es.js",
|
|
7
|
-
"types": "dist/types/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"dev": "vite",
|
|
13
|
-
"build": "vite build && tsc --project tsconfig.build.json",
|
|
14
|
-
"preview": "vite preview",
|
|
15
|
-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
|
|
16
|
-
"build:standalone": "vite build --config vite.config.standalone.ts && npm run build:types",
|
|
17
|
-
"prepublishOnly": "npm run build && npm run build:standalone && cp README.md dist/README.md"
|
|
18
|
-
},
|
|
19
|
-
"peerDependencies": {
|
|
20
|
-
"@emotion/react": ">=11.0.0",
|
|
21
|
-
"@emotion/styled": ">=11.0.0",
|
|
22
|
-
"@mui/icons-material": "^5.0.0 || ^7.0.0",
|
|
23
|
-
"@mui/material": "^7.0.0",
|
|
24
|
-
"react": ">=18.0.0 <20.0.0",
|
|
25
|
-
"react-dom": ">=18.0.0 <20.0.0"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@emotion/react": "11.14.0",
|
|
29
|
-
"@emotion/styled": "11.14.1",
|
|
30
|
-
"@mui/icons-material": "7.3.1",
|
|
31
|
-
"@mui/material": "7.3.1",
|
|
32
|
-
"@types/react": "18.3.11",
|
|
33
|
-
"@types/react-dom": "18.3.0",
|
|
34
|
-
"@vitejs/plugin-react": "^4.2.0",
|
|
35
|
-
"react": "18.3.1",
|
|
36
|
-
"react-dom": "18.3.1",
|
|
37
|
-
"rollup": "^4.49.0",
|
|
38
|
-
"terser": "^5.44.0",
|
|
39
|
-
"typescript": "^5.5.4",
|
|
40
|
-
"vite": "^7.1.3",
|
|
41
|
-
"vite-plugin-dts": "^4.5.4"
|
|
42
|
-
},
|
|
43
|
-
"publishConfig": {
|
|
44
|
-
"access": "public"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@suportepos/split-checkout",
|
|
3
|
+
"version": "0.4.7",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.umd.js",
|
|
6
|
+
"module": "dist/index.es.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "vite",
|
|
13
|
+
"build": "vite build && tsc --project tsconfig.build.json",
|
|
14
|
+
"preview": "vite preview",
|
|
15
|
+
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
|
|
16
|
+
"build:standalone": "vite build --config vite.config.standalone.ts && npm run build:types",
|
|
17
|
+
"prepublishOnly": "npm run build && npm run build:standalone && cp README.md dist/README.md"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"@emotion/react": ">=11.0.0",
|
|
21
|
+
"@emotion/styled": ">=11.0.0",
|
|
22
|
+
"@mui/icons-material": "^5.0.0 || ^7.0.0",
|
|
23
|
+
"@mui/material": "^7.0.0",
|
|
24
|
+
"react": ">=18.0.0 <20.0.0",
|
|
25
|
+
"react-dom": ">=18.0.0 <20.0.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@emotion/react": "11.14.0",
|
|
29
|
+
"@emotion/styled": "11.14.1",
|
|
30
|
+
"@mui/icons-material": "7.3.1",
|
|
31
|
+
"@mui/material": "7.3.1",
|
|
32
|
+
"@types/react": "18.3.11",
|
|
33
|
+
"@types/react-dom": "18.3.0",
|
|
34
|
+
"@vitejs/plugin-react": "^4.2.0",
|
|
35
|
+
"react": "18.3.1",
|
|
36
|
+
"react-dom": "18.3.1",
|
|
37
|
+
"rollup": "^4.49.0",
|
|
38
|
+
"terser": "^5.44.0",
|
|
39
|
+
"typescript": "^5.5.4",
|
|
40
|
+
"vite": "^7.1.3",
|
|
41
|
+
"vite-plugin-dts": "^4.5.4"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
}
|
|
46
|
+
}
|