@equisoft/design-elements-react 5.2.5-snapshot.20230508181600 → 5.2.5-snapshot.20230512033017
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,10 +1,10 @@
|
|
|
1
|
-
import { MouseEvent, VoidFunctionComponent } from 'react';
|
|
1
|
+
import { ComponentPropsWithoutRef, MouseEvent, VoidFunctionComponent } from 'react';
|
|
2
2
|
import { NavLink, Link as ReactRouterLink } from 'react-router-dom';
|
|
3
3
|
import { IconName } from '../icon/icon';
|
|
4
|
-
|
|
4
|
+
type RouterLinkProps = Pick<ComponentPropsWithoutRef<typeof NavLink>, 'end'>;
|
|
5
|
+
interface LinkProps extends RouterLinkProps {
|
|
5
6
|
className?: string;
|
|
6
7
|
disabled?: boolean;
|
|
7
|
-
end?: boolean;
|
|
8
8
|
href: string;
|
|
9
9
|
iconName?: IconName;
|
|
10
10
|
label?: string;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
type Type = 'external' | 'route';
|
|
2
1
|
interface ContainerProps {
|
|
3
|
-
activeClassName?: string;
|
|
4
2
|
disabled?: boolean;
|
|
5
|
-
end?: boolean;
|
|
6
3
|
$hasLabel: boolean;
|
|
7
|
-
|
|
8
|
-
type: Type;
|
|
4
|
+
$isMobile: boolean;
|
|
9
5
|
}
|
|
10
6
|
export declare const StyledLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, ContainerProps, never>;
|
|
11
7
|
export {};
|
package/package.json
CHANGED