@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>>;