@telia/teddy 0.0.56 → 0.0.57
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.
|
@@ -18,7 +18,7 @@ const Link = React.forwardRef(({ children, home, className, ...props }, ref) =>
|
|
|
18
18
|
},
|
|
19
19
|
className
|
|
20
20
|
);
|
|
21
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(components_link_link.Link, { variant: negative ? "standalone-negative" : "standalone",
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(components_link_link.Link, { ...props, variant: negative ? "standalone-negative" : "standalone", ref, className: classes, children: [
|
|
22
22
|
home && /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "home" }),
|
|
23
23
|
/* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children })
|
|
24
24
|
] });
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Link as LinkPrimitive } from '../link';
|
|
2
3
|
|
|
3
|
-
export type LinkProps = React.ComponentPropsWithoutRef<'
|
|
4
|
-
asChild?: boolean;
|
|
4
|
+
export type LinkProps = Omit<React.ComponentPropsWithoutRef<typeof LinkPrimitive>, 'variant'> & {
|
|
5
5
|
home?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export declare const Link: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
7
|
+
export declare const Link: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
8
8
|
asChild?: boolean | undefined;
|
|
9
|
+
disableVisited?: boolean | undefined;
|
|
10
|
+
ensureTargetArea?: boolean | undefined;
|
|
11
|
+
silent?: boolean | undefined;
|
|
12
|
+
variant: "text" | "navigation" | "text-negative" | "standalone" | "standalone-negative" | "navigation-negative";
|
|
13
|
+
} & React.RefAttributes<HTMLAnchorElement>, "ref">, "variant"> & {
|
|
9
14
|
home?: boolean | undefined;
|
|
10
15
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -16,7 +16,7 @@ const Link = React__default.forwardRef(({ children, home, className, ...props },
|
|
|
16
16
|
},
|
|
17
17
|
className
|
|
18
18
|
);
|
|
19
|
-
return /* @__PURE__ */ jsxs(Link$1, { variant: negative ? "standalone-negative" : "standalone",
|
|
19
|
+
return /* @__PURE__ */ jsxs(Link$1, { ...props, variant: negative ? "standalone-negative" : "standalone", ref, className: classes, children: [
|
|
20
20
|
home && /* @__PURE__ */ jsx(Icon, { name: "home" }),
|
|
21
21
|
/* @__PURE__ */ jsx(Slottable, { children })
|
|
22
22
|
] });
|
|
@@ -10,8 +10,13 @@ export declare const Breadcrumbs: import('react').ForwardRefExoticComponent<Omit
|
|
|
10
10
|
} & import('react').RefAttributes<HTMLElement>> & {
|
|
11
11
|
List: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & import('react').RefAttributes<HTMLOListElement>>;
|
|
12
12
|
Item: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import('react').RefAttributes<HTMLLIElement>>;
|
|
13
|
-
Link: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
13
|
+
Link: import('react').ForwardRefExoticComponent<Omit<Omit<Omit<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
14
14
|
asChild?: boolean | undefined;
|
|
15
|
+
disableVisited?: boolean | undefined;
|
|
16
|
+
ensureTargetArea?: boolean | undefined;
|
|
17
|
+
silent?: boolean | undefined;
|
|
18
|
+
variant: "text" | "navigation" | "text-negative" | "standalone" | "standalone-negative" | "navigation-negative";
|
|
19
|
+
} & import('react').RefAttributes<HTMLAnchorElement>, "ref">, "variant"> & {
|
|
15
20
|
home?: boolean | undefined;
|
|
16
21
|
} & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
17
22
|
Page: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|