norma-library 0.0.7 → 0.0.9

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,4 @@
1
+ import React from 'react';
2
+ import { TextFieldBaseProps } from './types';
3
+ export declare const TextField: React.FC<TextFieldBaseProps>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAK5C,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmBlD,CAAA"}
@@ -0,0 +1,14 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { TextFieldProps as MuiTextFieldProps } from '@mui/material/TextField';
3
+ export type TextFieldValue = string | number;
4
+ export type TextFieldVariant = 'standard' | 'outlined' | 'filled';
5
+ export type TextFieldBaseProps = Pick<MuiTextFieldProps, 'onChange' | 'onBlur' | 'onFocus' | 'defaultValue' | 'variant' | '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'> & {
6
+ name?: string;
7
+ disabled?: boolean;
8
+ required?: boolean;
9
+ hasError?: boolean;
10
+ label?: ReactNode;
11
+ children?: ReactNode;
12
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: TextFieldValue) => void;
13
+ };
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAE7E,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAA;AAC5C,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAA;AAEjE,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,iBAAiB,EACf,UAAU,GACV,QAAQ,GACR,SAAS,GACT,cAAc,GACd,SAAS,GACT,MAAM,GACN,OAAO,GACP,IAAI,GACJ,WAAW,GACX,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,iBAAiB,GACjB,cAAc,GACd,OAAO,GACP,YAAY,GACZ,iBAAiB,GACjB,QAAQ,GACR,SAAS,GACT,SAAS,GACT,WAAW,GACX,MAAM,GACN,aAAa,GACb,MAAM,GACN,QAAQ,GACR,aAAa,GACb,IAAI,GACJ,WAAW,GACX,OAAO,GACP,SAAS,GACT,UAAU,GACV,OAAO,CACV,GAAG;IACF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAA;CACvF,CAAA"}
@@ -11,6 +11,7 @@ export interface ButtonBaseProps extends MuiButtonBaseProps {
11
11
  color?: OverridableStringUnion<'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning', ButtonPropsColorOverrides>;
12
12
  size?: OverridableStringUnion<'small' | 'medium' | 'large', ButtonPropsSizeOverrides>;
13
13
  variant?: OverridableStringUnion<'text' | 'outlined' | 'contained', ButtonPropsVariantOverrides>;
14
+ style?: React.CSSProperties;
14
15
  }
15
16
  export {};
