@qld-gov-au/qgds-bootstrap5 1.0.13 → 1.0.15
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/.storybook/main.js +1 -1
- package/.storybook/preview.js +8 -0
- package/README.md +96 -46
- package/dist/assets/css/qld.bootstrap.css +1 -1
- package/dist/assets/css/qld.bootstrap.css.map +3 -3
- package/dist/assets/js/handlebars.helpers.bundle.js +1 -1
- package/dist/assets/js/handlebars.helpers.bundle.js.map +3 -3
- package/dist/assets/js/handlebars.helpers.js +4 -8
- package/dist/assets/js/qld.bootstrap.min.js +9 -9
- package/dist/assets/js/qld.bootstrap.min.js.map +4 -4
- package/dist/components/bs5/breadcrumbs/breadcrumbs.hbs +1 -1
- package/dist/components/bs5/button/button.hbs +30 -9
- package/dist/components/bs5/footer/footer.hbs +98 -112
- package/dist/components/bs5/footer/footerForgov.hbs +86 -59
- package/dist/components/bs5/header/header.hbs +15 -17
- package/dist/components/bs5/navbar/navbar.hbs +1 -1
- package/dist/components/bs5/quickexit/quickexit.hbs +28 -20
- package/dist/components/bs5/searchInput/searchInput.hbs +9 -3
- package/dist/components/handlebars.helpers.js +4 -8
- package/dist/components/handlebars.init.bundle.js +1 -1
- package/dist/components/handlebars.init.bundle.js.map +3 -3
- package/dist/index.html +2 -1
- package/dist/sample-data/button/button.data.json +2 -1
- package/dist/sample-data/footer/footer.data.json +93 -45
- package/dist/sample-data/header/header.data.json +134 -75
- package/dist/sample-data/navbar/navbar.data.json +8 -8
- package/dist/sample-data/quickexit/quickexit.data.json +8 -1
- package/dist/sample-data/searchInput/searchInput.data.json +10 -1
- package/package.json +20 -19
- package/src/components/bs5/breadcrumbs/breadcrumb.functions.js +71 -32
- package/src/components/bs5/breadcrumbs/breadcrumbs.hbs +1 -1
- package/src/components/bs5/button/button.data.json +2 -1
- package/src/components/bs5/button/button.hbs +30 -9
- package/src/components/bs5/button/button.scss +87 -44
- package/src/components/bs5/button/button.stories.js +121 -27
- package/src/components/bs5/callout/callout.scss +1 -1
- package/src/components/bs5/footer/_colours.scss +74 -0
- package/src/components/bs5/footer/_measurements.scss +30 -0
- package/src/components/bs5/footer/footer.data.json +93 -45
- package/src/components/bs5/footer/footer.functions.js +36 -0
- package/src/components/bs5/footer/footer.hbs +98 -112
- package/src/components/bs5/footer/footer.scss +445 -199
- package/src/components/bs5/footer/footer.stories.js +17 -6
- package/src/components/bs5/footer/footerForgov.hbs +86 -59
- package/src/components/bs5/header/_colours.scss +0 -52
- package/src/components/bs5/header/header.data.json +134 -75
- package/src/components/bs5/header/header.functions.js +1 -180
- package/src/components/bs5/header/header.hbs +15 -17
- package/src/components/bs5/header/header.scss +7 -156
- package/src/components/bs5/header/header.stories.js +10 -50
- package/src/components/bs5/modal/modal.scss +54 -35
- package/src/components/bs5/modal/modal.stories.js +2 -2
- package/src/components/bs5/navbar/_colours.scss +46 -82
- package/src/components/bs5/navbar/navbar.data.json +8 -8
- package/src/components/bs5/navbar/navbar.hbs +1 -1
- package/src/components/bs5/navbar/navbar.scss +15 -6
- package/src/components/bs5/quickexit/_colours.scss +28 -0
- package/src/components/bs5/quickexit/quickexit.data.json +8 -1
- package/src/components/bs5/quickexit/quickexit.hbs +28 -20
- package/src/components/bs5/quickexit/quickexit.scss +236 -156
- package/src/components/bs5/quickexit/quickexit.stories.js +35 -13
- package/src/components/bs5/searchInput/_colours.scss +63 -0
- package/src/components/bs5/searchInput/search.functions.js +170 -0
- package/src/components/bs5/searchInput/searchInput.data.json +10 -1
- package/src/components/bs5/searchInput/searchInput.hbs +9 -3
- package/src/components/bs5/searchInput/searchInput.scss +122 -21
- package/src/components/bs5/searchInput/searchInput.stories.js +1 -1
- package/src/components/bs5/tag/tag.scss +4 -2
- package/src/js/handlebars.helpers.js +4 -8
- package/src/main.js +63 -39
- package/src/main.scss +6 -3
- package/src/scss/qld-print.scss +365 -0
- package/src/scss/qld-type.scss +94 -85
- package/src/scss/qld-variables.scss +87 -101
- package/src/templates/compiled/index.html +2 -1
- package/src/templates/index.html +31 -46
- package/src/components/common/header/Header.js +0 -11
- package/src/components/common/header/header.html +0 -259
- package/src/components/common/header/header.scss +0 -118
- /package/src/components/bs5/{header/_search.json → searchInput/search.json} +0 -0
package/.storybook/main.js
CHANGED
|
@@ -13,7 +13,7 @@ const config = {
|
|
|
13
13
|
], //Bring dist in statically instead of having it minified
|
|
14
14
|
addons: [//Storybook addons
|
|
15
15
|
//https://storybook.js.org/addons/
|
|
16
|
-
"@storybook/addon-themes", "@storybook/addon-essentials", "@storybook/addon-interactions", "@storybook/addon-links", "@chromatic-com/storybook", "@storybook/addon-mdx-gfm"],
|
|
16
|
+
"@storybook/addon-a11y", "@storybook/addon-themes", "@storybook/addon-essentials", "@storybook/addon-interactions", "@storybook/addon-links", "@chromatic-com/storybook", "@storybook/addon-mdx-gfm"],
|
|
17
17
|
|
|
18
18
|
framework: {
|
|
19
19
|
//Build the storybook with html-vite rendered - faster than webpack
|
package/.storybook/preview.js
CHANGED
|
@@ -65,6 +65,14 @@ const preview = {
|
|
|
65
65
|
method: 'alphabetical',
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
+
a11y: {
|
|
69
|
+
// Optional configuration for the a11y addon
|
|
70
|
+
config: {},
|
|
71
|
+
options: {
|
|
72
|
+
checks: { 'color-contrast': { options: { noScroll: true } } },
|
|
73
|
+
restoreScroll: true,
|
|
74
|
+
},
|
|
75
|
+
},
|
|
68
76
|
},
|
|
69
77
|
|
|
70
78
|
decorators: [
|
package/README.md
CHANGED
|
@@ -1,78 +1,128 @@
|
|
|
1
|
-
# Queensland
|
|
1
|
+
# Queensland Government Design System - Bootstrap 5 - Edition
|
|
2
|
+
A Queensland Online - Design System development space
|
|
3
|
+
|
|
4
|
+
Please see [For Gov - Queensland Government Design System](https://www.forgov.qld.gov.au/information-and-communication-technology/communication-and-publishing/website-and-digital-publishing/website-standards-guidelines-and-templates/queensland-government-design-system) for more details.
|
|
5
|
+
|
|
6
|
+
This is a BS5 flavour based on [QGDS Figma Design](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?m=auto&node-id=6902-69802&t=q6FMpeH4XPs1hjP1-1). <br/>
|
|
7
|
+
Qld Health edition can be found at [design-system.health.qld.gov.au](https://www.design-system.health.qld.gov.au/).
|
|
8
|
+
|
|
9
|
+
This includes:
|
|
10
|
+
- Public NPM Release packages:
|
|
11
|
+
- https://www.npmjs.com/package/@qld-gov-au/qgds-bootstrap5
|
|
12
|
+
- https://github.com/qld-gov-au/qgds-bootstrap5/pkgs/npm/qgds-bootstrap5
|
|
13
|
+
- Squiz Git bridge dist/binary repo: https://github.com/qld-gov-au/qgds-bootstrap5-release
|
|
14
|
+
- Git CDN repo: https://github.com/qld-gov-au/qgds-bootstrap5-cdn
|
|
2
15
|
|
|
3
|
-
## Extends Bootstrap 5.3
|
|
4
16
|
|
|
5
17
|
## Technical overview
|
|
6
18
|
|
|
7
19
|
- ES6 Javascript
|
|
8
20
|
- ESbuild for bundling, minification and transpiling
|
|
9
|
-
- Storybook for component development
|
|
21
|
+
- Storybook for component development and documentation
|
|
10
22
|
- Mustache JS / Handlebars JS for component and HTML templating
|
|
11
23
|
- Figma for design and prototyping
|
|
12
24
|
- CSS/SCSS, extending Bootstrap 5.3 core components with custom CSS properties
|
|
13
25
|
- NPM for package management
|
|
14
26
|
|
|
15
|
-
# Getting started
|
|
16
27
|
|
|
17
|
-
##
|
|
28
|
+
## Documentation
|
|
18
29
|
|
|
19
|
-
|
|
20
|
-
git clone https://github.com/qld-gov-au/qgds-qol-mvp
|
|
21
|
-
```
|
|
30
|
+
- Storybook examples available at [https://qld-gov-au.github.io/qgds-bootstrap5/](https://qld-gov-au.github.io/qgds-bootstrap5/)
|
|
22
31
|
|
|
23
|
-
## 2. Setup
|
|
24
32
|
|
|
25
|
-
|
|
33
|
+
## Development Getting started
|
|
26
34
|
|
|
27
|
-
|
|
28
|
-
|
|
35
|
+
### Personal Development
|
|
36
|
+
This repo is designed to allow easy forking. <br/>
|
|
37
|
+
Do enable GitHub Actions post forking and GitHub pages via GitHub actions <br/>
|
|
38
|
+
Also do configure your own personal chromatic to ease development in providing delta change diff-ing.
|
|
29
39
|
|
|
30
|
-
|
|
40
|
+
We welcome external contributors, so don't be afraid to raise PR's back to this repo for inclusion into core deployment + cdn repo.
|
|
31
41
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
42
|
+
### GitHub Actions
|
|
43
|
+
This repo includes many workflows to reduce developer overheads. This includes but not limited to:
|
|
44
|
+
* CICD on all commit's and PR's
|
|
45
|
+
* GitHub io static document deployment based on develop/main
|
|
46
|
+
* Dependabot auto patching + storybook upgrade feature
|
|
47
|
+
* One click npm versioning publish (patch, minor, major) **
|
|
48
|
+
* Auto generate release notes based on PR's created (On version Tag)
|
|
49
|
+
* Npm js package publish (On version Tag) ***
|
|
50
|
+
* GitHub package Publish (On version Tag) ****
|
|
37
51
|
|
|
38
|
-
|
|
39
|
-
npm
|
|
40
|
-
|
|
52
|
+
** Must configure GitHub service account ssh private key loaded into GitHub actions secret ``DEPLOY_KEY``<br/>
|
|
53
|
+
*** Must have npm js token loaded into GitHub actions secrets ``NPM_TOKEN`` to allow publishing.<br/>
|
|
54
|
+
**** Switch's @qld-gov-au with forked username (lowercase) and publish to your account see .github/workflows/githubPackage.yml step ``Update package scope, export package name``.
|
|
41
55
|
|
|
42
|
-
###
|
|
56
|
+
### Quick build
|
|
57
|
+
If you hava java and maven installed. This will pull in a local node/npm version and run through the full lifecycle build.
|
|
43
58
|
|
|
44
59
|
```bash
|
|
45
|
-
|
|
60
|
+
git clone https://github.com/qld-gov-au/qgds-bootstrap5
|
|
61
|
+
cd qgds-bootstrap5
|
|
62
|
+
mvn install
|
|
46
63
|
```
|
|
47
64
|
|
|
48
|
-
###
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
npm run dev-storybook
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### Start a local server from /dist folder
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
npm run serve
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### Next steps
|
|
61
|
-
|
|
62
|
-
- HTML templating using drop in components
|
|
65
|
+
### Standard build
|
|
66
|
+
1. Download
|
|
63
67
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
```bash
|
|
69
|
+
git clone https://github.com/qld-gov-au/qgds-bootstrap5
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
2. Setup
|
|
73
|
+
|
|
74
|
+
Prerequisites
|
|
75
|
+
- Node 18.17.1+
|
|
76
|
+
- NPM 10.2.5+
|
|
77
|
+
|
|
78
|
+
3. Install dependencies
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
npm install
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
4. Build the Design System CSS, Components and templates
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npm run build
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
6. Start Watch and Storybook for component development
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
npm run dev-storybook
|
|
94
|
+
```
|
|
95
|
+
Alt:
|
|
96
|
+
```bash
|
|
97
|
+
npm run watch
|
|
98
|
+
npm run storybook
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
7. Lint
|
|
102
|
+
```bash
|
|
103
|
+
npm run lint
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
* Static view, start a local server from /dist folder
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
npm run serve
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
* Next steps
|
|
113
|
+
|
|
114
|
+
- HTML templating using drop in components
|
|
115
|
+
|
|
116
|
+
If you wish to use the includes handle bars, please ensure
|
|
117
|
+
"handlebars": "4.7.8" + is loaded prior to running handlebars.helpers.bundle.js
|
|
118
|
+
- Dev build and testing branching
|
|
71
119
|
|
|
72
|
-
|
|
120
|
+
### IDE Development suggestions
|
|
73
121
|
|
|
74
122
|
We recommend using VSCode as the IDE for development with the following plugins:
|
|
75
123
|
|
|
76
124
|
- Prettier
|
|
77
125
|
- ESLint
|
|
78
126
|
- Mustache JS or Handlebars JS template support
|
|
127
|
+
|
|
128
|
+
Webstorm also works.
|