@woovi/ui 5.0.1 → 5.0.2
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/ReactJson.d.ts +0 -1
- package/dist/datagrid/cellTypeExpand.d.ts +1 -122
- package/dist/index.cjs +8 -8
- package/dist/index.js +190 -190
- package/dist/multifactor/MultiFactorConfirmModal.d.ts +2 -3
- package/dist/multifactor/MultiFactorPixPaymentMatch.d.ts +1 -2
- package/dist/multifactor/MultiFactorPixPaymentView.d.ts +6 -3
- package/dist/router/getRouteFromPath.d.ts +2 -3
- package/dist/timeline/Timeline.d.ts +1 -1
- package/dist/timeline/TimelineAppEventItem.d.ts +3 -3
- package/dist/timeline/TimelineItem.d.ts +3 -3
- package/dist/utils/composeStyles.d.ts +1 -1
- package/dist/utils/rifmFormatToCPF.d.ts +1 -0
- package/locales/i18n.d.ts +9 -0
- package/package.json +3 -3
|
@@ -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
|
|
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
|
|
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: ({
|
|
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
|
|
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
|
|
9
|
+
export declare const hasMatched: (location: Location, options: hasMatchedOpts) => boolean;
|
|
11
10
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Moment } from
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
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
|
|
2
|
-
import type { ReactNode } from
|
|
3
|
-
export type TimelineColors =
|
|
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>):
|
|
2
|
+
export declare function composeStyles(defaultStyle: SxProps, ...styles: Array<SxProps | undefined>): any;
|
|
@@ -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.
|
|
4
|
+
"version": "5.0.2",
|
|
5
5
|
"author": "Woovi",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@mui/icons-material": "5.16.5",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
"./locales": {
|
|
111
|
-
"
|
|
112
|
-
"
|
|
111
|
+
"types": "./locales/index.d.ts",
|
|
112
|
+
"default": "./locales/index.js"
|
|
113
113
|
},
|
|
114
114
|
"./locales/*": "./locales/*"
|
|
115
115
|
},
|