@1771technologies/lytenyte-pro 0.9.0 → 0.9.2

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.js +18 -9
  2. package/package.json +16 -16
package/dist/index.js CHANGED
@@ -1373,17 +1373,26 @@ function CellEditDriver() {
1373
1373
  }
1374
1374
  function RowHoverDriver() {
1375
1375
  const s3 = useGrid();
1376
- const gridId = s3.state.gridId.use();
1376
+ const grid = s3.state.internal.viewport.use();
1377
1377
  const hoveredRow = s3.state.internal.hoveredRow.use();
1378
+ useEffect(() => {
1379
+ if (hoveredRow == null || !grid) return;
1380
+ const cells = Array.from(
1381
+ grid.querySelectorAll(`div > div > .lng1771-cell[aria-rowindex="${hoveredRow + 1}"]`)
1382
+ );
1383
+ cells.forEach((c) => {
1384
+ if (c.classList.contains(".lng1771-cell--selected"))
1385
+ c.style.backgroundColor = "var(--lng1771-primary-30)";
1386
+ else c.style.backgroundColor = "var(--lng1771-gray-10)";
1387
+ });
1388
+ return () => {
1389
+ cells.forEach((c) => {
1390
+ c.style.removeProperty("background-color");
1391
+ });
1392
+ };
1393
+ }, [grid, hoveredRow]);
1378
1394
  if (hoveredRow == null) return;
1379
- return /* @__PURE__ */ jsx("style", { children: `
1380
- #${gridId} > div > div > :not(.lng1771-cell--selected)[aria-rowindex="${hoveredRow + 1}"] {
1381
- background-color: var(--lng1771-gray-10);
1382
- }
1383
- #${gridId} > div > div > .lng1771-cell--selected[aria-rowindex="${hoveredRow + 1}"] {
1384
- background-color: var(--lng1771-primary-30);
1385
- }
1386
- ` });
1395
+ return /* @__PURE__ */ jsx(Fragment, {});
1387
1396
  }
1388
1397
  function Viewport({
1389
1398
  children,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1771technologies/lytenyte-pro",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "license": "COMMERCIAL",
5
5
  "type": "module",
6
6
  "files": [
@@ -79,21 +79,21 @@
79
79
  "react-dom": "^18.0.0 || ^19.0.0"
80
80
  },
81
81
  "dependencies": {
82
- "@1771technologies/grid-client-data-source-pro": "0.9.0",
83
- "@1771technologies/grid-server-data-source": "0.9.0",
84
- "@1771technologies/grid-core": "0.9.0",
85
- "@1771technologies/grid-design": "0.9.0",
86
- "@1771technologies/grid-provider": "0.9.0",
87
- "@1771technologies/grid-store-pro": "0.9.0",
88
- "@1771technologies/grid-tree-data-source": "0.9.0",
89
- "@1771technologies/grid-types": "0.9.0",
90
- "@1771technologies/js-utils": "0.9.0",
91
- "@1771technologies/lytenyte-core": "0.9.0",
92
- "@1771technologies/react-cascada": "0.9.0",
93
- "@1771technologies/react-dragon": "0.9.0",
94
- "@1771technologies/react-sizer": "0.9.0",
95
- "@1771technologies/react-split-pane": "0.9.0",
96
- "@1771technologies/react-utils": "0.9.0",
82
+ "@1771technologies/grid-client-data-source-pro": "0.9.2",
83
+ "@1771technologies/grid-server-data-source": "0.9.2",
84
+ "@1771technologies/grid-core": "0.9.2",
85
+ "@1771technologies/grid-design": "0.9.2",
86
+ "@1771technologies/grid-provider": "0.9.2",
87
+ "@1771technologies/grid-store-pro": "0.9.2",
88
+ "@1771technologies/grid-tree-data-source": "0.9.2",
89
+ "@1771technologies/grid-types": "0.9.2",
90
+ "@1771technologies/js-utils": "0.9.2",
91
+ "@1771technologies/lytenyte-core": "0.9.2",
92
+ "@1771technologies/react-cascada": "0.9.2",
93
+ "@1771technologies/react-dragon": "0.9.2",
94
+ "@1771technologies/react-sizer": "0.9.2",
95
+ "@1771technologies/react-split-pane": "0.9.2",
96
+ "@1771technologies/react-utils": "0.9.2",
97
97
  "@base-ui-components/react": "1.0.0-alpha.7"
98
98
  },
99
99
  "devDependencies": {