@woovi/ui 0.1.4 → 0.1.5

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.
@@ -1,5 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
2
  import { type MultiFactorActionEnum } from "../shared/multiFactorActionEnum";
3
+ import { type PixAuthenticationArgs } from "./MultiFactorPixPaymentView.tsx";
3
4
  export type MultiFactorConfirmModalProps = {
4
5
  title: string;
5
6
  message?: ReactNode;
@@ -8,9 +9,7 @@ export type MultiFactorConfirmModalProps = {
8
9
  isMutationPending?: boolean;
9
10
  onConfirm: () => void;
10
11
  handleOpenChange: () => void;
11
- onTryAnotherWay?: () => Promise<{
12
- brCode?: string;
13
- } | void>;
12
+ onTryAnotherWay?: () => Promise<PixAuthenticationArgs | void>;
14
13
  onGetResult?: () => Promise<{
15
14
  result?: string;
16
15
  } | void>;
@@ -1,7 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
2
  type MultiFactorPixPaymentMatchProps = {
3
3
  amount?: number;
4
- onContinue?: () => void;
5
4
  };
6
- declare const MultiFactorPixPaymentMatch: ({ amount, onContinue, }: MultiFactorPixPaymentMatchProps) => ReactNode;
5
+ declare const MultiFactorPixPaymentMatch: ({ amount }: MultiFactorPixPaymentMatchProps) => ReactNode;
7
6
  export default MultiFactorPixPaymentMatch;
@@ -1,10 +1,13 @@
1
1
  import { type ReactNode } from "react";
2
- type MultiFactorPixPaymentViewProps = {
2
+ export type PixAuthenticationArgs = {
3
3
  brCode: string;
4
+ taxID: string;
5
+ };
6
+ type MultiFactorPixPaymentViewProps = {
7
+ pixAuthentication: PixAuthenticationArgs;
4
8
  onGetResult?: () => Promise<{
5
9
  result?: string;
6
10
  } | void>;
7
- onContinue?: () => void;
8
11
  };
9
- declare const MultiFactorPixPaymentView: ({ brCode, onGetResult, onContinue, }: MultiFactorPixPaymentViewProps) => ReactNode;
12
+ declare const MultiFactorPixPaymentView: ({ onGetResult, pixAuthentication, }: MultiFactorPixPaymentViewProps) => ReactNode;
10
13
  export default MultiFactorPixPaymentView;
@@ -0,0 +1 @@
1
+ export declare const rifmFormatToCPF: (value: string) => string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@woovi/ui",
3
3
  "description": "Woovi UI component library",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "author": "Woovi",
6
6
  "dependencies": {
7
7
  "@mui/icons-material": "5.16.5",