lbh-frontend 3.6.0 → 3.7.0-next.1
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/CHANGELOG.md +81 -0
- package/README.md +13 -2
- package/dist/{lbh-frontend-3.6.0.min.css → lbh-frontend-3.7.0-next.1.min.css} +1437 -817
- package/dist/lbh-frontend-3.7.0-next.1.min.js +1 -0
- package/lbh/components/lbh-accordion/accordion.d.ts +35 -0
- package/lbh/components/lbh-back-to-top/back-to-top.d.ts +10 -0
- package/lbh/components/lbh-back-to-top/back-to-top.js +13 -2
- package/lbh/components/lbh-button/button.d.ts +12 -0
- package/lbh/components/lbh-character-count/character-count.d.ts +21 -0
- package/lbh/components/lbh-checkboxes/checkboxes.d.ts +15 -0
- package/lbh/components/lbh-collapsible/collapsible.d.ts +9 -0
- package/lbh/components/lbh-contact-block/contact-block.d.ts +26 -0
- package/lbh/components/lbh-contact-block/contact-block.js +1 -1
- package/lbh/components/lbh-cookie-banner/cookie-banner.d.ts +13 -0
- package/lbh/components/lbh-details/details.d.ts +12 -0
- package/lbh/components/lbh-dialog/_dialog.scss +20 -4
- package/lbh/components/lbh-dialog/index.tsx +32 -25
- package/lbh/components/lbh-error-summary/error-summary.d.ts +13 -0
- package/lbh/components/lbh-header/_header.scss +2 -1
- package/lbh/components/lbh-radios/radios.d.ts +12 -0
- package/lbh/components/lbh-tabs/tabs.d.ts +33 -0
- package/lbh/core/core.test.js +1 -4
- package/lbh/helpers/colour.test.js +10 -10
- package/lbh/helpers/helpers.test.js +1 -3
- package/lbh/helpers/typography.test.js +1 -6
- package/lbh/index.d.ts +27 -246
- package/lbh/objects/objects.test.js +1 -4
- package/lbh/settings/settings.test.js +1 -5
- package/lbh/test/sass-render.cjs +63 -0
- package/lbh/tools/exports.test.js +1 -6
- package/package.json +50 -85
- package/dist/lbh-frontend-3.6.0.min.js +0 -386
- package/dist/lbh-frontend-ie8-3.6.0.min.css +0 -6405
package/package.json
CHANGED
|
@@ -1,94 +1,87 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lbh-frontend",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0-next.1",
|
|
4
4
|
"description": "Everything you need to make digital services for Hackney",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://design-system.hackney.gov.uk",
|
|
7
7
|
"main": "lbh/all.js",
|
|
8
8
|
"types": "lbh/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"lbh",
|
|
11
|
+
"dist",
|
|
12
|
+
"CHANGELOG.md"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": "24.14"
|
|
16
|
+
},
|
|
9
17
|
"scripts": {
|
|
10
|
-
"build:sass": "
|
|
11
|
-
"build:
|
|
12
|
-
"build:js": "cross-var parcel build lbh/all.js --out-dir dist --global LBHFrontend --out-file lbh-frontend-$npm_package_version.min.js --no-source-maps",
|
|
13
|
-
"build:sassdoc": "sassdoc lbh --dest static/sassdoc",
|
|
18
|
+
"build:sass": "sass lbh/all.scss dist/lbh-frontend-$npm_package_version.min.css --load-path=./ --no-source-map",
|
|
19
|
+
"build:js": "node scripts/build-js.js",
|
|
14
20
|
"build:docs": "docusaurus build",
|
|
15
21
|
"build:assets": "copyfiles lbh/assets/**/**/**/* dist/assets -u 2",
|
|
22
|
+
"build:dist": "npm-run-all build:sass build:js build:assets",
|
|
16
23
|
"build": "npm-run-all build:*",
|
|
17
24
|
"clean:docs": "docusaurus clear",
|
|
18
25
|
"clean:dist": "rimraf dist",
|
|
19
26
|
"clean": "npm-run-all clean:*",
|
|
20
27
|
"start": "docusaurus start",
|
|
21
|
-
"semantic-release": "semantic-release",
|
|
22
28
|
"test": "jest",
|
|
29
|
+
"lint": "eslint lbh",
|
|
30
|
+
"verify:pack": "node scripts/verify-pack.js",
|
|
31
|
+
"audit:ci": "npm audit --audit-level=moderate",
|
|
23
32
|
"prepublishOnly": "npm-run-all -s clean build"
|
|
24
33
|
},
|
|
25
34
|
"devDependencies": {
|
|
26
|
-
"@babel/preset-env": "^7.
|
|
27
|
-
"@babel/preset-react": "^7.
|
|
28
|
-
"@babel/preset-typescript": "^7.
|
|
29
|
-
"@docusaurus/core": "
|
|
30
|
-
"@docusaurus/
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
35
|
+
"@babel/preset-env": "^7.26.0",
|
|
36
|
+
"@babel/preset-react": "^7.26.0",
|
|
37
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
38
|
+
"@docusaurus/core": "3.10.1",
|
|
39
|
+
"@docusaurus/module-type-aliases": "3.10.1",
|
|
40
|
+
"@docusaurus/preset-classic": "3.10.1",
|
|
41
|
+
"@docusaurus/types": "3.10.1",
|
|
42
|
+
"@eslint/js": "^9.39.1",
|
|
43
|
+
"@mdx-js/react": "^3.1.0",
|
|
44
|
+
"@testing-library/react": "^14.3.1",
|
|
45
|
+
"@types/jest": "^29.5.14",
|
|
46
|
+
"ajv": "^8.20.0",
|
|
47
|
+
"browserslist-to-esbuild": "^2.1.1",
|
|
36
48
|
"copyfiles": "^2.4.1",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
49
|
+
"docusaurus-plugin-sass": "0.2.6",
|
|
50
|
+
"esbuild": "^0.25.0",
|
|
51
|
+
"eslint": "^9.39.1",
|
|
52
|
+
"globals": "^16.5.0",
|
|
53
|
+
"jest": "^29.7.0",
|
|
54
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
41
55
|
"npm-run-all": "^4.1.5",
|
|
42
56
|
"outdent": "^0.8.0",
|
|
43
|
-
"
|
|
44
|
-
"react": "^
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"sass": "^1.32.8",
|
|
48
|
-
"sassdoc": "^2.7.0",
|
|
49
|
-
"semantic-release": "^17.3.9",
|
|
50
|
-
"standard": "^13.1.0"
|
|
57
|
+
"react": "^18.3.1",
|
|
58
|
+
"react-dom": "^18.3.1",
|
|
59
|
+
"rimraf": "^5.0.10",
|
|
60
|
+
"sass": "^1.32.8"
|
|
51
61
|
},
|
|
52
62
|
"optionalDependencies": {
|
|
53
63
|
"fsevents": "*"
|
|
54
64
|
},
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"last 2 Samsung versions",
|
|
61
|
-
"Safari >= 9",
|
|
62
|
-
"ie 8-11",
|
|
63
|
-
"iOS >= 9"
|
|
64
|
-
],
|
|
65
|
-
"standard": {
|
|
66
|
-
"globals": [
|
|
67
|
-
"page",
|
|
68
|
-
"browser",
|
|
69
|
-
"context"
|
|
70
|
-
],
|
|
71
|
-
"ignore": [
|
|
72
|
-
"/dist/**/*.js",
|
|
73
|
-
"/package/**/*.js",
|
|
74
|
-
"/src/vendor/polyfills/**/*.js"
|
|
65
|
+
"jest": {
|
|
66
|
+
"testEnvironment": "jsdom",
|
|
67
|
+
"testPathIgnorePatterns": [
|
|
68
|
+
"/node_modules/",
|
|
69
|
+
"/dist/"
|
|
75
70
|
]
|
|
76
71
|
},
|
|
77
72
|
"dependencies": {
|
|
78
|
-
"@
|
|
79
|
-
"@tippyjs/react": "^4.2.
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"leaflet": "^1.7.1",
|
|
83
|
-
"underscore": "^1.9.1"
|
|
73
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
74
|
+
"@tippyjs/react": "^4.2.6",
|
|
75
|
+
"govuk-frontend": "^3.15.0",
|
|
76
|
+
"leaflet": "^1.9.4"
|
|
84
77
|
},
|
|
85
78
|
"sasslintConfig": "config/.sass-lint.yml",
|
|
86
79
|
"bugs": {
|
|
87
|
-
"url": "https://github.com/LBHackney-IT/
|
|
80
|
+
"url": "https://github.com/LBHackney-IT/lbh-frontend/issues"
|
|
88
81
|
},
|
|
89
82
|
"repository": {
|
|
90
83
|
"type": "git",
|
|
91
|
-
"url": "https://github.com/LBHackney-IT/
|
|
84
|
+
"url": "https://github.com/LBHackney-IT/lbh-frontend.git"
|
|
92
85
|
},
|
|
93
86
|
"keywords": [
|
|
94
87
|
"govuk",
|
|
@@ -96,33 +89,5 @@
|
|
|
96
89
|
"design system",
|
|
97
90
|
"template",
|
|
98
91
|
"hackney"
|
|
99
|
-
]
|
|
100
|
-
"release": {
|
|
101
|
-
"branches": [
|
|
102
|
-
"main"
|
|
103
|
-
],
|
|
104
|
-
"plugins": [
|
|
105
|
-
"@semantic-release/commit-analyzer",
|
|
106
|
-
"@semantic-release/release-notes-generator",
|
|
107
|
-
"@semantic-release/npm",
|
|
108
|
-
"@semantic-release/github",
|
|
109
|
-
[
|
|
110
|
-
"@semantic-release/changelog",
|
|
111
|
-
{
|
|
112
|
-
"changelogFile": "CHANGELOG.md"
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
[
|
|
116
|
-
"@semantic-release/git",
|
|
117
|
-
{
|
|
118
|
-
"assets": [
|
|
119
|
-
"dist",
|
|
120
|
-
"package.json",
|
|
121
|
-
"CHANGELOG.md"
|
|
122
|
-
],
|
|
123
|
-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
]
|
|
127
|
-
}
|
|
92
|
+
]
|
|
128
93
|
}
|