@selfcommunity/react-theme-default 0.1.0-alpha.110 → 0.1.0-alpha.112
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/cjs/components/SCComposer.d.ts +5 -0
- package/lib/cjs/components/SCComposer.d.ts.map +1 -1
- package/lib/cjs/components/SCComposer.js +5 -0
- package/lib/cjs/components/SCComposer.js.map +1 -1
- package/lib/cjs/components/SCEditor.d.ts +1 -25
- package/lib/cjs/components/SCEditor.d.ts.map +1 -1
- package/lib/cjs/components/SCEditor.js +1 -25
- package/lib/cjs/components/SCEditor.js.map +1 -1
- package/lib/cjs/components/SCEditorToolbarPlugin.d.ts +29 -1
- package/lib/cjs/components/SCEditorToolbarPlugin.d.ts.map +1 -1
- package/lib/cjs/components/SCEditorToolbarPlugin.js +30 -1
- package/lib/cjs/components/SCEditorToolbarPlugin.js.map +1 -1
- package/lib/cjs/index.d.ts +35 -26
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/esm/components/SCComposer.d.ts +5 -0
- package/lib/esm/components/SCComposer.d.ts.map +1 -1
- package/lib/esm/components/SCComposer.js +5 -0
- package/lib/esm/components/SCComposer.js.map +1 -1
- package/lib/esm/components/SCEditor.d.ts +1 -25
- package/lib/esm/components/SCEditor.d.ts.map +1 -1
- package/lib/esm/components/SCEditor.js +1 -25
- package/lib/esm/components/SCEditor.js.map +1 -1
- package/lib/esm/components/SCEditorToolbarPlugin.d.ts +29 -1
- package/lib/esm/components/SCEditorToolbarPlugin.d.ts.map +1 -1
- package/lib/esm/components/SCEditorToolbarPlugin.js +30 -1
- package/lib/esm/components/SCEditorToolbarPlugin.js.map +1 -1
- package/lib/esm/index.d.ts +35 -26
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/umd/react-theme-default.js +6 -6
- package/lib/umd/react-theme-default.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import { alpha } from '@mui/system';
|
|
1
2
|
const Component = {
|
|
2
3
|
styleOverrides: {
|
|
3
4
|
root: ({ theme }) => ({
|
|
5
|
+
borderRadius: theme.shape.borderRadius * 0.2,
|
|
6
|
+
borderColor: alpha(theme.palette.primary.main, theme.palette.action.activatedOpacity),
|
|
7
|
+
borderWidth: 1,
|
|
8
|
+
borderStyle: 'solid',
|
|
4
9
|
display: 'flex',
|
|
5
10
|
flexDirection: 'row',
|
|
6
11
|
alignItems: 'center',
|
|
7
12
|
justifyContent: 'left',
|
|
8
13
|
marginBottom: theme.spacing(1),
|
|
9
|
-
padding:
|
|
14
|
+
padding: 0,
|
|
10
15
|
overflowX: 'scroll',
|
|
11
16
|
MsOverflowStyle: 'none',
|
|
12
17
|
scrollbarWidth: 'none',
|
|
@@ -16,6 +21,30 @@ const Component = {
|
|
|
16
21
|
'& .MuiTextField-root': {
|
|
17
22
|
minWidth: 100,
|
|
18
23
|
margin: theme.spacing(0, 0.5)
|
|
24
|
+
},
|
|
25
|
+
'& .MuiButtonBase-root': {
|
|
26
|
+
margin: theme.spacing(0.5),
|
|
27
|
+
padding: theme.spacing(1),
|
|
28
|
+
fontSize: '1rem',
|
|
29
|
+
border: 0,
|
|
30
|
+
borderRadius: theme.shape.borderRadius * 0.2,
|
|
31
|
+
'&.Mui-disabled': {
|
|
32
|
+
border: 0
|
|
33
|
+
},
|
|
34
|
+
'&.MuiToggleButtonGroup-grouped:not(:last-of-type)': {
|
|
35
|
+
borderTopRightRadius: theme.shape.borderRadius * 0.2,
|
|
36
|
+
borderBottomRightRadius: theme.shape.borderRadius * 0.2
|
|
37
|
+
},
|
|
38
|
+
'&.MuiToggleButtonGroup-grouped:not(:first-of-type)': {
|
|
39
|
+
borderTopRightRadius: theme.shape.borderRadius * 0.2,
|
|
40
|
+
borderBottomRightRadius: theme.shape.borderRadius * 0.2,
|
|
41
|
+
borderTopLeftRadius: theme.shape.borderRadius * 0.2,
|
|
42
|
+
borderBottomLeftRadius: theme.shape.borderRadius * 0.2
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
'& .SCEditorToolbarPlugin-block-format .MuiIcon-root:first-of-type': {
|
|
46
|
+
display: 'inline-block',
|
|
47
|
+
marginRight: theme.spacing(1)
|
|
19
48
|
}
|
|
20
49
|
})
|
|
21
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SCEditorToolbarPlugin.js","sourceRoot":"","sources":["../../../src/components/SCEditorToolbarPlugin.tsx"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG;IAChB,cAAc,EAAE;QACd,IAAI,EAAE,CAAC,EAAC,KAAK,EAAM,EAAE,EAAE,CAAC,CAAC;YACvB,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE,QAAQ;YACpB,cAAc,EAAE,MAAM;YACtB,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YAC9B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"SCEditorToolbarPlugin.js","sourceRoot":"","sources":["../../../src/components/SCEditorToolbarPlugin.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;AAElC,MAAM,SAAS,GAAG;IAChB,cAAc,EAAE;QACd,IAAI,EAAE,CAAC,EAAC,KAAK,EAAM,EAAE,EAAE,CAAC,CAAC;YACvB,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,YAAY,GAAG,GAAG;YAC5C,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC;YACrF,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,OAAO;YACpB,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE,QAAQ;YACpB,cAAc,EAAE,MAAM;YACtB,YAAY,EAAE,KAAK,CAAC,OAAO,CAA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declare const theme: {
|
|
|
999
999
|
margin: number;
|
|
1000
1000
|
};
|
|
1001
1001
|
};
|
|
1002
|
+
'& .MuiDialog-paperFullScreen': {
|
|
1003
|
+
'& .SCComposer-actions > *:first-of-type': {
|
|
1004
|
+
marginBottom: any;
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1002
1007
|
};
|
|
1003
1008
|
};
|
|
1004
1009
|
};
|
|
@@ -1140,6 +1145,7 @@ declare const theme: {
|
|
|
1140
1145
|
bottom: number;
|
|
1141
1146
|
right: any;
|
|
1142
1147
|
color: any;
|
|
1148
|
+
zIndex: number;
|
|
1143
1149
|
'& .MuiIcon-root': {
|
|
1144
1150
|
fontSize: string;
|
|
1145
1151
|
};
|
|
@@ -1231,31 +1237,6 @@ declare const theme: {
|
|
|
1231
1237
|
fontWeight: any;
|
|
1232
1238
|
textTransform: string;
|
|
1233
1239
|
};
|
|
1234
|
-
'& .SCEditor-code': {
|
|
1235
|
-
backgroundColor: string;
|
|
1236
|
-
fontFamily: string;
|
|
1237
|
-
display: string;
|
|
1238
|
-
padding: any;
|
|
1239
|
-
lineHeight: number;
|
|
1240
|
-
fontSize: number;
|
|
1241
|
-
margin: any;
|
|
1242
|
-
tabSize: number;
|
|
1243
|
-
overflowX: string;
|
|
1244
|
-
position: string;
|
|
1245
|
-
'&:before': {
|
|
1246
|
-
content: string;
|
|
1247
|
-
position: string;
|
|
1248
|
-
backgroundColor: string;
|
|
1249
|
-
left: number;
|
|
1250
|
-
top: number;
|
|
1251
|
-
borderRight: string;
|
|
1252
|
-
padding: any;
|
|
1253
|
-
color: string;
|
|
1254
|
-
whiteSpace: string;
|
|
1255
|
-
textAlign: string;
|
|
1256
|
-
minWidth: number;
|
|
1257
|
-
};
|
|
1258
|
-
};
|
|
1259
1240
|
'& .SCEditor-textBold': {
|
|
1260
1241
|
fontWeight: string;
|
|
1261
1242
|
};
|
|
@@ -1346,12 +1327,16 @@ declare const theme: {
|
|
|
1346
1327
|
SCEditorToolbarPlugin: {
|
|
1347
1328
|
styleOverrides: {
|
|
1348
1329
|
root: ({ theme }: any) => {
|
|
1330
|
+
borderRadius: number;
|
|
1331
|
+
borderColor: string;
|
|
1332
|
+
borderWidth: number;
|
|
1333
|
+
borderStyle: string;
|
|
1349
1334
|
display: string;
|
|
1350
1335
|
flexDirection: string;
|
|
1351
1336
|
alignItems: string;
|
|
1352
1337
|
justifyContent: string;
|
|
1353
1338
|
marginBottom: any;
|
|
1354
|
-
padding:
|
|
1339
|
+
padding: number;
|
|
1355
1340
|
overflowX: string;
|
|
1356
1341
|
MsOverflowStyle: string;
|
|
1357
1342
|
scrollbarWidth: string;
|
|
@@ -1362,6 +1347,30 @@ declare const theme: {
|
|
|
1362
1347
|
minWidth: number;
|
|
1363
1348
|
margin: any;
|
|
1364
1349
|
};
|
|
1350
|
+
'& .MuiButtonBase-root': {
|
|
1351
|
+
margin: any;
|
|
1352
|
+
padding: any;
|
|
1353
|
+
fontSize: string;
|
|
1354
|
+
border: number;
|
|
1355
|
+
borderRadius: number;
|
|
1356
|
+
'&.Mui-disabled': {
|
|
1357
|
+
border: number;
|
|
1358
|
+
};
|
|
1359
|
+
'&.MuiToggleButtonGroup-grouped:not(:last-of-type)': {
|
|
1360
|
+
borderTopRightRadius: number;
|
|
1361
|
+
borderBottomRightRadius: number;
|
|
1362
|
+
};
|
|
1363
|
+
'&.MuiToggleButtonGroup-grouped:not(:first-of-type)': {
|
|
1364
|
+
borderTopRightRadius: number;
|
|
1365
|
+
borderBottomRightRadius: number;
|
|
1366
|
+
borderTopLeftRadius: number;
|
|
1367
|
+
borderBottomLeftRadius: number;
|
|
1368
|
+
};
|
|
1369
|
+
};
|
|
1370
|
+
'& .SCEditorToolbarPlugin-block-format .MuiIcon-root:first-of-type': {
|
|
1371
|
+
display: string;
|
|
1372
|
+
marginRight: any;
|
|
1373
|
+
};
|
|
1365
1374
|
};
|
|
1366
1375
|
};
|
|
1367
1376
|
};
|
package/lib/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,6BAA6B,CAAC;AAoGrC;;GAEG;AAEH,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,6BAA6B,CAAC;AAoGrC;;GAEG;AAEH,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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