@ricsam/react-spreadsheets 0.0.6 → 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.6",
3
+ "version": "0.0.7",
4
4
  "type": "commonjs"
5
5
  }
package/dist/mjs/lib.mjs CHANGED
@@ -3537,31 +3537,29 @@ 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;
@@ -4109,4 +4107,4 @@ export {
4109
4107
  useResizeObserver
4110
4108
  };
4111
4109
 
4112
- //# debugId=2CF31D1B5984B38964756E2164756E21
4110
+ //# debugId=F4BFEDA101FB82C464756E2164756E21