@woovi/ui 5.0.0 → 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.
@@ -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;
@@ -0,0 +1 @@
1
+ export declare const rifmFormatToCPF: (value: string) => string;
@@ -0,0 +1,9 @@
1
+ declare module "@woovi/ui/i18n/locales/*.json" {
2
+ const value: Record<string, string>
3
+ export default value
4
+ }
5
+
6
+ declare module "@woovi/ui/i18n/*" {
7
+ const value: unknown
8
+ export default value
9
+ }
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.0",
4
+ "version": "5.0.2",
5
5
  "author": "Woovi",
6
6
  "dependencies": {
7
7
  "@mui/icons-material": "5.16.5",
@@ -35,7 +35,7 @@
35
35
  "react-dropzone": "14.3.8",
36
36
  "react-error-boundary": "4.1.2",
37
37
  "react-fast-compare": "3.2.2",
38
- "react-i18next": "15.0.0",
38
+ "react-i18next": "15.7.4",
39
39
  "react-icons": "4.8.0",
40
40
  "react-ink": "6.5.4",
41
41
  "react-json-view": "1.21.3",
@@ -60,6 +60,7 @@
60
60
  "devDependencies": {
61
61
  "@biomejs/biome": "^2.3.8",
62
62
  "@chromatic-com/storybook": "^4.1.3",
63
+ "@octokit/rest": "^22.0.1",
63
64
  "@rsbuild/core": "^1.6.14",
64
65
  "@rsbuild/plugin-react": "^1.4.2",
65
66
  "@rslib/core": "^0.18.4",
@@ -82,9 +83,12 @@
82
83
  "@typescript/native-preview": "^7.0.0-dev.20251211.1",
83
84
  "@vitest/browser-playwright": "^4.0.15",
84
85
  "@vitest/coverage-v8": "^4.0.15",
86
+ "generate-changelog": "^1.8.0",
85
87
  "glob": "^13.0.0",
86
88
  "i18next-parser": "^9.3.0",
89
+ "moment-timezone": "^0.6.0",
87
90
  "playwright": "^1.57.0",
91
+ "simple-git": "^3.30.0",
88
92
  "storybook": "^10.1.4",
89
93
  "typescript": "^5.9.3",
90
94
  "vitest": "^4.0.15"
@@ -104,8 +108,8 @@
104
108
  }
105
109
  },
106
110
  "./locales": {
107
- "import": "./locales/index.js",
108
- "require": "./locales/index.js"
111
+ "types": "./locales/index.d.ts",
112
+ "default": "./locales/index.js"
109
113
  },
110
114
  "./locales/*": "./locales/*"
111
115
  },