maru_design2 2.12.0 → 2.12.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.12.1](https://github.com/42maru-ai/maru-design2/compare/v2.12.0...v2.12.1) (2024-07-15)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * :bug: Table - kebab show defaulty ([78db92c](https://github.com/42maru-ai/maru-design2/commit/78db92cdd5b8aba5c54833427d5b15fc965e25f2))
9
+
3
10
  ## [2.12.0](https://github.com/42maru-ai/maru-design2/compare/v2.11.1...v2.12.0) (2024-07-15)
4
11
 
5
12
 
@@ -8,7 +8,7 @@ interface Props {
8
8
  onCheck?: (ids: string[]) => void;
9
9
  hasActionCol: boolean;
10
10
  kebabMenu?: {
11
- show?: (rowId?: string) => TShow;
11
+ show: (rowId?: string) => TShow;
12
12
  content: (rowId: string, onClose: () => void) => React.ReactNode;
13
13
  };
14
14
  binButton?: {
@@ -50,7 +50,7 @@ export interface TableProps {
50
50
  * 최우측 컬럼 바디의 더보기 메뉴. binButton과 같이 쓸 수 없음. { content, width } (@v1 hamberger)
51
51
  */
52
52
  kebabMenu?: {
53
- show?: (rowId?: string) => TShow;
53
+ show: (rowId?: string) => TShow;
54
54
  content: (rowId: string, onClose: () => void) => React.ReactNode;
55
55
  };
56
56
  /**
package/dist/index.js CHANGED
@@ -24052,7 +24052,6 @@ function TBody(_a) {
24052
24052
  checkedIds = _a.checkedIds,
24053
24053
  onCheck = _a.onCheck,
24054
24054
  hasActionCol = _a.hasActionCol,
24055
- // kebabContent,
24056
24055
  kebabMenu = _a.kebabMenu,
24057
24056
  binButton = _a.binButton,
24058
24057
  onRowClick = _a.onRowClick,
@@ -24105,7 +24104,6 @@ function TBody(_a) {
24105
24104
  loading: loading,
24106
24105
  emptyContentHeight: emptyContentHeight
24107
24106
  }) : data.map(function (row) {
24108
- var _a, _b;
24109
24107
  return jsx(React__default.Fragment, {
24110
24108
  children: jsxs("tr", __assign({
24111
24109
  onClick: handleRowClick(row[rowIdKey]),
@@ -24127,7 +24125,7 @@ function TBody(_a) {
24127
24125
  return jsx("td", {
24128
24126
  children: format.customColumn ? format.customColumn(row[format.columnIdKey], row[rowIdKey]) : row[format.columnIdKey]
24129
24127
  }, "cell-".concat(row[format.columnIdKey], "-").concat(cellHashId));
24130
- }), ((_a = kebabMenu === null || kebabMenu === void 0 ? void 0 : kebabMenu.show) === null || _a === void 0 ? void 0 : _a.call(kebabMenu, row[rowIdKey])) === 'always' || ((_b = kebabMenu === null || kebabMenu === void 0 ? void 0 : kebabMenu.show) === null || _b === void 0 ? void 0 : _b.call(kebabMenu, row[rowIdKey])) === 'hover' && hoveredRowId === row[rowIdKey] ?
24128
+ }), (kebabMenu === null || kebabMenu === void 0 ? void 0 : kebabMenu.show(row[rowIdKey])) === 'always' || (kebabMenu === null || kebabMenu === void 0 ? void 0 : kebabMenu.show(row[rowIdKey])) === 'hover' && hoveredRowId === row[rowIdKey] ?
24131
24129
  // eslint-disable-next-line react/jsx-indent
24132
24130
  jsx(KebabMenuTd, {
24133
24131
  rowId: row[rowIdKey],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maru_design2",
3
- "version": "2.12.0",
3
+ "version": "2.12.1",
4
4
  "main": "./dist/index.js",
5
5
  "author": "zena-42maru",
6
6
  "license": "MIT",