@corbe30/fortune-excel 2.0.0 → 2.1.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.
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Additional context**
27
+ Add any other context about the problem here.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -17,6 +17,7 @@ jobs:
17
17
  node-version: "20.x"
18
18
  registry-url: "https://registry.npmjs.org"
19
19
  - run: npm ci
20
+ - run: npm run build
20
21
  - run: npm publish --tag latest --provenance --access public
21
22
  env:
22
23
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/README.md CHANGED
@@ -46,7 +46,7 @@ You can check the example in [Storybook](https://github.com/Corbe30/FortuneExcel
46
46
  />
47
47
  <Workbook
48
48
  key={key} data={sheets} ref={workbookRef}
49
- customToolbarItems={[importToolBarItem(), exportToolBarItem(workbookRef)]}
49
+ customToolbarItems={[importToolBarItem(), exportToolBarItem()]}
50
50
  />
51
51
  </>
52
52
  );
@@ -0,0 +1,33 @@
1
+ .export-helper {
2
+ display: flex;
3
+ flex-direction: column;
4
+ visibility: hidden;
5
+ background-color: #fff;
6
+ color: #000;
7
+ text-align: start;
8
+ border-radius: 4px;
9
+ font-size: 12px;
10
+ position: absolute;
11
+ z-index: 26;
12
+ top: 40px;
13
+ white-space: nowrap;
14
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
15
+ left: 50px;
16
+ }
17
+
18
+ .unstyled-button {
19
+ width: 100%;
20
+ background: none;
21
+ border: none;
22
+ margin: 0;
23
+ font: inherit;
24
+ color: inherit;
25
+ cursor: pointer;
26
+ padding: 6px 12px 6px 12px;
27
+ outline: none;
28
+ font-family: Arial, Helvetica, sans-serif;
29
+ }
30
+
31
+ .unstyled-button:hover {
32
+ background-color: #ededed;
33
+ }
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare const exportToolBarItem: (sheetRef: any) => {
2
+ export declare const exportToolBarItem: () => {
3
3
  key: string;
4
4
  tooltip: string;
5
5
  icon: React.JSX.Element;
@@ -42,7 +42,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
42
42
  exports.importToolBarItem = exports.exportToolBarItem = void 0;
43
43
  var ExportIcon_1 = __importDefault(require("../icons/ExportIcon"));
44
44
  var ImportIcon_1 = __importDefault(require("../icons/ImportIcon"));
45
- var exportToolBarItem = function (sheetRef) {
45
+ var exportToolBarItem = function () {
46
46
  return {
47
47
  key: "export",
48
48
  tooltip: "Export ...",
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "workspaces": [
4
4
  "src/*"
5
5
  ],
6
- "version": "2.0.0",
6
+ "version": "2.1.1",
7
7
  "description": "An Excel import/export import library for FortuneSheet",
8
8
  "main": "dist/main.js",
9
9
  "types": "dist/main.d.ts",
@@ -32,8 +32,10 @@
32
32
  "@storybook/react-webpack5": "^7.3.2",
33
33
  "@storybook/test": "^7.6.12",
34
34
  "@types/node": "^20.11.16",
35
+ "copyfiles": "^2.4.1",
35
36
  "react": "^18.2.0",
36
37
  "react-dom": "^18.2.0",
38
+ "rimraf": "^6.1.0",
37
39
  "storybook": "^7.6.16",
38
40
  "tsconfig-paths-webpack-plugin": "^4.0.0",
39
41
  "typescript": "^5.3.3"
@@ -47,6 +49,9 @@
47
49
  },
48
50
  "scripts": {
49
51
  "prepare": "tsc",
52
+ "clean": "rimraf dist/",
53
+ "copy-files": "copyfiles -u 1 src/**/*.html src/**/*.css dist/",
54
+ "build": "npm run clean && tsc && npm run copy-files",
50
55
  "storybook": "storybook dev -p 6006",
51
56
  "build-storybook": "storybook build"
52
57
  }