@oc-digital/react-component-library 2.1.6-beta.0 → 2.1.8

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.
@@ -2,4 +2,4 @@ import { TableCellValues } from "../EditableTable/EditableTable.types";
2
2
  export declare function sortDescendingStartDateString<T extends {
3
3
  startDate: string;
4
4
  }>(array: T[]): T[];
5
- export declare const didCellValueChange: (oldVal: TableCellValues, newVal: TableCellValues, isDateValue?: boolean) => boolean;
5
+ export declare const didCellValueChange: (oldVal: TableCellValues, newVal: TableCellValues, isDateValue?: boolean | undefined) => boolean;
package/package.json CHANGED
@@ -1,135 +1,130 @@
1
- {
2
- "name": "@oc-digital/react-component-library",
3
- "version": "2.1.6-beta.0",
4
- "description": "React component library for Optimal Compliance",
5
- "main": "build/index.js",
6
- "types": "build/index.d.ts",
7
- "files": [
8
- "build"
9
- ],
10
- "scripts": {
11
- "start": "npm run storybook",
12
- "build": "rollup -c",
13
- "prepublishOnly": "npm run build",
14
- "test": "echo \"Error: no test specified\" && exit 1",
15
- "storybook": "start-storybook -p 6006",
16
- "build-storybook": "build-storybook"
17
- },
18
- "author": "Sergej-Vlasov",
19
- "license": "ISC",
20
- "devDependencies": {
21
- "@babel/core": "^7.15.5",
22
- "@date-io/date-fns": "^1.3.13",
23
- "@emotion/react": "^11.10.6",
24
- "@material-ui/core": "^4.12.3",
25
- "@material-ui/icons": "^4.11.2",
26
- "@material-ui/lab": "^4.0.0-alpha.60",
27
- "@material-ui/pickers": "^3.3.10",
28
- "@mui/material": "^5.11.12",
29
- "@rollup/plugin-commonjs": "^20.0.0",
30
- "@rollup/plugin-node-resolve": "^13.0.4",
31
- "@storybook/addon-actions": "^6.3.8",
32
- "@storybook/addon-essentials": "^6.3.8",
33
- "@storybook/addon-links": "^6.3.8",
34
- "@storybook/react": "^6.3.8",
35
- "@types/react": "^17.0.21",
36
- "@types/react-router-dom": "^5.3.1",
37
- "@types/react-table": "^7.7.8",
38
- "@typescript-eslint/eslint-plugin": "^4.31.1",
39
- "@typescript-eslint/parser": "^4.31.1",
40
- "babel-eslint": "^10.1.0",
41
- "babel-loader": "^8.2.2",
42
- "date-fns": "^2.25.0",
43
- "eslint": "^7.32.0",
44
- "eslint-config-prettier": "^8.3.0",
45
- "eslint-config-react-app": "^6.0.0",
46
- "eslint-plugin-flowtype": "^5.10.0",
47
- "eslint-plugin-import": "^2.24.2",
48
- "eslint-plugin-jsx-a11y": "^6.4.1",
49
- "eslint-plugin-prettier": "^4.0.0",
50
- "eslint-plugin-react": "^7.25.2",
51
- "eslint-plugin-react-hooks": "^4.2.0",
52
- "husky": "^4.3.0",
53
- "lint-staged": "^11.1.2",
54
- "lodash": "^4.17.21",
55
- "prettier": "^2.4.1",
56
- "react": "^17.0.2",
57
- "react-dom": "^17.0.2",
58
- "react-number-format": "^4.8.0",
59
- "react-router-dom": "^5.3.0",
60
- "react-table": "^7.7.0",
61
- "react-virtual": "=2.8.2",
62
- "rollup": "^2.56.3",
63
- "rollup-plugin-peer-deps-external": "^2.2.4",
64
- "rollup-plugin-terser": "^7.0.2",
65
- "rollup-plugin-typescript2": "^0.34.1",
66
- "storybook-addon-material-ui": "^0.9.0-alpha.24",
67
- "tslib": "^2.3.1",
68
- "typescript": "^4.4.3",
69
- "yup": "^0.32.11"
70
- },
71
- "peerDependencies": {
72
- "@date-io/date-fns": "=1.3.13",
73
- "@material-ui/core": "=4.12.3",
74
- "@material-ui/icons": "=4.11.2",
75
- "@material-ui/lab": ">=4.0.0-alpha.60",
76
- "@material-ui/pickers": "=3.3.10",
77
- "date-fns": "=2.25.0",
78
- "lodash": "^4.17.21",
79
- "react": ">=17.0.0",
80
- "react-dom": ">=17.0.0",
81
- "react-number-format": "=4.8.0",
82
- "react-router-dom": ">=5.0.0",
83
- "react-table": "=7.7.0",
84
- "react-virtual": "=2.8.2",
85
- "yup": "=0.32.11"
86
- },
87
- "eslintConfig": {
88
- "parser": "@typescript-eslint/parser",
89
- "parserOptions": {
90
- "ecmaVersion": 2020,
91
- "sourceType": "module",
92
- "ecmaFeatures": {
93
- "jsx": true
94
- }
95
- },
96
- "settings": {
97
- "react": {
98
- "version": "detect"
99
- }
100
- },
101
- "ignorePatterns": [
102
- "build/"
103
- ],
104
- "extends": [
105
- "react-app",
106
- "plugin:@typescript-eslint/eslint-recommended",
107
- "plugin:prettier/recommended"
108
- ],
109
- "rules": {
110
- "no-use-before-define": "off",
111
- "@typescript-eslint/no-use-before-define": [
112
- "error"
113
- ]
114
- }
115
- },
116
- "prettier": {
117
- "printWidth": 90,
118
- "bracketSpacing": true,
119
- "trailingComma": "es5",
120
- "useTabs": false,
121
- "tabWidth": 2
122
- },
123
- "husky": {
124
- "hooks": {
125
- "pre-commit": "lint-staged"
126
- }
127
- },
128
- "lint-staged": {
129
- "*.+(js|ts|jsx|tsx)": "eslint --fix",
130
- "*.+(json|css|md)": "prettier --write"
131
- },
132
- "dependencies": {
133
- "@mui/styles": "^5.11.13"
134
- }
135
- }
1
+ {
2
+ "name": "@oc-digital/react-component-library",
3
+ "version": "2.1.8",
4
+ "description": "React component library for Optimal Compliance",
5
+ "main": "build/index.js",
6
+ "types": "build/index.d.ts",
7
+ "files": [
8
+ "build"
9
+ ],
10
+ "scripts": {
11
+ "start": "npm run storybook",
12
+ "build": "npx rollup -c",
13
+ "prepublishOnly": "npm run build",
14
+ "test": "echo \"Error: no test specified\" && exit 1",
15
+ "storybook": "start-storybook -p 6006",
16
+ "build-storybook": "build-storybook"
17
+ },
18
+ "author": "Sergej-Vlasov",
19
+ "license": "ISC",
20
+ "devDependencies": {
21
+ "@babel/core": "^7.15.5",
22
+ "@date-io/date-fns": "^1.3.13",
23
+ "@material-ui/core": "^4.12.3",
24
+ "@material-ui/icons": "^4.11.2",
25
+ "@material-ui/lab": "^4.0.0-alpha.60",
26
+ "@material-ui/pickers": "^3.3.10",
27
+ "@rollup/plugin-commonjs": "^20.0.0",
28
+ "@rollup/plugin-node-resolve": "^13.0.4",
29
+ "@storybook/addon-actions": "^6.3.8",
30
+ "@storybook/addon-essentials": "^6.3.8",
31
+ "@storybook/addon-links": "^6.3.8",
32
+ "@storybook/react": "^6.3.8",
33
+ "@types/react": "^17.0.21",
34
+ "@types/react-router-dom": "^5.3.1",
35
+ "@types/react-table": "^7.7.8",
36
+ "@typescript-eslint/eslint-plugin": "^4.31.1",
37
+ "@typescript-eslint/parser": "^4.31.1",
38
+ "babel-eslint": "^10.1.0",
39
+ "babel-loader": "^8.2.2",
40
+ "date-fns": "^2.25.0",
41
+ "eslint": "^7.32.0",
42
+ "eslint-config-prettier": "^8.3.0",
43
+ "eslint-config-react-app": "^6.0.0",
44
+ "eslint-plugin-flowtype": "^5.10.0",
45
+ "eslint-plugin-import": "^2.24.2",
46
+ "eslint-plugin-jsx-a11y": "^6.4.1",
47
+ "eslint-plugin-prettier": "^4.0.0",
48
+ "eslint-plugin-react": "^7.25.2",
49
+ "eslint-plugin-react-hooks": "^4.2.0",
50
+ "husky": "^4.3.0",
51
+ "lint-staged": "^11.1.2",
52
+ "lodash": "^4.17.21",
53
+ "prettier": "^2.4.1",
54
+ "react": "^17.0.2",
55
+ "react-dom": "^17.0.2",
56
+ "react-number-format": "^4.8.0",
57
+ "react-router-dom": "^5.3.0",
58
+ "react-table": "^7.7.0",
59
+ "react-virtual": "=2.8.2",
60
+ "rollup": "^2.56.3",
61
+ "rollup-plugin-peer-deps-external": "^2.2.4",
62
+ "rollup-plugin-terser": "^7.0.2",
63
+ "rollup-plugin-typescript2": "^0.34.1",
64
+ "storybook-addon-material-ui": "^0.9.0-alpha.24",
65
+ "tslib": "^2.3.1",
66
+ "typescript": "^4.4.3",
67
+ "yup": "^0.32.11"
68
+ },
69
+ "peerDependencies": {
70
+ "@date-io/date-fns": "=1.3.13",
71
+ "@material-ui/core": "=4.12.3",
72
+ "@material-ui/icons": "=4.11.2",
73
+ "@material-ui/lab": ">=4.0.0-alpha.60",
74
+ "@material-ui/pickers": "=3.3.10",
75
+ "date-fns": "=2.25.0",
76
+ "lodash": "^4.17.21",
77
+ "react": ">=17.0.0",
78
+ "react-dom": ">=17.0.0",
79
+ "react-number-format": "=4.8.0",
80
+ "react-router-dom": ">=5.0.0",
81
+ "react-table": "=7.7.0",
82
+ "react-virtual": "=2.8.2",
83
+ "yup": "=0.32.11"
84
+ },
85
+ "eslintConfig": {
86
+ "parser": "@typescript-eslint/parser",
87
+ "parserOptions": {
88
+ "ecmaVersion": 2020,
89
+ "sourceType": "module",
90
+ "ecmaFeatures": {
91
+ "jsx": true
92
+ }
93
+ },
94
+ "settings": {
95
+ "react": {
96
+ "version": "detect"
97
+ }
98
+ },
99
+ "ignorePatterns": [
100
+ "build/"
101
+ ],
102
+ "extends": [
103
+ "react-app",
104
+ "plugin:@typescript-eslint/eslint-recommended",
105
+ "plugin:prettier/recommended"
106
+ ],
107
+ "rules": {
108
+ "no-use-before-define": "off",
109
+ "@typescript-eslint/no-use-before-define": [
110
+ "error"
111
+ ]
112
+ }
113
+ },
114
+ "prettier": {
115
+ "printWidth": 90,
116
+ "bracketSpacing": true,
117
+ "trailingComma": "es5",
118
+ "useTabs": false,
119
+ "tabWidth": 2
120
+ },
121
+ "husky": {
122
+ "hooks": {
123
+ "pre-commit": "lint-staged"
124
+ }
125
+ },
126
+ "lint-staged": {
127
+ "*.+(js|ts|jsx|tsx)": "eslint --fix",
128
+ "*.+(json|css|md)": "prettier --write"
129
+ }
130
+ }
@@ -1,47 +0,0 @@
1
- export declare const useSpacingStyles: {
2
- labelBreak: {
3
- marginBottom: string;
4
- };
5
- contentBreak: {
6
- marginBottom: string;
7
- };
8
- sectionBreak: {
9
- marginBottom: string;
10
- };
11
- doubleSectionBreak: {
12
- marginBottom: string;
13
- };
14
- rightSpacer1: {
15
- marginRight: string;
16
- };
17
- rightSpacer2: {
18
- marginRight: string;
19
- };
20
- leftSpacer1: {
21
- marginLeft: string;
22
- };
23
- leftSpacer2: {
24
- marginLeft: string;
25
- };
26
- buttonSpacing: {
27
- marginLeft: string;
28
- marginRight: string;
29
- marginBottom: string;
30
- };
31
- leftRightPadding1: {
32
- paddingLeft: string;
33
- paddingRight: string;
34
- };
35
- leftRightPadding2: {
36
- paddingLeft: string;
37
- paddingRight: string;
38
- };
39
- topBottomPadding1: {
40
- paddingTop: string;
41
- paddingBottom: string;
42
- };
43
- topBottomPadding2: {
44
- paddingTop: string;
45
- paddingBottom: string;
46
- };
47
- };