@up42/up-components 3.0.1 → 3.0.2
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,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<
|
|
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>>;
|
|
@@ -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<
|
|
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';
|
|
@@ -86,18 +85,14 @@ declare const Button: React__default.ForwardRefExoticComponent<Omit<{
|
|
|
86
85
|
to?: ButtonProps$1['href'];
|
|
87
86
|
} & 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
87
|
|
|
89
|
-
type TypographyProps = TypographyProps$1 & {
|
|
88
|
+
type TypographyProps = Omit<TypographyProps$1, 'variant'> & {
|
|
90
89
|
component?: React__default.ElementType;
|
|
91
90
|
variant?: TypographyProps$1['variant'] | 'heading' | 'headingSmall' | 'headingXSmall' | 'body' | 'label' | 'note';
|
|
92
91
|
};
|
|
93
92
|
/**
|
|
94
93
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-typography--docs
|
|
95
94
|
*/
|
|
96
|
-
declare const Typography: React__default.ForwardRefExoticComponent<Omit<
|
|
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
|
-
} & {
|
|
95
|
+
declare const Typography: React__default.ForwardRefExoticComponent<Omit<Omit<TypographyProps$1<"span", {}>, "variant"> & {
|
|
101
96
|
component?: React__default.ElementType<any> | undefined;
|
|
102
97
|
variant?: TypographyProps$1['variant'] | 'heading' | 'headingSmall' | 'headingXSmall' | 'body' | 'label' | 'note';
|
|
103
98
|
}, "ref"> & React__default.RefAttributes<unknown>>;
|