react-glide-table 1.1.6 → 1.1.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.
package/dist/compound.cjs CHANGED
@@ -2185,7 +2185,12 @@ function DataTable({
2185
2185
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2186
2186
  "th",
2187
2187
  {
2188
- style: { width: header.getSize() !== 150 ? header.getSize() : void 0 },
2188
+ style: {
2189
+ width: header.getSize() !== 150 ? header.getSize() : void 0,
2190
+ // Column sizing follows TanStack's `size`, but
2191
+ // ensure the column keeps its min width when the container shrinks.
2192
+ minWidth: header.getSize() !== 150 ? header.getSize() : void 0
2193
+ },
2189
2194
  className: cn(
2190
2195
  "data-table-head-cell",
2191
2196
  CELL_ALIGN_CLASS[align],
package/dist/compound.js CHANGED
@@ -2168,7 +2168,12 @@ function DataTable({
2168
2168
  return /* @__PURE__ */ jsx5(
2169
2169
  "th",
2170
2170
  {
2171
- style: { width: header.getSize() !== 150 ? header.getSize() : void 0 },
2171
+ style: {
2172
+ width: header.getSize() !== 150 ? header.getSize() : void 0,
2173
+ // Column sizing follows TanStack's `size`, but
2174
+ // ensure the column keeps its min width when the container shrinks.
2175
+ minWidth: header.getSize() !== 150 ? header.getSize() : void 0
2176
+ },
2172
2177
  className: cn(
2173
2178
  "data-table-head-cell",
2174
2179
  CELL_ALIGN_CLASS[align],
package/dist/index.cjs CHANGED
@@ -2249,7 +2249,12 @@ function DataTable({
2249
2249
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2250
2250
  "th",
2251
2251
  {
2252
- style: { width: header.getSize() !== 150 ? header.getSize() : void 0 },
2252
+ style: {
2253
+ width: header.getSize() !== 150 ? header.getSize() : void 0,
2254
+ // Column sizing follows TanStack's `size`, but
2255
+ // ensure the column keeps its min width when the container shrinks.
2256
+ minWidth: header.getSize() !== 150 ? header.getSize() : void 0
2257
+ },
2253
2258
  className: cn(
2254
2259
  "data-table-head-cell",
2255
2260
  CELL_ALIGN_CLASS[align],
package/dist/index.js CHANGED
@@ -2190,7 +2190,12 @@ function DataTable({
2190
2190
  return /* @__PURE__ */ jsx5(
2191
2191
  "th",
2192
2192
  {
2193
- style: { width: header.getSize() !== 150 ? header.getSize() : void 0 },
2193
+ style: {
2194
+ width: header.getSize() !== 150 ? header.getSize() : void 0,
2195
+ // Column sizing follows TanStack's `size`, but
2196
+ // ensure the column keeps its min width when the container shrinks.
2197
+ minWidth: header.getSize() !== 150 ? header.getSize() : void 0
2198
+ },
2194
2199
  className: cn(
2195
2200
  "data-table-head-cell",
2196
2201
  CELL_ALIGN_CLASS[align],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-glide-table",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/zpxlffjrm/react-glide-table.git"