@syook/react-tabulous 3.0.3 → 4.0.0-beta-0.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.
Files changed (153) hide show
  1. package/README.md +206 -197
  2. package/lib/index.esm.js +19 -0
  3. package/lib/index.esm.js.map +1 -0
  4. package/lib/index.js +19 -0
  5. package/lib/index.js.map +1 -0
  6. package/lib/types/App.d.ts +4 -0
  7. package/lib/types/__tests__/reactTabulous/components/base/gridBody.test.d.ts +1 -0
  8. package/lib/types/__tests__/reactTabulous/components/base/gridFooterPlaceholder.test.d.ts +1 -0
  9. package/lib/types/__tests__/reactTabulous/components/bulkAction/bulkActions.test.d.ts +1 -0
  10. package/lib/types/__tests__/reactTabulous/components/cell/columnCell.test.d.ts +1 -0
  11. package/lib/types/__tests__/reactTabulous/components/columnBody/columnBody.test.d.ts +1 -0
  12. package/lib/types/__tests__/reactTabulous/components/columnHeaders/columnHeaderCheckbox.test.d.ts +1 -0
  13. package/lib/types/__tests__/reactTabulous/components/columnHeaders/columnHeaderItem.test.d.ts +1 -0
  14. package/lib/types/__tests__/reactTabulous/components/columnHeaders/columnHeaderMenu.test.d.ts +1 -0
  15. package/lib/types/__tests__/reactTabulous/components/columnHeaders/columnHeaders.test.d.ts +1 -0
  16. package/lib/types/__tests__/reactTabulous/components/containers/gridRoot.test.d.ts +1 -0
  17. package/lib/types/__tests__/reactTabulous/components/filter/index.test.d.ts +1 -0
  18. package/lib/types/__tests__/reactTabulous/components/filter/inputCategories.test.d.ts +1 -0
  19. package/lib/types/__tests__/reactTabulous/components/gridHeader.test.d.ts +1 -0
  20. package/lib/types/__tests__/reactTabulous/components/pagination/pagination.test.d.ts +1 -0
  21. package/lib/types/__tests__/reactTabulous/components/toolbar/gridToolbar.test.d.ts +1 -0
  22. package/lib/types/__tests__/reactTabulous/components/toolbar/gridToolbarColumns.test.d.ts +1 -0
  23. package/lib/types/__tests__/reactTabulous/components/toolbar/gridToolbarDensity.test.d.ts +1 -0
  24. package/lib/types/__tests__/reactTabulous/components/toolbar/gridToolbarExport.test.d.ts +1 -0
  25. package/lib/types/__tests__/reactTabulous/components/toolbar/gridToolbarFilter.test.d.ts +1 -0
  26. package/lib/types/__tests__/reactTabulous/components/toolbar/gridToolbarQuickFilter.test.d.ts +1 -0
  27. package/lib/types/__tests__/reactTabulous/components/widgets/button/button.test.d.ts +1 -0
  28. package/lib/types/__tests__/reactTabulous/components/widgets/checkbox.test.d.ts +1 -0
  29. package/lib/types/__tests__/reactTabulous/components/widgets/divider.test.d.ts +1 -0
  30. package/lib/types/__tests__/reactTabulous/components/widgets/icon.test.d.ts +1 -0
  31. package/lib/types/__tests__/reactTabulous/components/widgets/iconButton/iconButton.test.d.ts +1 -0
  32. package/lib/types/__tests__/reactTabulous/components/widgets/input/input.test.d.ts +1 -0
  33. package/lib/types/__tests__/reactTabulous/components/widgets/inputError/index.test.d.ts +1 -0
  34. package/lib/types/__tests__/reactTabulous/components/widgets/inputLabel/index.test.d.ts +1 -0
  35. package/lib/types/__tests__/reactTabulous/components/widgets/loader.test.d.ts +1 -0
  36. package/lib/types/__tests__/reactTabulous/components/widgets/menu.test.d.ts +1 -0
  37. package/lib/types/__tests__/reactTabulous/components/widgets/popup/popup.test.d.ts +1 -0
  38. package/lib/types/__tests__/reactTabulous/components/widgets/select/select.test.d.ts +1 -0
  39. package/lib/types/__tests__/reactTabulous/components/widgets/switch.test.d.ts +1 -0
  40. package/lib/types/__tests__/reactTabulous/components/widgets/typography.test.d.ts +1 -0
  41. package/lib/types/__tests__/reactTabulous/context/dataGridContextProvider.test.d.ts +1 -0
  42. package/lib/types/__tests__/reactTabulous/helpers/classnames.test.d.ts +1 -0
  43. package/lib/types/__tests__/reactTabulous/helpers/debounce.test.d.ts +1 -0
  44. package/lib/types/__tests__/reactTabulous/helpers/getColumnsAndSearchKeys.test.d.ts +1 -0
  45. package/lib/types/__tests__/reactTabulous/helpers/toCamelCase.test.d.ts +1 -0
  46. package/lib/types/__tests__/reactTabulous/hooks/useDragHandler.test.d.ts +1 -0
  47. package/lib/types/__tests__/reactTabulous/hooks/useGridColumn.test.d.ts +1 -0
  48. package/lib/types/__tests__/reactTabulous/hooks/useGridColumnHeaders.test.d.ts +1 -0
  49. package/lib/types/__tests__/reactTabulous/hooks/useGridDensity.test.d.ts +1 -0
  50. package/lib/types/__tests__/reactTabulous/hooks/useGridExport.test.d.ts +1 -0
  51. package/lib/types/__tests__/reactTabulous/hooks/useGridFilter.test.d.ts +1 -0
  52. package/lib/types/__tests__/reactTabulous/hooks/useGridPagination.test.d.ts +1 -0
  53. package/lib/types/__tests__/reactTabulous/hooks/useGridPin.test.d.ts +1 -0
  54. package/lib/types/__tests__/reactTabulous/hooks/useGridResize.test.d.ts +1 -0
  55. package/lib/types/__tests__/reactTabulous/hooks/useGridRootProps.test.d.ts +1 -0
  56. package/lib/types/__tests__/reactTabulous/hooks/useGridRowSelection.test.d.ts +1 -0
  57. package/lib/types/__tests__/reactTabulous/hooks/useGridSearch.test.d.ts +1 -0
  58. package/lib/types/__tests__/reactTabulous/hooks/useGridSort.test.d.ts +1 -0
  59. package/lib/types/data/index.d.ts +83 -0
  60. package/lib/types/index.d.ts +1 -0
  61. package/lib/types/reactTabulous/components/base/gridBody.d.ts +2 -0
  62. package/lib/types/reactTabulous/components/base/gridFooterPlaceholder.d.ts +2 -0
  63. package/lib/types/reactTabulous/components/base/index.d.ts +2 -0
  64. package/lib/types/reactTabulous/components/bulkAction/index.d.ts +9 -0
  65. package/lib/types/reactTabulous/components/cell/columnCell.d.ts +12 -0
  66. package/lib/types/reactTabulous/components/cell/gridActionsCellItem.d.ts +10 -0
  67. package/lib/types/reactTabulous/components/columnBody/columnBody.d.ts +2 -0
  68. package/lib/types/reactTabulous/components/columnBody/index.d.ts +1 -0
  69. package/lib/types/reactTabulous/components/columnHeaders/columnHeaderCheckbox.d.ts +7 -0
  70. package/lib/types/reactTabulous/components/columnHeaders/columnHeaderItem.d.ts +31 -0
  71. package/lib/types/reactTabulous/components/columnHeaders/columnHeaderMenu.d.ts +18 -0
  72. package/lib/types/reactTabulous/components/columnHeaders/columnHeaders.d.ts +2 -0
  73. package/lib/types/reactTabulous/components/columnHeaders/index.d.ts +1 -0
  74. package/lib/types/reactTabulous/components/containers/gridRoot.d.ts +2 -0
  75. package/lib/types/reactTabulous/components/containers/index.d.ts +1 -0
  76. package/lib/types/reactTabulous/components/filter/index.d.ts +13 -0
  77. package/lib/types/reactTabulous/components/filter/inputCategories.d.ts +13 -0
  78. package/lib/types/reactTabulous/components/gridHeader.d.ts +2 -0
  79. package/lib/types/reactTabulous/components/index.d.ts +3 -0
  80. package/lib/types/reactTabulous/components/overlayWrapper/index.d.ts +1 -0
  81. package/lib/types/reactTabulous/components/overlayWrapper/overlayWrapper.d.ts +6 -0
  82. package/lib/types/reactTabulous/components/pagination/index.d.ts +1 -0
  83. package/lib/types/reactTabulous/components/pagination/pagination.d.ts +2 -0
  84. package/lib/types/reactTabulous/components/toolbar/gridToolbar.d.ts +6 -0
  85. package/lib/types/reactTabulous/components/toolbar/gridToolbarColumns.d.ts +2 -0
  86. package/lib/types/reactTabulous/components/toolbar/gridToolbarDensity.d.ts +2 -0
  87. package/lib/types/reactTabulous/components/toolbar/gridToolbarExport.d.ts +2 -0
  88. package/lib/types/reactTabulous/components/toolbar/gridToolbarFilter.d.ts +2 -0
  89. package/lib/types/reactTabulous/components/toolbar/gridToolbarQuickFilter.d.ts +2 -0
  90. package/lib/types/reactTabulous/components/toolbar/index.d.ts +6 -0
  91. package/lib/types/reactTabulous/components/widgets/button/buttonStyle.d.ts +5 -0
  92. package/lib/types/reactTabulous/components/widgets/button/index.d.ts +21 -0
  93. package/lib/types/reactTabulous/components/widgets/checkbox.d.ts +7 -0
  94. package/lib/types/reactTabulous/components/widgets/divider.d.ts +2 -0
  95. package/lib/types/reactTabulous/components/widgets/icon.d.ts +41 -0
  96. package/lib/types/reactTabulous/components/widgets/iconButton/index.d.ts +12 -0
  97. package/lib/types/reactTabulous/components/widgets/index.d.ts +12 -0
  98. package/lib/types/reactTabulous/components/widgets/input/index.d.ts +26 -0
  99. package/lib/types/reactTabulous/components/widgets/input/inputStyle.d.ts +5 -0
  100. package/lib/types/reactTabulous/components/widgets/inputError/index.d.ts +8 -0
  101. package/lib/types/reactTabulous/components/widgets/inputLabel/index.d.ts +13 -0
  102. package/lib/types/reactTabulous/components/widgets/loader.d.ts +1 -0
  103. package/lib/types/reactTabulous/components/widgets/menu.d.ts +16 -0
  104. package/lib/types/reactTabulous/components/widgets/popup/index.d.ts +12 -0
  105. package/lib/types/reactTabulous/components/widgets/select/index.d.ts +13 -0
  106. package/lib/types/reactTabulous/components/widgets/select/selectStyle.d.ts +5 -0
  107. package/lib/types/reactTabulous/components/widgets/switch.d.ts +8 -0
  108. package/lib/types/reactTabulous/components/widgets/typography.d.ts +28 -0
  109. package/lib/types/reactTabulous/constant/index.d.ts +10 -0
  110. package/lib/types/reactTabulous/constant/noRowsOverlay.d.ts +2 -0
  111. package/lib/types/reactTabulous/context/dataGridContextProvider.d.ts +6 -0
  112. package/lib/types/reactTabulous/context/dataGridRootPropsContext.d.ts +3 -0
  113. package/lib/types/reactTabulous/context/index.d.ts +1 -0
  114. package/lib/types/reactTabulous/context/test-utils.d.ts +5 -0
  115. package/lib/types/reactTabulous/helpers/classnames.d.ts +2 -0
  116. package/lib/types/reactTabulous/helpers/debounce.d.ts +1 -0
  117. package/lib/types/reactTabulous/helpers/getColumnsAndSearchKeys.d.ts +5 -0
  118. package/lib/types/reactTabulous/helpers/toCamelCase.d.ts +1 -0
  119. package/lib/types/reactTabulous/hooks/useClickAwayListener.d.ts +2 -0
  120. package/lib/types/reactTabulous/hooks/useDragHandler.d.ts +8 -0
  121. package/lib/types/reactTabulous/hooks/useGridColumn.d.ts +1 -0
  122. package/lib/types/reactTabulous/hooks/useGridColumnHeaders.d.ts +1 -0
  123. package/lib/types/reactTabulous/hooks/useGridDensity.d.ts +1 -0
  124. package/lib/types/reactTabulous/hooks/useGridExport.d.ts +3 -0
  125. package/lib/types/reactTabulous/hooks/useGridFilter.d.ts +6 -0
  126. package/lib/types/reactTabulous/hooks/useGridPagination.d.ts +1 -0
  127. package/lib/types/reactTabulous/hooks/useGridPin.d.ts +1 -0
  128. package/lib/types/reactTabulous/hooks/useGridResize.d.ts +1 -0
  129. package/lib/types/reactTabulous/hooks/useGridRootProps.d.ts +48 -0
  130. package/lib/types/reactTabulous/hooks/useGridRowSelection.d.ts +1 -0
  131. package/lib/types/reactTabulous/hooks/useGridSearch.d.ts +5 -0
  132. package/lib/types/reactTabulous/hooks/useGridSort.d.ts +4 -0
  133. package/lib/types/reactTabulous/index.d.ts +2 -0
  134. package/lib/types/reactTabulous/models/columnDef/columnDef.d.ts +72 -0
  135. package/lib/types/reactTabulous/models/columnDef/columnPin.d.ts +48 -0
  136. package/lib/types/reactTabulous/models/columnDef/columnType.d.ts +2 -0
  137. package/lib/types/reactTabulous/models/columnDef/index.d.ts +3 -0
  138. package/lib/types/reactTabulous/models/gridDensity.d.ts +4 -0
  139. package/lib/types/reactTabulous/models/gridFiltersModel.d.ts +9 -0
  140. package/lib/types/reactTabulous/models/gridRows.d.ts +2 -0
  141. package/lib/types/reactTabulous/models/gridSortModel.d.ts +1 -0
  142. package/lib/types/reactTabulous/models/index.d.ts +7 -0
  143. package/lib/types/reactTabulous/models/logger.d.ts +6 -0
  144. package/lib/types/reactTabulous/models/props/dataGridProps.d.ts +158 -0
  145. package/lib/types/reactTabulous/models/props/index.d.ts +1 -0
  146. package/lib/types/reactTabulous/reactTabulous/index.d.ts +1 -0
  147. package/lib/types/reactTabulous/reactTabulous/reactTabulous.d.ts +5 -0
  148. package/lib/types/reactTabulous/reactTabulous/reactTabulousStyle.d.ts +5 -0
  149. package/lib/types/setupTests.d.ts +1 -0
  150. package/package.json +107 -75
  151. package/CHANGELOG.md +0 -27
  152. package/lib/react-tabulous.min.js +0 -2
  153. package/lib/react-tabulous.min.js.LICENSE.txt +0 -20
