@sikka/hawa 0.15.8-next → 0.15.11-next

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.css CHANGED
@@ -1181,6 +1181,9 @@ input[type="number"]::-webkit-inner-spin-button,
1181
1181
  .hawa-max-h-\[300px\] {
1182
1182
  max-height: 300px;
1183
1183
  }
1184
+ .hawa-max-h-\[400px\] {
1185
+ max-height: 400px;
1186
+ }
1184
1187
  .hawa-max-h-fit {
1185
1188
  max-height: -moz-fit-content;
1186
1189
  max-height: fit-content;
@@ -1905,6 +1908,10 @@ input[type="number"]::-webkit-inner-spin-button,
1905
1908
  --tw-bg-opacity: 1;
1906
1909
  background-color: rgb(219 234 254 / var(--tw-bg-opacity));
1907
1910
  }
1911
+ .hawa-bg-blue-400 {
1912
+ --tw-bg-opacity: 1;
1913
+ background-color: rgb(96 165 250 / var(--tw-bg-opacity));
1914
+ }
1908
1915
  .hawa-bg-blue-50 {
1909
1916
  --tw-bg-opacity: 1;
1910
1917
  background-color: rgb(239 246 255 / var(--tw-bg-opacity));
@@ -1977,6 +1984,10 @@ input[type="number"]::-webkit-inner-spin-button,
1977
1984
  --tw-bg-opacity: 1;
1978
1985
  background-color: rgb(220 252 231 / var(--tw-bg-opacity));
1979
1986
  }
1987
+ .hawa-bg-green-200 {
1988
+ --tw-bg-opacity: 1;
1989
+ background-color: rgb(187 247 208 / var(--tw-bg-opacity));
1990
+ }
1980
1991
  .hawa-bg-green-400 {
1981
1992
  --tw-bg-opacity: 1;
1982
1993
  background-color: rgb(74 222 128 / var(--tw-bg-opacity));
@@ -2043,6 +2054,14 @@ input[type="number"]::-webkit-inner-spin-button,
2043
2054
  --tw-bg-opacity: 1;
2044
2055
  background-color: rgb(254 226 226 / var(--tw-bg-opacity));
2045
2056
  }
