@oc-digital/react-component-library 7.2.3-beta.6 → 7.2.4
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.
- package/build/Alert/Alert.d.ts +2 -3
- package/build/Alert/Alert.types.d.ts +2 -3
- package/build/AlphabeticalList/AlphabeticalList.d.ts +2 -3
- package/build/AutoSave/Select/AutoSave.d.ts +3 -0
- package/build/AutoSave/Select/index.d.ts +2 -3
- package/build/AutoSave/Text/AutoSave.d.ts +3 -0
- package/build/AutoSave/Text/AutoSave.types.d.ts +2 -3
- package/build/AutoSave/Text/index.d.ts +2 -3
- package/build/Breadcrumbs/Breadcrumbs.d.ts +2 -3
- package/build/Breadcrumbs/Breadcrumbs.types.d.ts +1 -2
- package/build/Button/Button.d.ts +2 -3
- package/build/Button/Button.types.d.ts +3 -3
- package/build/ButtonWithConfirm/ButtonWithConfirm.d.ts +2 -3
- package/build/ButtonWithConfirm/ButtonWithConfirm.types.d.ts +3 -3
- package/build/ContentBox/ContentBox.d.ts +2 -3
- package/build/ContentLabel/ContentLabel.d.ts +2 -3
- package/build/DatePicker/DatePicker.d.ts +2 -3
- package/build/DatePicker/DatePicker.types.d.ts +2 -3
- package/build/EditableTable/EditableTable.d.ts +2 -3
- package/build/EditableTable/EditableTable.types.d.ts +4 -5
- package/build/EditableTable/components/TableCheckbox.d.ts +1 -1
- package/build/EditableTable/components/TableDateInput.d.ts +1 -1
- package/build/EditableTable/components/TableTextInput.d.ts +2 -3
- package/build/EditableTable/components/styled/Checkbox.d.ts +5 -0
- package/build/EditableTable/components/styled/CheckboxLabel.d.ts +5 -0
- package/build/EditableTable/components/styled/Input.d.ts +5 -0
- package/build/EditableTable/components/styled/InputWrapper.d.ts +5 -0
- package/build/EditableTable/components/styled/SmallError.d.ts +5 -0
- package/build/EditableTable/defaultCells.d.ts +7 -8
- package/build/EntityList/EntityList.d.ts +2 -3
- package/build/EntityList/EntityList.types.d.ts +1 -2
- package/build/ErrorIndicator/ErrorIndicator.d.ts +2 -3
- package/build/ErrorIndicator/ErrorIndicator.types.d.ts +1 -2
- package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.d.ts +2 -3
- package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.types.d.ts +1 -2
- package/build/KeyboardDatePicker/KeyboardDatePicker.d.ts +2 -3
- package/build/KeyboardDatePicker/KeyboardDatePicker.types.d.ts +2 -3
- package/build/LeftNavigation/LeftNavigation.d.ts +2 -3
- package/build/LeftNavigation/LeftNavigation.types.d.ts +2 -3
- package/build/LeftNavigation/NavListItem.d.ts +2 -3
- package/build/LeftNavigation/PrimaryLeftNavigation.d.ts +2 -3
- package/build/LeftNavigation/SecondaryLeftNavigation.d.ts +2 -3
- package/build/LoadingSpinner/LoadingSpinner.d.ts +2 -3
- package/build/LoadingSpinner/LoadingSpinner.types.d.ts +1 -2
- package/build/MainLayout/MainLayout.d.ts +2 -3
- package/build/MainLayout/MainLayout.types.d.ts +1 -2
- package/build/MobileDatePicker/MobileDatePicker.d.ts +2 -3
- package/build/MobileDatePicker/MobileDatePicker.types.d.ts +2 -3
- package/build/NavbarLayout/Navbar.d.ts +3 -4
- package/build/NavbarLayout/NavbarLayout.d.ts +3 -4
- package/build/NavbarLayout/index.d.ts +2 -2
- package/build/SearchBar/SearchBar.d.ts +2 -3
- package/build/Select/Select.d.ts +2 -3
- package/build/Select/Select.types.d.ts +3 -3
- package/build/StaticTable/StaticTable.d.ts +2 -3
- package/build/SvgComponents/ContainedPartnersLogo.d.ts +2 -3
- package/build/SvgComponents/HomeSvg.d.ts +2 -3
- package/build/SvgComponents/NovelLogoSvg.d.ts +2 -3
- package/build/SvgComponents/OrganisationList.d.ts +2 -3
- package/build/SvgComponents/ProjectsSvg.d.ts +2 -3
- package/build/SvgComponents/index.d.ts +5 -5
- package/build/TextField/TextField.d.ts +4 -5
- package/build/TextField/TextField.types.d.ts +2 -3
- package/build/ThemeProvider/index.d.ts +5 -0
- package/build/Tooltip/OptionalTooltip.d.ts +1 -2
- package/build/Tooltip/index.d.ts +1 -1
- package/build/globals/index.d.ts +2 -2
- package/build/hooks/index.d.ts +3 -3
- package/build/index.d.ts +35 -36
- package/build/index.js +1 -580
- package/build/index.js.map +1 -1
- package/build/styles/font.d.ts +1 -1
- package/build/styles/index.d.ts +3 -3
- package/build/styles/layout.d.ts +1 -1
- package/build/styles/spacing.d.ts +1 -1
- package/build/styles/theme.d.ts +1 -0
- package/build/styles/themes.d.ts +2 -2
- package/build/utils/index.d.ts +1 -2
- package/package.json +23 -22
- package/build/stories/Button.d.ts +0 -28
- package/build/stories/Button.stories.d.ts +0 -10
- package/build/stories/Header.d.ts +0 -12
- package/build/stories/Header.stories.d.ts +0 -8
- package/build/stories/Page.d.ts +0 -3
- package/build/stories/Page.stories.d.ts +0 -8
- package/build/style.css +0 -1
package/build/styles/font.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useFontStyles: (props?: any) => import(
|
|
1
|
+
export declare const useFontStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"boldText" | "bolderText" | "smallText" | "warningColor" | "centerText">;
|
package/build/styles/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./spacing";
|
|
2
|
+
export * from "./font";
|
|
3
|
+
export * from "./layout";
|
package/build/styles/layout.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useLayoutStyles: (props?: any) => import(
|
|
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" | "adornmentGap">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useSpacingStyles: (props?: any) => import(
|
|
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/build/styles/themes.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const novelTheme: import(
|
|
2
|
-
export declare const partnersTheme: import(
|
|
1
|
+
export declare const novelTheme: import("@mui/material/styles").Theme;
|
|
2
|
+
export declare const partnersTheme: import("@mui/material/styles").Theme;
|
package/build/utils/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oc-digital/react-component-library",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.2.
|
|
4
|
+
"version": "7.2.4",
|
|
5
5
|
"description": "React component library for Optimal Compliance",
|
|
6
6
|
"main": "build/index.js",
|
|
7
7
|
"types": "build/index.d.ts",
|
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
12
|
"start": "npm run storybook",
|
|
13
|
-
"build": "npx
|
|
13
|
+
"build": "npx rollup -c",
|
|
14
|
+
"build:watch": "npx rollup -c -w",
|
|
14
15
|
"prepublishOnly": "npm run build",
|
|
15
16
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
16
17
|
"storybook": "storybook dev -p 6006",
|
|
18
|
+
"build-storybook": "storybook build",
|
|
17
19
|
"beta": "npm publish --tag beta",
|
|
18
20
|
"lint": "eslint ./",
|
|
19
21
|
"tsc": "tsc --skipLibCheck"
|
|
@@ -22,10 +24,11 @@
|
|
|
22
24
|
"license": "ISC",
|
|
23
25
|
"devDependencies": {
|
|
24
26
|
"@babel/core": "^7.15.5",
|
|
27
|
+
"@babel/eslint-parser": "^7.24.5",
|
|
28
|
+
"@babel/plugin-syntax-import-attributes": "^7.24.1",
|
|
25
29
|
"@babel/preset-env": "^7.23.9",
|
|
26
30
|
"@babel/preset-react": "^7.23.3",
|
|
27
31
|
"@babel/preset-typescript": "^7.23.3",
|
|
28
|
-
"@chromatic-com/storybook": "^1.3.4",
|
|
29
32
|
"@date-io/date-fns": "^1.3.13",
|
|
30
33
|
"@emotion/react": "^11.11.1",
|
|
31
34
|
"@emotion/styled": "^11.11.0",
|
|
@@ -34,49 +37,48 @@
|
|
|
34
37
|
"@mui/material": "^5.14.12",
|
|
35
38
|
"@mui/styles": "^5.14.12",
|
|
36
39
|
"@mui/x-date-pickers": "^6.16.1",
|
|
40
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
41
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
42
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
37
43
|
"@storybook/addon-actions": "^8.0.10",
|
|
38
44
|
"@storybook/addon-essentials": "^8.0.10",
|
|
39
|
-
"@storybook/addon-interactions": "^8.0.10",
|
|
40
45
|
"@storybook/addon-links": "^8.0.10",
|
|
41
|
-
"@storybook/addon-onboarding": "^8.0.10",
|
|
42
46
|
"@storybook/addon-themes": "^8.0.10",
|
|
43
|
-
"@storybook/blocks": "^8.0.10",
|
|
44
47
|
"@storybook/react": "^8.0.10",
|
|
45
|
-
"@storybook/react-dom-shim": "^8.0.10",
|
|
46
48
|
"@storybook/react-vite": "^8.0.10",
|
|
47
|
-
"@storybook/react-webpack5": "^8.0.10",
|
|
48
|
-
"@storybook/test": "^8.0.10",
|
|
49
49
|
"@types/react": "^17.0.21",
|
|
50
50
|
"@types/react-table": "^7.7.8",
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
52
|
-
"@typescript-eslint/parser": "^
|
|
53
|
-
"babel-eslint": "^10.1.0",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
52
|
+
"@typescript-eslint/parser": "^7.8.0",
|
|
54
53
|
"babel-loader": "^8.2.2",
|
|
55
54
|
"date-fns": "^2.25.0",
|
|
56
|
-
"eslint": "^
|
|
55
|
+
"eslint": "^8.57.0",
|
|
57
56
|
"eslint-config-prettier": "^8.3.0",
|
|
58
|
-
"eslint-config-react-app": "^
|
|
59
|
-
"eslint-plugin-flowtype": "^
|
|
57
|
+
"eslint-config-react-app": "^7.0.1",
|
|
58
|
+
"eslint-plugin-flowtype": "^8.0.3",
|
|
60
59
|
"eslint-plugin-import": "^2.24.2",
|
|
61
60
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
62
61
|
"eslint-plugin-prettier": "^4.0.0",
|
|
63
62
|
"eslint-plugin-react": "^7.25.2",
|
|
64
63
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
65
|
-
"eslint-plugin-storybook": "^0.8.0",
|
|
66
64
|
"husky": "^4.3.0",
|
|
67
65
|
"lint-staged": "^11.1.2",
|
|
68
66
|
"lodash": "^4.17.21",
|
|
69
67
|
"prettier": "^2.4.1",
|
|
70
|
-
"react": "^
|
|
68
|
+
"react": "^17.0.2",
|
|
71
69
|
"react-dom": "^17.0.2",
|
|
72
70
|
"react-number-format": "^5.3.3",
|
|
73
71
|
"react-router-dom": "^6.21.1",
|
|
74
72
|
"react-table": "^7.7.0",
|
|
73
|
+
"rollup": "^4.12.1",
|
|
74
|
+
"rollup-plugin-import-css-classes": "^1.5.0",
|
|
75
|
+
"rollup-plugin-import-css-classes-storybook": "npm:rollup-plugin-import-css-classes@^2.0.0-beta.2",
|
|
76
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
77
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
75
78
|
"storybook": "^8.0.10",
|
|
76
79
|
"tslib": "^2.3.1",
|
|
77
|
-
"typescript": "^
|
|
80
|
+
"typescript": "^5.4.5",
|
|
78
81
|
"vite": "^5.2.11",
|
|
79
|
-
"vite-plugin-dts": "^3.9.1",
|
|
80
82
|
"yup": "^0.32.11"
|
|
81
83
|
},
|
|
82
84
|
"peerDependencies": {
|
|
@@ -97,7 +99,7 @@
|
|
|
97
99
|
"eslintConfig": {
|
|
98
100
|
"parser": "@typescript-eslint/parser",
|
|
99
101
|
"parserOptions": {
|
|
100
|
-
"ecmaVersion":
|
|
102
|
+
"ecmaVersion": 2023,
|
|
101
103
|
"sourceType": "module",
|
|
102
104
|
"ecmaFeatures": {
|
|
103
105
|
"jsx": true
|
|
@@ -114,8 +116,7 @@
|
|
|
114
116
|
"extends": [
|
|
115
117
|
"react-app",
|
|
116
118
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
117
|
-
"plugin:prettier/recommended"
|
|
118
|
-
"plugin:storybook/recommended"
|
|
119
|
+
"plugin:prettier/recommended"
|
|
119
120
|
],
|
|
120
121
|
"rules": {
|
|
121
122
|
"no-use-before-define": "off",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
interface ButtonProps {
|
|
3
|
-
/**
|
|
4
|
-
* Is this the principal call to action on the page?
|
|
5
|
-
*/
|
|
6
|
-
primary?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* What background color to use
|
|
9
|
-
*/
|
|
10
|
-
backgroundColor?: string;
|
|
11
|
-
/**
|
|
12
|
-
* How large should the button be?
|
|
13
|
-
*/
|
|
14
|
-
size?: 'small' | 'medium' | 'large';
|
|
15
|
-
/**
|
|
16
|
-
* Button contents
|
|
17
|
-
*/
|
|
18
|
-
label: string;
|
|
19
|
-
/**
|
|
20
|
-
* Optional click handler
|
|
21
|
-
*/
|
|
22
|
-
onClick?: () => void;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Primary UI component for user interaction
|
|
26
|
-
*/
|
|
27
|
-
export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => JSX.Element;
|
|
28
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Button } from './Button';
|
|
3
|
-
|
|
4
|
-
declare const meta: Meta<typeof Button>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof Button>;
|
|
7
|
-
export declare const Primary: Story;
|
|
8
|
-
export declare const Secondary: Story;
|
|
9
|
-
export declare const Large: Story;
|
|
10
|
-
export declare const Small: Story;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
type User = {
|
|
3
|
-
name: string;
|
|
4
|
-
};
|
|
5
|
-
interface HeaderProps {
|
|
6
|
-
user?: User;
|
|
7
|
-
onLogin: () => void;
|
|
8
|
-
onLogout: () => void;
|
|
9
|
-
onCreateAccount: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Header } from './Header';
|
|
3
|
-
|
|
4
|
-
declare const meta: Meta<typeof Header>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof Header>;
|
|
7
|
-
export declare const LoggedIn: Story;
|
|
8
|
-
export declare const LoggedOut: Story;
|
package/build/stories/Page.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Page } from './Page';
|
|
3
|
-
|
|
4
|
-
declare const meta: Meta<typeof Page>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof Page>;
|
|
7
|
-
export declare const LoggedOut: Story;
|
|
8
|
-
export declare const LoggedIn: Story;
|
package/build/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._input_1kwvp_1{background:transparent;border:0;font-family:Roboto,Helvetica,Arial,sans-serif;transition:border-bottom .2s cubic-bezier(.4,0,.2,1) 0ms,margin-top .2s cubic-bezier(.4,0,.2,1) 0m;margin-top:0;min-width:100%;box-sizing:content-box;font-size:14px;padding:0}._input_1kwvp_1[data-valid=false]{border-bottom-color:#d32f2f!important}input._input_1kwvp_1:not(:disabled):hover:not(:focus){border-bottom:1px solid rgb(158,158,158);margin-top:1px}input._input_1kwvp_1:not(:disabled):focus{outline:none;border-bottom:2px solid rgb(115,196,202);margin-top:2px}._input_1kwvp_1:disabled{cursor:text}._wrapper_1kwvp_35{display:grid;grid-template-columns:auto 1fr auto;align-items:center;width:fit-content;min-width:100%;gap:.35rem}._wrapper_1kwvp_35[data-full-width=true]{width:100%}._wrapper_1kwvp_35[data-full-width=true] ._input_1kwvp_1{width:100%!important;max-width:100%}td[data-align=center] ._input_1kwvp_1{text-align:center;margin:auto}._error_ra74q_1{color:#d32f2f;display:block}._checkbox_1j8tf_1{accent-color:rgb(115,196,202);margin:0;width:15px;height:15px;cursor:pointer}._label_1j8tf_9{display:flex;justify-content:center;align-items:center;margin:auto;border-radius:5rem;width:38px;height:38px;cursor:pointer;transition:background .2s ease}._label_1j8tf_9:hover{background:#00000008}._label_1j8tf_9:active{background:#0000001a}._disabled_1j8tf_29._label_1j8tf_9{cursor:default!important}._disabled_1j8tf_29._label_1j8tf_9:hover,._disabled_1j8tf_29._label_1j8tf_9:active{background:none!important}._disabled_1j8tf_29._label_1j8tf_9 ._checkbox_1j8tf_1{cursor:default!important}._newRowHighlight_2pv8n_1{background-color:#73c4ca30}._editedCellHighlight_2pv8n_5{background-color:#5840f52e!important;background-clip:padding-box}._editedBorder_2pv8n_10{border:3px solid #5840f52e;border-width:2px 4px}._errorBorder_2pv8n_15{border:3px solid rgb(211,47,47);border-width:2px 4px}._emptyLoadingPadding_2pv8n_20{background:#fff;padding-top:.75rem;padding-bottom:.75rem}._centeredText_2pv8n_26{text-align:center}._disabled_2pv8n_30{background-color:#0000000a}._pagination_2pv8n_34{margin-top:1rem;margin-bottom:1rem;display:flex;align-items:center;justify-content:center}._virtualisationContainer_2pv8n_42{background:#fff;min-width:fit-content}._cellPadding_2pv8n_47{padding:.5rem .75rem}._shadedHeader_2pv8n_51:nth-of-type(2n){background-color:#eee}._shadedBodyCell_2pv8n_55:nth-of-type(2n){background-color:#00000012;background-clip:padding-box}._shadedHeaderGroupParent_2pv8n_60:nth-of-type(2n){background-color:#eee}._shadedHeaderGroup2Children_2pv8n_64:nth-of-type(4n-2),._shadedHeaderGroup2Children_2pv8n_64:nth-of-type(4n-1){background-color:#eee}._shadedBody2CellsInsideGroup_2pv8n_69:nth-of-type(4n-2),._shadedBody2CellsInsideGroup_2pv8n_69:nth-of-type(4n-1){background-color:#00000012;background-clip:padding-box}._offsetStickyPosition_2pv8n_75{top:0;position:sticky}._stickyHeaderZIndex_2pv8n_80{z-index:3}._headerCellColour_2pv8n_84{background-color:#fafafa}._rowCellColour_2pv8n_88{background-color:#fff;background-clip:padding-box}._rowHoverForStickyCell_2pv8n_93:hover ._stickyRowCell_2pv8n_93{background-color:#f5f5f5}._headerBorders_2pv8n_97:not(tr:last-child th){border:none}._tableRow_2pv8n_101{background:#fff}._tableRow_2pv8n_101:hover{background:#0000000a}._tableHeadingCell_2pv8n_109{font-weight:500}._tableCell_2pv8n_113{font-family:Roboto,Helvetica,Arial,sans-serif;font-size:.875rem;line-height:1.5rem;letter-spacing:.01071em;display:table-cell;vertical-align:inherit;border-bottom:1px solid rgb(224,224,224);text-align:left;color:#000000de;padding:8px}._tableCellTotalsLabel_2pv8n_126{text-align:center;font-weight:500}._tableTotalCell_2pv8n_131{border-bottom:0;height:54.5px}._tableTotalWrapper_2pv8n_136{display:grid;grid-template-columns:1fr auto;font-weight:500}thead ._tableCell_2pv8n_113{border:0!important;border-collapse:initial}
|