norma-library 0.3.3 → 0.3.5
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/Button/Button.d.ts +10 -31
- package/dist/Button/index.d.ts +2 -2
- package/dist/Button/types.d.ts +18 -0
- package/dist/Card/Card.d.ts +3 -9
- package/dist/Card/index.d.ts +2 -2
- package/dist/Card/types.d.ts +9 -0
- package/dist/index.es.js +5645 -380
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +176 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -3
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,31 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from '@mui/material'
|
|
12
|
-
|
|
13
|
-
import { OverridableStringUnion } from '@mui/types'
|
|
14
|
-
|
|
15
|
-
type MuiButtonBaseProps = Pick<MuiButtonProps, 'sx' | 'color' | 'size' | 'variant'>
|
|
16
|
-
|
|
17
|
-
export interface ButtonBaseProps extends MuiButtonBaseProps {
|
|
18
|
-
label: string
|
|
19
|
-
sx?: SxProps<Theme>
|
|
20
|
-
children?: ReactNode
|
|
21
|
-
onClick?: (event: React.MouseEvent | React.KeyboardEvent | React.TouchEvent) => void
|
|
22
|
-
color?: OverridableStringUnion<
|
|
23
|
-
'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning',
|
|
24
|
-
ButtonPropsColorOverrides
|
|
25
|
-
>
|
|
26
|
-
size?: OverridableStringUnion<'small' | 'medium' | 'large', ButtonPropsSizeOverrides>
|
|
27
|
-
variant?: OverridableStringUnion<'text' | 'outlined' | 'contained', ButtonPropsVariantOverrides>
|
|
28
|
-
style?: React.CSSProperties
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type ButtonType = keyof typeof Button
|
|
1
|
+
import { ButtonBaseProps } from './types';
|
|
2
|
+
declare const Button: {
|
|
3
|
+
({ label, ...rest }: ButtonBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
defaultProps: {
|
|
5
|
+
variant: string;
|
|
6
|
+
size: string;
|
|
7
|
+
color: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default Button;
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from './Button';
|
|
2
|
+
export { default } from './Button';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Theme } from '@emotion/react';
|
|
3
|
+
import Button from './Button';
|
|
4
|
+
import { ButtonPropsColorOverrides, ButtonPropsSizeOverrides, ButtonPropsVariantOverrides, ButtonProps as MuiButtonProps, SxProps } from '@mui/material';
|
|
5
|
+
import { OverridableStringUnion } from '@mui/types';
|
|
6
|
+
type MuiButtonBaseProps = Pick<MuiButtonProps, 'sx' | 'color' | 'size' | 'variant'>;
|
|
7
|
+
export interface ButtonBaseProps extends MuiButtonBaseProps {
|
|
8
|
+
label: string;
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
onClick?: (event: React.MouseEvent | React.KeyboardEvent | React.TouchEvent) => void;
|
|
12
|
+
color?: OverridableStringUnion<'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning', ButtonPropsColorOverrides>;
|
|
13
|
+
size?: OverridableStringUnion<'small' | 'medium' | 'large', ButtonPropsSizeOverrides>;
|
|
14
|
+
variant?: OverridableStringUnion<'text' | 'outlined' | 'contained', ButtonPropsVariantOverrides>;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
export type ButtonType = keyof typeof Button;
|
|
18
|
+
export {};
|
package/dist/Card/Card.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type CardBaseProps = Pick<CardProps, 'sx'> & {
|
|
5
|
-
sx?: SxProps<Theme>
|
|
6
|
-
raised?: boolean
|
|
7
|
-
title?: string
|
|
8
|
-
children?: React.ReactNode
|
|
9
|
-
}
|
|
1
|
+
import { CardBaseProps } from './types';
|
|
2
|
+
declare const Card: ({ children, title }: CardBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Card;
|
package/dist/Card/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Card'
|
|
2
|
-
export { default } from './Card'
|
|
1
|
+
export * from './Card';
|
|
2
|
+
export { default } from './Card';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardProps, SxProps } from '@mui/material';
|
|
3
|
+
import { Theme } from '@emotion/react';
|
|
4
|
+
export type CardBaseProps = Pick<CardProps, 'sx'> & {
|
|
5
|
+
sx?: SxProps<Theme>;
|
|
6
|
+
raised?: boolean;
|
|
7
|
+
title?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
};
|