mig-schema-table 3.0.97 → 3.0.98

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,4 @@
1
1
  import { Dispatch, SetStateAction } from "react";
2
- import "./index.scss";
3
2
  interface IColumnResizersProps {
4
3
  columnWidths: number[];
5
4
  setColumnWidths: Dispatch<SetStateAction<number[]>>;
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from "react";
3
- import "./index.scss";
4
3
  const MINIMUM_COLUMN_WIDTH = 25;
5
4
  const ColumnResizers = ({ columnWidths, setColumnWidths, tableBodyHeight, }) => {
6
5
  const [dragColumnIndex, setDragColumnIndex] = React.useState(-1);
package/dist/index.css CHANGED
@@ -175,3 +175,16 @@
175
175
  .schema-table__td--selected {
176
176
  background-color: var(--bs-gray-300, #dee2e6);
177
177
  }
178
+
179
+ .schema-table__column_resizer {
180
+ position: absolute;
181
+ top: 0;
182
+ user-select: none;
183
+ background-color: transparent;
184
+ cursor: e-resize;
185
+ width: 3px;
186
+ }
187
+ .schema-table__column_resizer--dragged, .schema-table__column_resizer:hover {
188
+ background-color: #bbb;
189
+ bottom: 0 !important;
190
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mig-schema-table",
3
- "version": "3.0.97",
3
+ "version": "3.0.98",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/"