norma-library 0.5.806 → 0.5.807

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.
@@ -3,7 +3,7 @@ import React, { useMemo } from 'react';
3
3
  import { Typography } from '@mui/material';
4
4
  import * as S from './ChatMessageBalloon.style';
5
5
  export var ChatMessageBalloon = function (_a) {
6
- var label = _a.label, description = _a.description, date = _a.date, direction = _a.direction, children = _a.children, className = _a.className, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onRowMouseEnter = _a.onRowMouseEnter, onRowMouseLeave = _a.onRowMouseLeave, highlight = _a.highlight, rest = __rest(_a, ["label", "description", "date", "direction", "children", "className", "onMouseEnter", "onMouseLeave", "onRowMouseEnter", "onRowMouseLeave", "highlight"]);
6
+ var label = _a.label, description = _a.description, date = _a.date, direction = _a.direction, children = _a.children, className = _a.className, bottomChildren = _a.bottomChildren, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onRowMouseEnter = _a.onRowMouseEnter, onRowMouseLeave = _a.onRowMouseLeave, highlight = _a.highlight, rest = __rest(_a, ["label", "description", "date", "direction", "children", "className", "bottomChildren", "onMouseEnter", "onMouseLeave", "onRowMouseEnter", "onRowMouseLeave", "highlight"]);
7
7
  var ballonClassNames = useMemo(function () {
8
8
  var classNames = [];
9
9
  if (!!onMouseEnter)
@@ -23,6 +23,7 @@ export var ChatMessageBalloon = function (_a) {
23
23
  description),
24
24
  React.createElement(S.ChatMessageChildrenStyle, { direction: direction }, children)),
25
25
  React.createElement(S.ChatMessageBalloonRowStyle, { direction: direction },
26
- React.createElement(S.ChatMessageDateStyle, { fontSize: "0.7rem" }, date))));
26
+ React.createElement(S.ChatMessageDateStyle, { fontSize: "0.7rem" }, date),
27
+ bottomChildren)));
27
28
  };
28
29
  //# sourceMappingURL=ChatMessageBalloon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatMessageBalloon.js","sourceRoot":"","sources":["../../../../src/components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IAC7B,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAA;IAE7B,OAAO,CACL,oBAAC,CAAC,CAAC,gCAAgC,aAAC,SAAS,EAAE,SAAS,IAAM,IAAI;QAChE,oBAAC,CAAC,CAAC,0BAA0B,IAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe;YAC9G,oBAAC,CAAC,CAAC,uBAAuB,IAAC,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB;gBAClI,oBAAC,UAAU,IACT,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE;wBACL,QAAQ,EAAE,MAAM;wBAChB,UAAU,EAAE,KAAK;wBACjB,YAAY,EAAE,KAAK;qBACpB,IAEA,KAAK,CACK;gBACZ,WAAW,CACc;YAC5B,oBAAC,CAAC,CAAC,wBAAwB,IAAC,SAAS,EAAE,SAAS,IAC7C,QAAQ,CACkB,CACA;QAC/B,oBAAC,CAAC,CAAC,0BAA0B,IAAC,SAAS,EAAE,SAAS;YAChD,oBAAC,CAAC,CAAC,oBAAoB,IAAC,QAAQ,EAAE,QAAQ,IAAG,IAAI,CAA0B;YAC1E,cAAc,CACc,CACI,CACtC,CAAC;AACJ,CAAC,CAAC"}
@@ -11,5 +11,6 @@ export interface ChatMessageBalloonProps {
11
11
  highlight?: boolean;
12
12
  attachments?: string[];
13
13
  children?: ReactNode;
14
+ bottomChildren?: ReactNode;
14
15
  className?: string;
15
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "norma-library",
3
- "version": "0.5.806",
3
+ "version": "0.5.807",
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": {
@@ -10,6 +10,7 @@ export const ChatMessageBalloon: React.FC<ChatMessageBalloonProps> = ({
10
10
  direction,
11
11
  children,
12
12
  className,
13
+ bottomChildren,
13
14
  onMouseEnter,
14
15
  onMouseLeave,
15
16
  onRowMouseEnter,
@@ -47,6 +48,7 @@ export const ChatMessageBalloon: React.FC<ChatMessageBalloonProps> = ({
47
48
  </S.ChatMessageBalloonRowStyle>
48
49
  <S.ChatMessageBalloonRowStyle direction={direction}>
49
50
  <S.ChatMessageDateStyle fontSize={"0.7rem"}>{date}</S.ChatMessageDateStyle>
51
+ {bottomChildren}
50
52
  </S.ChatMessageBalloonRowStyle>
51
53
  </S.ChatMessageBalloonContainerStyle>
52
54
  );
@@ -12,5 +12,6 @@ export interface ChatMessageBalloonProps {
12
12
  highlight?: boolean;
13
13
  attachments?: string[];
14
14
  children?:ReactNode;
15
+ bottomChildren?:ReactNode;
15
16
  className?:string;
16
17
  }
@@ -22,6 +22,7 @@ export const ChatMessageBalloonBasic = () => {
22
22
  <div style={{backgroundColor: "#F0F0F0", boxSizing: "border-box", padding: "20px"}}>
23
23
  <ChatMessageBalloon
24
24
  onMouseEnter={ () => console.log('onMouseEnter') }
25
+ bottomChildren={<div>Bottom Children</div>}
25
26
  label="Agente Marcos"
26
27
  description={
27
28
  <Typography
@@ -59,6 +60,49 @@ export const ChatMessageBalloonBasic = () => {
59
60
  justifyContent: "center"
60
61
  }}>{"2"}</span>
61
62
  </ChatMessageBalloon>
63
+
64
+ <ChatMessageBalloon
65
+ onMouseEnter={ () => console.log('onMouseEnter') }
66
+ bottomChildren={<div>Bottom children</div>}
67
+ label="Agente Marcos"
68
+ description={
69
+ <Typography
70
+ variant="body1"
71
+ style={{
72
+ fontSize: "16px"
73
+ }}
74
+ >
75
+ {"Olá, tudo bem? Meu nome é Ana e falo em nome do banco Bradesco. Eu gostaria de falar com Maria Conceição da Silva"}
76
+ </Typography>
77
+ }
78
+ date={"10:23"}
79
+ direction="O"
80
+ attachments={[]}
81
+ >
82
+ <span style={{
83
+ height: "38px",
84
+ width: "38px",
85
+ border: "1px solid #FF8348",
86
+ borderRadius: "38px",
87
+ backgroundColor: "#FFF",
88
+ display: "flex",
89
+ alignItems: "center",
90
+ justifyContent: "center",
91
+ marginRight: "10px"
92
+ }}>{"1"}</span>
93
+ <span style={{
94
+ height: "38px",
95
+ width: "38px",
96
+ border: "1px solid #FF8348",
97
+ borderRadius: "38px",
98
+ backgroundColor: "#FFF",
99
+ display: "flex",
100
+ alignItems: "center",
101
+ justifyContent: "center"
102
+ }}>{"2"}</span>
103
+ </ChatMessageBalloon>
62
104
  </div>
105
+
106
+
63
107
  );
64
108
  };