@up42/up-components 2.0.0 → 2.2.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.
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { SvgIconProps } from '@mui/material';
3
+ import * as illustrations from '@global/illustrations';
4
+ export declare type IllustrationProps = {
5
+ name: keyof typeof illustrations;
6
+ size?: SvgIconProps['width'];
7
+ } & Omit<SvgIconProps, 'children' | 'inheritViewBox' | 'shapeRendering' | 'viewBox' | 'fontSize'>;
8
+ /**
9
+ * Documentation: https://up-components.up42.com/?path=/docs/data-display-illustrations--docs
10
+ * Illustrations: https://up-components.up42.com/?path=/docs/illustrations--docs
11
+ */
12
+ export declare function Illustration({ name, size, sx, ...props }: IllustrationProps): JSX.Element;
@@ -5,15 +5,6 @@ export declare type TypographyProps = MUITypographyProps & {
5
5
  variant?: MUITypographyProps['variant'] | 'heading' | 'headingSmall' | 'headingXSmall' | 'body' | 'label' | 'note';
6
6
  };
7
7
  /**
8
- * Douglas `variant` prop migration helper:
9
- * - `h1` -> `heading`
10
- * - `h2` -> `headingSmall`
11
- * - `h3` -> `headingXSmall`
12
- * - `body1` -> `body`
13
- * - `caption` ->`note`
14
- * - `overline` -> `label`
15
- * - (no variant) -> `body`
16
- *
17
8
  * Documentation: https://up-components.up42.com/?path=/docs/data-display-typography--docs
18
9
  */
19
10
  export declare const Typography: React.ForwardRefExoticComponent<Pick<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
@@ -41,32 +41,4 @@ declare module '@mui/material/Typography' {
41
41
  }
42
42
  export declare const MuiTypography: OverridesStyleRules;
43
43
  export declare const typographyTheme: TypographyOptions;
44
- export declare const typographyOverrides: {
45
- heading?: import("react").CSSProperties | undefined;
46
- headingSmall?: import("react").CSSProperties | undefined;
47
- headingXSmall?: import("react").CSSProperties | undefined;
48
- body?: import("react").CSSProperties | undefined;
49
- label?: import("react").CSSProperties | undefined;
50
- note?: import("react").CSSProperties | undefined;
51
- button?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
52
- caption?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
53
- h1?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
54
- h2?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
55
- h3?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
56
- h4?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
57
- h5?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
58
- h6?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
59
- overline?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
60
- subtitle1?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
61
- subtitle2?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
62
- body1?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
63
- body2?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
64
- allVariants?: import("react").CSSProperties | undefined;
65
- fontFamily?: import("csstype").Property.FontFamily | undefined;
66
- fontSize?: number | undefined;
67
- fontWeightLight?: import("csstype").Property.FontWeight | undefined;
68
- fontWeightRegular?: import("csstype").Property.FontWeight | undefined;
69
- fontWeightMedium?: import("csstype").Property.FontWeight | undefined;
70
- fontWeightBold?: import("csstype").Property.FontWeight | undefined;
71
- htmlFontSize?: number | undefined;
72
- };
44
+ export declare const typographyOverrides: TypographyOptions;
@@ -0,0 +1,3 @@
1
+ export { default as FloppyDisk } from './floppy-disk.svg';
2
+ export { default as Satellite } from './satellite.svg';
3
+ export { default as RocketFixing } from './rocket-fixing.svg';
@@ -42,6 +42,7 @@ export { PageHeader, type PageHeaderProps } from './components/PageHeader/PageHe
42
42
  export { NotFound, type NotFoundProps } from './components/NotFound/NotFound';
43
43
  export { Loading, type LoadingProps } from './components/Loading/Loading';
44
44
  export { Icon, type IconProps } from './components/Icon/Icon';
45
+ export { Illustration, type IllustrationProps } from './components/Illustration/Illustration';
45
46
  export { Badge, type BadgeProps } from './components/Badge/Badge';
46
47
  export { Tag, type TagProps } from './components/Tag/Tag';
47
48
  export { DateTime, type DateTimeProps } from './components/DateTime/DateTime';