norma-library 0.5.801 → 0.5.803

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.
@@ -10,7 +10,7 @@ export declare const ChatMessageBalloonStyle: import("@emotion/styled").StyledCo
10
10
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
11
  export declare const ChatMessageDateStyle: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
12
12
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
13
- }, "p" | "style" | "className" | "classes" | "children" | "sx" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
13
+ }, "p" | "style" | "className" | "classes" | "children" | "sx" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
14
14
  export declare const ChatMessageChildrenStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
15
15
  direction: string;
16
16
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { ModalBaseProps } from '../interfaces';
3
3
  export declare function Close(): React.JSX.Element;
4
- export declare const Modal: ({ open, children, ...props }: ModalBaseProps) => React.JSX.Element;
4
+ export declare const Modal: ({ open, children, paperProps, ...props }: ModalBaseProps) => React.JSX.Element;
@@ -5,7 +5,7 @@ import { styled } from '@mui/material/styles';
5
5
  import { IconButton } from './IconButton';
6
6
  import { Button } from './Button';
7
7
  var ModalStyled = styled(MuiModal)({});
8
- var ModalContentStyled = styled(Paper)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border: 1px solid #00000033;\n border-radius: 4px;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 421px;\n transform: translate(-50%, -50%);\n bgcolor: background.paper;\n box-shadow: 24px;\n"], ["\n border: 1px solid #00000033;\n border-radius: 4px;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 421px;\n transform: translate(-50%, -50%);\n bgcolor: background.paper;\n box-shadow: 24px;\n"])));
8
+ var ModalContentStyled = styled(Paper)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border: 1px solid #00000033;\n border-radius: 4px;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 421px;\n transform: translate(-50%, -50%);\n background-color: #FFF;\n box-shadow: 24px;\n"], ["\n border: 1px solid #00000033;\n border-radius: 4px;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 421px;\n transform: translate(-50%, -50%);\n background-color: #FFF;\n box-shadow: 24px;\n"])));
9
9
  var ModalHeaderStyled = styled(Box)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n text-align: left;\n border-bottom: 1px solid #00000033;\n box-sizing: border-box;\n margin: 0;\n position: relative;\n padding: 22px 26px 15px 26px;\n justify-content: space-between;\n display: flex;\n\n & h2 {\n font: normal normal 600 18px/30px Source Sans Pro;\n color: #292929;\n }\n"], ["\n text-align: left;\n border-bottom: 1px solid #00000033;\n box-sizing: border-box;\n margin: 0;\n position: relative;\n padding: 22px 26px 15px 26px;\n justify-content: space-between;\n display: flex;\n\n & h2 {\n font: normal normal 600 18px/30px Source Sans Pro;\n color: #292929;\n }\n"])));
10
10
  var ModalFooterStyled = styled(Box)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-top: 1px solid #00000033;\n box-sizing: border-box;\n position: relative;\n padding: 24px;\n display: flex;\n justify-content: end;\n gap: 24px;\n"], ["\n border-top: 1px solid #00000033;\n box-sizing: border-box;\n position: relative;\n padding: 24px;\n display: flex;\n justify-content: end;\n gap: 24px;\n"])));
11
11
  var ModalContainerChildrenStyled = styled(Box)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n box-sizing: border-box;\n padding: 24px;\n"], ["\n box-sizing: border-box;\n padding: 24px;\n"])));
@@ -14,9 +14,9 @@ export function Close() {
14
14
  React.createElement("path", { clipRule: "evenodd", fillRule: "evenodd", d: "M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 5.47a.75.75 0 11-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 01-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 010-1.06z" })));
15
15
  }
