react-table-dnd 2.0.2 → 2.0.3

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 (2) hide show
  1. package/README.md +6 -0
  2. package/package.json +4 -2
package/README.md CHANGED
@@ -51,6 +51,12 @@
51
51
  npm install react-table-dnd
52
52
  ```
53
53
 
54
+ Then import the required CSS once in your app (e.g. `main.tsx` / `index.js`):
55
+
56
+ ```js
57
+ import 'react-table-dnd/dist/react-table-dnd.css'
58
+ ```
59
+
54
60
  > Requires `react` and `react-dom` >= 18.0.0
55
61
 
56
62
  ## Quick Start
package/package.json CHANGED
@@ -1,17 +1,19 @@
1
1
  {
2
2
  "name": "react-table-dnd",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "type": "module",
5
5
  "description": "Sortable table with draggable rows and columns",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.es.js",
8
8
  "types": "dist/index.d.ts",
9
+ "style": "./dist/react-table-dnd.css",
9
10
  "exports": {
10
11
  ".": {
11
12
  "import": "./dist/index.es.js",
12
13
  "require": "./dist/index.cjs.js",
13
14
  "types": "./dist/index.d.ts"
14
- }
15
+ },
16
+ "./styles": "./dist/react-table-dnd.css"
15
17
  },
16
18
  "sideEffects": [
17
19
  "**/*.css"