norma-library 0.2.3 → 0.2.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.
@@ -0,0 +1,9 @@
1
+ import { ButtonBaseProps } from './types';
2
+ export 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
+ };
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import { Theme } from '@emotion/react';
3
+ import { Button } from './index';
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 {};
@@ -1,4 +1,2 @@
1
1
  export * from './Card';
2
- export * from './CardHeader';
3
2
  export { default as Card } from './Card';
4
- export { default as CardHeader } from './CardHeader';
@@ -1,8 +1,9 @@
1
- import { ReactNode } from 'react';
2
- export type CardBaseProps = {
3
- children: ReactNode;
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;
4
7
  title?: string;
5
- };
6
- export type CardHeaderBaseProps = {
7
- title: string;
8
+ children?: React.ReactNode;
8
9
  };
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
+ export * from './Button';
1
2
  export * from './Card';