@unif/react-native-chat 4.1.0 → 4.1.1
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/lib/module/components/Message/MarkdownContent/styles.js +5 -1
- package/lib/module/components/Message/MarkdownContent/styles.js.map +1 -1
- package/lib/typescript/src/components/Message/MarkdownContent/styles.d.ts +8 -0
- package/lib/typescript/src/components/Message/MarkdownContent/styles.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Message/MarkdownContent/styles.ts +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { StyleSheet } from 'react-native';
|
|
4
|
-
import { type, fw } from '@unif/react-native-design';
|
|
4
|
+
import { type, fw, r } from '@unif/react-native-design';
|
|
5
5
|
const makeMarkdownStyles = (colors, outgoing) => {
|
|
6
6
|
const textColor = outgoing ? colors.onPrimary : colors.foreground;
|
|
7
7
|
const body = {
|
|
@@ -11,6 +11,10 @@ const makeMarkdownStyles = (colors, outgoing) => {
|
|
|
11
11
|
};
|
|
12
12
|
return StyleSheet.create({
|
|
13
13
|
text: body,
|
|
14
|
+
paragraph: {
|
|
15
|
+
paddingVertical: 0,
|
|
16
|
+
paddingBottom: r(6)
|
|
17
|
+
},
|
|
14
18
|
em: {
|
|
15
19
|
color: textColor,
|
|
16
20
|
fontStyle: 'italic'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","type","fw","makeMarkdownStyles","colors","outgoing","textColor","onPrimary","foreground","body","fontSize","sm","lineHeight","color","create","text","em","fontStyle","strong","fontWeight","strikethrough","textDecorationLine","link","primary","li","codespan","backgroundColor","surfaceContainer","h1","h2","bold","h3","semi","h4","h5","h6","code","borderColor","outline","borderWidth","codeText","blockquote","borderLeftWidth","hr","height","table","createStyles","createOutgoingStyles"],"sourceRoot":"../../../../../src","sources":["components/Message/MarkdownContent/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,IAAI,EAAEC,EAAE,QAAQ,2BAA2B;
|
|
1
|
+
{"version":3,"names":["StyleSheet","type","fw","r","makeMarkdownStyles","colors","outgoing","textColor","onPrimary","foreground","body","fontSize","sm","lineHeight","color","create","text","paragraph","paddingVertical","paddingBottom","em","fontStyle","strong","fontWeight","strikethrough","textDecorationLine","link","primary","li","codespan","backgroundColor","surfaceContainer","h1","h2","bold","h3","semi","h4","h5","h6","code","borderColor","outline","borderWidth","codeText","blockquote","borderLeftWidth","hr","height","table","createStyles","createOutgoingStyles"],"sourceRoot":"../../../../../src","sources":["components/Message/MarkdownContent/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,IAAI,EAAEC,EAAE,EAAEC,CAAC,QAAQ,2BAA2B;AAGvD,MAAMC,kBAAkB,GAAGA,CAACC,MAAmB,EAAEC,QAAiB,KAAK;EACrE,MAAMC,SAAS,GAAGD,QAAQ,GAAGD,MAAM,CAACG,SAAS,GAAGH,MAAM,CAACI,UAAU;EACjE,MAAMC,IAAI,GAAG;IACXC,QAAQ,EAAEV,IAAI,CAACW,EAAE;IACjBC,UAAU,EAAEZ,IAAI,CAACW,EAAE,GAAG,GAAG;IACzBE,KAAK,EAAEP;EACT,CAAC;EACD,OAAOP,UAAU,CAACe,MAAM,CAAC;IACvBC,IAAI,EAAEN,IAAI;IACVO,SAAS,EAAE;MAAEC,eAAe,EAAE,CAAC;MAAEC,aAAa,EAAEhB,CAAC,CAAC,CAAC;IAAE,CAAC;IACtDiB,EAAE,EAAE;MAAEN,KAAK,EAAEP,SAAS;MAAEc,SAAS,EAAE;IAAS,CAAC;IAC7CC,MAAM,EAAE;MAAER,KAAK,EAAEP,SAAS;MAAEgB,UAAU,EAAE;IAAO,CAAC;IAChDC,aAAa,EAAE;MAAEV,KAAK,EAAEP,SAAS;MAAEkB,kBAAkB,EAAE;IAAe,CAAC;IACvEC,IAAI,EAAE;MACJZ,KAAK,EAAER,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AC;IACDC,QAAQ,EAAE;MAAE9B,KAAK,EAAET,MAAM,CAACI;IAAW,CAAC;IACtCoC,UAAU,EAAE;MAAEJ,WAAW,EAAEpC,MAAM,CAACqC,OAAO;MAAEI,eAAe,EAAE;IAAE,CAAC;IAC/DC,EAAE,EAAE;MAAEjB,eAAe,EAAEzB,MAAM,CAACqC,OAAO;MAAEM,MAAM,EAAE;IAAE,CAAC;IAClDC,KAAK,EAAE;MAAER,WAAW,EAAEpC,MAAM,CAACqC;IAAQ;EACvC,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,MAAMQ,YAAY,GAAI7C,MAAmB,IAC9CD,kBAAkB,CAACC,MAAM,EAAE,KAAK,CAAC;AACnC,OAAO,MAAM8C,oBAAoB,GAAI9C,MAAmB,IACtDD,kBAAkB,CAACC,MAAM,EAAE,IAAI,CAAC","ignoreList":[]}
|
|
@@ -5,6 +5,10 @@ export declare const createStyles: (colors: ColorTokens) => Readonly<{
|
|
|
5
5
|
lineHeight: number;
|
|
6
6
|
color: string;
|
|
7
7
|
};
|
|
8
|
+
paragraph: {
|
|
9
|
+
paddingVertical: number;
|
|
10
|
+
paddingBottom: number;
|
|
11
|
+
};
|
|
8
12
|
em: {
|
|
9
13
|
color: string;
|
|
10
14
|
fontStyle: "italic";
|
|
@@ -85,6 +89,10 @@ export declare const createOutgoingStyles: (colors: ColorTokens) => Readonly<{
|
|
|
85
89
|
lineHeight: number;
|
|
86
90
|
color: string;
|
|
87
91
|
};
|
|
92
|
+
paragraph: {
|
|
93
|
+
paddingVertical: number;
|
|
94
|
+
paddingBottom: number;
|
|
95
|
+
};
|
|
88
96
|
em: {
|
|
89
97
|
color: string;
|
|
90
98
|
fontStyle: "italic";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/MarkdownContent/styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/MarkdownContent/styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AA0C7D,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACb,CAAC;AACpC,eAAO,MAAM,oBAAoB,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { type, fw } from '@unif/react-native-design';
|
|
2
|
+
import { type, fw, r } from '@unif/react-native-design';
|
|
3
3
|
import type { ColorTokens } from '@unif/react-native-design';
|
|
4
4
|
|
|
5
5
|
const makeMarkdownStyles = (colors: ColorTokens, outgoing: boolean) => {
|
|
@@ -11,6 +11,7 @@ const makeMarkdownStyles = (colors: ColorTokens, outgoing: boolean) => {
|
|
|
11
11
|
};
|
|
12
12
|
return StyleSheet.create({
|
|
13
13
|
text: body,
|
|
14
|
+
paragraph: { paddingVertical: 0, paddingBottom: r(6) },
|
|
14
15
|
em: { color: textColor, fontStyle: 'italic' },
|
|
15
16
|
strong: { color: textColor, fontWeight: 'bold' },
|
|
16
17
|
strikethrough: { color: textColor, textDecorationLine: 'line-through' },
|