@underverse-ui/underverse 1.0.158 → 1.0.159

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/dist/index.js CHANGED
@@ -28347,12 +28347,12 @@ function buildUEditorExtensions({
28347
28347
  table_row_default,
28348
28348
  CustomTableCell.configure({
28349
28349
  HTMLAttributes: {
28350
- class: "border border-border p-2 min-w-25"
28350
+ class: "border border-border px-2 py-0 min-w-25"
28351
28351
  }
28352
28352
  }),
28353
28353
  CustomTableHeader.configure({
28354
28354
  HTMLAttributes: {
28355
- class: "border border-border p-2 bg-muted font-semibold min-w-25"
28355
+ class: "border border-border px-2 py-0 bg-muted font-semibold min-w-25"
28356
28356
  }
28357
28357
  }),
28358
28358
  CharacterCount.configure({
@@ -37812,10 +37812,16 @@ var UEDITOR_PROSEMIRROR_CLASS_NAME = cn(
37812
37812
  "[&_td]:align-top",
37813
37813
  "[&_td]:box-border",
37814
37814
  "[&_td]:select-text",
37815
+ "[&_td]:px-2",
37816
+ "[&_td]:py-0",
37817
+ "[&_td_p]:my-0",
37815
37818
  "[&_th]:relative",
37816
37819
  "[&_th]:align-top",
37817
37820
  "[&_th]:box-border",
37818
37821
  "[&_th]:select-text",
37822
+ "[&_th]:px-2",
37823
+ "[&_th]:py-0",
37824
+ "[&_th_p]:my-0",
37819
37825
  "[&_.selectedCell]:after:content-['']",
37820
37826
  "[&_.selectedCell]:after:absolute",
37821
37827
  "[&_.selectedCell]:after:inset-0",
@@ -38482,17 +38488,18 @@ function resolveColumnWidths(table) {
38482
38488
  function setStyleProperty(element, property, value) {
38483
38489
  element.style.setProperty(property, value);
38484
38490
  }
38485
- function resolveRowHeight(row) {
38491
+ function resolveExplicitRowHeight(row) {
38486
38492
  const explicitRowHeight = parsePixelWidth2(row.getAttribute("data-row-height")) ?? parseStyleHeight(row.style);
38487
38493
  if (explicitRowHeight) return Math.max(MIN_TABLE_ROW_HEIGHT, explicitRowHeight);
38488
38494
  const cellHeight = Array.from(row.cells).reduce((maxHeight, cell) => {
38489
38495
  const height = parsePixelWidth2(cell.getAttribute("height")) ?? parseStyleHeight(cell.style);
38490
38496
  return height ? Math.max(maxHeight, height) : maxHeight;
38491
38497
  }, 0);
38492
- return Math.max(MIN_TABLE_ROW_HEIGHT, cellHeight);
38498
+ return cellHeight ? Math.max(MIN_TABLE_ROW_HEIGHT, cellHeight) : null;
38493
38499
  }
38494
38500
  function normalizePreviewRowHeight(row) {
38495
- const rowHeight = resolveRowHeight(row);
38501
+ const rowHeight = resolveExplicitRowHeight(row);
38502
+ if (!rowHeight) return;
38496
38503
  row.style.height = `${rowHeight}px`;
38497
38504
  row.style.minHeight = `${rowHeight}px`;
38498
38505
  Array.from(row.cells).forEach((cell) => {