@suportepos/split-checkout 0.4.5 → 0.4.6

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.
@@ -34,5 +34,6 @@ export type CheckoutFlowProps = {
34
34
  valorTotal?: number;
35
35
  onResponse?: (payload: PaymentResult) => void;
36
36
  uuid?: string;
37
+ cor?: string;
37
38
  };
38
39
  export default function CheckoutFlow(props: CheckoutFlowProps): import("react/jsx-runtime").JSX.Element;
@@ -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;
@@ -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";
@@ -34,5 +34,6 @@ export type CheckoutFlowProps = {
34
34
  valorTotal?: number;
35
35
  onResponse?: (payload: PaymentResult) => void;
36
36
  uuid?: string;
37
+ cor?: string;
37
38
  };
38
39
  export default function CheckoutFlow(props: CheckoutFlowProps): import("react/jsx-runtime").JSX.Element;
@@ -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 brand: {
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;
@@ -1,12 +1 @@
1
- export declare const brand: {
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@suportepos/split-checkout",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "type": "module",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.es.js",