@toptal/picasso-rich-text-editor 13.0.5 → 13.0.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/RichTextEditor/styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/RichTextEditor/styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;gCAG9B,KAAK;AAA5B,wBAuCC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { outline } from '@toptal/picasso-shared';
|
|
1
|
+
import { alpha, outline } from '@toptal/picasso-shared';
|
|
2
2
|
import { createStyles } from '@material-ui/core/styles';
|
|
3
|
-
import { highlightStyles as highlightAutofillStyles } from '@toptal/picasso-input';
|
|
4
3
|
export default (theme) => {
|
|
5
4
|
const { palette, sizes } = theme;
|
|
6
|
-
return createStyles(
|
|
5
|
+
return createStyles({
|
|
6
|
+
editorWrapper: {
|
|
7
7
|
position: 'relative',
|
|
8
8
|
borderRadius: sizes.borderRadius.small,
|
|
9
9
|
border: `1px solid ${palette.grey.light2}`,
|
|
@@ -11,13 +11,21 @@ export default (theme) => {
|
|
|
11
11
|
'&:hover:not($disabled):not($error)': {
|
|
12
12
|
borderColor: palette.grey.main2,
|
|
13
13
|
},
|
|
14
|
-
},
|
|
14
|
+
},
|
|
15
|
+
disabled: {
|
|
15
16
|
pointerEvents: 'none',
|
|
16
17
|
background: palette.grey.lighter,
|
|
17
18
|
border: `1px solid ${palette.grey.lighter2}`,
|
|
18
|
-
},
|
|
19
|
+
},
|
|
20
|
+
error: {
|
|
19
21
|
borderColor: palette.red.main,
|
|
20
22
|
'&$focused': Object.assign({ borderColor: palette.red.main }, outline(palette.red.main)),
|
|
21
|
-
},
|
|
23
|
+
},
|
|
24
|
+
focused: Object.assign({ borderColor: palette.grey.main2 }, outline(palette.primary.main)),
|
|
25
|
+
highlightAutofill: {
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
27
|
+
backgroundColor: alpha(palette.yellow.lighter, 0.6),
|
|
28
|
+
},
|
|
29
|
+
});
|
|
22
30
|
};
|
|
23
31
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/RichTextEditor/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/RichTextEditor/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEvD,eAAe,CAAC,KAAY,EAAE,EAAE;IAC9B,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,KAAK,CAAA;IAEhC,OAAO,YAAY,CAAC;QAClB,aAAa,EAAE;YACb,QAAQ,EAAE,UAAU;YACpB,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,KAAK;YACtC,MAAM,EAAE,aAAa,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE;YAC1C,OAAO,EAAE,OAAO;YAEhB,oCAAoC,EAAE;gBACpC,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;aAChC;SACF;QAED,QAAQ,EAAE;YACR,aAAa,EAAE,MAAM;YACrB,UAAU,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO;YAChC,MAAM,EAAE,aAAa,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE;SAC7C;QAED,KAAK,EAAE;YACL,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI;YAC7B,WAAW,kBACT,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,IAC1B,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAC7B;SACF;QAED,OAAO,kBACL,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,IAC5B,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CACjC;QAED,iBAAiB,EAAE;YACjB,oEAAoE;YACpE,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAQ,EAAE,GAAG,CAAC;SACrD;KACF,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/picasso-rich-text-editor",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.7",
|
|
4
4
|
"description": "Picasso rich text editor",
|
|
5
5
|
"author": "Toptal",
|
|
6
6
|
"homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso-rich-text-editor#readme",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"@lexical/html": "0.11.2",
|
|
42
42
|
"@lexical/react": "0.11.2",
|
|
43
43
|
"@toptal/picasso-container": "1.0.3",
|
|
44
|
-
"@toptal/picasso-button": "2.0.
|
|
44
|
+
"@toptal/picasso-button": "2.0.5",
|
|
45
45
|
"@toptal/picasso-icons": "1.2.0",
|
|
46
|
-
"@toptal/picasso-file-input": "1.0.
|
|
46
|
+
"@toptal/picasso-file-input": "1.0.20",
|
|
47
47
|
"@toptal/picasso-image": "1.0.3",
|
|
48
|
-
"@toptal/picasso-outlined-input": "1.0
|
|
49
|
-
"@toptal/picasso-list": "2.0.
|
|
48
|
+
"@toptal/picasso-outlined-input": "1.1.0",
|
|
49
|
+
"@toptal/picasso-list": "2.0.4",
|
|
50
50
|
"@toptal/picasso-link": "1.0.3",
|
|
51
|
-
"@toptal/picasso-select": "1.0.
|
|
51
|
+
"@toptal/picasso-select": "1.0.22",
|
|
52
52
|
"@toptal/picasso-input-adornment": "1.0.5",
|
|
53
|
-
"@toptal/picasso-typography": "2.0.
|
|
54
|
-
"@toptal/picasso-modal": "2.0.
|
|
55
|
-
"@toptal/picasso-form": "3.0.
|
|
56
|
-
"@toptal/picasso-input": "2.0.
|
|
53
|
+
"@toptal/picasso-typography": "2.0.2",
|
|
54
|
+
"@toptal/picasso-modal": "2.0.5",
|
|
55
|
+
"@toptal/picasso-form": "3.0.4",
|
|
56
|
+
"@toptal/picasso-input": "2.0.3",
|
|
57
57
|
"@toptal/picasso-utils": "1.0.3",
|
|
58
58
|
"classnames": "^2.5.1",
|
|
59
59
|
"emoji-mart": "^5.5.2",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { outline } from '@toptal/picasso-shared'
|
|
1
|
+
import { alpha, outline } from '@toptal/picasso-shared'
|
|
2
2
|
import type { Theme } from '@material-ui/core/styles'
|
|
3
3
|
import { createStyles } from '@material-ui/core/styles'
|
|
4
|
-
import { highlightStyles as highlightAutofillStyles } from '@toptal/picasso-input'
|
|
5
4
|
|
|
6
5
|
export default (theme: Theme) => {
|
|
7
6
|
const { palette, sizes } = theme
|
|
@@ -37,6 +36,9 @@ export default (theme: Theme) => {
|
|
|
37
36
|
...outline(palette.primary.main),
|
|
38
37
|
},
|
|
39
38
|
|
|
40
|
-
|
|
39
|
+
highlightAutofill: {
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
41
|
+
backgroundColor: alpha(palette.yellow.lighter!, 0.6),
|
|
42
|
+
},
|
|
41
43
|
})
|
|
42
44
|
}
|