16
17
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEtC,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,WAAW,IAAI,cAAc,EAC7B,OAAO,EACR,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAEnD,KAAK,kBAAkB,GAAG,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC,CAAA;AAEnF,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAA;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;IACpF,KAAK,CAAC,EAAE,sBAAsB,CAC5B,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9E,yBAAyB,CAC1B,CAAA;IACD,IAAI,CAAC,EAAE,sBAAsB,CAAC,OAAO,GAAG,QAAQ,GAAG,OAAO,EAAE,wBAAwB,CAAC,CAAA;IACrF,OAAO,CAAC,EAAE,sBAAsB,CAAC,MAAM,GAAG,UAAU,GAAG,WAAW,EAAE,2BAA2B,CAAC,CAAA;CACjG"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEtC,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,WAAW,IAAI,cAAc,EAC7B,OAAO,EACR,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAEnD,KAAK,kBAAkB,GAAG,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC,CAAA;AAEnF,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAA;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;IACpF,KAAK,CAAC,EAAE,sBAAsB,CAC5B,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9E,yBAAyB,CAC1B,CAAA;IACD,IAAI,CAAC,EAAE,sBAAsB,CAAC,OAAO,GAAG,QAAQ,GAAG,OAAO,EAAE,wBAAwB,CAAC,CAAA;IACrF,OAAO,CAAC,EAAE,sBAAsB,CAAC,MAAM,GAAG,UAAU,GAAG,WAAW,EAAE,2BAA2B,CAAC,CAAA;IAChG,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { CardHeaderBaseProps } from './types';
3
+ declare const CardHeader: React.FC<CardHeaderBaseProps>;
4
+ export default CardHeader;
5
+ //# sourceMappingURL=CardHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardHeader.d.ts","sourceRoot":"","sources":["CardHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAY7C,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAE7C,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -1,7 +1,4 @@
1
- import { ReactNode } from 'react';
2
- interface CardProps {
3
- children: ReactNode;
4
- }
5
- export declare const Card: React.FC<CardProps>;
6
- export {};
1
+ /// <reference types="react" />
2
+ import { CardBaseProps } from './types';
3
+ export declare const Card: React.FC<CardBaseProps>;
7
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,UAAU,SAAS;IACjB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAMpC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAYvC,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CASxC,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export interface CardBaseProps {
3
+ children: ReactNode;
4
+ title?: string;
5
+ }
6
+ export interface CardHeaderBaseProps {
7
+ title: string;
8
+ }
9
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;CACd"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ModalFooterProps } from './types';
3
+ declare const ModalFooter: React.FC<ModalFooterProps>;
4
+ export default ModalFooter;
5
+ //# sourceMappingURL=ModalFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalFooter.d.ts","sourceRoot":"","sources":["ModalFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE1C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuB3C,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ModalHeaderProps } from './types';
3
+ declare const ModalHeader: React.FC<ModalHeaderProps>;
4
+ export default ModalHeader;
5
+ //# sourceMappingURL=ModalHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["ModalHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAY1C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuC3C,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ModalBaseProps } from './types';
3
+ export declare const Modal: React.FC<ModalBaseProps>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAqBxC,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAc1C,CAAA"}
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import { ModalProps, SxProps } from '@mui/material';
3
+ import { Theme } from '@emotion/react';
4
+ export type RenderProps<E extends HTMLElement = HTMLElement> = {
5
+ focusRef?: React.MutableRefObject<E | null>;
6
+ id?: string;
7
+ };
8
+ export type ModalBaseProps = Omit<ModalProps, 'sx'> & {
9
+ sx?: SxProps<Theme>;
10
+ children?: React.ReactElement | React.ReactElement[];
11
+ open?: boolean;
12
+ onClose?: (event?: React.MouseEvent | React.KeyboardEvent | React.TouchEvent, contextId?: string) => void;
13
+ className?: string;
14
+ title?: string;
15
+ full?: boolean;
16
+ onConfirm?: (event?: React.MouseEvent | React.KeyboardEvent | React.TouchEvent, contextId?: string) => void;
17
+ };
18
+ export interface ModalHeaderProps {
19
+ title?: string;
20
+ onClose?: (event?: React.MouseEvent | React.KeyboardEvent | React.TouchEvent, contextId?: string) => void;
21
+ }
22
+ export interface ModalFooterProps {
23
+ onCancel?: (event?: React.MouseEvent | React.KeyboardEvent | React.TouchEvent, contextId?: string) => void;
24
+ onConfirm: (event?: React.MouseEvent | React.KeyboardEvent | React.TouchEvent, contextId?: string) => void;
25
+ }
26
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEtC,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI;IAC7D,QAAQ,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC,GAAG,IAAI,CAAC,CAAA;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CAAC,UAAU,EACjE,SAAS,CAAC,EAAE,MAAM,KACf,IAAI,CAAA;CACV"}
@@ -1,6 +1,11 @@
1
1
  export type { ButtonBaseProps } from './Layout/Button/types';
2
+ export type { CardBaseProps } from './Layout/Card/types';
3
+ export type { IconsProps } from './Data/Icon/types';
4
+ export type { ModalBaseProps } from './Layout/Modal/types';
2
5
  export { Button } from './Layout/Button';
3
6
  export { Card } from './Layout/Card';
7
+ export { Modal } from './Layout/Modal';
8
+ export { TextField } from './Form/TextField';
4
9
  export { Icons as DefaultIconSVG } from './Data/Icon/DefaultIcon';
5
10
  export { Icons as NormaIconSVG } from './Data/Icon/NormaIcon';
6
11
  export { palette, lightTheme, darkTheme } from '@helpers/colors';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACpC,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAE5C,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA"}