@woovi/ui 5.0.2 → 5.0.3
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 +1 -0
- package/dist/datagrid/cellTypeExpand.d.ts +122 -1
- package/dist/index.cjs +8 -8
- package/dist/index.js +190 -190
- package/dist/multifactor/MultiFactorConfirmModal.d.ts +3 -2
- package/dist/multifactor/MultiFactorPixPaymentMatch.d.ts +2 -1
- package/dist/multifactor/MultiFactorPixPaymentView.d.ts +3 -6
- package/dist/router/getRouteFromPath.d.ts +3 -2
- 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/package.json +14 -10
- package/dist/utils/rifmFormatToCPF.d.ts +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import { type MultiFactorActionEnum } from "../shared/multiFactorActionEnum";
|
|
3
|
-
import { type PixAuthenticationArgs } from "./MultiFactorPixPaymentView.tsx";
|
|
4
3
|
export type MultiFactorConfirmModalProps = {
|
|
5
4
|
title: string;
|
|
6
5
|
message?: ReactNode;
|
|
@@ -9,7 +8,9 @@ export type MultiFactorConfirmModalProps = {
|
|
|
9
8
|
isMutationPending?: boolean;
|
|
10
9
|
onConfirm: () => void;
|
|
11
10
|
handleOpenChange: () => void;
|
|
12
|
-
onTryAnotherWay?: () => Promise<
|
|
11
|
+
onTryAnotherWay?: () => Promise<{
|
|
12
|
+
brCode?: string;
|
|
13
|
+
} | void>;
|
|
13
14
|
onGetResult?: () => Promise<{
|
|
14
15
|
result?: string;
|
|
15
16
|
} | void>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
type MultiFactorPixPaymentMatchProps = {
|
|
3
3
|
amount?: number;
|
|
4
|
+
onContinue?: () => void;
|
|
4
5
|
};
|
|
5
|
-
declare const MultiFactorPixPaymentMatch: ({ amount }: MultiFactorPixPaymentMatchProps) => ReactNode;
|
|
6
|
+
declare const MultiFactorPixPaymentMatch: ({ amount, onContinue, }: MultiFactorPixPaymentMatchProps) => ReactNode;
|
|
6
7
|
export default MultiFactorPixPaymentMatch;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
export type PixAuthenticationArgs = {
|
|
3
|
-
brCode: string;
|
|
4
|
-
taxID: string;
|
|
5
|
-
};
|
|
6
2
|
type MultiFactorPixPaymentViewProps = {
|
|
7
|
-
|
|
3
|
+
brCode: string;
|
|
8
4
|
onGetResult?: () => Promise<{
|
|
9
5
|
result?: string;
|
|
10
6
|
} | void>;
|
|
7
|
+
onContinue?: () => void;
|
|
11
8
|
};
|
|
12
|
-
declare const MultiFactorPixPaymentView: ({ onGetResult,
|
|
9
|
+
declare const MultiFactorPixPaymentView: ({ brCode, onGetResult, onContinue, }: MultiFactorPixPaymentViewProps) => ReactNode;
|
|
13
10
|
export default MultiFactorPixPaymentView;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { Location } from 'history';
|
|
1
2
|
import type { RouteType } from './types.ts';
|
|
2
3
|
export declare const getRouteFromPath: (routes: RouteType[]) => (path: string) => {};
|
|
3
|
-
export declare const hasMatchChildren: (location: Location
|
|
4
|
+
export declare const hasMatchChildren: (location: Location<unknown>, childrenRoutes: RouteType[]) => boolean;
|
|
4
5
|
export declare const findRouteTreePath: (routes: RouteType[]) => (leafRoute: RouteType) => RouteType[] | null;
|
|
5
6
|
type hasMatchedOpts = {
|
|
6
7
|
path: string;
|
|
7
8
|
exact?: boolean;
|
|
8
9
|
};
|
|
9
|
-
export declare const hasMatched: (location: Location
|
|
10
|
+
export declare const hasMatched: (location: Location<unknown>, options: hasMatchedOpts) => boolean;
|
|
10
11
|
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 { TimelineItemProps } from './TimelineItem.tsx';
|
|
3
|
+
import type { ReactNode } from 'react';
|
|
4
4
|
type TimelineAppEventItemProps = {
|
|
5
5
|
title?: string | null;
|
|
6
6
|
time: string | Date | Moment;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ReactNode } from
|
|
3
|
-
export type TimelineColors =
|
|
1
|
+
import 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>): import("@mui/system").CSSPseudoSelectorProps<{}> | import("@mui/system").CSSSelectorObjectOrCssVariables<{}> | readonly (boolean | ((theme: {}) => import("@mui/system").SystemStyleObject<{}>) | import("@mui/system").SystemStyleObject<{}>)[] | import("@mui/system").SystemCssProperties<{}>;
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@woovi/ui",
|
|
3
3
|
"description": "Woovi UI component library",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.3",
|
|
5
5
|
"author": "Woovi",
|
|
6
6
|
"dependencies": {
|
|
7
|
+
"@microlink/react-json-view": "^1.27.0",
|
|
7
8
|
"@mui/icons-material": "5.16.5",
|
|
8
9
|
"@mui/lab": "5.0.0-alpha.168",
|
|
9
10
|
"@mui/material": "5.16.5",
|
|
@@ -161,24 +162,27 @@
|
|
|
161
162
|
"type": "git"
|
|
162
163
|
},
|
|
163
164
|
"scripts": {
|
|
165
|
+
"changelo:major": "pnpm n ./scripts/release/changelog.ts --major",
|
|
166
|
+
"changelo:minor": "pnpm n ./scripts/release/changelog.ts --minor",
|
|
167
|
+
"changelo:patch": "pnpm n ./scripts/release/changelog.ts --patch",
|
|
164
168
|
"check:updates": "bunx npm-check-updates --interactive --format group",
|
|
165
169
|
"docs:build": "storybook build",
|
|
166
170
|
"docs:dev": "storybook dev -p 6006",
|
|
167
|
-
"lib:dev": "NODE_OPTIONS='--max-old-space-size=8192' DEBUG=rsbuild rslib build --watch",
|
|
168
|
-
"lib:prod": "NODE_OPTIONS='--max-old-space-size=8192' rslib build",
|
|
169
|
-
"lint": "bunx biome check --write ./src && bunx biome format --write ./src",
|
|
170
|
-
"typecheck": "tsc -p ./tsconfig.json --noEmit --emitDeclarationOnly false",
|
|
171
171
|
"i18n": "pnpm i18n:scan && pnpm i18n:translate",
|
|
172
172
|
"i18n:scan": "pnpm n scripts/i18next-parser/i18next-parser.js",
|
|
173
173
|
"i18n:translate": "pnpm zx scripts/i18next-parser/translateI18n.mjs ./locales/pt-BR.json -no-auto",
|
|
174
|
-
"
|
|
174
|
+
"lib:dev": "NODE_OPTIONS='--max-old-space-size=8192' DEBUG=rsbuild rslib build --watch",
|
|
175
|
+
"lib:prod": "NODE_OPTIONS='--max-old-space-size=8192' rslib build",
|
|
176
|
+
"lint": "bunx biome check --write ./src && bunx biome format --write ./src",
|
|
175
177
|
"mergePullRequestRelease": "pnpm n ./scripts/release/mergePullRequestRelease.ts",
|
|
176
|
-
"
|
|
177
|
-
"release:
|
|
178
|
-
"release:
|
|
178
|
+
"n": "node --experimental-strip-types",
|
|
179
|
+
"release:major": "npm version major && git push --follow-tags",
|
|
180
|
+
"release:minor": "npm version minor && git push --follow-tags",
|
|
181
|
+
"release:patch": "npm version patch && git push --follow-tags",
|
|
182
|
+
"typecheck": "tsc -p ./tsconfig.json --noEmit --emitDeclarationOnly false",
|
|
179
183
|
"updateRelease": "pnpm n ./scripts/release/updateRelease.ts"
|
|
180
184
|
},
|
|
181
185
|
"sideEffects": false,
|
|
182
186
|
"type": "module",
|
|
183
187
|
"types": "./dist/index.d.ts"
|
|
184
|
-
}
|
|
188
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const rifmFormatToCPF: (value: string) => string;
|