16
16
  export var Modal = function (_a) {
17
- var open = _a.open, children = _a.children, props = __rest(_a, ["open", "children"]);
17
+ var open = _a.open, children = _a.children, paperProps = _a.paperProps, props = __rest(_a, ["open", "children", "paperProps"]);
18
18
  return (React.createElement(ModalStyled, __assign({ open: true }, props),
19
- React.createElement(ModalContentStyled, null,
19
+ React.createElement(ModalContentStyled, __assign({}, paperProps),
20
20
  props.title && (React.createElement(ModalHeaderStyled, null,
21
21
  React.createElement(Typography, { variant: 'h2' }, props.title),
22
22
  React.createElement(IconButton, { onClick: props.onClose, size: "small", color: "inherit", variant: "text", cursor: "pointer", sx: { padding: "0" } },
@@ -1 +1 @@
1
- {"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B;YACD,oBAAC,4BAA4B,QAC1B,QAAQ,CACoB;YAC9B,KAAK,CAAC,MAAM,IAAI,CACf,oBAAC,iBAAiB,QACf,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,GAAG,IAAK,OAAA,CAC/B,oBAAC,MAAM,IACL,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,IAAI,CAAC,MAAM,EACpB,IAAI,EAAE,IAAI,CAAC,IAAI,IAEd,IAAI,CAAC,KAAK,CACJ,CACV,EAVgC,CAUhC,CAAC,CACgB,CACrB,CACkB,CACT,CACf,CAAC;AACJ,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { SxProps } from '@mui/material';
3
3
  import { Theme } from '@emotion/react';
4
- import { MuiModalBaseProps, OnAction } from '@/types';
4
+ import { MuiModalBaseProps, MuiPaperBaseProps, OnAction } from '@/types';
5
5
  export interface ModalBaseProps extends MuiModalBaseProps {
6
6
  sx?: SxProps<Theme>;
7
7
  children: React.ReactElement;
@@ -12,4 +12,5 @@ export interface ModalBaseProps extends MuiModalBaseProps {
12
12
  full?: boolean;
13
13
  title?: string;
14
14
  id?: string;
15
+ paperProps?: MuiPaperBaseProps;
15
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "norma-library",
3
- "version": "0.5.801",
3
+ "version": "0.5.803",
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": {
@@ -0,0 +1,8 @@
1
+ Ordenação A-Z
2
+ Orgenação Z-A
3
+
4
+
5
+ - Esconder e exibir colunas
6
+ - Ao aplicar filtros, gerenciar a paginação (está com erro)
7
+ - Identificação de filtros aplicados por coluna (não da pra saber onde tem filtros ativos)
8
+ - Desenvolvimento da aplicação de múltiplos filtros (hoje está aplicando apenas 1 filtro)
@@ -15,7 +15,7 @@ const ModalContentStyled = styled(Paper)`
15
15
  left: 50%;
16
16
  width: 421px;
17
17
  transform: translate(-50%, -50%);
18
- bgcolor: background.paper;
18
+ background-color: #FFF;
19
19
  box-shadow: 24px;
20
20
  `;
21
21
 
@@ -69,11 +69,10 @@ export function Close() {
69
69
  );
70
70
  }
71
71
 
72
- export const Modal = ({ open, children, ...props }: ModalBaseProps) => {
73
-
72
+ export const Modal = ({ open, children, paperProps, ...props }: ModalBaseProps) => {
74
73
  return (
75
74
  <ModalStyled open {...props}>
76
- <ModalContentStyled>
75
+ <ModalContentStyled {...paperProps}>
77
76
  {props.title && (
78
77
  <ModalHeaderStyled>
79
78
  <Typography variant='h2'>{props.title}</Typography>
@@ -1,6 +1,6 @@
1
1
  import { SxProps } from '@mui/material';
2
2
  import { Theme } from '@emotion/react';
3
- import { MuiModalBaseProps, OnAction } from '@/types';
3
+ import { MuiModalBaseProps, MuiPaperBaseProps, OnAction } from '@/types';
4
4
 
5
5
  export interface ModalBaseProps extends MuiModalBaseProps {
6
6
  sx?: SxProps<Theme>;
@@ -12,4 +12,5 @@ export interface ModalBaseProps extends MuiModalBaseProps {
12
12
  full?: boolean;
13
13
  title?: string;
14
14
  id?: string;
15
+ paperProps?: MuiPaperBaseProps;
15
16
  }
@@ -120,6 +120,11 @@ export const ModalAction = () => {
120
120
  aria-labelledby="modal-modal-title"
121
121
  aria-describedby="modal-modal-description"
122
122
  action={defaultAction}
123
+ paperProps={{
124
+ sx: {
125
+ width: "90vw"
126
+ }
127
+ }}
123
128
  >
124
129
  <>
125
130
  <Typography id="modal-modal-title" variant="h6" component="h2">
@@ -1,9 +0,0 @@
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
- };
@@ -1,18 +0,0 @@
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,3 +0,0 @@
1
- import { CardBaseProps } from './types';
2
- declare const Card: ({ children, title }: CardBaseProps) => import("react/jsx-runtime").JSX.Element;
3
- export default Card;
@@ -1,3 +0,0 @@
1
- import { CardHeaderBaseProps } from './types';
2
- declare const CardHeader: ({ title }: CardHeaderBaseProps) => import("react/jsx-runtime").JSX.Element;
3
- export default CardHeader;
@@ -1,4 +0,0 @@
1
- export * from './Card';
2
- export * from './CardHeader';
3
- export { default as Card } from './Card';
4
- export { default as CardHeader } from './CardHeader';