@xelto.npm/xc2-lib 0.0.74 → 0.0.75

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,15 @@
1
+ import { MouseEventHandler, FC } from 'react';
2
+
3
+ interface ButtonProps {
4
+ text?: string;
5
+ type?: string;
6
+ fluid?: boolean;
7
+ color?: string;
8
+ disabled?: boolean;
9
+ size?: "small" | "big";
10
+ onClick?: MouseEventHandler<HTMLButtonElement>;
11
+ }
12
+
13
+ declare const CustomButtonComponent: FC<ButtonProps>;
14
+
15
+ export { CustomButtonComponent as Button };
package/package.json CHANGED
@@ -1,35 +1,21 @@
1
1
  {
2
2
  "name": "@xelto.npm/xc2-lib",
3
- "version": "0.0.74",
3
+ "version": "0.0.75",
4
4
  "author": "XELTO",
5
5
  "description": "React component library based on MUI",
6
6
  "license": "ISC",
7
- "type": "module",
7
+ "main": "dist/cjs/index.js",
8
+ "module": "dist/esm/index.js",
9
+ "types": "dist/index.d.ts",
8
10
  "scripts": {
9
11
  "start": "react-scripts start",
10
12
  "rollup": "rollup -c",
11
13
  "build": "react-scripts build",
12
14
  "test": "react-scripts test",
13
15
  "eject": "react-scripts eject",
14
- "storybook": "start-storybook -p 6006 ",
16
+ "storybook": "start-storybook -p 6006",
15
17
  "build-storybook": "build-storybook "
16
18
  },
17
- "eslintConfig": {
18
- "extends": [
19
- "react-app",
20
- "react-app/jest"
21
- ],
22
- "overrides": [
23
- {
24
- "files": [
25
- "**/*.stories.*"
26
- ],
27
- "rules": {
28
- "import/no-anonymous-default-export": "off"
29
- }
30
- }
31
- ]
32
- },
33
19
  "browserslist": {
34
20
  "production": [
35
21
  ">0.2%",
@@ -53,27 +39,31 @@
53
39
  "@mui/material": "^5.10.15",
54
40
  "@mui/styles": "^5.10.10",
55
41
  "@mui/x-date-pickers": "^5.0.8",
42
+ "@rollup/plugin-commonjs": "^21.1.0",
43
+ "@rollup/plugin-image": "^2.1.1",
44
+ "@rollup/plugin-node-resolve": "^13.2.1",
45
+ "@rollup/plugin-typescript": "^8.3.2",
46
+ "@storybook/addon-actions": "^6.4.22",
47
+ "@storybook/addon-essentials": "^6.4.22",
48
+ "@storybook/addon-interactions": "^6.4.22",
49
+ "@storybook/addon-links": "^6.4.22",
50
+ "@storybook/addons": "^6.4.22",
51
+ "@storybook/react": "^6.4.22",
52
+ "@storybook/testing-library": "0.0.10",
53
+ "@storybook/theming": "^6.4.22",
56
54
  "@rollup/plugin-babel": "^6.0.3",
57
- "@rollup/plugin-commonjs": "^23.0.3",
58
- "@rollup/plugin-node-resolve": "^15.0.1",
59
- "@rollup/plugin-typescript": "8.3.3",
60
- "@storybook/addon-actions": "^6.5.12",
61
55
  "@storybook/addon-docs": "^6.5.13",
62
- "@storybook/addon-essentials": "^6.5.12",
63
- "@storybook/addon-interactions": "^6.5.12",
64
- "@storybook/addon-links": "^6.5.12",
65
56
  "@storybook/builder-webpack5": "^6.5.12",
66
57
  "@storybook/manager-webpack5": "^6.5.12",
67
58
  "@storybook/node-logger": "^6.5.12",
68
59
  "@storybook/preset-create-react-app": "^4.1.2",
69
- "@storybook/react": "^6.5.12",
70
- "@storybook/testing-library": "0.0.13",
71
60
  "@svgr/rollup": "^6.5.1",
72
61
  "@testing-library/jest-dom": "^5.16.5",
73
62
  "@testing-library/react": "^13.4.0",
74
63
  "@testing-library/user-event": "^13.5.0",
75
64
  "axios": "^1.2.0",
76
65
  "babel-plugin-named-exports-order": "0.0.2",
66
+ "babel-loader": "^8.2.5",
77
67
  "date-fns": "^2.29.3",
78
68
  "mui-datatables": "^4.2.2",
79
69
  "npm-run-all": "^4.1.5",
@@ -83,27 +73,35 @@
83
73
  "react-router-dom": "^6.4.3",
84
74
  "react-scripts": "5.0.1",
85
75
  "react-uuid": "^2.0.0",
86
- "rollup": "^3.6.0",
76
+ "rollup": "^2.70.2",
77
+ "rollup-plugin-dts": "^4.2.1",
78
+ "rollup-plugin-peer-deps-external": "^2.2.4",
79
+ "rollup-plugin-styles": "^4.0.0",
80
+ "rollup-plugin-terser": "^7.0.2",
87
81
  "rollup-plugin-copy": "^3.4.0",
88
82
  "rollup-plugin-delete": "^2.0.0",
89
- "rollup-plugin-dts": "^5.0.0",
90
- "rollup-plugin-peer-deps-external": "^2.2.4",
91
83
  "storybook-preset-inline-svg": "^1.0.1",
92
84
  "styled-components": "^5.3.6",
93
85
  "svg-inline-loader": "^0.8.2",
94
- "tslib": "^2.4.1",
95
- "tss-react": "^4.4.4",
96
- "typescript": "^4.9.3",
86
+ "tslib": "^2.3.1",
87
+ "typescript": "^4.6.3",
97
88
  "web-vitals": "^2.1.4",
98
89
  "webpack": "^5.74.0"
99
90
  },
100
91
  "peerDependencies": {
92
+ "@rollup/plugin-commonjs": "^21.1.0",
93
+ "@rollup/plugin-node-resolve": "^13.2.1",
94
+ "@rollup/plugin-typescript": "^8.3.2",
101
95
  "react": "^18.2.0",
102
- "react-dom": "^18.2.0"
96
+ "react-dom": "^18.2.0",
97
+ "rollup": "^2.70.2",
98
+ "rollup-plugin-dts": "^4.2.1",
99
+ "rollup-plugin-peer-deps-external": "^2.2.4",
100
+ "rollup-plugin-terser": "^7.0.2",
101
+ "styled-components": "^5.3.5",
102
+ "tslib": "^2.3.1",
103
+ "typescript": "^4.6.3"
103
104
  },
104
- "main": "dist/index.cjs.js",
105
- "module": "dist/index.esm.js",
106
- "source": "src/index.js",
107
105
  "files": [
108
106
  "dist"
109
107
  ],