@helpdice/ui 1.6.4 → 1.6.5

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.js CHANGED
@@ -44734,6 +44734,7 @@ var TableBody = function TableBody(_ref) {
44734
44734
  onRow = _ref.onRow,
44735
44735
  onCell = _ref.onCell,
44736
44736
  rowClassName = _ref.rowClassName,
44737
+ textPlaceholder = _ref.textPlaceholder,
44737
44738
  _ref$rowDraggable = _ref.rowDraggable,
44738
44739
  rowDraggable = _ref$rowDraggable === void 0 ? false : _ref$rowDraggable,
44739
44740
  _ref$readOnly = _ref.readOnly,
@@ -44840,7 +44841,7 @@ var TableBody = function TableBody(_ref) {
44840
44841
  return /*#__PURE__*/React$1.createElement("tbody", null, /*#__PURE__*/React$1.createElement("tr", null, /*#__PURE__*/React$1.createElement("td", {
44841
44842
  colSpan: columns === null || columns === void 0 ? void 0 : columns.length
44842
44843
  }, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Placeholder, {
44843
- empty: true,
44844
+ empty: !textPlaceholder,
44844
44845
  msg: "No Entries Found"
44845
44846
  })))));
44846
44847
  }
@@ -44946,7 +44947,7 @@ var TableColumn = function TableColumn(columnProps) {
44946
44947
  };
44947
44948
  TableColumn.displayName = 'TableColumn';
44948
44949
 
44949
- var _excluded$9 = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
44950
+ var _excluded$9 = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "textPlaceholder", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
44950
44951
  function TableComponent(tableProps) {
44951
44952
  /* eslint-disable @typescript-eslint/no-unused-vars */
44952
44953
  var _ref = tableProps,
@@ -44978,6 +44979,8 @@ function TableComponent(tableProps) {
44978
44979
  showFilters = _ref$showFilters === void 0 ? false : _ref$showFilters,
44979
44980
  _ref$stickyHeader = _ref.stickyHeader,
44980
44981
  stickyHeader = _ref$stickyHeader === void 0 ? false : _ref$stickyHeader,
44982
+ _ref$textPlaceholder = _ref.textPlaceholder,
44983
+ textPlaceholder = _ref$textPlaceholder === void 0 ? false : _ref$textPlaceholder,
44981
44984
  onSelected = _ref.onSelected,
44982
44985
  dataLength = _ref.dataLength,
44983
44986
  viewLength = _ref.viewLength,
@@ -45057,6 +45060,7 @@ function TableComponent(tableProps) {
45057
45060
  emptyText: emptyText,
45058
45061
  onRow: onRow,
45059
45062
  onCell: onCell,
45063
+ textPlaceholder: textPlaceholder,
45060
45064
  rowClassName: rowClassName,
45061
45065
  rowDraggable: rowDraggable,
45062
45066
  readOnly: readOnly,
@@ -32012,6 +32012,7 @@ var TableBody = function TableBody(_ref) {
32012
32012
  onRow = _ref.onRow,
32013
32013
  onCell = _ref.onCell,
32014
32014
  rowClassName = _ref.rowClassName,
32015
+ textPlaceholder = _ref.textPlaceholder,
32015
32016
  _ref$rowDraggable = _ref.rowDraggable,
32016
32017
  rowDraggable = _ref$rowDraggable === void 0 ? false : _ref$rowDraggable,
32017
32018
  _ref$readOnly = _ref.readOnly,
@@ -32118,7 +32119,7 @@ var TableBody = function TableBody(_ref) {
32118
32119
  return /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
32119
32120
  colSpan: columns === null || columns === void 0 ? void 0 : columns.length
32120
32121
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Placeholder, {
32121
- empty: true,
32122
+ empty: !textPlaceholder,
32122
32123
  msg: "No Entries Found"
32123
32124
  })))));
32124
32125
  }
@@ -32574,7 +32575,7 @@ var Pagination = withScale(PaginationComponent);
32574
32575
  Pagination.Previous = PaginationPrevious;
32575
32576
  Pagination.Next = PaginationNext;
32576
32577
 
