@up42/up-components 0.0.2 → 0.0.21
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.
- package/dist/cjs/index.js +15 -15
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Button/Button.d.ts +3 -2
- package/dist/cjs/types/components/Button/{overrides.d.ts → Button.overrides.d.ts} +0 -0
- package/dist/cjs/types/components/Typography/Typography.d.ts +8 -0
- package/dist/cjs/types/{global/overrides/typography.d.ts → components/Typography/Typography.overrides.d.ts} +0 -0
- package/dist/cjs/types/components/Typography/Typography.stories.d.ts +6 -0
- package/dist/cjs/types/components/Typography/Typography.test.d.ts +1 -0
- package/dist/cjs/types/components/index.d.ts +3 -0
- package/dist/cjs/types/global/overrides/index.d.ts +0 -2
- package/dist/cjs/types/global/utils/types.d.ts +1 -0
- package/dist/esm/index.js +15 -15
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Button/Button.d.ts +3 -2
- package/dist/esm/types/components/Button/{overrides.d.ts → Button.overrides.d.ts} +0 -0
- package/dist/esm/types/components/Typography/Typography.d.ts +8 -0
- package/dist/esm/types/{global/overrides/typography.d.ts → components/Typography/Typography.overrides.d.ts} +0 -0
- package/dist/esm/types/components/Typography/Typography.stories.d.ts +6 -0
- package/dist/esm/types/components/Typography/Typography.test.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +3 -0
- package/dist/esm/types/global/overrides/index.d.ts +0 -2
- package/dist/esm/types/global/utils/types.d.ts +1 -0
- package/dist/index.d.ts +33 -3
- package/package.json +4 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps as MUIButtonProps } from '@mui/material/Button';
|
|
3
|
-
|
|
3
|
+
import { MUIGlobalOmit } from 'global/utils/types';
|
|
4
|
+
export declare type ButtonProps = MUIGlobalOmit<MUIButtonProps, {
|
|
4
5
|
loading?: boolean;
|
|
5
|
-
}
|
|
6
|
+
}>;
|
|
6
7
|
declare const Button: ({ color, variant, size, loading, children, ...props }: ButtonProps) => JSX.Element;
|
|
7
8
|
export default Button;
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TypographyProps as MUITypographyProps } from '@mui/material/Typography';
|
|
3
|
+
import { MUIGlobalOmit } from 'global/utils/types';
|
|
4
|
+
export declare type TypographyProps = MUIGlobalOmit<MUITypographyProps, {
|
|
5
|
+
component?: React.ElementType;
|
|
6
|
+
}>;
|
|
7
|
+
declare const Typography: React.FC<TypographyProps>;
|
|
8
|
+
export default Typography;
|
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Story, Meta } from '@storybook/react';
|
|
2
|
+
import { TypographyProps } from './Typography';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<TypographyProps>;
|
|
6
|
+
export declare const AllVariants: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,10 +4,8 @@ export * from './menuItem';
|
|
|
4
4
|
export * from './tab';
|
|
5
5
|
export * from './tablePagination';
|
|
6
6
|
export * from './tabs';
|
|
7
|
-
export * from './typography';
|
|
8
7
|
export * from './form/checkbox';
|
|
9
8
|
export * from './form/input';
|
|
10
9
|
export * from './form/label';
|
|
11
10
|
export * from './form/radio';
|
|
12
11
|
export * from './form/switch';
|
|
13
|
-
export * from '../../components/Button/overrides';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type MUIGlobalOmit<MuiProps, ComponentProps = unknown> = ComponentProps & Omit<MuiProps, 'classes' | 'disableElevation' | 'disableFocusRipple' | 'disableRipple' | 'focusRipple' | 'tabIndex' | 'action' | 'centerRipple' | 'disableTouchRipple' | 'focusVisibleClassName' | 'LinkComponent' | 'TouchRippleProps'>;
|