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

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.
@@ -1 +1 @@
1
- export declare const useFontStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"boldText" | "bolderText" | "smallText" | "warningColor" | "centerText">;
1
+ export declare const useFontStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"boldText" | "bolderText" | "smallText" | "warningColor" | "centerText">;
@@ -1 +1 @@
1
- export declare const useLayoutStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"contentBox" | "limitWidth60rem" | "limitWidth50rem" | "limitWidth45rem" | "limitWidth40rem" | "limitWidth35rem" | "limitWidth30rem" | "limitWidth25rem" | "centeredText" | "startAlignedText" | "width20" | "width49" | "width50" | "width60" | "width100" | "flexCenter" | "centerJustify" | "leftJustify" | "rightJustify">;
1
+ export declare const useLayoutStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"contentBox" | "limitWidth60rem" | "limitWidth50rem" | "limitWidth45rem" | "limitWidth40rem" | "limitWidth35rem" | "limitWidth30rem" | "limitWidth25rem" | "centeredText" | "startAlignedText" | "width20" | "width49" | "width50" | "width60" | "width100" | "flexCenter" | "centerJustify" | "leftJustify" | "rightJustify">;
@@ -1 +1 @@
1
- export declare const useSpacingStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"labelBreak" | "contentBreak" | "sectionBreak" | "doubleSectionBreak" | "rightSpacer1" | "rightSpacer2" | "leftSpacer1" | "leftSpacer2" | "buttonSpacing" | "leftRightPadding1" | "leftRightPadding2" | "topBottomPadding1" | "topBottomPadding2">;
1
+ export declare const useSpacingStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"labelBreak" | "contentBreak" | "sectionBreak" | "doubleSectionBreak" | "rightSpacer1" | "rightSpacer2" | "leftSpacer1" | "leftSpacer2" | "buttonSpacing" | "leftRightPadding1" | "leftRightPadding2" | "topBottomPadding1" | "topBottomPadding2">;
@@ -0,0 +1 @@
1
+ export declare const theme: import("@mui/material/styles").Theme;
package/package.json CHANGED
@@ -1,130 +1,139 @@
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
+ {
2
+ "name": "@oc-digital/react-component-library",
3
+ "version": "2.1.9-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
+ "@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
+ "dependencies": {
131
+ "@emotion/react": "^11.10.6",
132
+ "@mui/icons-material": "^5.11.16",
133
+ "@mui/lab": "^5.0.0-alpha.127",
134
+ "@mui/material": "^5.12.2",
135
+ "@mui/styles": "^5.12.0",
136
+ "@mui/x-date-pickers": "^5.0.20",
137
+ "storybook-addon-material-ui5": "^1.0.0"
138
+ }
139
+ }
@@ -1,12 +0,0 @@
1
- import { FC } from "react";
2
- import { ISvgComponentProps } from "../SvgComponents/types";
3
- export declare type NavbarProps = {
4
- tabs: Array<{
5
- Icon: FC<ISvgComponentProps>;
6
- field: string;
7
- path: string;
8
- separate?: boolean;
9
- }>;
10
- };
11
- declare const Navbar: ({ tabs }: NavbarProps) => JSX.Element;
12
- export default Navbar;
@@ -1,16 +0,0 @@
1
- import React, { FC } from "react";
2
- import { ISvgComponentProps } from "../SvgComponents/types";
3
- export declare type NavbarLayoutTabs = Array<{
4
- Icon: FC<ISvgComponentProps>;
5
- field: string;
6
- path: string;
7
- separate?: boolean;
8
- }>;
9
- export declare type NavbarLayoutProps = {
10
- tabs: NavbarLayoutTabs;
11
- hideTabs?: boolean;
12
- leaveHeightForMenu?: boolean;
13
- children: React.ReactNode;
14
- };
15
- declare const NavbarLayout: ({ tabs, hideTabs, leaveHeightForMenu, children, }: NavbarLayoutProps) => JSX.Element;
16
- export default NavbarLayout;
@@ -1,2 +0,0 @@
1
- export { default as NavbarLayout } from "./NavbarLayout";
2
- export type { NavbarLayoutProps, NavbarLayoutTabs } from "./NavbarLayout";