@woovi/ui 5.0.3 → 5.0.4

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;
@@ -1,11 +1,10 @@
1
- import type { Location } from 'history';
2
1
  import type { RouteType } from './types.ts';
3
2
  export declare const getRouteFromPath: (routes: RouteType[]) => (path: string) => {};
4
- export declare const hasMatchChildren: (location: Location<unknown>, childrenRoutes: RouteType[]) => boolean;
3
+ export declare const hasMatchChildren: (location: Location, childrenRoutes: RouteType[]) => boolean;
5
4
  export declare const findRouteTreePath: (routes: RouteType[]) => (leafRoute: RouteType) => RouteType[] | null;
6
5
  type hasMatchedOpts = {
7
6
  path: string;
8
7
  exact?: boolean;
9
8
  };
10
- export declare const hasMatched: (location: Location<unknown>, options: hasMatchedOpts) => boolean;
9
+ export declare const hasMatched: (location: Location, options: hasMatchedOpts) => boolean;
11
10
  export {};
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import type { ReactNode } from "react";
2
2
  type TimelineProps = {
3
3
  children?: React.ReactNode;
4
4
  };
@@ -1,6 +1,6 @@
1
- import type { Moment } from 'moment';
2
- import type { TimelineItemProps } from './TimelineItem.tsx';
3
- import type { ReactNode } from 'react';
1
+ import type { Moment } from "moment";
2
+ import type { ReactNode } from "react";
3
+ import type { TimelineItemProps } from "./TimelineItem.tsx";
4
4
  type TimelineAppEventItemProps = {
5
5
  title?: string | null;
6
6
  time: string | Date | Moment;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import type { ReactNode } from 'react';
3
- export type TimelineColors = 'inherit' | 'success' | 'grey' | 'primary' | 'secondary' | 'error' | 'info' | 'warning';
1
+ import type React from "react";
2
+ import type { ReactNode } from "react";
3
+ export type TimelineColors = "inherit" | "success" | "grey" | "primary" | "secondary" | "error" | "info" | "warning";
4
4
  export type TimelineItemProps = {
5
5
  color?: string | null;
6
6
  icon?: JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { SxProps } from '@mui/material/styles';
2
- export declare function composeStyles(defaultStyle: SxProps, ...styles: Array<SxProps | undefined>): import("@mui/system").CSSPseudoSelectorProps<{}> | import("@mui/system").CSSSelectorObjectOrCssVariables<{}> | readonly (boolean | ((theme: {}) => import("@mui/system").SystemStyleObject<{}>) | import("@mui/system").SystemStyleObject<{}>)[] | import("@mui/system").SystemCssProperties<{}>;
2
+ export declare function composeStyles(defaultStyle: SxProps, ...styles: Array<SxProps | undefined>): any;
@@ -1 +1,3 @@
1
1
  export declare const copyToClipboard: (text: string) => Promise<boolean>;
2
+ export declare const copyClipboardTextNode: (text: string) => boolean;
3
+ export declare const copyClipboardTextArea: (text: string) => boolean;
@@ -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": "5.0.3",
4
+ "version": "5.0.4",
5
5
  "author": "Woovi",
6
6
  "dependencies": {
7
7
  "@microlink/react-json-view": "^1.27.0",
@@ -185,4 +185,4 @@
185
185
  "sideEffects": false,
186
186
  "type": "module",
187
187
  "types": "./dist/index.d.ts"
188
- }
188
+ }