@up42/up-components 2.12.1 → 2.13.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.
@@ -3,7 +3,14 @@ import { LinkProps as MuiLinkProps } from '@mui/material';
3
3
  export declare type LinkProps<C extends React.ElementType> = MuiLinkProps<C, {
4
4
  component?: C;
5
5
  }> & {
6
+ /**
7
+ * Determines whether to hide the icon.
8
+ */
6
9
  hideIcon?: boolean;
10
+ /**
11
+ * Determines whether to open the link in the same tab for external links.
12
+ */
13
+ openInSameTab?: boolean;
7
14
  };
8
15
  /**
9
16
  * ### Routing Libraries
@@ -21,4 +28,4 @@ export declare type LinkProps<C extends React.ElementType> = MuiLinkProps<C, {
21
28
  *
22
29
  * Documentation: https://up-components.up42.com/?path=/docs/navigation-link--docs
23
30
  */
24
- export declare const Link: <C extends React.ElementType<any>>({ children, underline, hideIcon, ...props }: LinkProps<C>) => JSX.Element;
31
+ export declare const Link: <C extends React.ElementType<any>>({ children, underline, hideIcon, openInSameTab, ...props }: LinkProps<C>) => JSX.Element;
package/dist/index.d.ts CHANGED
@@ -333,7 +333,14 @@ declare const Slider: (props: SliderProps) => JSX.Element;
333
333
  declare type LinkProps<C extends React__default.ElementType> = LinkProps$1<C, {
334
334
  component?: C;
335
335
  }> & {
336
+ /**
337
+ * Determines whether to hide the icon.
338
+ */
336
339
  hideIcon?: boolean;
340
+ /**
341
+ * Determines whether to open the link in the same tab for external links.
342
+ */
343
+ openInSameTab?: boolean;
337
344
  };
338
345
  /**
339
346
  * ### Routing Libraries
@@ -351,7 +358,7 @@ declare type LinkProps<C extends React__default.ElementType> = LinkProps$1<C, {
351
358
  *
352
359
  * Documentation: https://up-components.up42.com/?path=/docs/navigation-link--docs
353
360
  */
354
- declare const Link: <C extends React__default.ElementType<any>>({ children, underline, hideIcon, ...props }: LinkProps<C>) => JSX.Element;
361
+ declare const Link: <C extends React__default.ElementType<any>>({ children, underline, hideIcon, openInSameTab, ...props }: LinkProps<C>) => JSX.Element;
355
362
 
356
363
  declare type TabsProps = MUIGlobalOmit<TabsProps$1>;
357
364
  declare type TabProps = MUIGlobalOmit<TabProps$1>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@up42/up-components",
3
- "version": "2.12.1",
3
+ "version": "2.13.0",
4
4
  "description": "UP42 Component Library",
5
5
  "author": "Axel Fuhrmann axel.fuhrmann@up42.com",
6
6
  "license": "ISC",