@qld-gov-au/qgds-bootstrap5 2.0.6 → 2.0.7
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/.esbuild/plugins/qgds-plugin-build-log.js +2 -2
- package/.esbuild/plugins/qgds-plugin-copy-assets.js +0 -3
- package/.storybook/README.md +10 -0
- package/.storybook/{main.js → main.mjs} +4 -5
- package/.storybook/modes.js +3 -12
- package/.storybook/preview.js +13 -10
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/css/qld.bootstrap.css +1 -1
- package/dist/assets/css/qld.bootstrap.css.map +2 -2
- package/dist/assets/css/qld.bootstrap.legacy.css +1 -1
- package/dist/assets/css/qld.bootstrap.legacy.css.map +2 -2
- package/dist/assets/js/handlebars.init.min.js +1 -1
- package/dist/assets/js/handlebars.partials.js +2398 -136
- package/dist/assets/js/handlebars.partials.js.map +7 -0
- package/dist/assets/node/handlebars.init.min.js +1 -1
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/package.json +25 -27
- package/dist/sample-data/correctincorrect/correctincorrect.data.json +1 -0
- package/dist/sample-data/tabs/tabs.data.json +1 -2
- package/dist/sample-data/typography/typography.data.json +1 -0
- package/esbuild.js +16 -4
- package/package.json +25 -27
- package/pom.xml +3 -3
- package/src/components/bs5/accordion/Accordion.mdx +1 -1
- package/src/components/bs5/accordion/accordion.stories.js +17 -22
- package/src/components/bs5/backToTop/backToTop.mdx +1 -1
- package/src/components/bs5/banner/Banner.mdx +1 -1
- package/src/components/bs5/blockquote/Blockquote.mdx +1 -1
- package/src/components/bs5/blockquote/manifest.json +1 -0
- package/src/components/bs5/breadcrumbs/Breadcrumbs.mdx +1 -1
- package/src/components/bs5/breadcrumbs/breadcrumbs.stories.js +19 -10
- package/src/components/bs5/breadcrumbs/manifest.json +1 -0
- package/src/components/bs5/breadcumbsWrapper/manifest.json +1 -0
- package/src/components/bs5/button/Button.mdx +1 -1
- package/src/components/bs5/button/manifest.json +1 -0
- package/src/components/bs5/callToAction/callToAction.mdx +1 -1
- package/src/components/bs5/callToAction/callToAction.stories.js +15 -50
- package/src/components/bs5/callout/Callout.mdx +1 -1
- package/src/components/bs5/callout/callout.stories.js +7 -26
- package/src/components/bs5/callout/manifest.json +1 -0
- package/src/components/bs5/card/Card.mdx +1 -1
- package/src/components/bs5/card/manifest.json +1 -0
- package/src/components/bs5/contentFooter/manifest.json +1 -0
- package/src/components/bs5/contentFooterWrapper/manifest.json +1 -0
- package/src/components/bs5/contentWrapper/manifest.json +1 -0
- package/src/components/bs5/correctincorrect/correctincorrect.data.json +1 -0
- package/src/components/bs5/correctincorrect/manifest.json +1 -0
- package/src/components/bs5/dateinput/Dateinput.stories.js +23 -31
- package/src/components/bs5/dateinput/manifest.json +1 -0
- package/src/components/bs5/directionLinks/DirectionLinks.mdx +1 -1
- package/src/components/bs5/directionLinks/directionLinks.stories.js +14 -12
- package/src/components/bs5/footer/Footer.mdx +1 -1
- package/src/components/bs5/formcheck/manifest.json +1 -0
- package/src/components/bs5/formcheck/stories/checkbox/Checkbox.mdx +1 -1
- package/src/components/bs5/formcheck/stories/checkbox/checkbox.stories.js +44 -87
- package/src/components/bs5/formcheck/stories/radio/Radio.mdx +1 -1
- package/src/components/bs5/formcheck/stories/radio/radio.stories.js +9 -36
- package/src/components/bs5/fullPageWrapper/manifest.json +1 -0
- package/src/components/bs5/globalAlert/GlobalAlert.mdx +1 -1
- package/src/components/bs5/globalAlert/globalAlert.test.js +3 -3
- package/src/components/bs5/globalAlert/manifest.json +1 -0
- package/src/components/bs5/head/manifest.json +1 -0
- package/src/components/bs5/header/Header.mdx +1 -1
- package/src/components/bs5/header/header.stories.js +1 -30
- package/src/components/bs5/header/manifest.json +1 -0
- package/src/components/bs5/icons/Icons.mdx +1 -1
- package/src/components/bs5/icons/manifest.json +1 -0
- package/src/components/bs5/icons/mdx/_IconsSizes.mdx +1 -1
- package/src/components/bs5/image/Image.mdx +1 -1
- package/src/components/bs5/inpageAlert/InpageAlert.mdx +1 -1
- package/src/components/bs5/inpageAlert/inpageAlert.stories.js +7 -23
- package/src/components/bs5/inpageAlert/manifest.json +1 -0
- package/src/components/bs5/inpagenav/Inpagenav.mdx +1 -1
- package/src/components/bs5/inpagenav/inpagenav.stories.js +4 -6
- package/src/components/bs5/inpagenav/manifest.json +1 -0
- package/src/components/bs5/link/link.mdx +1 -1
- package/src/components/bs5/link/link.stories.js +4 -6
- package/src/components/bs5/linkColumns/linkColumns.mdx +1 -1
- package/src/components/bs5/logo/Logo.mdx +1 -1
- package/src/components/bs5/mainContainerWrapper/manifest.json +1 -0
- package/src/components/bs5/metaDcTerms/manifest.json +1 -0
- package/src/components/bs5/metaOpenGraph/manifest.json +1 -0
- package/src/components/bs5/modal/Modal.mdx +1 -1
- package/src/components/bs5/modal/manifest.json +1 -0
- package/src/components/bs5/pagination/Pagination.mdx +1 -1
- package/src/components/bs5/pagination/manifest.json +1 -0
- package/src/components/bs5/pagination/pagination.stories.js +12 -21
- package/src/components/bs5/promotionalPanel/PromotionalPanel.mdx +1 -1
- package/src/components/bs5/quickexit/manifest.json +1 -0
- package/src/components/bs5/searchInput/SearchInput.mdx +1 -1
- package/src/components/bs5/searchInput/manifest.json +1 -0
- package/src/components/bs5/searchInput/searchInput.stories.js +10 -12
- package/src/components/bs5/select/manifest.json +1 -0
- package/src/components/bs5/sidenav/Sidenav.mdx +1 -1
- package/src/components/bs5/sidenav/manifest.json +1 -0
- package/src/components/bs5/sidenav/sidenav.stories.js +4 -7
- package/src/components/bs5/sidenavWrapper/manifest.json +1 -0
- package/src/components/bs5/skiplinks/SkipLinks.mdx +1 -1
- package/src/components/bs5/spinner/manifest.json +1 -0
- package/src/components/bs5/table/Table.mdx +1 -1
- package/src/components/bs5/table/manifest.json +1 -0
- package/src/components/bs5/tabs/Tabs.mdx +1 -1
- package/src/components/bs5/tabs/tabs.data.json +1 -2
- package/src/components/bs5/tabs/tabs.stories.js +38 -215
- package/src/components/bs5/tag/Tag.mdx +1 -1
- package/src/components/bs5/tag/manifest.json +1 -0
- package/src/components/bs5/textarea/manifest.json +1 -0
- package/src/components/bs5/textbox/manifest.json +1 -0
- package/src/components/bs5/typography/Typography.mdx +1 -1
- package/src/components/bs5/typography/manifest.json +1 -0
- package/src/components/bs5/typography/typography.data.json +1 -0
- package/src/components/bs5/typography/typography.stories.js +6 -24
- package/src/components/bs5/video/Video.mdx +1 -1
- package/src/components/bs5/video/manifest.json +1 -0
- package/src/components/bs5/video/video.stories.js +6 -24
- package/src/css/qld-print.scss +426 -304
- package/src/stories/Introduction.mdx +1 -1
- package/vite.config.js +17 -0
- package/.eslintrc.cjs +0 -52
- package/dist/assets/js/bootstrap.js +0 -6312
- package/dist/assets/js/handlebars.helpers.js +0 -292
- package/dist/assets/js/handlebars.init.cjs +0 -6
- package/dist/assets/js/handlebars.init.js +0 -34
- package/dist/components/handlebars.helpers.js +0 -292
- package/dist/components/handlebars.init.cjs +0 -6
- package/dist/components/handlebars.init.js +0 -34
- package/dist/components/handlebars.partials.js +0 -136
|
@@ -808,7 +808,7 @@ var head_default;
|
|
|
808
808
|
var init_head = __esm({
|
|
809
809
|
"src/components/bs5/head/head.hbs?raw"() {
|
|
810
810
|
head_default = `
|
|
811
|
-
<!-- VERSION_DETAILS={"project_id":"@qld-gov-au/qgds-bootstrap5","version":"2.0.
|
|
811
|
+
<!-- VERSION_DETAILS={"project_id":"@qld-gov-au/qgds-bootstrap5","version":"2.0.7","branch":"HEAD","tag":"v2.0.7","commit":"c204c02c3420408a069d8228b40be125edc579d8","majorVersion":"v2"} -->
|
|
812
812
|
|
|
813
813
|
{{! Select environment, used verbatium if not using predefind key
|
|
814
814
|
cdn := PROD|STAGING|BETA|TEST|DEV|???
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
<!-- VERSION_DETAILS={"project_id":"@qld-gov-au/qgds-bootstrap5","version":"2.0.
|
|
2
|
+
<!-- VERSION_DETAILS={"project_id":"@qld-gov-au/qgds-bootstrap5","version":"2.0.7","branch":"HEAD","tag":"v2.0.7","commit":"c204c02c3420408a069d8228b40be125edc579d8","majorVersion":"v2"} -->
|
|
3
3
|
|
|
4
4
|
{{! Select environment, used verbatium if not using predefind key
|
|
5
5
|
cdn := PROD|STAGING|BETA|TEST|DEV|???
|
package/dist/package.json
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qld-gov-au/qgds-bootstrap5",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/qld-gov-au/qgds-bootstrap5"
|
|
8
8
|
},
|
|
9
9
|
"main": "index.js",
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=22.0.0"
|
|
12
|
+
},
|
|
10
13
|
"scripts": {
|
|
11
|
-
"prepare": "npm run build",
|
|
14
|
+
"prepare": "husky && npm run build",
|
|
12
15
|
"start": "npm run build",
|
|
13
16
|
"lint": "eslint --fix --ext .js,.json --ignore-pattern 'docs/*' --ignore-pattern 'dist/*' --ignore-pattern 'storybook-static/*' --ignore-pattern 'src/js/handlebars.partials.js' .",
|
|
14
17
|
"build": "node esbuild.js",
|
|
@@ -21,7 +24,7 @@
|
|
|
21
24
|
"test:testrunner": "sleep 2 && mocha --timeout 10000 --require ./test/testServer.test.js ",
|
|
22
25
|
"watch": "node esbuild.js --watch",
|
|
23
26
|
"serve": "http-server dist -p 8080",
|
|
24
|
-
"serve:test": "http-server
|
|
27
|
+
"serve:test": "http-server . -p 8081 --silent",
|
|
25
28
|
"dev-storybook": "npm-run-all --parallel watch storybook",
|
|
26
29
|
"storybook": "storybook dev -p 6006",
|
|
27
30
|
"storybook:themes": "ENABLE_DYNAMIC_THEME=true storybook dev -p 6006",
|
|
@@ -50,22 +53,16 @@
|
|
|
50
53
|
"bootstrap": "^5.3.8"
|
|
51
54
|
},
|
|
52
55
|
"devDependencies": {
|
|
53
|
-
"@chromatic-com/storybook": "^
|
|
56
|
+
"@chromatic-com/storybook": "^4.1.1",
|
|
57
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
58
|
+
"@eslint/json": "^0.13.2",
|
|
54
59
|
"@qld-gov-au/qgds-tokens": "^1.2.1",
|
|
55
|
-
"@storybook/addon-a11y": "^
|
|
56
|
-
"@storybook/addon-
|
|
57
|
-
"@storybook/addon-
|
|
58
|
-
"@storybook/addon-
|
|
59
|
-
"@storybook/
|
|
60
|
-
"@storybook/
|
|
61
|
-
"@storybook/blocks": "^8.6.14",
|
|
62
|
-
"@storybook/cli": "^8.6.14",
|
|
63
|
-
"@storybook/html": "^8.6.14",
|
|
64
|
-
"@storybook/html-vite": "^8.6.14",
|
|
65
|
-
"@storybook/manager-api": "^8.6.14",
|
|
66
|
-
"@storybook/test": "^8.6.14",
|
|
67
|
-
"@storybook/theming": "^8.6.14",
|
|
68
|
-
"@stylistic/eslint-plugin-js": "2.1.0",
|
|
60
|
+
"@storybook/addon-a11y": "^9.1.9",
|
|
61
|
+
"@storybook/addon-docs": "^9.1.9",
|
|
62
|
+
"@storybook/addon-links": "^9.1.9",
|
|
63
|
+
"@storybook/addon-themes": "^9.1.9",
|
|
64
|
+
"@storybook/cli": "^9.1.9",
|
|
65
|
+
"@storybook/html-vite": "^9.1.9",
|
|
69
66
|
"@vitejs/plugin-vue": "5.2.4",
|
|
70
67
|
"@vitest/ui": "^3.2.4",
|
|
71
68
|
"autoprefixer": "^10.4.20",
|
|
@@ -77,11 +74,13 @@
|
|
|
77
74
|
"esbuild-plugin-eslint": "^0.3.7",
|
|
78
75
|
"esbuild-plugin-handlebars": "1.0.3",
|
|
79
76
|
"esbuild-sass-plugin": "3.3.1",
|
|
80
|
-
"eslint": "
|
|
81
|
-
"eslint-plugin-json": "^
|
|
82
|
-
"eslint-plugin-storybook": "^
|
|
77
|
+
"eslint": "9.30.0",
|
|
78
|
+
"eslint-plugin-json": "^4.0.1",
|
|
79
|
+
"eslint-plugin-storybook": "^9.1.9",
|
|
80
|
+
"globals": "16.4.0",
|
|
83
81
|
"handlebars": "4.7.8",
|
|
84
82
|
"http-server": "^14.1.1",
|
|
83
|
+
"husky": "^9.1.7",
|
|
85
84
|
"jsdom": "^26.1.0",
|
|
86
85
|
"mini-svg-data-uri": "^1.4.4",
|
|
87
86
|
"minimist": "^1.2.8",
|
|
@@ -91,17 +90,16 @@
|
|
|
91
90
|
"onchange": "^7.1.0",
|
|
92
91
|
"portfinder": "^1.0.37",
|
|
93
92
|
"postcss": "^8.5.4",
|
|
94
|
-
"prettier": "3.
|
|
93
|
+
"prettier": "3.6.2",
|
|
95
94
|
"raw-loader": "^4.0.2",
|
|
96
95
|
"rimraf": "^6.0.1",
|
|
97
96
|
"run-parallel": "^1.2.0",
|
|
98
97
|
"sass": "^1.89.2",
|
|
99
|
-
"selenium-webdriver": "^4.
|
|
100
|
-
"storybook": "^
|
|
101
|
-
"storybook-addon-deep-controls": "^0.9.
|
|
98
|
+
"selenium-webdriver": "^4.33.0",
|
|
99
|
+
"storybook": "^9.1.9",
|
|
100
|
+
"storybook-addon-deep-controls": "^0.9.5",
|
|
102
101
|
"vite": "^6.3.5",
|
|
103
|
-
"vitest": "^3.2.4"
|
|
104
|
-
"watch": "^1.0.2"
|
|
102
|
+
"vitest": "^3.2.4"
|
|
105
103
|
},
|
|
106
104
|
"peerDependencies": {
|
|
107
105
|
"typescript": "^5.0.0"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
{
|
|
29
29
|
"tab_text": "Tab label 4",
|
|
30
30
|
"title": "Section Heading Item 4",
|
|
31
|
-
"content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>"
|
|
32
|
-
"disabled": true
|
|
31
|
+
"content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>"
|
|
33
32
|
},
|
|
34
33
|
{
|
|
35
34
|
"tab_text": "Tab label 5",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
package/esbuild.js
CHANGED
|
@@ -48,6 +48,11 @@ const buildConfig = {
|
|
|
48
48
|
in: "./src/js/handlebars.helpers.js",
|
|
49
49
|
out: "./assets/js/handlebars.helpers.bundle",
|
|
50
50
|
},
|
|
51
|
+
{
|
|
52
|
+
//Deprecated init is where it should be at
|
|
53
|
+
in: "./src/js/handlebars.init.js",
|
|
54
|
+
out: "./assets/js/handlebars.partials",
|
|
55
|
+
},
|
|
51
56
|
{
|
|
52
57
|
in: "./src/js/handlebars.init.js",
|
|
53
58
|
out: "./assets/js/handlebars.init.min",
|
|
@@ -70,11 +75,18 @@ const buildConfig = {
|
|
|
70
75
|
versionPlugin(),
|
|
71
76
|
QDGScleanFolders(),
|
|
72
77
|
handlebarsPlugin(),
|
|
78
|
+
//https://github.com/twbs/bootstrap/issues/40962 bootstrap 5.x is not ready for sass 1.80, so silence what we can't change (review 2026)
|
|
73
79
|
sassPlugin({
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
silenceDeprecations: [
|
|
81
|
+
"legacy-js-api",
|
|
82
|
+
"mixed-decls",
|
|
83
|
+
"color-functions",
|
|
84
|
+
"global-builtin",
|
|
85
|
+
"import",
|
|
86
|
+
],
|
|
87
|
+
indentType: "space",
|
|
88
|
+
indentWidth: 2,
|
|
89
|
+
includePaths: ["./node_modules"],
|
|
78
90
|
}),
|
|
79
91
|
QDGSbuildLog(),
|
|
80
92
|
],
|
package/package.json
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qld-gov-au/qgds-bootstrap5",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/qld-gov-au/qgds-bootstrap5"
|
|
8
8
|
},
|
|
9
9
|
"main": "index.js",
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=22.0.0"
|
|
12
|
+
},
|
|
10
13
|
"scripts": {
|
|
11
|
-
"prepare": "npm run build",
|
|
14
|
+
"prepare": "husky && npm run build",
|
|
12
15
|
"start": "npm run build",
|
|
13
16
|
"lint": "eslint --fix --ext .js,.json --ignore-pattern 'docs/*' --ignore-pattern 'dist/*' --ignore-pattern 'storybook-static/*' --ignore-pattern 'src/js/handlebars.partials.js' .",
|
|
14
17
|
"build": "node esbuild.js",
|
|
@@ -21,7 +24,7 @@
|
|
|
21
24
|
"test:testrunner": "sleep 2 && mocha --timeout 10000 --require ./test/testServer.test.js ",
|
|
22
25
|
"watch": "node esbuild.js --watch",
|
|
23
26
|
"serve": "http-server dist -p 8080",
|
|
24
|
-
"serve:test": "http-server
|
|
27
|
+
"serve:test": "http-server . -p 8081 --silent",
|
|
25
28
|
"dev-storybook": "npm-run-all --parallel watch storybook",
|
|
26
29
|
"storybook": "storybook dev -p 6006",
|
|
27
30
|
"storybook:themes": "ENABLE_DYNAMIC_THEME=true storybook dev -p 6006",
|
|
@@ -50,22 +53,16 @@
|
|
|
50
53
|
"bootstrap": "^5.3.8"
|
|
51
54
|
},
|
|
52
55
|
"devDependencies": {
|
|
53
|
-
"@chromatic-com/storybook": "^
|
|
56
|
+
"@chromatic-com/storybook": "^4.1.1",
|
|
57
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
58
|
+
"@eslint/json": "^0.13.2",
|
|
54
59
|
"@qld-gov-au/qgds-tokens": "^1.2.1",
|
|
55
|
-
"@storybook/addon-a11y": "^
|
|
56
|
-
"@storybook/addon-
|
|
57
|
-
"@storybook/addon-
|
|
58
|
-
"@storybook/addon-
|
|
59
|
-
"@storybook/
|
|
60
|
-
"@storybook/
|
|
61
|
-
"@storybook/blocks": "^8.6.14",
|
|
62
|
-
"@storybook/cli": "^8.6.14",
|
|
63
|
-
"@storybook/html": "^8.6.14",
|
|
64
|
-
"@storybook/html-vite": "^8.6.14",
|
|
65
|
-
"@storybook/manager-api": "^8.6.14",
|
|
66
|
-
"@storybook/test": "^8.6.14",
|
|
67
|
-
"@storybook/theming": "^8.6.14",
|
|
68
|
-
"@stylistic/eslint-plugin-js": "2.1.0",
|
|
60
|
+
"@storybook/addon-a11y": "^9.1.9",
|
|
61
|
+
"@storybook/addon-docs": "^9.1.9",
|
|
62
|
+
"@storybook/addon-links": "^9.1.9",
|
|
63
|
+
"@storybook/addon-themes": "^9.1.9",
|
|
64
|
+
"@storybook/cli": "^9.1.9",
|
|
65
|
+
"@storybook/html-vite": "^9.1.9",
|
|
69
66
|
"@vitejs/plugin-vue": "5.2.4",
|
|
70
67
|
"@vitest/ui": "^3.2.4",
|
|
71
68
|
"autoprefixer": "^10.4.20",
|
|
@@ -77,11 +74,13 @@
|
|
|
77
74
|
"esbuild-plugin-eslint": "^0.3.7",
|
|
78
75
|
"esbuild-plugin-handlebars": "1.0.3",
|
|
79
76
|
"esbuild-sass-plugin": "3.3.1",
|
|
80
|
-
"eslint": "
|
|
81
|
-
"eslint-plugin-json": "^
|
|
82
|
-
"eslint-plugin-storybook": "^
|
|
77
|
+
"eslint": "9.30.0",
|
|
78
|
+
"eslint-plugin-json": "^4.0.1",
|
|
79
|
+
"eslint-plugin-storybook": "^9.1.9",
|
|
80
|
+
"globals": "16.4.0",
|
|
83
81
|
"handlebars": "4.7.8",
|
|
84
82
|
"http-server": "^14.1.1",
|
|
83
|
+
"husky": "^9.1.7",
|
|
85
84
|
"jsdom": "^26.1.0",
|
|
86
85
|
"mini-svg-data-uri": "^1.4.4",
|
|
87
86
|
"minimist": "^1.2.8",
|
|
@@ -91,17 +90,16 @@
|
|
|
91
90
|
"onchange": "^7.1.0",
|
|
92
91
|
"portfinder": "^1.0.37",
|
|
93
92
|
"postcss": "^8.5.4",
|
|
94
|
-
"prettier": "3.
|
|
93
|
+
"prettier": "3.6.2",
|
|
95
94
|
"raw-loader": "^4.0.2",
|
|
96
95
|
"rimraf": "^6.0.1",
|
|
97
96
|
"run-parallel": "^1.2.0",
|
|
98
97
|
"sass": "^1.89.2",
|
|
99
|
-
"selenium-webdriver": "^4.
|
|
100
|
-
"storybook": "^
|
|
101
|
-
"storybook-addon-deep-controls": "^0.9.
|
|
98
|
+
"selenium-webdriver": "^4.33.0",
|
|
99
|
+
"storybook": "^9.1.9",
|
|
100
|
+
"storybook-addon-deep-controls": "^0.9.5",
|
|
102
101
|
"vite": "^6.3.5",
|
|
103
|
-
"vitest": "^3.2.4"
|
|
104
|
-
"watch": "^1.0.2"
|
|
102
|
+
"vitest": "^3.2.4"
|
|
105
103
|
},
|
|
106
104
|
"peerDependencies": {
|
|
107
105
|
"typescript": "^5.0.0"
|
package/pom.xml
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
<properties>
|
|
14
14
|
<frontend-maven-plugin.version>1.15.0</frontend-maven-plugin.version>
|
|
15
|
-
<node.version>
|
|
16
|
-
<npm.version>10.
|
|
15
|
+
<node.version>v22.19.0</node.version>
|
|
16
|
+
<npm.version>10.9.3</npm.version>
|
|
17
17
|
</properties>
|
|
18
18
|
|
|
19
19
|
<build>
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
<goals>
|
|
108
108
|
<goal>npm</goal>
|
|
109
109
|
</goals>
|
|
110
|
-
<phase>
|
|
110
|
+
<phase>package</phase>
|
|
111
111
|
<configuration>
|
|
112
112
|
<arguments>run build-storybook</arguments>
|
|
113
113
|
</configuration>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Canvas, Meta, Story, Source } from "@storybook/blocks";
|
|
1
|
+
import { Canvas, Meta, Story, Source } from "@storybook/addon-docs/blocks";
|
|
2
2
|
import * as AccordionStories from "./accordion.stories";
|
|
3
3
|
import defaultdata from "./accordion.data.json";
|
|
4
4
|
import "../../../stories/documentation/storybook-documentation.scss";
|
|
@@ -20,6 +20,9 @@ export default {
|
|
|
20
20
|
options: ["h2", "h3", "h4", "h5", "h6"],
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
|
+
globals: {
|
|
24
|
+
backgrounds: { value: "default" },
|
|
25
|
+
},
|
|
23
26
|
|
|
24
27
|
/**
|
|
25
28
|
* Additional parameters for the story.
|
|
@@ -36,13 +39,18 @@ export default {
|
|
|
36
39
|
type: "figma",
|
|
37
40
|
url: "https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=6276-45691&mode=design&t=crJKtPwMG2IcZf5E-4",
|
|
38
41
|
},
|
|
42
|
+
backgrounds: {
|
|
43
|
+
disable: false,
|
|
44
|
+
},
|
|
39
45
|
},
|
|
40
46
|
};
|
|
41
47
|
|
|
42
48
|
/**
|
|
43
49
|
* Default Accordion story
|
|
44
50
|
*/
|
|
45
|
-
export const Default = {
|
|
51
|
+
export const Default = {
|
|
52
|
+
globals: { backgrounds: { value: "default" } },
|
|
53
|
+
};
|
|
46
54
|
|
|
47
55
|
/**
|
|
48
56
|
* Accordion in 'Light' colour theme.
|
|
@@ -57,11 +65,8 @@ export const Light = {
|
|
|
57
65
|
2: { ...defaultdata.accordionItems[2], id: "light-three" },
|
|
58
66
|
},
|
|
59
67
|
},
|
|
60
|
-
|
|
61
|
-
backgrounds: {
|
|
62
|
-
default: "Light",
|
|
63
|
-
values: [{ name: "Light", value: "var(--qld-light-background)" }],
|
|
64
|
-
},
|
|
68
|
+
globals: {
|
|
69
|
+
backgrounds: { value: "light" },
|
|
65
70
|
},
|
|
66
71
|
decorators: [
|
|
67
72
|
(Story) => {
|
|
@@ -89,11 +94,8 @@ export const Alternative = {
|
|
|
89
94
|
2: { ...defaultdata.accordionItems[2], id: "alt-three" },
|
|
90
95
|
},
|
|
91
96
|
},
|
|
92
|
-
|
|
93
|
-
backgrounds: {
|
|
94
|
-
default: "Alternative",
|
|
95
|
-
values: [{ name: "Alternative", value: "var(--qld-light-grey-alt)" }],
|
|
96
|
-
},
|
|
97
|
+
globals: {
|
|
98
|
+
backgrounds: { value: "alt" },
|
|
97
99
|
},
|
|
98
100
|
decorators: [
|
|
99
101
|
(Story) => {
|
|
@@ -121,11 +123,8 @@ export const Dark = {
|
|
|
121
123
|
2: { ...defaultdata.accordionItems[2], id: "dark-three" },
|
|
122
124
|
},
|
|
123
125
|
},
|
|
124
|
-
|
|
125
|
-
backgrounds: {
|
|
126
|
-
default: "Dark",
|
|
127
|
-
values: [{ name: "Dark", value: "var(--qld-sapphire-blue)" }],
|
|
128
|
-
},
|
|
126
|
+
globals: {
|
|
127
|
+
backgrounds: { value: "dark" },
|
|
129
128
|
},
|
|
130
129
|
decorators: [
|
|
131
130
|
(Story) => {
|
|
@@ -153,12 +152,8 @@ export const DarkAlternative = {
|
|
|
153
152
|
2: { ...defaultdata.accordionItems[2], id: "dark-alt-three" },
|
|
154
153
|
},
|
|
155
154
|
},
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
default: "Dark alternative",
|
|
159
|
-
values: [{ name: "Dark alternative", value: "var(--qld-dark-blue)" }],
|
|
160
|
-
},
|
|
161
|
-
},
|
|
155
|
+
globals: { backgrounds: { value: "darkAlt" } },
|
|
156
|
+
|
|
162
157
|
decorators: [
|
|
163
158
|
(Story) => {
|
|
164
159
|
return `
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -15,7 +15,11 @@ export default {
|
|
|
15
15
|
description: `Pass a JSON object containing an array of links to the component.`,
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
globals: {
|
|
19
|
+
backgrounds: {
|
|
20
|
+
value: "default",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
19
23
|
decorators: [
|
|
20
24
|
(Story, context) => {
|
|
21
25
|
const { args } = context; // Deconstruct args from the context oject
|
|
@@ -47,30 +51,36 @@ export default {
|
|
|
47
51
|
type: "figma",
|
|
48
52
|
url: "https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5990-98076&mode=design&t=Ge7frKNP4uEGswUz-0",
|
|
49
53
|
},
|
|
54
|
+
backgrounds: {
|
|
55
|
+
disable: false,
|
|
56
|
+
},
|
|
50
57
|
},
|
|
51
58
|
};
|
|
52
59
|
|
|
53
60
|
/**
|
|
54
61
|
* Default Breadcrumbs story
|
|
55
62
|
* */
|
|
56
|
-
export const Default = {
|
|
63
|
+
export const Default = {
|
|
64
|
+
globals: {
|
|
65
|
+
backgrounds: {
|
|
66
|
+
value: "default",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
};
|
|
57
70
|
|
|
58
71
|
/**
|
|
59
72
|
* Dark Breadcrumbs story
|
|
60
73
|
* */
|
|
61
74
|
export const Dark = {
|
|
62
|
-
|
|
75
|
+
globals: {
|
|
63
76
|
backgrounds: {
|
|
64
|
-
|
|
65
|
-
values: [{ name: "Dark", value: "var(--qld-dark-background)" }],
|
|
77
|
+
value: "dark",
|
|
66
78
|
},
|
|
67
79
|
},
|
|
68
|
-
|
|
69
80
|
args: {
|
|
70
81
|
...defaultdata.default,
|
|
71
82
|
class: "dark",
|
|
72
83
|
},
|
|
73
|
-
|
|
74
84
|
decorators: [
|
|
75
85
|
(Story) => {
|
|
76
86
|
return `
|
|
@@ -92,10 +102,9 @@ export const WithExpanderDefault = {
|
|
|
92
102
|
* Breadcrumbs with expander (Dark)
|
|
93
103
|
* */
|
|
94
104
|
export const WithExpanderDark = {
|
|
95
|
-
|
|
105
|
+
globals: {
|
|
96
106
|
backgrounds: {
|
|
97
|
-
|
|
98
|
-
values: [{ name: "Dark", value: "var(--qld-dark-background)" }],
|
|
107
|
+
value: "dark",
|
|
99
108
|
},
|
|
100
109
|
},
|
|
101
110
|
args: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -16,14 +16,14 @@ export default {
|
|
|
16
16
|
<div class="container">
|
|
17
17
|
<div class="row">
|
|
18
18
|
<div class="col">
|
|
19
|
-
${new CallToAction({...args}).html}
|
|
19
|
+
${new CallToAction({ ...args }).html}
|
|
20
20
|
</div>
|
|
21
21
|
<div class="col">
|
|
22
|
-
${new CallToAction({...args, label:
|
|
22
|
+
${new CallToAction({ ...args, label: "Label", class: [{ small: false }, { "view-all": false }] }).html}
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
26
|
-
|
|
26
|
+
`;
|
|
27
27
|
},
|
|
28
28
|
parameters: {
|
|
29
29
|
design: {
|
|
@@ -31,7 +31,9 @@ export default {
|
|
|
31
31
|
type: "figma",
|
|
32
32
|
url: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321367&p=f&t=v3sxViBgYUUmwplL-0",
|
|
33
33
|
},
|
|
34
|
+
backgrounds: { disable: false },
|
|
34
35
|
},
|
|
36
|
+
globals: { backgrounds: { value: "default" } },
|
|
35
37
|
};
|
|
36
38
|
|
|
37
39
|
/**
|
|
@@ -39,6 +41,7 @@ export default {
|
|
|
39
41
|
*/
|
|
40
42
|
export const Default = {
|
|
41
43
|
args: defaultdata,
|
|
44
|
+
globals: { backgrounds: { value: "default" } },
|
|
42
45
|
decorators: [
|
|
43
46
|
(Story) => {
|
|
44
47
|
return `
|
|
@@ -54,14 +57,7 @@ export const Default = {
|
|
|
54
57
|
* Call To Action - Light
|
|
55
58
|
* */
|
|
56
59
|
export const Light = {
|
|
57
|
-
|
|
58
|
-
backgrounds: {
|
|
59
|
-
default: 'Light',
|
|
60
|
-
values: [
|
|
61
|
-
{ name: 'Light', value: 'var(--qld-light-background)' },
|
|
62
|
-
],
|
|
63
|
-
},
|
|
64
|
-
},
|
|
60
|
+
globals: { backgrounds: { value: "light" } },
|
|
65
61
|
decorators: [
|
|
66
62
|
(Story) => {
|
|
67
63
|
return `
|
|
@@ -77,14 +73,7 @@ export const Light = {
|
|
|
77
73
|
* Call To Action - Light-Alt
|
|
78
74
|
* */
|
|
79
75
|
export const LightAlt = {
|
|
80
|
-
|
|
81
|
-
backgrounds: {
|
|
82
|
-
default: 'LightAlt',
|
|
83
|
-
values: [
|
|
84
|
-
{ name: 'LightAlt', value: 'var(--qld-light-alt-background)' },
|
|
85
|
-
],
|
|
86
|
-
},
|
|
87
|
-
},
|
|
76
|
+
globals: { backgrounds: { value: "alt" } },
|
|
88
77
|
decorators: [
|
|
89
78
|
(Story) => {
|
|
90
79
|
return `
|
|
@@ -100,14 +89,7 @@ export const LightAlt = {
|
|
|
100
89
|
* Call To Action - Dark
|
|
101
90
|
* */
|
|
102
91
|
export const Dark = {
|
|
103
|
-
|
|
104
|
-
backgrounds: {
|
|
105
|
-
default: 'Dark',
|
|
106
|
-
values: [
|
|
107
|
-
{ name: 'Dark', value: 'var(--qld-dark-background)' },
|
|
108
|
-
],
|
|
109
|
-
},
|
|
110
|
-
},
|
|
92
|
+
globals: { backgrounds: { value: "dark" } },
|
|
111
93
|
decorators: [
|
|
112
94
|
(Story) => {
|
|
113
95
|
return `
|
|
@@ -123,14 +105,7 @@ export const Dark = {
|
|
|
123
105
|
* Call To Action - Dark-Alt
|
|
124
106
|
* */
|
|
125
107
|
export const DarkAlt = {
|
|
126
|
-
|
|
127
|
-
backgrounds: {
|
|
128
|
-
default: 'DarkAlt',
|
|
129
|
-
values: [
|
|
130
|
-
{ name: 'DarkAlt', value: 'var(--qld-dark-alt-background)' },
|
|
131
|
-
],
|
|
132
|
-
},
|
|
133
|
-
},
|
|
108
|
+
globals: { backgrounds: { value: "darkAlt" } },
|
|
134
109
|
decorators: [
|
|
135
110
|
(Story) => {
|
|
136
111
|
return `
|
|
@@ -149,33 +124,23 @@ export const Small = {
|
|
|
149
124
|
args: {
|
|
150
125
|
...defaultdata,
|
|
151
126
|
label: "View all",
|
|
152
|
-
class: [
|
|
153
|
-
{"small": true},
|
|
154
|
-
{"view-all": true},
|
|
155
|
-
],
|
|
127
|
+
class: [{ small: true }, { "view-all": true }],
|
|
156
128
|
},
|
|
157
129
|
render: (args) => {
|
|
158
130
|
return `
|
|
159
131
|
<div class="container">
|
|
160
132
|
<div class="row">
|
|
161
133
|
<div class="col">
|
|
162
|
-
${new CallToAction({...args}).html}
|
|
134
|
+
${new CallToAction({ ...args }).html}
|
|
163
135
|
</div>
|
|
164
136
|
<div class="col">
|
|
165
|
-
${new CallToAction({...args, label:
|
|
137
|
+
${new CallToAction({ ...args, label: "Label", class: [{ small: true }, { "view-all": false }] }).html}
|
|
166
138
|
</div>
|
|
167
139
|
</div>
|
|
168
140
|
</div>
|
|
169
|
-
|
|
170
|
-
},
|
|
171
|
-
parameters: {
|
|
172
|
-
backgrounds: {
|
|
173
|
-
default: 'DarkAlt',
|
|
174
|
-
values: [
|
|
175
|
-
{ name: 'DarkAlt', value: 'var(--qld-dark-alt-background)' },
|
|
176
|
-
],
|
|
177
|
-
},
|
|
141
|
+
`;
|
|
178
142
|
},
|
|
143
|
+
globals: { backgrounds: { value: "darkAlt" } },
|
|
179
144
|
decorators: [
|
|
180
145
|
(Story) => {
|
|
181
146
|
return `
|