@lensui/lens-table 0.1.47 → 0.1.48

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.cjs CHANGED
@@ -2349,7 +2349,10 @@ function TableInner({
2349
2349
  selection: readThemeColor(themeStyles, "--rvg-color-primary", "#1677ff"),
2350
2350
  selectionFill: readThemeColor(themeStyles, "--rvg-color-selection-fill", "#edf4ff"),
2351
2351
  axisSelectionFill: isSelectedColumnDrag || isSelectedColumnDropTarget ? readThemeColor(themeStyles, "--rvg-color-axis-selection-drag-fill", "#d8e8f8") : readThemeColor(themeStyles, "--rvg-color-axis-selection-fill", "#e8f2ff"),
2352
- axisSelectionStripeFill: isSelectedColumnDrag || isSelectedColumnDropTarget ? readThemeColor(themeStyles, "--rvg-color-axis-selection-drag-fill", "#d8e8f8") : readThemeColor(themeStyles, "--rvg-color-axis-selection-stripe-fill", "#dfeeff"),
2352
+ // Keep zebra striping while a selected column is being dragged. The
2353
+ // regular and drag fills intentionally differ, but odd rows should
2354
+ // continue to use the dedicated stripe color in both states.
2355
+ axisSelectionStripeFill: readThemeColor(themeStyles, "--rvg-color-axis-selection-stripe-fill", "#dfeeff"),
2353
2356
  axisSelectionText: isSelectedColumnDrag || isSelectedColumnDropTarget ? readThemeColor(themeStyles, "--rvg-color-axis-selection-drag-text", "#325b88") : readThemeColor(themeStyles, "--rvg-color-axis-selection-text", readThemeColor(themeStyles, "--rvg-color-text", "#202124")),
2354
2357
  rowHoverFill: readThemeColor(themeStyles, "--rvg-color-row-hover-fill", "#f6f9fc"),
2355
2358
  editedFill: editedCellHighlightColor ?? readThemeColor(themeStyles, "--rvg-color-edited-fill", "#fff1b8"),
package/dist/index.css CHANGED
@@ -1575,6 +1575,9 @@
1575
1575
  border-bottom-color: color-mix(in srgb, var(--rvg-color-axis-selection-text) 34%, transparent);
1576
1576
  background: var(--rvg-color-axis-selection-fill);
1577
1577
  }
1578
+ .rvg-column-drag-preview.is-axis-selected .rvg-column-drag-preview-cell.is-striped {
1579
+ background: var(--rvg-color-axis-selection-stripe-fill);
1580
+ }
1578
1581
  .rvg-column-drag-preview-header .rvg-preview-header-icon {
1579
1582
  position: absolute;
1580
1583
  top: 50%;
package/dist/index.js CHANGED
@@ -2319,7 +2319,10 @@ function TableInner({
2319
2319
  selection: readThemeColor(themeStyles, "--rvg-color-primary", "#1677ff"),
2320
2320
  selectionFill: readThemeColor(themeStyles, "--rvg-color-selection-fill", "#edf4ff"),
2321
2321
  axisSelectionFill: isSelectedColumnDrag || isSelectedColumnDropTarget ? readThemeColor(themeStyles, "--rvg-color-axis-selection-drag-fill", "#d8e8f8") : readThemeColor(themeStyles, "--rvg-color-axis-selection-fill", "#e8f2ff"),
2322
- axisSelectionStripeFill: isSelectedColumnDrag || isSelectedColumnDropTarget ? readThemeColor(themeStyles, "--rvg-color-axis-selection-drag-fill", "#d8e8f8") : readThemeColor(themeStyles, "--rvg-color-axis-selection-stripe-fill", "#dfeeff"),
2322
+ // Keep zebra striping while a selected column is being dragged. The
2323
+ // regular and drag fills intentionally differ, but odd rows should
2324
+ // continue to use the dedicated stripe color in both states.
2325
+ axisSelectionStripeFill: readThemeColor(themeStyles, "--rvg-color-axis-selection-stripe-fill", "#dfeeff"),
2323
2326
  axisSelectionText: isSelectedColumnDrag || isSelectedColumnDropTarget ? readThemeColor(themeStyles, "--rvg-color-axis-selection-drag-text", "#325b88") : readThemeColor(themeStyles, "--rvg-color-axis-selection-text", readThemeColor(themeStyles, "--rvg-color-text", "#202124")),
2324
2327
  rowHoverFill: readThemeColor(themeStyles, "--rvg-color-row-hover-fill", "#f6f9fc"),
2325
2328
  editedFill: editedCellHighlightColor ?? readThemeColor(themeStyles, "--rvg-color-edited-fill", "#fff1b8"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lensui/lens-table",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "description": "A lightweight, canvas-rendered React table component for LensUI.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",