2057
+ .hawa-bg-red-200 {
2058
+ --tw-bg-opacity: 1;
2059
+ background-color: rgb(254 202 202 / var(--tw-bg-opacity));
2060
+ }
2061
+ .hawa-bg-red-300 {
2062
+ --tw-bg-opacity: 1;
2063
+ background-color: rgb(252 165 165 / var(--tw-bg-opacity));
2064
+ }
2046
2065
  .hawa-bg-red-500 {
2047
2066
  --tw-bg-opacity: 1;
2048
2067
  background-color: rgb(239 68 68 / var(--tw-bg-opacity));
package/dist/index.d.mts CHANGED
@@ -635,7 +635,8 @@ type DataTableProps<DataProps = {}> = {
635
635
  };
636
636
  declare module "@tanstack/table-core" {
637
637
  interface ColumnMeta<TData extends RowData, TValue> {
638
- sortable: any;
638
+ padding?: "condensed" | "default" | "noPadding";
639
+ sortable?: boolean;
639
640
  }
640
641
  }
641
642
  declare const DataTable: <DataProps extends {}>({ columns, data, paginationPosition, translateFn, enableHideColumns, enableSearch, enableGoTo, ...props }: DataTableProps<DataProps>) => React$1.JSX.Element;
@@ -648,6 +649,7 @@ type SimpleTableProps = {
648
649
  condensed?: boolean;
649
650
  isLoading?: boolean;
650
651
  defaultSort?: string;
652
+ classNames?: string;
651
653
  texts?: {
652
654
  searchPlaceholder?: string;
653
655
  noData?: any;
@@ -659,7 +661,7 @@ type SimpleTableProps = {
659
661
  };
660
662
  declare module "@tanstack/table-core" {
661
663
  interface ColumnMeta<TData extends RowData, TValue> {
662
- sortable: any;
664
+ padding?: "condensed" | "default" | "noPadding";
663
665
  }
664
666
  }
665
667
  declare const SimpleTable: React$1.FC<SimpleTableProps>;
@@ -676,6 +678,8 @@ declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttribu
676
678
  declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
677
679
  interface TableCellProps extends React$1.TdHTMLAttributes<HTMLTableCellElement> {
678
680
  condensed?: boolean;
681
+ enablePadding?: boolean;
682
+ padding?: "condensed" | "default" | "noPadding";
679
683
  }
680
684
  declare const TableCell: React$1.ForwardRefExoticComponent<TableCellProps & React$1.RefAttributes<HTMLTableCellElement>>;
681
685
  declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
package/dist/index.d.ts CHANGED
@@ -635,7 +635,8 @@ type DataTableProps<DataProps = {}> = {
635
635
  };
636
636
  declare module "@tanstack/table-core" {
637
637
  interface ColumnMeta<TData extends RowData, TValue> {
638
- sortable: any;
638
+ padding?: "condensed" | "default" | "noPadding";
639
+ sortable?: boolean;
639
640
  }
640
641
  }
641
642
  declare const DataTable: <DataProps extends {}>({ columns, data, paginationPosition, translateFn, enableHideColumns, enableSearch, enableGoTo, ...props }: DataTableProps<DataProps>) => React$1.JSX.Element;
@@ -648,6 +649,7 @@ type SimpleTableProps = {
648
649
  condensed?: boolean;
649
650
  isLoading?: boolean;
650
651
  defaultSort?: string;
652
+ classNames?: string;
651
653
  texts?: {
652
654
  searchPlaceholder?: string;
653
655
  noData?: any;
@@ -659,7 +661,7 @@ type SimpleTableProps = {
659
661
  };
660
662
  declare module "@tanstack/table-core" {
661
663
  interface ColumnMeta<TData extends RowData, TValue> {
662
- sortable: any;
664
+ padding?: "condensed" | "default" | "noPadding";
663
665
  }
664
666
  }
665
667
  declare const SimpleTable: React$1.FC<SimpleTableProps>;
@@ -676,6 +678,8 @@ declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttribu
676
678
  declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
677
679
  interface TableCellProps extends React$1.TdHTMLAttributes<HTMLTableCellElement> {
678
680
  condensed?: boolean;
681
+ enablePadding?: boolean;
682
+ padding?: "condensed" | "default" | "noPadding";
679
683
  }
680
684
  declare const TableCell: React$1.ForwardRefExoticComponent<TableCellProps & React$1.RefAttributes<HTMLTableCellElement>>;
681
685
  declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
package/dist/index.js CHANGED
@@ -5484,7 +5484,7 @@ var Table = React42.forwardRef(function(_param, ref) /* @__PURE__ */ {
5484
5484
  "className"
5485
5485
  ]);
5486
5486
  return React42.createElement("div", {
5487
- className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border"
5487
+ className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border"
5488
5488
  }, /* @__PURE__ */ React42.createElement("table", _object_spread({
5489
5489
  ref: ref,
5490
5490
  className: cn("hawa-w-full hawa-caption-bottom hawa-text-sm", className)
@@ -5543,14 +5543,24 @@ var TableRow = React42.forwardRef(function(_param, ref) /* @__PURE__ */ {
5543
5543
  }, props));
5544
5544
  });
5545
5545
  TableRow.displayName = "TableRow";
5546
- var TableCell = React42.forwardRef(function(_param, ref) /* @__PURE__ */ {
5547
- var className = _param.className, props = _object_without_properties(_param, [
5548
- "className"
5546
+ var TableCell = React42.forwardRef(function(_param, ref) {
5547
+ var className = _param.className, _param_enablePadding = _param.enablePadding, enablePadding = _param_enablePadding === void 0 ? true : _param_enablePadding, _param_padding = _param.padding, padding = _param_padding === void 0 ? "default" : _param_padding, props = _object_without_properties(_param, [
5548
+ "className",
5549
+ "enablePadding",
5550
+ "padding"
5549
5551
  ]);
5550
- return React42.createElement("td", _object_spread({
5552
+ var paddingStyles = {
5553
+ condensed: "hawa-p-0 hawa-px-4",
5554
+ default: "hawa-p-4",
5555
+ noPadding: "hawa-p-0"
5556
+ };
5557
+ return /* @__PURE__ */ React42.createElement("td", _object_spread({
5551
5558
  ref: ref,
5552
- className: cn(// "border-x",
5553
- props.condensed ? "hawa-p-0 hawa-px-4" : "hawa-p-4", "hawa-align-middle [&:has([role=checkbox])]:hawa-pr-0 ", "[&:not(:last-child)&:not(:first-child)]:hawa-border-x", // "[&:not(:last-child)]:hawa-border-r",
5559
+ className: cn(paddingStyles[padding], // "border-x",
5560
+ // enablePadding ? "hawa-p-4" : "hawa-p-0",
5561
+ // props.disablePadding ? "hawa-p-0" : "hawa-p-4",
5562
+ // props.condensed ? "hawa-p-0 hawa-px-4" : "hawa-p-4",
5563
+ "hawa-align-middle [&:has([role=checkbox])]:hawa-pr-0 ", "[&:not(:last-child)&:not(:first-child)]:hawa-border-x", // "[&:not(:last-child)]:hawa-border-r",
5554
5564
  props.dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r", className)
5555
5565
  }, props));
5556
5566
  });
@@ -5686,9 +5696,10 @@ var DataTable = function(_param) {
5686
5696
  key: row.id,
5687
5697
  "data-state": row.getIsSelected() && "selected"
5688
5698
  }, row.getVisibleCells().map(function(cell) {
5699
+ var _cell_column_columnDef_meta;
5689
5700
  return /* @__PURE__ */ React43.createElement(TableCell, {
5690
5701
  dir: props.direction,
5691
- condensed: props.condensed,
5702
+ padding: props.condensed ? "condensed" : (_cell_column_columnDef_meta = cell.column.columnDef.meta) === null || _cell_column_columnDef_meta === void 0 ? void 0 : _cell_column_columnDef_meta.padding,
5692
5703
  key: cell.id
5693
5704
  }, (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()));
5694
5705
  }));
@@ -5702,7 +5713,7 @@ var DataTable = function(_param) {
5702
5713
  }), props.showCount && /* @__PURE__ */ React43.createElement("div", {
5703
5714
  className: "text-sm text-muted-foreground",
5704
5715
  dir: props.direction
5705
- }, /* @__PURE__ */ React43.createElement("span", null, (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.total), " ", /* @__PURE__ */ React43.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())), table.getPageCount() !== 0 && /* @__PURE__ */ React43.createElement("div", {
5716
+ }, /* @__PURE__ */ React43.createElement("span", null, (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.total), " ", /* @__PURE__ */ React43.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())), table.getPageCount() > 1 && /* @__PURE__ */ React43.createElement("div", {
5706
5717
  className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 "
5707
5718
  }, enableGoTo && /* @__PURE__ */ React43.createElement("div", {
5708
5719
  className: "hawa-flex hawa-flex-row hawa-justify-center hawa-items-center hawa-gap-2"
@@ -5812,9 +5823,10 @@ var DataTable = function(_param) {
5812
5823
  var React44 = __toESM(require("react"));
5813
5824
  var import_react_table2 = require("@tanstack/react-table");
5814
5825
  var SimpleTable = function(_param) {
5815
- var columns = _param.columns, data = _param.data, props = _object_without_properties(_param, [
5826
+ var columns = _param.columns, data = _param.data, classNames = _param.classNames, props = _object_without_properties(_param, [
5816
5827
  "columns",
5817
- "data"
5828
+ "data",
5829
+ "classNames"
5818
5830
  ]);
5819
5831
  var _table_getRowModel_rows, _props_texts;
5820
5832
  var table = (0, import_react_table2.useReactTable)({
@@ -5823,10 +5835,10 @@ var SimpleTable = function(_param) {
5823
5835
  getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
5824
5836
  });
5825
5837
  return /* @__PURE__ */ React44.createElement("div", {
5826
- className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4"
5838
+ className: cn("hawa-flex hawa-w-full hawa-flex-col hawa-gap-4", classNames)
5827
5839
  }, props.isLoading ? /* @__PURE__ */ React44.createElement(Skeleton, {
5828
5840
  className: "h-[130px] w-full"
5829
- }) : /* @__PURE__ */ React44.createElement(React44.Fragment, null, /* @__PURE__ */ React44.createElement("div", {
5841
+ }) : /* @__PURE__ */ React44.createElement("div", {
5830
5842
  className: "hawa-rounded"
5831
5843
  }, /* @__PURE__ */ React44.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React44.createElement(TableHeader, null, table.getHeaderGroups().map(function(headerGroup) {
5832
5844
  return /* @__PURE__ */ React44.createElement(TableRow, {
@@ -5843,16 +5855,17 @@ var SimpleTable = function(_param) {
5843
5855
  key: row.id,
5844
5856
  "data-state": row.getIsSelected() && "selected"
5845
5857
  }, row.getVisibleCells().map(function(cell) {
5858
+ var _cell_column_columnDef_meta;
5846
5859
  return /* @__PURE__ */ React44.createElement(TableCell, {
5847
5860
  dir: props.direction,
5848
- condensed: props.condensed,
5861
+ padding: props.condensed ? "condensed" : (_cell_column_columnDef_meta = cell.column.columnDef.meta) === null || _cell_column_columnDef_meta === void 0 ? void 0 : _cell_column_columnDef_meta.padding,
5849
5862
  key: cell.id
5850
5863
  }, (0, import_react_table2.flexRender)(cell.column.columnDef.cell, cell.getContext()));
5851
5864
  }));
5852
5865
  }) : /* @__PURE__ */ React44.createElement(TableRow, null, /* @__PURE__ */ React44.createElement(TableCell, {
5853
5866
  colSpan: columns.length,
5854
5867
  className: "hawa-h-24 hawa-text-center"
5855
- }, (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.noData)))))));
5868
+ }, (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.noData))))));
5856
5869
  };
5857
5870
  // components/elements/Accordion.tsx
5858
5871
  var React45 = __toESM(require("react"));
package/dist/index.mjs CHANGED
@@ -5158,7 +5158,7 @@ import {
5158
5158
 
5159
5159
  // components/elements/Table.tsx
5160
5160
  import * as React42 from "react";
5161
- var Table = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React42.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React42.createElement(
5161
+ var Table = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React42.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React42.createElement(
5162
5162
  "table",
5163
5163
  {
5164
5164
  ref,
@@ -5225,22 +5225,32 @@ var TableRow = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__
5225
5225
  ));
5226
5226
  TableRow.displayName = "TableRow";
5227
5227
  var TableCell = React42.forwardRef(
5228
- ({ className, ...props }, ref) => /* @__PURE__ */ React42.createElement(
5229
- "td",
5230
- {
5231
- ref,
5232
- className: cn(
5233
- // "border-x",
5234
- props.condensed ? "hawa-p-0 hawa-px-4" : "hawa-p-4",
5235
- "hawa-align-middle [&:has([role=checkbox])]:hawa-pr-0 ",
5236
- "[&:not(:last-child)&:not(:first-child)]:hawa-border-x",
5237
- // "[&:not(:last-child)]:hawa-border-r",
5238
- props.dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r",
5239
- className
5240
- ),
5241
- ...props
5242
- }
5243
- )
5228
+ ({ className, enablePadding = true, padding = "default", ...props }, ref) => {
5229
+ let paddingStyles = {
5230
+ condensed: "hawa-p-0 hawa-px-4",
5231
+ default: "hawa-p-4",
5232
+ noPadding: "hawa-p-0"
5233
+ };
5234
+ return /* @__PURE__ */ React42.createElement(
5235
+ "td",
5236
+ {
5237
+ ref,
5238
+ className: cn(
5239
+ paddingStyles[padding],
5240
+ // "border-x",
5241
+ // enablePadding ? "hawa-p-4" : "hawa-p-0",
5242
+ // props.disablePadding ? "hawa-p-0" : "hawa-p-4",
5243
+ // props.condensed ? "hawa-p-0 hawa-px-4" : "hawa-p-4",
5244
+ "hawa-align-middle [&:has([role=checkbox])]:hawa-pr-0 ",
5245
+ "[&:not(:last-child)&:not(:first-child)]:hawa-border-x",
5246
+ // "[&:not(:last-child)]:hawa-border-r",
5247
+ props.dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r",
5248
+ className
5249
+ ),
5250
+ ...props
5251
+ }
5252
+ );
5253
+ }
5244
5254
  );
5245
5255
  TableCell.displayName = "TableCell";
5246
5256
  var TableCaption = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React42.createElement(
@@ -5388,7 +5398,7 @@ var DataTable = ({
5388
5398
  TableCell,
5389
5399
  {
5390
5400
  dir: props.direction,
5391
- condensed: props.condensed,
5401
+ padding: props.condensed ? "condensed" : cell.column.columnDef.meta?.padding,
5392
5402
  key: cell.id
5393
5403
  },
5394
5404
  flexRender(
@@ -5413,7 +5423,7 @@ var DataTable = ({
5413
5423
  /* @__PURE__ */ React43.createElement("span", null, props.texts?.total),
5414
5424
  " ",
5415
5425
  /* @__PURE__ */ React43.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
5416
- ), table.getPageCount() !== 0 && /* @__PURE__ */ React43.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, enableGoTo && /* @__PURE__ */ React43.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center hawa-items-center hawa-gap-2" }, /* @__PURE__ */ React43.createElement("span", { className: "hawa-text-sm" }, props.texts?.goTo), /* @__PURE__ */ React43.createElement(
5426
+ ), table.getPageCount() > 1 && /* @__PURE__ */ React43.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, enableGoTo && /* @__PURE__ */ React43.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center hawa-items-center hawa-gap-2" }, /* @__PURE__ */ React43.createElement("span", { className: "hawa-text-sm" }, props.texts?.goTo), /* @__PURE__ */ React43.createElement(
5417
5427
  "input",
5418
5428
  {
5419
5429
  max: table.getPageCount(),
@@ -5526,6 +5536,7 @@ import {
5526
5536
  var SimpleTable = ({
5527
5537
  columns,
5528
5538
  data,
5539
+ classNames,
5529
5540
  ...props
5530
5541
  }) => {
5531
5542
  const table = useReactTable2({
@@ -5533,45 +5544,54 @@ var SimpleTable = ({
5533
5544
  columns,
5534
5545
  getCoreRowModel: getCoreRowModel2()
5535
5546
  });
5536
- return /* @__PURE__ */ React44.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4" }, props.isLoading ? /* @__PURE__ */ React44.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React44.createElement(React44.Fragment, null, /* @__PURE__ */ React44.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React44.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React44.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React44.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
5537
- return /* @__PURE__ */ React44.createElement(
5538
- TableHead,
5539
- {
5540
- condensed: props.condensed,
5541
- dir: props.direction,
5542
- key: header.id
5543
- },
5544
- header.isPlaceholder ? null : flexRender2(
5545
- header.column.columnDef.header,
5546
- header.getContext()
5547
- )
5548
- );
5549
- })))), /* @__PURE__ */ React44.createElement(TableBody, null, table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React44.createElement(
5550
- TableRow,
5547
+ return /* @__PURE__ */ React44.createElement(
5548
+ "div",
5551
5549
  {
5552
- key: row.id,
5553
- "data-state": row.getIsSelected() && "selected"
5550
+ className: cn(
5551
+ "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4",
5552
+ classNames
5553
+ )
5554
5554
  },
5555
- row.getVisibleCells().map((cell) => /* @__PURE__ */ React44.createElement(
5555
+ props.isLoading ? /* @__PURE__ */ React44.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React44.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React44.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React44.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React44.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
5556
+ return /* @__PURE__ */ React44.createElement(
5557
+ TableHead,
5558
+ {
5559
+ condensed: props.condensed,
5560
+ dir: props.direction,
5561
+ key: header.id
5562
+ },
5563
+ header.isPlaceholder ? null : flexRender2(
5564
+ header.column.columnDef.header,
5565
+ header.getContext()
5566
+ )
5567
+ );
5568
+ })))), /* @__PURE__ */ React44.createElement(TableBody, null, table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React44.createElement(
5569
+ TableRow,
5570
+ {
5571
+ key: row.id,
5572
+ "data-state": row.getIsSelected() && "selected"
5573
+ },
5574
+ row.getVisibleCells().map((cell) => /* @__PURE__ */ React44.createElement(
5575
+ TableCell,
5576
+ {
5577
+ dir: props.direction,
5578
+ padding: props.condensed ? "condensed" : cell.column.columnDef.meta?.padding,
5579
+ key: cell.id
5580
+ },
5581
+ flexRender2(
5582
+ cell.column.columnDef.cell,
5583
+ cell.getContext()
5584
+ )
5585
+ ))
5586
+ )) : /* @__PURE__ */ React44.createElement(TableRow, null, /* @__PURE__ */ React44.createElement(
5556
5587
  TableCell,
5557
5588
  {
5558
- dir: props.direction,
5559
- condensed: props.condensed,
5560
- key: cell.id
5589
+ colSpan: columns.length,
5590
+ className: "hawa-h-24 hawa-text-center"
5561
5591
  },
5562
- flexRender2(
5563
- cell.column.columnDef.cell,
5564
- cell.getContext()
5565
- )
5566
- ))
5567
- )) : /* @__PURE__ */ React44.createElement(TableRow, null, /* @__PURE__ */ React44.createElement(
5568
- TableCell,
5569
- {
5570
- colSpan: columns.length,
5571
- className: "hawa-h-24 hawa-text-center"
5572
- },
5573
- props.texts?.noData
5574
- )))))));
5592
+ props.texts?.noData
5593
+ )))))
5594
+ );
5575
5595
  };
5576
5596
 
5577
5597
  // components/elements/Accordion.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.15.8-next",
3
+ "version": "0.15.11-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {