@up42/up-components 3.0.1 → 3.0.3

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.
@@ -7,6 +7,10 @@ export type ButtonProps = MUIGlobalOmit<Omit<MUIButtonProps, 'size' | 'color'>,
7
7
  color?: 'critical' | MUIButtonProps['color'];
8
8
  component?: MUIButtonProps['LinkComponent'];
9
9
  to?: MUIButtonProps['href'];
10
+ /**
11
+ * Determines whether to open the link in the same tab for external links.
12
+ */
13
+ openInSameTab?: boolean;
10
14
  }>;
11
15
  /**
12
16
  * ### Routing Libraries
@@ -30,4 +34,8 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<{
30
34
  color?: 'critical' | MUIButtonProps['color'];
31
35
  component?: MUIButtonProps['LinkComponent'];
32
36
  to?: MUIButtonProps['href'];
37
+ /**
38
+ * Determines whether to open the link in the same tab for external links.
39
+ */
40
+ openInSameTab?: boolean | undefined;
33
41
  } & Omit<Omit<MUIButtonProps<"button", {}>, "color" | "size">, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React.RefAttributes<unknown>>;
@@ -1,17 +1,13 @@
1
1
  import React from 'react';
2
2
  import { TypographyProps as MUITypographyProps } from '@mui/material/Typography';
3
- export type TypographyProps = MUITypographyProps & {
3
+ export type TypographyProps = Omit<MUITypographyProps, 'variant'> & {
4
4
  component?: React.ElementType;
5
5
  variant?: MUITypographyProps['variant'] | 'heading' | 'headingSmall' | 'headingXSmall' | 'body' | 'label' | 'note';
6
6
  };
7
7
  /**
8
8
  * Documentation: https://up-components.up42.com/?path=/docs/data-display-typography--docs
9
9
  */
10
- export declare const Typography: React.ForwardRefExoticComponent<Omit<import("@mui/material/Typography").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
11
- ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
12
- }, "className" | "style" | "classes" | "children" | "color" | "fontSize" | "sx" | "p" | "height" | "width" | "display" | "fontFamily" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "align" | "border" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "whiteSpace" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
13
- component?: React.ElementType<any> | undefined;
14
- } & {
10
+ export declare const Typography: React.ForwardRefExoticComponent<Omit<Omit<MUITypographyProps<"span", {}>, "variant"> & {
15
11
  component?: React.ElementType<any> | undefined;
16
12
  variant?: MUITypographyProps['variant'] | 'heading' | 'headingSmall' | 'headingXSmall' | 'body' | 'label' | 'note';
17
13
  }, "ref"> & React.RefAttributes<unknown>>;
package/dist/index.d.ts CHANGED
@@ -6,9 +6,8 @@ import { ThemeProviderProps } from '@mui/material/styles/ThemeProvider';
6
6
  import * as React from 'react';
7
7
  import React__default, { ReactNode, ElementType } from 'react';
8
8
  import { ButtonProps as ButtonProps$1 } from '@mui/material/Button';
9
- import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
10
- import * as _mui_material_Typography from '@mui/material/Typography';
11
9
  import { TypographyProps as TypographyProps$1 } from '@mui/material/Typography';
10
+ import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
12
11
  import * as _mui_system from '@mui/system';
13
12
  import { DatePickerProps } from '@mui/x-date-pickers-pro';
14
13
  import dayjs, { Dayjs } from 'dayjs';
@@ -61,6 +60,10 @@ type ButtonProps = MUIGlobalOmit<Omit<ButtonProps$1, 'size' | 'color'>, {
61
60
  color?: 'critical' | ButtonProps$1['color'];
62
61
  component?: ButtonProps$1['LinkComponent'];
63
62
  to?: ButtonProps$1['href'];
63
+ /**
64
+ * Determines whether to open the link in the same tab for external links.
65
+ */
66
+ openInSameTab?: boolean;
64
67
  }>;
65
68
  /**
66
69
  * ### Routing Libraries
@@ -84,20 +87,20 @@ declare const Button: React__default.ForwardRefExoticComponent<Omit<{
84
87
  color?: 'critical' | ButtonProps$1['color'];
85
88
  component?: ButtonProps$1['LinkComponent'];
86
89
  to?: ButtonProps$1['href'];
90
+ /**
91
+ * Determines whether to open the link in the same tab for external links.
92
+ */
93
+ openInSameTab?: boolean | undefined;
87
94
  } & Omit<Omit<ButtonProps$1<"button", {}>, "color" | "size">, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React__default.RefAttributes<unknown>>;
88
95
 
89
- type TypographyProps = TypographyProps$1 & {
96
+ type TypographyProps = Omit<TypographyProps$1, 'variant'> & {
90
97
  component?: React__default.ElementType;
91
98
  variant?: TypographyProps$1['variant'] | 'heading' | 'headingSmall' | 'headingXSmall' | 'body' | 'label' | 'note';
92
99
  };
93
100
  /**
94
101
  * Documentation: https://up-components.up42.com/?path=/docs/data-display-typography--docs
95
102
  */
96
- declare const Typography: React__default.ForwardRefExoticComponent<Omit<_mui_material_Typography.TypographyOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
97
- ref?: ((instance: HTMLSpanElement | null) => void) | React__default.RefObject<HTMLSpanElement> | null | undefined;
98
- }, "className" | "style" | "classes" | "children" | "color" | "fontSize" | "sx" | "p" | "height" | "width" | "display" | "fontFamily" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "align" | "border" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "whiteSpace" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
99
- component?: React__default.ElementType<any> | undefined;
100
- } & {
103
+ declare const Typography: React__default.ForwardRefExoticComponent<Omit<Omit<TypographyProps$1<"span", {}>, "variant"> & {
101
104
  component?: React__default.ElementType<any> | undefined;
102
105
  variant?: TypographyProps$1['variant'] | 'heading' | 'headingSmall' | 'headingXSmall' | 'body' | 'label' | 'note';
103
106
  }, "ref"> & React__default.RefAttributes<unknown>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@up42/up-components",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "UP42 Component Library",
5
5
  "author": "Axel Fuhrmann axel.fuhrmann@up42.com",
6
6
  "license": "ISC",