@ricsam/react-spreadsheets 0.0.5 → 0.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,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/react-spreadsheets",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "type": "commonjs"
5
5
  }
package/dist/mjs/lib.mjs CHANGED
@@ -2639,7 +2639,7 @@ var Spreadsheet = forwardRef(({
2639
2639
  height: 0,
2640
2640
  visibility: "hidden",
2641
2641
  pointerEvents: "none",
2642
- color: "var(--rsp-gridline)"
2642
+ color: "var(--_rsp-gridline)"
2643
2643
  }
2644
2644
  }),
2645
2645
  /* @__PURE__ */ jsx3("canvas", {
@@ -3537,63 +3537,61 @@ function FormulaSheet({
3537
3537
  workbookName
3538
3538
  });
3539
3539
  if (!tableInfo) {
3540
- if (conditionalStyle) {
3541
- return {
3542
- ...conditionalStyle.backgroundColor && {
3543
- backgroundColor: conditionalStyle.backgroundColor
3544
- },
3545
- ...conditionalStyle.color && {
3546
- color: conditionalStyle.color
3547
- },
3548
- ...conditionalStyle.fontSize && {
3549
- fontSize: conditionalStyle.fontSize
3550
- },
3551
- ...conditionalStyle.bold && {
3552
- fontWeight: "bold"
3553
- },
3554
- ...conditionalStyle.italic && {
3555
- fontStyle: "italic"
3556
- },
3557
- ...conditionalStyle.underline && {
3558
- textDecoration: "underline"
3559
- },
3560
- ...getBorderCellStyle(conditionalStyle),
3561
- ...getWrapCellStyle(conditionalStyle)
3562
- };
3563
- }
3564
- return {};
3540
+ const style2 = conditionalStyle ? {
3541
+ ...conditionalStyle.backgroundColor && {
3542
+ backgroundColor: conditionalStyle.backgroundColor
3543
+ },
3544
+ ...conditionalStyle.color && {
3545
+ color: conditionalStyle.color
3546
+ },
3547
+ ...conditionalStyle.fontSize && {
3548
+ fontSize: conditionalStyle.fontSize
3549
+ },
3550
+ ...conditionalStyle.bold && {
3551
+ fontWeight: "bold"
3552
+ },
3553
+ ...conditionalStyle.italic && {
3554
+ fontStyle: "italic"
3555
+ },
3556
+ ...conditionalStyle.underline && {
3557
+ textDecoration: "underline"
3558
+ },
3559
+ ...getBorderCellStyle(conditionalStyle),
3560
+ ...getWrapCellStyle(conditionalStyle)
3561
+ } : {};
3562
+ return customCellStyle ? customCellStyle(cell, style2) : style2;
3565
3563
  }
3566
3564
  const isHeaderRow = cell.rowIndex === tableInfo.start.rowIndex;
3567
3565
  const isFirstColumn = cell.colIndex === tableInfo.start.colIndex;
3568
3566
  const isLastColumn = cell.colIndex === tableInfo.start.colIndex + tableInfo.headers.size - 1;
3569
3567
  const isLastRow = tableInfo.endRow.type === "number" ? cell.rowIndex === tableInfo.endRow.value : false;
3570
3568
  const style = {
3571
- border: "1px solid var(--rsp-table-border-light)"
3569
+ border: "1px solid var(--_rsp-table-border-light)"
3572
3570
  };
3573
3571
  if (isHeaderRow) {
3574
- style.backgroundColor = "var(--rsp-table-header-bg)";
3575
- style.color = "var(--rsp-table-header-color)";
3572
+ style.backgroundColor = "var(--_rsp-table-header-bg)";
3573
+ style.color = "var(--_rsp-table-header-color)";
3576
3574
  style.fontWeight = "bold";
3577
- style.borderBottom = "2px solid var(--rsp-table-header-border)";
3575
+ style.borderBottom = "2px solid var(--_rsp-table-header-border)";
3578
3576
  } else {
3579
3577
  const dataRowIndex = cell.rowIndex - tableInfo.start.rowIndex - 1;
3580
3578
  if (dataRowIndex % 2 === 0) {
3581
- style.backgroundColor = "var(--rsp-table-even-row-bg)";
3579
+ style.backgroundColor = "var(--_rsp-table-even-row-bg)";
3582
3580
  } else {
3583
- style.backgroundColor = "var(--rsp-table-odd-row-bg)";
3581
+ style.backgroundColor = "var(--_rsp-table-odd-row-bg)";
3584
3582
  }
3585
3583
  }
3586
3584
  if (isFirstColumn) {
3587
- style.borderLeft = "2px solid var(--rsp-table-border-color)";
3585
+ style.borderLeft = "2px solid var(--_rsp-table-border-color)";
3588
3586
  }
3589
3587
  if (isLastColumn) {
3590
- style.borderRight = "2px solid var(--rsp-table-border-color)";
3588
+ style.borderRight = "2px solid var(--_rsp-table-border-color)";
3591
3589
  }
3592
3590
  if (isHeaderRow) {
3593
- style.borderTop = "2px solid var(--rsp-table-border-color)";
3591
+ style.borderTop = "2px solid var(--_rsp-table-border-color)";
3594
3592
  }
3595
3593
  if (isLastRow) {
3596
- style.borderBottom = "2px solid var(--rsp-table-border-color)";
3594
+ style.borderBottom = "2px solid var(--_rsp-table-border-color)";
3597
3595
  }
3598
3596
  if (conditionalStyle?.backgroundColor) {
3599
3597
  style.backgroundColor = conditionalStyle.backgroundColor;
@@ -4109,4 +4107,4 @@ export {
4109
4107
  useResizeObserver
4110
4108
  };
4111
4109
 
4112
- //# debugId=93A3B97B45C8788264756E2164756E21
4110
+ //# debugId=F4BFEDA101FB82C464756E2164756E21