32577
- var _excluded = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
32578
+ var _excluded = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "textPlaceholder", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
32578
32579
  function TableComponent(tableProps) {
32579
32580
  /* eslint-disable @typescript-eslint/no-unused-vars */
32580
32581
  var _ref = tableProps,
@@ -32606,6 +32607,8 @@ function TableComponent(tableProps) {
32606
32607
  showFilters = _ref$showFilters === void 0 ? false : _ref$showFilters,
32607
32608
  _ref$stickyHeader = _ref.stickyHeader,
32608
32609
  stickyHeader = _ref$stickyHeader === void 0 ? false : _ref$stickyHeader,
32610
+ _ref$textPlaceholder = _ref.textPlaceholder,
32611
+ textPlaceholder = _ref$textPlaceholder === void 0 ? false : _ref$textPlaceholder,
32609
32612
  onSelected = _ref.onSelected,
32610
32613
  dataLength = _ref.dataLength,
32611
32614
  viewLength = _ref.viewLength,
@@ -32685,6 +32688,7 @@ function TableComponent(tableProps) {
32685
32688
  emptyText: emptyText,
32686
32689
  onRow: onRow,
32687
32690
  onCell: onCell,
32691
+ textPlaceholder: textPlaceholder,
32688
32692
  rowClassName: rowClassName,
32689
32693
  rowDraggable: rowDraggable,
32690
32694
  readOnly: readOnly,
@@ -7,6 +7,7 @@ interface Props<TableDataItem extends TableDataItemBase> {
7
7
  onCell?: TableOnCellClick<TableDataItem>;
8
8
  data: Array<TableDataItem>;
9
9
  className?: string;
10
+ textPlaceholder?: boolean;
10
11
  rowClassName: TableRowClassNameHandler<TableDataItem>;
11
12
  rowDraggable?: boolean;
12
13
  readOnly?: boolean;
@@ -15,7 +16,7 @@ interface Props<TableDataItem extends TableDataItemBase> {
15
16
  type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props<any>>;
16
17
  export type TableBodyProps<TableDataItem extends TableDataItemBase> = Props<TableDataItem> & NativeAttrs;
17
18
  declare const TableBody: {
18
- <TableDataItem extends TableDataItemBase>({ data, emptyText, onRow, onCell, rowClassName, rowDraggable, readOnly, onSelected }: TableBodyProps<TableDataItem>): React.JSX.Element;
19
+ <TableDataItem extends TableDataItemBase>({ data, emptyText, onRow, onCell, rowClassName, textPlaceholder, rowDraggable, readOnly, onSelected }: TableBodyProps<TableDataItem>): React.JSX.Element;
19
20
  displayName: string;
20
21
  };
21
22
  export default TableBody;
@@ -17,6 +17,7 @@ interface Props<TableDataItem extends TableDataItemBase> {
17
17
  readOnly?: boolean;
18
18
  showFilters?: boolean;
19
19
  stickyHeader?: boolean;
20
+ textPlaceholder?: boolean;
20
21
  dataLength?: number;
21
22
  viewLength?: number;
22
23
  rowClassName?: TableRowClassNameHandler<TableDataItem>;
@@ -7,6 +7,7 @@ interface Props<TableDataItem extends TableDataItemBase> {
7
7
  onCell?: TableOnCellClick<TableDataItem>;
8
8
  data: Array<TableDataItem>;
9
9
  className?: string;
10
+ textPlaceholder?: boolean;
10
11
  rowClassName: TableRowClassNameHandler<TableDataItem>;
11
12
  rowDraggable?: boolean;
12
13
  readOnly?: boolean;
@@ -15,7 +16,7 @@ interface Props<TableDataItem extends TableDataItemBase> {
15
16
  type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props<any>>;
16
17
  export type TableBodyProps<TableDataItem extends TableDataItemBase> = Props<TableDataItem> & NativeAttrs;
17
18
  declare const TableBody: {
18
- <TableDataItem extends TableDataItemBase>({ data, emptyText, onRow, onCell, rowClassName, rowDraggable, readOnly, onSelected }: TableBodyProps<TableDataItem>): React.JSX.Element;
19
+ <TableDataItem extends TableDataItemBase>({ data, emptyText, onRow, onCell, rowClassName, textPlaceholder, rowDraggable, readOnly, onSelected }: TableBodyProps<TableDataItem>): React.JSX.Element;
19
20
  displayName: string;
20
21
  };
21
22
  export default TableBody;
@@ -15,6 +15,7 @@ var TableBody = function TableBody(_ref) {
15
15
  onRow = _ref.onRow,
16
16
  onCell = _ref.onCell,
17
17
  rowClassName = _ref.rowClassName,
18
+ textPlaceholder = _ref.textPlaceholder,
18
19
  _ref$rowDraggable = _ref.rowDraggable,
19
20
  rowDraggable = _ref$rowDraggable === void 0 ? false : _ref$rowDraggable,
20
21
  _ref$readOnly = _ref.readOnly,
@@ -121,7 +122,7 @@ var TableBody = function TableBody(_ref) {
121
122
  return /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
122
123
  colSpan: columns === null || columns === void 0 ? void 0 : columns.length
123
124
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Placeholder, {
124
- empty: true,
125
+ empty: !textPlaceholder,
125
126
  msg: "No Entries Found"
126
127
  })))));
127
128
  }
@@ -17,6 +17,7 @@ interface Props<TableDataItem extends TableDataItemBase> {
17
17
  readOnly?: boolean;
18
18
  showFilters?: boolean;
19
19
  stickyHeader?: boolean;
20
+ textPlaceholder?: boolean;
20
21
  dataLength?: number;
21
22
  viewLength?: number;
22
23
  rowClassName?: TableRowClassNameHandler<TableDataItem>;
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
- var _excluded = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
5
+ var _excluded = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "textPlaceholder", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
6
6
  import _JSXStyle from "../styled-jsx.es.js";
7
7
  /* "use client" */
8
8
 
@@ -50,6 +50,8 @@ function TableComponent(tableProps) {
50
50
  showFilters = _ref$showFilters === void 0 ? false : _ref$showFilters,
51
51
  _ref$stickyHeader = _ref.stickyHeader,
52
52
  stickyHeader = _ref$stickyHeader === void 0 ? false : _ref$stickyHeader,
53
+ _ref$textPlaceholder = _ref.textPlaceholder,
54
+ textPlaceholder = _ref$textPlaceholder === void 0 ? false : _ref$textPlaceholder,
53
55
  onSelected = _ref.onSelected,
54
56
  dataLength = _ref.dataLength,
55
57
  viewLength = _ref.viewLength,
@@ -129,6 +131,7 @@ function TableComponent(tableProps) {
129
131
  emptyText: emptyText,
130
132
  onRow: onRow,
131
133
  onCell: onCell,
134
+ textPlaceholder: textPlaceholder,
132
135
  rowClassName: rowClassName,
133
136
  rowDraggable: rowDraggable,
134
137
  readOnly: readOnly,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helpdice/ui",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "esm/index.d.ts",
6
6
  "unpkg": "dist/index.min.js",