@hmlr/govuk-react-components-library 1.1.0 → 1.2.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.
- package/README.md +1 -1
- package/assets/uml-diagram.svg +620 -575
- package/bundle-analysis-main.html +1 -3
- package/bundle-analysis-pdfvc.html +1 -1
- package/dist/PDFViewerCanvas.cjs.js +24 -4
- package/dist/PDFViewerCanvas.cjs.js.map +1 -1
- package/dist/PDFViewerCanvas.d.ts +30 -0
- package/dist/PDFViewerCanvas.esm.js +24 -4
- package/dist/PDFViewerCanvas.esm.js.map +1 -1
- package/dist/index.cjs.css +18 -11
- package/dist/index.cjs.js +114 -80
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +79 -2
- package/dist/index.esm.css +18 -11
- package/dist/index.esm.js +114 -80
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/CardColumn/CardColumn.types.d.ts +20 -0
- package/dist/types/components/DataNavigation/DataNavigation.types.d.ts +27 -2
- package/dist/types/components/DifferenceNavigation/DifferenceNavigation.types.d.ts +25 -0
- package/dist/types/components/Footer/Footer.types.d.ts +7 -0
- package/dist/types/components/PDFViewerCanvas/PDFViewerCanvas.types.d.ts +30 -0
- package/dist/types/dynamics/types.d.ts +1 -1
- package/package.json +19 -21
|
@@ -4,5 +4,35 @@ export interface PDFViewerCanvasProps {
|
|
|
4
4
|
documentName?: string;
|
|
5
5
|
pageNumber?: number;
|
|
6
6
|
showNavigation?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Background colour of the navigation buttons in their resting state.
|
|
9
|
+
* Passed directly to DifferenceNavigation.
|
|
10
|
+
* Defaults to govuk-functional-colour("brand") (#1d70b8).
|
|
11
|
+
*/
|
|
12
|
+
buttonColour?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Text colour of the navigation buttons in their resting state.
|
|
15
|
+
* Passed directly to DifferenceNavigation.
|
|
16
|
+
* Defaults to govuk-colour("white") (#ffffff).
|
|
17
|
+
*/
|
|
18
|
+
buttonTextColour?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Shadow colour of the navigation buttons.
|
|
21
|
+
* Passed directly to DifferenceNavigation.
|
|
22
|
+
* Defaults to govuk-colour("black") (#0b0c0c).
|
|
23
|
+
*/
|
|
24
|
+
buttonShadowColour?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Background colour of the navigation buttons on hover.
|
|
27
|
+
* Passed directly to DifferenceNavigation.
|
|
28
|
+
* Defaults to govuk-functional-colour("focus") (#ffdd00).
|
|
29
|
+
*/
|
|
30
|
+
buttonHoverColour?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Text colour of the navigation buttons on hover.
|
|
33
|
+
* Passed directly to DifferenceNavigation.
|
|
34
|
+
* Defaults to govuk-functional-colour("focus-text") (#0b0c0c).
|
|
35
|
+
*/
|
|
36
|
+
buttonHoverTextColour?: string;
|
|
7
37
|
[key: string]: unknown;
|
|
8
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmlr/govuk-react-components-library",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "These are common component use for React applications based on GDS and govuk-frontend",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
"storybook": "storybook dev -p 6006 --debug-webpack",
|
|
25
25
|
"build-storybook": "storybook build --debug-webpack",
|
|
26
26
|
"test-storybook": "test-storybook",
|
|
27
|
-
"
|
|
28
|
-
"lint
|
|
27
|
+
"format:check": "prettier --ignore-path .gitignore --check '**/*.+(js|mjs|ts|tsx|json|css|scss|html|md)'",
|
|
28
|
+
"lint": "eslint 'src/**/*.ts*' && npm run format:check && stylelint 'src/**/*.{css,scss,less}'",
|
|
29
29
|
"format": "prettier --ignore-path .gitignore --write '**/*.+(js|mjs|ts|tsx|json|css|scss|html|md)'",
|
|
30
|
+
"lint-fix": "eslint --fix 'src/**/*.ts*' && npm run format && stylelint --fix 'src/**/*.{css,scss,less}' ",
|
|
30
31
|
"prepare": "husky",
|
|
31
32
|
"release": "standard-version",
|
|
32
33
|
"uml": "tsuml2 --glob './src/**/\\!(*.spec|*.test|TestUtilities|JestSetup).[t]s?(x)' -o './assets/uml-diagram.svg'",
|
|
@@ -55,12 +56,12 @@
|
|
|
55
56
|
"license": "MIT",
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"@babel/core": "^7.29.0",
|
|
58
|
-
"@babel/preset-env": "^7.29.
|
|
59
|
+
"@babel/preset-env": "^7.29.2",
|
|
59
60
|
"@babel/preset-react": "^7.28.5",
|
|
60
61
|
"@babel/preset-typescript": "^7.28.5",
|
|
61
|
-
"@chromatic-com/storybook": "^5.0.
|
|
62
|
-
"@commitlint/cli": "^20.
|
|
63
|
-
"@commitlint/config-conventional": "^20.
|
|
62
|
+
"@chromatic-com/storybook": "^5.0.2",
|
|
63
|
+
"@commitlint/cli": "^20.5.0",
|
|
64
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
64
65
|
"@eslint/js": "^9.37.0",
|
|
65
66
|
"@jest/globals": "^30.3.0",
|
|
66
67
|
"@rollup/plugin-commonjs": "^29.0.2",
|
|
@@ -68,34 +69,31 @@
|
|
|
68
69
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
69
70
|
"@rollup/plugin-terser": "^1.0.0",
|
|
70
71
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
71
|
-
"@storybook/addon-a11y": "^10.
|
|
72
|
-
"@storybook/addon-links": "^10.
|
|
72
|
+
"@storybook/addon-a11y": "^10.3.0",
|
|
73
|
+
"@storybook/addon-links": "^10.3.0",
|
|
73
74
|
"@storybook/addon-styling-webpack": "^3.0.0",
|
|
74
75
|
"@storybook/addon-webpack5-compiler-swc": "^4.0.2",
|
|
75
|
-
"@storybook/
|
|
76
|
-
"@storybook/react-
|
|
77
|
-
"@storybook/
|
|
78
|
-
"@storybook/test-runner": "^0.24.2",
|
|
76
|
+
"@storybook/react-vite": "^10.3.0",
|
|
77
|
+
"@storybook/react-webpack5": "^10.3.0",
|
|
78
|
+
"@storybook/test-runner": "^0.24.3",
|
|
79
79
|
"@testing-library/jest-dom": "^6.9.1",
|
|
80
80
|
"@testing-library/react": "^16.3.2",
|
|
81
81
|
"@types/govuk-frontend": "^5.11.0",
|
|
82
82
|
"@types/jest": "^30.0.0",
|
|
83
83
|
"@types/react": "^19.2.14",
|
|
84
84
|
"@types/react-dom": "^19.2.3",
|
|
85
|
-
"@typescript-eslint/eslint-plugin": "^8.46.0",
|
|
86
|
-
"@typescript-eslint/parser": "^8.57.0",
|
|
87
85
|
"assert": "^2.1.0",
|
|
88
86
|
"autoprefixer": "^10.4.27",
|
|
89
87
|
"babel-jest": "^30.3.0",
|
|
90
88
|
"bootstrap": "^5.3.8",
|
|
91
|
-
"chromatic": "^15.
|
|
89
|
+
"chromatic": "^15.3.0",
|
|
92
90
|
"css-loader": "^7.1.4",
|
|
93
91
|
"deep-iterator": "^1.1.0",
|
|
94
92
|
"eslint": "^9.37.0",
|
|
95
93
|
"eslint-plugin-react": "^7.37.5",
|
|
96
|
-
"eslint-plugin-storybook": "^10.
|
|
94
|
+
"eslint-plugin-storybook": "^10.3.0",
|
|
97
95
|
"globals": "^17.4.0",
|
|
98
|
-
"govuk-frontend": "^
|
|
96
|
+
"govuk-frontend": "^6.1.0",
|
|
99
97
|
"html-react-parser": "^5.2.17",
|
|
100
98
|
"husky": "^9.1.7",
|
|
101
99
|
"identity-obj-proxy": "^3.0.0",
|
|
@@ -121,7 +119,7 @@
|
|
|
121
119
|
"sass": "^1.98.0",
|
|
122
120
|
"sass-loader": "^16.0.7",
|
|
123
121
|
"standard-version": "^9.5.0",
|
|
124
|
-
"storybook": "^10.
|
|
122
|
+
"storybook": "^10.3.0",
|
|
125
123
|
"style-loader": "^4.0.0",
|
|
126
124
|
"stylelint": "^17.4.0",
|
|
127
125
|
"stylelint-config-recess-order": "^7.6.1",
|
|
@@ -131,10 +129,10 @@
|
|
|
131
129
|
"tslib": "^2.8.1",
|
|
132
130
|
"tsuml2": "^0.17.1",
|
|
133
131
|
"typescript": "^5.9.3",
|
|
134
|
-
"typescript-eslint": "^8.57.
|
|
132
|
+
"typescript-eslint": "^8.57.1",
|
|
135
133
|
"unplugin": "^3.0.0",
|
|
136
134
|
"webpack": "^5.105.4",
|
|
137
|
-
"@storybook/addon-docs": "^10.
|
|
135
|
+
"@storybook/addon-docs": "^10.3.0"
|
|
138
136
|
},
|
|
139
137
|
"peerDependencies": {
|
|
140
138
|
"govuk-frontend": ">=5.14.0",
|