norma-library 0.6.62 → 0.6.64
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,11 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { ButtonPropsColorOverrides, ButtonPropsSizeOverrides, ButtonPropsVariantOverrides, SxProps } from '@mui/material';
|
|
2
|
+
import { ButtonPropsColorOverrides, ButtonPropsSizeOverrides, ButtonPropsVariantOverrides } from '@mui/material';
|
|
4
3
|
import { OverridableStringUnion } from '@mui/types';
|
|
5
4
|
import { ColorVariant, ButtonVariant, SizeVariant, MuiButtonBaseProps } from '../types';
|
|
6
5
|
export interface ButtonBaseProps extends MuiButtonBaseProps {
|
|
7
6
|
label?: string;
|
|
8
|
-
sx?: SxProps<Theme>;
|
|
9
7
|
children?: ReactNode;
|
|
10
8
|
fullWidth?: boolean;
|
|
11
9
|
color?: OverridableStringUnion<ColorVariant, ButtonPropsColorOverrides>;
|
|
@@ -14,7 +14,7 @@ export type TagVariant = 'outlined' | 'contained';
|
|
|
14
14
|
export type TabsVariant = 'standard' | 'scrollable' | 'fullWidth';
|
|
15
15
|
export type DatePickVariant = 'responsive' | 'desktop' | 'mobile';
|
|
16
16
|
export type ProgressVariant = 'determinate' | 'indeterminate' | 'buffer' | 'query';
|
|
17
|
-
export type MuiButtonBaseProps = Omit<MuiButtonProps, '
|
|
17
|
+
export type MuiButtonBaseProps = Omit<MuiButtonProps, 'color' | 'size' | 'variant'>;
|
|
18
18
|
export type MuiIconButtonBaseProps = Omit<MuiIconButtonProps, 'sx' | 'color' | 'size' | 'variant'>;
|
|
19
19
|
export type TextFieldValue = string | number;
|
|
20
20
|
export type TextFieldVariant = 'standard' | 'outlined' | 'filled';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "norma-library",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.64",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Olos/Norma-DS. Design System based on Material UI, developed with TypeScript and Styled Components to create reusable and consistent components in web applications.",
|
|
6
6
|
"scripts": {
|
package/src/interfaces/Button.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { Theme } from '@emotion/react';
|
|
3
2
|
|
|
4
3
|
import {
|
|
5
4
|
ButtonPropsColorOverrides,
|
|
6
5
|
ButtonPropsSizeOverrides,
|
|
7
6
|
ButtonPropsVariantOverrides,
|
|
8
|
-
SxProps,
|
|
9
7
|
} from '@mui/material';
|
|
10
8
|
|
|
11
9
|
import { OverridableStringUnion } from '@mui/types';
|
|
@@ -13,7 +11,6 @@ import { ColorVariant, ButtonVariant, SizeVariant, MuiButtonBaseProps } from '..
|
|
|
13
11
|
|
|
14
12
|
export interface ButtonBaseProps extends MuiButtonBaseProps {
|
|
15
13
|
label?: string;
|
|
16
|
-
sx?: SxProps<Theme>;
|
|
17
14
|
children?: ReactNode;
|
|
18
15
|
fullWidth?: boolean;
|
|
19
16
|
color?: OverridableStringUnion<ColorVariant, ButtonPropsColorOverrides>;
|
package/src/types/index.ts
CHANGED
|
@@ -41,7 +41,7 @@ export type TabsVariant = 'standard' | 'scrollable' | 'fullWidth';
|
|
|
41
41
|
export type DatePickVariant = 'responsive' | 'desktop' | 'mobile';
|
|
42
42
|
export type ProgressVariant = 'determinate' | 'indeterminate' | 'buffer' | 'query';
|
|
43
43
|
|
|
44
|
-
export type MuiButtonBaseProps = Omit<MuiButtonProps, '
|
|
44
|
+
export type MuiButtonBaseProps = Omit<MuiButtonProps, 'color' | 'size' | 'variant'>;
|
|
45
45
|
|
|
46
46
|
export type MuiIconButtonBaseProps = Omit<MuiIconButtonProps, 'sx' | 'color' | 'size' | 'variant'>;
|
|
47
47
|
|