@woovi/ui 6.5.10 → 6.6.0

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/README.md CHANGED
@@ -20,7 +20,7 @@ import i18n from "i18next"
20
20
  import { Button, Card, ThemeProvider } from "@woovi/ui";
21
21
  import { SnackbarProvider } from "notistack"
22
22
  import { I18nextProvider, initReactI18next } from "react-i18next"
23
- import { BrowserRouter } from "react-router-dom"
23
+ import { BrowserRouter } from "react-router"
24
24
 
25
25
  import en from '@woovi/ui/locales/en.json';
26
26
  import es from '@woovi/ui/locales/es.json';
package/dist/Link.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type LinkProps as MuiLinkProps } from "@mui/material";
2
- import { type LinkProps as RouterLinkProps } from "react-router-dom";
2
+ import { type LinkProps as RouterLinkProps } from "react-router";
3
3
  type LinkProps = RouterLinkProps & Omit<MuiLinkProps, "component">;
4
4
  declare const Link: ({ sx, ...props }: LinkProps) => import("react/jsx-runtime").JSX.Element;
5
5
  export default Link;
@@ -1,2 +1,2 @@
1
- import type { LinkProps } from "react-router-dom";
2
- export declare const ReactRouterLinkBehavior: import("react").ForwardRefExoticComponent<LinkProps<unknown> & import("react").RefAttributes<HTMLAnchorElement>>;
1
+ import { type LinkProps } from "react-router";
2
+ export declare const ReactRouterLinkBehavior: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -1,12 +1,13 @@
1
+ import { type ListItemButtonProps } from "@mui/material/ListItemButton";
1
2
  import type React from "react";
3
+ import { type PropsWithChildren } from "react";
2
4
  type ButtonMenuProps = {
3
5
  children: React.ReactNode;
4
6
  };
5
7
  export declare const ButtonMenu: ({ children }: ButtonMenuProps) => import("react/jsx-runtime").JSX.Element;
6
- type ButtonMenuItemProps = {
8
+ type ButtonMenuItemProps = Omit<ListItemButtonProps, "to" | "href"> & {
7
9
  href?: string;
8
- children: React.ReactNode;
9
10
  onClick?: React.MouseEventHandler<HTMLAnchorElement>;
10
11
  };
11
- export declare const ButtonMenuItem: ({ children, href, onClick }: ButtonMenuItemProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const ButtonMenuItem: ({ children, href, onClick }: PropsWithChildren<ButtonMenuItemProps>) => import("react/jsx-runtime").JSX.Element;
12
13
  export {};