@konoma-development/react-components 0.1.7 → 0.1.8

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.
@@ -24327,7 +24327,7 @@ function Table({
24327
24327
  {
24328
24328
  style: {
24329
24329
  minWidth: column.initialWidth,
24330
- maxWidth: column.initialWidth
24330
+ maxWidth: !column.grow ? column.initialWidth : void 0
24331
24331
  },
24332
24332
  onClick: () => {
24333
24333
  return column.sortKey && onSort(
@@ -24336,7 +24336,12 @@ function Table({
24336
24336
  })
24337
24337
  );
24338
24338
  },
24339
- className: [headerClasses, hasFilters ? "h-24" : "h-12", column.sortKey ? "cursor-pointer" : ""].join(" "),
24339
+ className: [
24340
+ headerClasses,
24341
+ hasFilters ? "h-24" : "h-12",
24342
+ column.sortKey ? "cursor-pointer" : "",
24343
+ column.grow ? "grow" : ""
24344
+ ].join(" "),
24340
24345
  children: [
24341
24346
  /* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center gap-2 w-full justify-between", children: [
24342
24347
  /* @__PURE__ */ jsx$1("span", { children: column.title }),
@@ -24405,9 +24410,14 @@ function Table({
24405
24410
  {
24406
24411
  style: {
24407
24412
  minWidth: column.initialWidth,
24408
- maxWidth: column.initialWidth
24413
+ maxWidth: !column.grow ? column.initialWidth : void 0
24409
24414
  },
24410
- className: [headerClasses, hasFilters ? "h-24" : "h-12", column.sortKey ? "cursor-pointer" : ""].join(" "),
24415
+ className: [
24416
+ headerClasses,
24417
+ hasFilters ? "h-24" : "h-12",
24418
+ column.sortKey ? "cursor-pointer" : "",
24419
+ column.grow ? "grow" : ""
24420
+ ].join(" "),
24411
24421
  onClick: () => {
24412
24422
  return column.sortKey && onSort(
24413
24423
  Object.assign({}, column, {
@@ -24483,7 +24493,7 @@ function Table({
24483
24493
  {
24484
24494
  style: {
24485
24495
  minWidth: column.initialWidth,
24486
- maxWidth: column.initialWidth
24496
+ maxWidth: !column.grow ? column.initialWidth : void 0
24487
24497
  },
24488
24498
  className: "flex h-full flex-row items-start justify-end truncate bg-krc-table-header px-4 py-3 text-xs font-medium last:rounded-tr-krc-table",
24489
24499
  children: column.title
@@ -24521,9 +24531,9 @@ function Table({
24521
24531
  {
24522
24532
  style: {
24523
24533
  minWidth: column.initialWidth,
24524
- maxWidth: column.initialWidth
24534
+ maxWidth: !column.grow ? column.initialWidth : void 0
24525
24535
  },
24526
- className: rowLeftWrapperClasses,
24536
+ className: [rowLeftWrapperClasses, column.grow ? "grow" : ""].join(" "),
24527
24537
  title: entry[column.id] || "",
24528
24538
  children: cellRenderer?.[column.id]?.(entry) || /* @__PURE__ */ jsx$1("div", { className: "h-14 truncate p-4 text-sm", children: entry[column.id] || "-" })
24529
24539
  },
@@ -24536,9 +24546,9 @@ function Table({
24536
24546
  {
24537
24547
  style: {
24538
24548
  minWidth: column.initialWidth,
24539
- maxWidth: column.initialWidth
24549
+ maxWidth: !column.grow ? column.initialWidth : void 0
24540
24550
  },
24541
- className: rowCenterWrapperClasses,
24551
+ className: [rowCenterWrapperClasses, column.grow ? "grow" : ""].join(" "),
24542
24552
  title: entry[column.id] ? entry[column.id].toString() : "",
24543
24553
  children: cellRenderer?.[column.id]?.(entry) || /* @__PURE__ */ jsx$1("div", { className: "h-14 truncate p-4 text-sm", children: entry[column.id] || "-" })
24544
24554
  },
@@ -24551,9 +24561,9 @@ function Table({
24551
24561
  {
24552
24562
  style: {
24553
24563
  minWidth: column.initialWidth,
24554
- maxWidth: column.initialWidth
24564
+ maxWidth: !column.grow ? column.initialWidth : void 0
24555
24565
  },
24556
- className: rowRightWrapperClasses,
24566
+ className: [rowRightWrapperClasses, column.grow ? "grow" : ""].join(" "),
24557
24567
  title: entry[column.id] || "",
24558
24568
  children: cellRenderer?.[column.id]?.(entry) || /* @__PURE__ */ jsx$1("div", { className: "h-14 truncate p-4 text-sm", children: entry[column.id] || "-" })
24559
24569
  },
@@ -24682,9 +24692,9 @@ function Row({
24682
24692
  {
24683
24693
  style: {
24684
24694
  minWidth: column.initialWidth,
24685
- maxWidth: column.initialWidth
24695
+ maxWidth: !column.grow ? column.initialWidth : void 0
24686
24696
  },
24687
- className: rowLeftWrapperClasses,
24697
+ className: [rowLeftWrapperClasses, column.grow ? "grow" : ""].join(" "),
24688
24698
  title: entry[column.id] || "",
24689
24699
  children: dragRef && cellRenderer?.[column.id]?.({ ...entry, dragRef }) || /* @__PURE__ */ jsx$1("div", { className: "h-14 truncate p-4 text-sm", children: entry[column.id] || "-" })
24690
24700
  },
@@ -24697,9 +24707,9 @@ function Row({
24697
24707
  {
24698
24708
  style: {
24699
24709
  minWidth: column.initialWidth,
24700
- maxWidth: column.initialWidth
24710
+ maxWidth: !column.grow ? column.initialWidth : void 0
24701
24711
  },
24702
- className: rowCenterWrapperClasses,
24712
+ className: [rowCenterWrapperClasses, column.grow ? "grow" : ""].join(" "),
24703
24713
  title: entry[column.id] ? entry[column.id].toString() : "",
24704
24714
  children: cellRenderer?.[column.id]?.({ ...entry, dragRef }) || /* @__PURE__ */ jsx$1("div", { className: "h-14 truncate p-4 text-sm", children: entry[column.id] || "-" })
24705
24715
  },
@@ -24712,9 +24722,9 @@ function Row({
24712
24722
  {
24713
24723
  style: {
24714
24724
  minWidth: column.initialWidth,
24715
- maxWidth: column.initialWidth
24725
+ maxWidth: !column.grow ? column.initialWidth : void 0
24716
24726
  },
24717
- className: rowRightWrapperClasses,
24727
+ className: [rowRightWrapperClasses, column.grow ? "grow" : ""].join(" "),
24718
24728
  title: entry[column.id] || "",
24719
24729
  children: cellRenderer?.[column.id]?.({ ...entry, dragRef }) || /* @__PURE__ */ jsx$1("div", { className: "h-14 truncate p-4 text-sm", children: entry[column.id] || "-" })
24720
24730
  },