cr-ui-lib 1.1.105 → 1.1.106

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.d.mts CHANGED
@@ -468,6 +468,7 @@ interface DynamicTableV2Props {
468
468
  perPagesOptions?: number[];
469
469
  tableSubInnerDivClass?: string;
470
470
  isShowPerPage?: boolean;
471
+ isFullWidth?: boolean;
471
472
  }
472
473
  declare const DynamicTableV2: React$1.FC<DynamicTableV2Props>;
473
474
 
package/dist/index.d.ts CHANGED
@@ -468,6 +468,7 @@ interface DynamicTableV2Props {
468
468
  perPagesOptions?: number[];
469
469
  tableSubInnerDivClass?: string;
470
470
  isShowPerPage?: boolean;
471
+ isFullWidth?: boolean;
471
472
  }
472
473
  declare const DynamicTableV2: React$1.FC<DynamicTableV2Props>;
473
474
 
package/dist/index.js CHANGED
@@ -4980,7 +4980,8 @@ var DynamicTableV2 = ({
4980
4980
  tableSubInnerDivClass = "",
4981
4981
  tableSubDivRef,
4982
4982
  perPagesOptions = [10, 20, 50, 100],
4983
- isShowPerPage = true
4983
+ isShowPerPage = true,
4984
+ isFullWidth = false
4984
4985
  }) => {
4985
4986
  var _a, _b;
4986
4987
  const tableRef = React.useRef(null);
@@ -5113,7 +5114,10 @@ var DynamicTableV2 = ({
5113
5114
  {
5114
5115
  ref: tableRef,
5115
5116
  className: "min-w-full",
5116
- style: { tableLayout: "fixed" },
5117
+ style: {
5118
+ tableLayout: "fixed",
5119
+ width: isFullWidth ? "100%" : void 0
5120
+ },
5117
5121
  children: [
5118
5122
  /* @__PURE__ */ jsxRuntime.jsx("colgroup", { children: columns.map((column, i) => /* @__PURE__ */ jsxRuntime.jsx("col", { style: { width: column.width || "150px" } }, i)) }),
5119
5123
  !isDisableTableHeader && /* @__PURE__ */ jsxRuntime.jsx("thead", { className: "border-b-2 bg-white sticky top-0 z-10", children: /* @__PURE__ */ jsxRuntime.jsx("tr", { children: columns.map((column, columnIndex) => {