@ctzhian/tiptap 2.4.2 → 2.4.3

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.
Files changed (2) hide show
  1. package/dist/index.css +8 -5
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -4,6 +4,9 @@
4
4
  --common-row-font-size: 16px;
5
5
  --common-row-line-height: 1.625;
6
6
  --udtoken-quote-bar-bg: #bbbfc4;
7
+
8
+ --table-head-background-color: #f2f3f5;
9
+ --table-cell-border-color: #dee0e3;
7
10
  }
8
11
 
9
12
  .tiptap.ProseMirror {
@@ -359,7 +362,7 @@
359
362
  table-layout: fixed;
360
363
  overflow: hidden;
361
364
  caption-side: top;
362
- border-left: 1px dotted var(--mui-palette-table-cell-border);
365
+ border-left: 1px dotted var(--mui-palette-table-cell-border, --table-cell-border-color);
363
366
  }
364
367
 
365
368
  .tiptap.ProseMirror table p {
@@ -374,8 +377,8 @@
374
377
  .tiptap.ProseMirror table td,
375
378
  .tiptap.ProseMirror table th {
376
379
  border: none;
377
- border-bottom: 1px solid var(--mui-palette-table-cell-border);
378
- border-right: 1px dotted var(--mui-palette-table-cell-border);
380
+ border-bottom: 1px solid var(--mui-palette-table-cell-border, --table-cell-border-color);
381
+ border-right: 1px dotted var(--mui-palette-table-cell-border, --table-cell-border-color);
379
382
  box-sizing: border-box;
380
383
  padding: 12px 16px;
381
384
  position: relative;
@@ -386,7 +389,7 @@
386
389
 
387
390
  .tiptap.ProseMirror table tbody tr:first-child th,
388
391
  .tiptap.ProseMirror table tbody tr:first-child td {
389
- border-top: 1px solid var(--mui-palette-table-cell-border);
392
+ border-top: 1px solid var(--mui-palette-table-cell-border, --table-cell-border-color);
390
393
  }
391
394
 
392
395
  .tiptap.ProseMirror table td>*,
@@ -399,7 +402,7 @@
399
402
  text-transform: uppercase;
400
403
  letter-spacing: 0.5px;
401
404
  text-align: left;
402
- background-color: var(--mui-palette-table-head-background);
405
+ background-color: var(--mui-palette-table-head-background, --table-head-background-color);
403
406
  }
404
407
 
405
408
  .tiptap.ProseMirror[contenteditable="true"] table .selectedCell * {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzhian/tiptap",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "基于 Tiptap 二次开发的编辑器组件",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",