@@ -0,0 +1,158 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type GridColDef } from '../columnDef';
3
+ import { type GridDensity } from '../gridDensity';
4
+ import { type GridSortDirection } from '../gridSortModel';
5
+ import { type Logger } from '../logger';
6
+ import { type GridRowId, type GridValidRowModel } from '../gridRows';
7
+ import { type FilterFieldProps } from '../gridFiltersModel';
8
+ export interface DataGridPropsWithDefaultValues {
9
+ data: any;
10
+ rootData: [];
11
+ filteredAndSortedData: [];
12
+ defaultPageSize: number;
13
+ columns: GridColDef[];
14
+ density: GridDensity;
15
+ emptyPlaceholder: string;
16
+ loading: boolean;
17
+ page: number;
18
+ pageSizeOptions: number[];
19
+ sortingOrder: GridSortDirection[];
20
+ sortField: string;
21
+ sortFieldType: string;
22
+ sortBy: GridSortDirection;
23
+ logger: Logger;
24
+ showColumnToolbar: boolean;
25
+ showFilterToolbar: boolean;
26
+ searchKeys: string[];
27
+ searchText: string;
28
+ /**
29
+ * If `true`, column filters are disabled.
30
+ * @default false
31
+ */
32
+ disableColumnFilter: boolean;
33
+ /**
34
+ * If `true`, the column menu is disabled.
35
+ * @default false
36
+ */
37
+ disableColumnMenu: boolean;
38
+ /**
39
+ * If `true`, the column pinning is disabled.
40
+ * @default false
41
+ */
42
+ disableColumnPinning: boolean;
43
+ /**
44
+ * If `true`, reordering columns is disabled.
45
+ * @default false
46
+ */
47
+ disableColumnReorder: boolean;
48
+ /**
49
+ * If `true`, resizing columns is disabled.
50
+ * @default false
51
+ */
52
+ disableColumnResize: boolean;
53
+ /**
54
+ * If `true`, hiding/showing columns is disabled.
55
+ * @default false
56
+ */
57
+ disableColumnSelector: boolean;
58
+ /**
59
+ * If `true`, the density selector is disabled.
60
+ * @default false
61
+ */
62
+ disableDensitySelector: boolean;
63
+ /**
64
+ * If `true`, sorting with multiple columns is disabled.
65
+ * @default false
66
+ */
67
+ disableMultipleColumnsSorting: boolean;
68
+ /**
69
+ * If `true`, quick search will be disabled.
70
+ * @default false
71
+ */
72
+ disableSearch: boolean;
73
+ /**
74
+ * If `true`, export will be disabled.
75
+ * @default false
76
+ */
77
+ disableColumnExport: boolean;
78
+ /**
79
+ * If `true`, there won't be any footer or pagination.
80
+ * @default false
81
+ */
82
+ hideFooter: boolean;
83
+ /**
84
+ * If `true`, the row count in pagination component in the footer is hidden.
85
+ * @default false
86
+ */
87
+ hideFooterRowCount: boolean;
88
+ /**
89
+ * If `true`, the pagination component in the footer is hidden but row count will be shown.
90
+ * @default false
91
+ */
92
+ hidePagination: boolean;
93
+ /**
94
+ * If `true`, the selected row count in the footer is hidden.
95
+ * @default false
96
+ */
97
+ pagination: boolean;
98
+ /**
99
+ * Pagination can be processed on the server or client-side.
100
+ * Set it to 'client' if you would like to handle the pagination on the client-side.
101
+ * Set it to 'server' if you would like to handle the pagination on the server-side.
102
+ * @default "client"
103
+ */
104
+ filters: FilterFieldProps[];
105
+ /**
106
+ * If `true`, the grid will have checkbox selection.
107
+ * @default false
108
+ */
109
+ checkboxSelection: boolean;
110
+ selectedRows: GridRowId[];
111
+ paginatedSelectedRows: GridRowId[];
112
+ /**
113
+ * Bulk actions to be displayed in the toolbar.
114
+ * @default []
115
+ * @example ['delete']
116
+ */
117
+ bulkActions: string[] | any[];
118
+ /**
119
+ * Callback fired when a bulk action is clicked.
120
+ * @param {string} action The action clicked.
121
+ * @param {GridRowId[]} selectedRows The selected rows.
122
+ */
123
+ onBulkActionClick: (action: string, selectedRows: GridRowId[]) => void;
124
+ /**
125
+ * The text to be displayed when the grid is empty.
126
+ * @default 'No rows'
127
+ * @example 'No rows'
128
+ * @example <span>No rows</span>
129
+ * @example <MyEmptyPlaceholder />
130
+ */
131
+ noRowsOverlay: ReactNode | string;
132
+ /**
133
+ * The custom component to render next to search.
134
+ */
135
+ children: null | ((filteredAndSortedData: any, searchText: string, columns: any) => JSX.Element | ReactNode);
136
+ /**
137
+ * Callback fired when the page, page size, sort or sort direction is changed.
138
+ * @param {number} page The page selected.
139
+ * @param {number} pageSize The number of rows in a page.
140
+ * @param {string} sort The field sorted.
141
+ * @param {string} sortDirection The direction of the sort.
142
+ * @param {boolean} fetchOnPageChange If `true`, the callback is fired when the page is changed.
143
+ */
144
+ fetchOnPageChange: null | ((page: number, pageSize: number, searchText: string, sort: string, sortDirection: GridSortDirection) => void);
145
+ /**
146
+ * for paginated api as the table does not have all the data to calculate the total number of rows
147
+ */
148
+ rowsCount: null | number;
149
+ /**
150
+ *
151
+ * if the export is custom.
152
+ *
153
+ */
154
+ customExport: null | ((filteredAndSortedData: any, searchText: string, columns: any) => void);
155
+ }
156
+ export type DataGridProps<R extends GridValidRowModel = any> = Partial<DataGridPropsWithDefaultValues> & {
157
+ pagination?: true;
158
+ };
@@ -0,0 +1 @@
1
+ export * from './dataGridProps';
@@ -0,0 +1 @@
1
+ export * from './reactTabulous';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { type DataGridProps, type GridValidRowModel } from '../models';
3
+ type DataGridComponent = React.ForwardRefExoticComponent<DataGridProps<GridValidRowModel> & React.RefAttributes<HTMLDivElement>>;
4
+ export declare const ReactTabulous: DataGridComponent;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const DataGridStyle: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
package/package.json CHANGED
@@ -1,77 +1,109 @@
1
1
  {
2
- "name": "@syook/react-tabulous",
3
- "version": "3.0.3",
4
- "description": "Terrifically fabulous React Table",
5
- "main": "lib/react-tabulous.min.js",
6
- "files": [
7
- "README.md",
8
- "lib/"
9
- ],
10
- "keywords": [
11
- "syook",
12
- "table",
13
- "react"
14
- ],
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/syook/react-tabulous.git"
18
- },
19
- "publishConfig": {
20
- "access": "public"
21
- },
22
- "author": "Syook",
23
- "bugs": {
24
- "url": "https://github.com/syook/react-tabulous/issues"
25
- },
26
- "scripts": {
27
- "prepare": "husky install",
28
- "start": "react-scripts start",
29
- "build": "mkdir -p lib && rm -rf lib/* && NODE_ENV=production webpack --config webpack.config.js",
30
- "test": "react-scripts test",
31
- "eject": "react-scripts eject",
32
- "npm-publish": "npm i && npm run build && npm publish",
33
- "prettify": "prettier . -c --config .prettierrc",
34
- "prettify:fix": "prettier . -c --config .prettierrc --write"
35
- },
36
- "eslintConfig": {
37
- "extends": "react-app"
38
- },
39
- "browserslist": [
40
- ">0.2%",
41
- "not dead",
42
- "not ie <= 11",
43
- "not op_mini all"
44
- ],
45
- "devDependencies": {
46
- "@babel/core": "^7.17.5",
47
- "@babel/preset-env": "^7.16.11",
48
- "@babel/preset-react": "^7.16.7",
49
- "babel-loader": "8.1.0",
50
- "css-loader": "^4.3.0",
51
- "html-webpack-plugin": "^4.5.0",
52
- "husky": "^7.0.4",
53
- "prettier": "^2.5.1",
54
- "prop-types": "^15.8.1",
55
- "react": "^17.0.2",
56
- "react-dom": "^17.0.2",
57
- "react-error-overlay": "6.0.9",
58
- "react-scripts": "^4.0.3",
59
- "react-overlays": "^5.2.0",
60
- "style-loader": "^1.3.0",
61
- "webpack": "4.44.2",
62
- "webpack-cli": "^4.9.2"
63
- },
64
- "dependencies": {
65
- "date-fns": "^2.28.0",
66
- "lodash": "^4.17.21",
67
- "moment": "^2.29.1",
68
- "react-datepicker": "^4.6.0",
69
- "react-select": "^5.2.2",
70
- "semantic-ui-css": "^2.4.1",
71
- "semantic-ui-react": "^2.1.2"
72
- },
73
- "peerDependencies": {
74
- "react": "17",
75
- "react-dom": "17"
76
- }
2
+ "name": "@syook/react-tabulous",
3
+ "version": "4.0.0-beta-0.1",
4
+ "description": "Terrifically fabulous React Table",
5
+ "main": "lib/index.js",
6
+ "module": "lib/index.esm.js",
7
+ "types": "lib/index.d.ts",
8
+ "files": [
9
+ "README.md",
10
+ "lib"
11
+ ],
12
+ "keywords": [
13
+ "syook",
14
+ "table",
15
+ "react"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/syook/react-tabulous.git"
20
+ },
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "author": "Syook",
25
+ "bugs": {
26
+ "url": "https://github.com/syook/react-tabulous/issues"
27
+ },
28
+ "lint-staged": {
29
+ "*.{js,jsx,json,css}": [
30
+ "npm run prettier:fix"
31
+ ],
32
+ "*.{js, jsx, ts, tsx}": [
33
+ "npm run lint:fix"
34
+ ]
35
+ },
36
+ "scripts": {
37
+ "prepare": "husky install",
38
+ "start": "react-scripts start",
39
+ "build": "react-scripts build",
40
+ "test": "react-scripts test",
41
+ "coverage": "npm test -- --coverage --watchAll --collectCoverageFrom='!src/data/**/*.{ts,tsx}'",
42
+ "eject": "react-scripts eject",
43
+ "lint": "eslint --ignore-path .eslintignore ./src",
44
+ "lint:fix": "npm run lint --fix",
45
+ "prettier": "prettier . -c --config .prettierrc",
46
+ "prettier:fix": "prettier . -c --config .prettierrc --write",
47
+ "rollup": "rm -rf lib && rollup -c",
48
+ "build:dev": "npm run rollup && npm pack",
49
+ "npm-publish": "yarn install && npm run build:dev && npm publish"
50
+ },
51
+ "dependencies": {
52
+ "@popperjs/core": "2.11.7"
53
+ },
54
+ "devDependencies": {
55
+ "@emotion/react": "11.11.0",
56
+ "@emotion/styled": "11.11.0",
57
+ "@rollup/plugin-babel": "6.0.3",
58
+ "@rollup/plugin-commonjs": "^25.0.0",
59
+ "@rollup/plugin-image": "3.0.2",
60
+ "@rollup/plugin-node-resolve": "^15.0.2",
61
+ "@rollup/plugin-terser": "0.4.3",
62
+ "@rollup/plugin-typescript": "11.1.1",
63
+ "@testing-library/jest-dom": "^5.16.5",
64
+ "@testing-library/react": "^14.0.0",
65
+ "@testing-library/user-event": "^14.4.3",
66
+ "@types/jest": "^29.5.1",
67
+ "@types/node": "^20.2.1",
68
+ "@types/react": "^18.2.6",
69
+ "@types/react-dom": "^18.2.4",
70
+ "@typescript-eslint/eslint-plugin": "^5.59.6",
71
+ "eslint": "^8.40.0",
72
+ "eslint-config-prettier": "8.8.0",
73
+ "eslint-config-standard-with-typescript": "^34.0.1",
74
+ "eslint-plugin-import": "^2.27.5",
75
+ "eslint-plugin-n": "^16.0.0",
76
+ "eslint-plugin-prettier": "^4.2.1",
77
+ "eslint-plugin-promise": "^6.1.1",
78
+ "eslint-plugin-react": "^7.32.2",
79
+ "eslint-plugin-react-hooks": "4.6.0",
80
+ "husky": "^8.0.3",
81
+ "prettier": "2.8.8",
82
+ "react": "^18.2.0",
83
+ "react-dom": "^18.2.0",
84
+ "react-scripts": "5.0.1",
85
+ "rollup": "^3.22.0",
86
+ "rollup-plugin-dts": "5.3.0",
87
+ "rollup-plugin-peer-deps-external": "^2.2.4",
88
+ "rollup-plugin-postcss": "^4.0.2",
89
+ "rollup-plugin-react-svg": "3.0.3",
90
+ "typescript": "^5.0.4",
91
+ "web-vitals": "^3.3.1"
92
+ },
93
+ "peerDependencies": {
94
+ "react": "^version",
95
+ "react-dom": "^version"
96
+ },
97
+ "browserslist": {
98
+ "production": [
99
+ ">0.2%",
100
+ "not dead",
101
+ "not op_mini all"
102
+ ],
103
+ "development": [
104
+ "last 1 chrome version",
105
+ "last 1 firefox version",
106
+ "last 1 safari version"
107
+ ]
108
+ }
77
109
  }
package/CHANGELOG.md DELETED
@@ -1,27 +0,0 @@
1
- # react-tabulous change log
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- Project versioning adheres to [Semantic Versioning](http://semver.org/).
6
-
7
- Commit convention is based on [Conventional Commits](http://conventionalcommits.org).
8
-
9
- Change log format is based on [Keep a Changelog](http://keepachangelog.com/).
10
-
11
- ## [Unreleased]
12
-
13
- -
14
-
15
- ## [Released]
16
-
17
- ## [2.7.7](https://github.com/syook/react-tabulous/releases/tag/2.7.7) - 2021-07-08
18
-
19
- ### Fixes
20
-
21
- - fix pagination not working on changing the rows per page option (#74)
22
-
23
- ## 2.7.6 - 2021-05-17
24
-
25
- ### Fixes
26
-
27
- - Fix selected rows in bulk actions updating to object type (#79)