@qld-gov-au/qgds-bootstrap5 2.0.5 → 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/dynamicThemeDecorator.js +28 -24
- package/.storybook/{main.js → main.mjs} +8 -7
- package/.storybook/modes.js +3 -12
- package/.storybook/preview.js +14 -11
- 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 +3 -3
- package/dist/assets/css/qld.bootstrap.legacy.css +2 -0
- package/dist/assets/css/qld.bootstrap.legacy.css.map +7 -0
- 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 +22 -5
- 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.scss +3 -3
- 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/button.scss +25 -45
- 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 +14 -39
- package/src/components/bs5/callout/manifest.json +1 -0
- package/src/components/bs5/card/Card.mdx +1 -1
- package/src/components/bs5/card/card.scss +5 -5
- 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/footer/footer.scss +3 -7
- 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.scss +290 -274
- package/src/components/bs5/pagination/pagination.stories.js +22 -46
- 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/textbox/textInput.scss +55 -39
- 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.scss +41 -27
- package/src/components/bs5/video/video.stories.js +6 -24
- package/src/css/main.legacy.scss +19 -0
- package/src/css/main.scss +17 -0
- package/src/css/qld-print.scss +426 -304
- package/src/css/qld-tokens-legacy.scss +94 -0
- package/src/css/qld-tokens.scss +92 -77
- package/src/css/qld-variables.scss +37 -30
- 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
- package/src/css/main.masterbrand.scss +0 -137
- package/src/css/themes/masterbrand.scss +0 -109
|
@@ -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
|
@@ -37,13 +37,22 @@ const buildConfig = {
|
|
|
37
37
|
out: "./assets/js/qld.bootstrap.min",
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
in: "./src/css/main.scss",
|
|
40
|
+
in: "./src/css/main.scss", //default masterbrand theme
|
|
41
41
|
out: "./assets/css/qld.bootstrap",
|
|
42
42
|
},
|
|
43
|
+
{
|
|
44
|
+
in: "./src/css/main.legacy.scss", //legacy masterbrand theme (before October 2025)
|
|
45
|
+
out: "./assets/css/qld.bootstrap.legacy",
|
|
46
|
+
},
|
|
43
47
|
{
|
|
44
48
|
in: "./src/js/handlebars.helpers.js",
|
|
45
49
|
out: "./assets/js/handlebars.helpers.bundle",
|
|
46
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
|
+
},
|
|
47
56
|
{
|
|
48
57
|
in: "./src/js/handlebars.init.js",
|
|
49
58
|
out: "./assets/js/handlebars.init.min",
|
|
@@ -66,11 +75,18 @@ const buildConfig = {
|
|
|
66
75
|
versionPlugin(),
|
|
67
76
|
QDGScleanFolders(),
|
|
68
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)
|
|
69
79
|
sassPlugin({
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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"],
|
|
74
90
|
}),
|
|
75
91
|
QDGSbuildLog(),
|
|
76
92
|
],
|
|
@@ -107,6 +123,7 @@ async function StartBuild() {
|
|
|
107
123
|
// Choose configuration based on theme
|
|
108
124
|
let config = buildConfig;
|
|
109
125
|
const tempEntries = [];
|
|
126
|
+
|
|
110
127
|
if (argv.theme) {
|
|
111
128
|
const themes = Array.isArray(argv.theme) ? argv.theme : [argv.theme];
|
|
112
129
|
const cssDir = path.resolve("src/css");
|
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";
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
//SASS variables;
|
|
5
5
|
$accordion-padding: 1rem;
|
|
6
|
-
$accordion-icon-color: $
|
|
7
|
-
$accordion-icon-active-color: $
|
|
6
|
+
$accordion-icon-color: $color-default-color-light-action-primary;
|
|
7
|
+
$accordion-icon-active-color: $color-default-color-light-action-primary;
|
|
8
8
|
$accordion-button-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-color}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
|
|
9
9
|
$accordion-button-active-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-active-color}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
|
|
10
|
-
$accordion-icon-dark-color: $
|
|
10
|
+
$accordion-icon-dark-color: $color-default-color-dark-action-primary;
|
|
11
11
|
$accordion-button-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-dark-color}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
|
|
12
12
|
$accordion-button-active-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-dark-color}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
|
|
13
13
|
|
|
@@ -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
|
+
{}
|