norma-library 0.3.8 → 0.4.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.
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/components/Card/Card.d.ts +4 -0
- package/dist/components/Card/CardHeader.d.ts +4 -0
- package/dist/components/Card/index.d.ts +4 -0
- package/dist/components/Card/styles.d.ts +818 -0
- package/dist/components/Card/types.d.ts +12 -0
- package/dist/components/Checkbox/Checkbox.d.ts +4 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/types.d.ts +23 -0
- package/dist/components/Icon/DefaultIcon.d.ts +5 -0
- package/dist/components/Icon/NormaIcon.d.ts +13 -0
- package/dist/components/Icon/default.d.ts +209 -0
- package/dist/components/Icon/index.d.ts +233 -0
- package/dist/components/Icon/norma.d.ts +29 -0
- package/dist/components/Icon/styles.d.ts +485 -0
- package/dist/components/Icon/svg.d.ts +6 -0
- package/dist/components/Icon/types.d.ts +12 -0
- package/dist/components/Modal/Modal.d.ts +4 -0
- package/dist/components/Modal/ModalFooter.d.ts +4 -0
- package/dist/components/Modal/ModalHeader.d.ts +4 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Modal/styles.d.ts +274 -0
- package/dist/components/Modal/types.d.ts +24 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +8 -0
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/ProgressBar/styles.d.ts +276 -0
- package/dist/components/ProgressBar/types.d.ts +22 -0
- package/dist/components/Radio/Radio.d.ts +4 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/types.d.ts +16 -0
- package/dist/components/Tag/Tag.d.ts +4 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/components/Tag/types.d.ts +25 -0
- package/dist/components/TextField/TextField.d.ts +4 -0
- package/dist/components/TextField/index.d.ts +2 -0
- package/dist/components/TextField/types.d.ts +42 -0
- package/dist/components/index.d.ts +19 -0
- package/dist/index.d.ts +1 -4
- package/dist/index.es.js +12534 -3825
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +267 -43
- package/dist/index.umd.js.map +1 -1
- package/package.json +21 -11
- package/dist/Button/Button.d.ts +0 -10
- package/dist/Card/Card.d.ts +0 -3
- package/dist/Card/index.d.ts +0 -2
- package/dist/Card/types.d.ts +0 -9
- /package/dist/{Button → components/Button}/index.d.ts +0 -0
- /package/dist/{Button → components/Button}/types.d.ts +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OverridableStringUnion } from '@mui/types';
|
|
3
|
+
import { Radio, ButtonBaseProps as MuiButtonBaseProps, RadioPropsColorOverrides, RadioPropsSizeOverrides } from '@mui/material';
|
|
4
|
+
type MuiRadioBaseProps = Pick<MuiButtonBaseProps, 'sx'>;
|
|
5
|
+
export interface RadioBaseProps extends MuiRadioBaseProps {
|
|
6
|
+
name?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
tabIndex?: number;
|
|
10
|
+
value?: unknown;
|
|
11
|
+
size?: OverridableStringUnion<'small' | 'medium', RadioPropsSizeOverrides>;
|
|
12
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
13
|
+
color?: OverridableStringUnion<'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'default', RadioPropsColorOverrides>;
|
|
14
|
+
}
|
|
15
|
+
export type RadioType = keyof typeof Radio;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChipProps, ChipPropsColorOverrides, ChipPropsSizeOverrides, ChipPropsVariantOverrides, SxProps } from '@mui/material';
|
|
3
|
+
import { OverridableStringUnion } from '@mui/types';
|
|
4
|
+
import { Theme } from '@emotion/react';
|
|
5
|
+
import Tag from './Tag';
|
|
6
|
+
type MuiTagBaseProps = Pick<ChipProps, 'sx'>;
|
|
7
|
+
export interface TagBaseProps extends MuiTagBaseProps {
|
|
8
|
+
sx?: SxProps<Theme>;
|
|
9
|
+
avatar?: React.ReactElement;
|
|
10
|
+
children?: null;
|
|
11
|
+
clickable?: boolean;
|
|
12
|
+
deleteIcon?: React.ReactElement;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
icon?: React.ReactElement;
|
|
15
|
+
label?: React.ReactNode;
|
|
16
|
+
onDelete?: React.EventHandler<any>;
|
|
17
|
+
size?: OverridableStringUnion<'small' | 'medium', ChipPropsSizeOverrides>;
|
|
18
|
+
skipFocusWhenDisabled?: boolean;
|
|
19
|
+
tabIndex?: number;
|
|
20
|
+
variant?: OverridableStringUnion<'filled' | 'outlined', ChipPropsVariantOverrides>;
|
|
21
|
+
onClick?: (event: React.MouseEvent | React.KeyboardEvent | React.TouchEvent) => void;
|
|
22
|
+
color?: OverridableStringUnion<'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning', ChipPropsColorOverrides>;
|
|
23
|
+
}
|
|
24
|
+
export type TagType = keyof typeof Tag;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { TextFieldProps as MuiTextFieldProps, TextFieldPropsColorOverrides, TextFieldPropsSizeOverrides } from '@mui/material/TextField';
|
|
3
|
+
import { FormHelperTextProps, InputBaseProps, InputLabelProps, OutlinedInputProps, SelectProps } from '@mui/material';
|
|
4
|
+
import { InputProps as StandardInputProps } from '@mui/material/Input';
|
|
5
|
+
import { OverridableStringUnion } from '@mui/types';
|
|
6
|
+
import { TextField } from '@mui/material';
|
|
7
|
+
export type TextFieldValue = string | number;
|
|
8
|
+
export type TextFieldVariant = 'standard' | 'outlined' | 'filled';
|
|
9
|
+
type MuiTextFieldBaseProps = Pick<MuiTextFieldProps, 'onChange' | 'onBlur' | 'onFocus' | 'defaultValue' | 'size' | 'value' | 'id' | 'fullWidth' | 'helperText' | 'type' | 'InputProps' | 'InputLabelProps' | 'autoComplete' | 'label' | 'helperText' | 'InputLabelProps' | 'margin' | 'maxRows' | 'minRows' | 'multiline' | 'name' | 'placeholder' | 'rows' | 'select' | 'SelectProps' | 'sx' | 'autoFocus' | 'error' | 'classes' | 'children' | 'color' | 'variant'>;
|
|
10
|
+
export interface TextFieldBaseProps extends MuiTextFieldBaseProps {
|
|
11
|
+
id?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
type?: React.InputHTMLAttributes<unknown>['type'];
|
|
17
|
+
hasError?: boolean;
|
|
18
|
+
label?: ReactNode;
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
error?: boolean;
|
|
21
|
+
variant?: TextFieldVariant;
|
|
22
|
+
helperText?: React.ReactNode;
|
|
23
|
+
InputLabelProps?: Partial<InputLabelProps>;
|
|
24
|
+
InputProps?: Partial<OutlinedInputProps>;
|
|
25
|
+
autoComplete?: string;
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
multiline?: boolean;
|
|
28
|
+
rows?: string | number;
|
|
29
|
+
maxRows?: string | number;
|
|
30
|
+
minRows?: string | number;
|
|
31
|
+
select?: boolean;
|
|
32
|
+
SelectProps?: Partial<SelectProps>;
|
|
33
|
+
onClick?: InputBaseProps['onClick'];
|
|
34
|
+
onBlur?: InputBaseProps['onBlur'];
|
|
35
|
+
onFocus?: StandardInputProps['onFocus'];
|
|
36
|
+
size?: OverridableStringUnion<'small' | 'medium', TextFieldPropsSizeOverrides>;
|
|
37
|
+
FormHelperTextProps?: Partial<FormHelperTextProps>;
|
|
38
|
+
color?: OverridableStringUnion<'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning', TextFieldPropsColorOverrides>;
|
|
39
|
+
value?: unknown;
|
|
40
|
+
}
|
|
41
|
+
export type TextFieldType = keyof typeof TextField;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './Button';
|
|
2
|
+
export { default as Button } from './Button/Button';
|
|
3
|
+
export * from './Card';
|
|
4
|
+
export { default as Card } from './Card/Card';
|
|
5
|
+
export * from './Checkbox';
|
|
6
|
+
export { default as Checkbox } from './Checkbox/Checkbox';
|
|
7
|
+
export * from './Icon';
|
|
8
|
+
export { Icons as DefaultIcon } from './Icon/DefaultIcon';
|
|
9
|
+
export { Icons as NormaIcon } from './Icon/NormaIcon';
|
|
10
|
+
export * from './Modal';
|
|
11
|
+
export { default as Modal } from './Modal/Modal';
|
|
12
|
+
export * from './ProgressBar';
|
|
13
|
+
export { default as ProgressBar } from './ProgressBar/ProgressBar';
|
|
14
|
+
export * from './Radio';
|
|
15
|
+
export { default as Radiobox } from './Radio/Radio';
|
|
16
|
+
export * from './Tag';
|
|
17
|
+
export { default as Tag } from './Tag/Tag';
|
|
18
|
+
export * from './TextField';
|
|
19
|
+
export { default as TextField } from './TextField/TextField';
|
package/dist/index.d.ts
CHANGED