@qld-gov-au/qgds-bootstrap5 2.0.8 → 2.0.10
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/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/components/bs5/image/image.hbs +8 -5
- package/dist/assets/components/bs5/pageLayout/templates/contentPageWithForm.hbs +112 -93
- package/dist/assets/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +57 -53
- package/dist/assets/css/qld.bootstrap.css +2 -1
- package/dist/assets/css/qld.bootstrap.css.map +2 -2
- package/dist/assets/css/qld.bootstrap.legacy.css +2 -1
- package/dist/assets/css/qld.bootstrap.legacy.css.map +2 -2
- package/dist/assets/js/handlebars.helpers.bundle.js +1 -0
- package/dist/assets/js/handlebars.init.min.js +186 -158
- package/dist/assets/js/handlebars.init.min.js.map +2 -2
- package/dist/assets/js/handlebars.partials.js +186 -158
- package/dist/assets/js/handlebars.partials.js.map +2 -2
- package/dist/assets/js/qld.bootstrap.min.js +1 -0
- package/dist/assets/node/handlebars.init.min.js +109 -90
- package/dist/assets/node/handlebars.init.min.js.map +2 -2
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/components/bs5/image/image.hbs +8 -5
- package/dist/components/bs5/pageLayout/templates/contentPageWithForm.hbs +112 -93
- package/dist/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +57 -53
- package/dist/package.json +1 -1
- package/dist/sample-data/breadcrumbs/breadcrumbs.data.json +1 -1
- package/dist/sample-data/image/image.data.json +4 -2
- package/esbuild.js +8 -0
- package/package.json +1 -1
- package/src/components/bs5/banner/banner.scss +28 -19
- package/src/components/bs5/banner/banner.stories.js +25 -16
- package/src/components/bs5/breadcrumbs/breadcrumbs.data.json +1 -1
- package/src/components/bs5/header/header.scss +4 -0
- package/src/components/bs5/image/image.data.json +4 -2
- package/src/components/bs5/image/image.hbs +8 -5
- package/src/components/bs5/image/image.scss +29 -7
- package/src/components/bs5/image/image.stories.js +77 -57
- package/src/components/bs5/pageLayout/pageLayout.stories.js +11 -45
- package/src/components/bs5/pageLayout/templates/contentPageWithForm.hbs +112 -93
- package/src/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +57 -53
- package/src/components/bs5/searchInput/searchInput.scss +4 -5
|
@@ -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.10","branch":"HEAD","tag":"v2.0.10","commit":"0c2b6d8a1c3232b2314e3f6283476abe5b254c53","majorVersion":"v2"} -->
|
|
3
3
|
|
|
4
4
|
{{! Select environment, used verbatium if not using predefind key
|
|
5
5
|
cdn := PROD|STAGING|BETA|TEST|DEV|???
|
|
@@ -13,12 +13,15 @@
|
|
|
13
13
|
{{/inline}}
|
|
14
14
|
|
|
15
15
|
{{#if src}}
|
|
16
|
-
{{#
|
|
16
|
+
{{#ifAny caption credit }}
|
|
17
17
|
<figure class="{{ figureClass }}" {{#if width}}style="width:{{ width }}{{ widthUnit }}"{{/if}}>
|
|
18
18
|
{{> imageTag}}
|
|
19
|
-
<figcaption>
|
|
19
|
+
<figcaption>
|
|
20
|
+
{{caption}}
|
|
21
|
+
{{#if credit}}<span class="figure-credit">{{ credit }}</span>{{/if}}
|
|
22
|
+
</figcaption>
|
|
20
23
|
</figure>
|
|
21
24
|
{{else}}
|
|
22
|
-
{{>
|
|
23
|
-
{{/
|
|
24
|
-
{{/if}}
|
|
25
|
+
{{>imageTag}}
|
|
26
|
+
{{/ifAny}}
|
|
27
|
+
{{/if}}
|
|
@@ -2,108 +2,127 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
|
|
4
4
|
<head>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title>{{title}}</title>
|
|
8
8
|
</head>
|
|
9
9
|
|
|
10
10
|
<body>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
{{> navbar navbar}}
|
|
11
|
+
<!-- Global ALert -->
|
|
12
|
+
{{> globalAlert globalAlert}}
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
<!-- Header -->
|
|
15
|
+
{{> header header }}
|
|
16
|
+
|
|
17
|
+
<!-- Navbar -->
|
|
18
|
+
{{> navbar navbar}}
|
|
19
|
+
|
|
20
|
+
{{#if banner}}
|
|
21
|
+
{{> banner banner}}
|
|
22
|
+
{{/if}}
|
|
23
|
+
|
|
24
|
+
<div class="container mt-40 mt-lg-64">
|
|
25
|
+
|
|
26
|
+
{{#if breadcrumbs}}
|
|
27
|
+
<!-- breadcrumbs -->
|
|
28
|
+
{{> breadcrumbs breadcrumbs}}
|
|
17
29
|
{{/if}}
|
|
18
30
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
31
|
+
<!-- Start Main Content Body -->
|
|
32
|
+
<div class="row">
|
|
33
|
+
|
|
34
|
+
<!-- Start Side navigation column (span 3) -->
|
|
35
|
+
<div class="col-12 col-lg-3">
|
|
36
|
+
<!-- QGDS Side Navigation Component -->
|
|
37
|
+
{{> sidenav sidenav}}
|
|
38
|
+
</div>
|
|
39
|
+
<!-- End Side navigation column -->
|
|
40
|
+
|
|
41
|
+
<!-- Start Main Column (span 8) -->
|
|
42
|
+
<div class="col-12 col-lg-8 mt-40 mt-lg-0">
|
|
43
|
+
|
|
44
|
+
<!-- Main Content div, includes a 2rem/32px horizontal padding on large screens and up -->
|
|
45
|
+
<main class="px-lg-32">
|
|
46
|
+
|
|
47
|
+
<h1 id="section-heading">Single page form (H1)</h1>
|
|
48
|
+
|
|
49
|
+
<p>Your feedback is important to us. It tells us how we can improve and what we’re doing well. Your feedback
|
|
50
|
+
is confidential.</p>
|
|
51
|
+
|
|
52
|
+
<h2 id="form-heading">Enquiry form (H2)</h2>
|
|
53
|
+
|
|
54
|
+
{{#if inpageAlert}}
|
|
55
|
+
<!-- Inpage Alert -->
|
|
56
|
+
<div class="mb-32">
|
|
57
|
+
{{> inpageAlert inpageAlert}}
|
|
58
|
+
</div>
|
|
59
|
+
{{/if}}
|
|
60
|
+
|
|
61
|
+
<!-- Example WYSIWYG content -->
|
|
62
|
+
<p>Any information submitted using this form will be used in line with our privacy statement.</p>
|
|
63
|
+
<p>Required fields are marked with an *</p>
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
{{#if form}}
|
|
67
|
+
<!-- Example Form, with 2rem vertical spacing -->
|
|
68
|
+
<form class="qld-form my-32">
|
|
69
|
+
{{#each form.fields1}}
|
|
70
|
+
<div class="form-group mb-32">
|
|
71
|
+
{{#ifCond type '==' 'textbox'}}
|
|
72
|
+
{{> textbox this}}
|
|
73
|
+
{{else ifCond type '==' 'textarea'}}
|
|
74
|
+
{{> textarea this}}
|
|
75
|
+
{{else ifCond type '==' 'radio'}}
|
|
76
|
+
{{> formcheck this}}
|
|
77
|
+
{{/ifCond}}
|
|
26
78
|
</div>
|
|
27
|
-
{{/
|
|
79
|
+
{{/each}}
|
|
80
|
+
|
|
81
|
+
<h3 id="contact-details">Contact details (H3)</h3>
|
|
82
|
+
|
|
83
|
+
{{#each form.fields2}}
|
|
84
|
+
<div class="form-group mb-32">
|
|
85
|
+
{{#ifCond type '==' 'textbox'}}
|
|
86
|
+
{{> textbox this}}
|
|
87
|
+
{{else ifCond type '==' 'select'}}
|
|
88
|
+
{{> select this}}
|
|
89
|
+
{{else ifCond type '==' 'checkbox'}}
|
|
90
|
+
{{> formcheck this}}
|
|
91
|
+
{{/ifCond}}
|
|
92
|
+
</div>
|
|
93
|
+
{{/each}}
|
|
28
94
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
</div>
|
|
35
|
-
{{/if}}
|
|
36
|
-
|
|
37
|
-
<!-- Content Col -->
|
|
38
|
-
<div class="col-lg-8 col-md-7 ps-1 ps-md-32">
|
|
39
|
-
|
|
40
|
-
<!-- Main Content Sections -->
|
|
41
|
-
<div class="content-section mb-5 px-1 px-md-32">
|
|
42
|
-
|
|
43
|
-
<h1 id="section-heading">Single page form (H1)</h1>
|
|
44
|
-
<p>
|
|
45
|
-
Your feedback is important to us. It tells us how we can improve and what we’re doing well. Your feedback is confidential.
|
|
46
|
-
</p>
|
|
47
|
-
|
|
48
|
-
<h2 id="form-heading">Enquiry form (H2)</h2>
|
|
49
|
-
|
|
50
|
-
{{#if inpageAlert}}
|
|
51
|
-
<!-- Inpage Alert -->
|
|
52
|
-
<div class="mb-32">
|
|
53
|
-
{{> inpageAlert inpageAlert}}
|
|
54
|
-
</div>
|
|
55
|
-
{{/if}}
|
|
56
|
-
|
|
57
|
-
<div class="mb-32">
|
|
58
|
-
<p>Any information submitted using this form will be used in line with our privacy statement.</p>
|
|
59
|
-
<p>Required fields are marked with an *</p>
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
{{#if form}}
|
|
63
|
-
<form class="qld-form mb-5">
|
|
64
|
-
{{#each form.fields1}}
|
|
65
|
-
<div class="form-group mb-32">
|
|
66
|
-
{{#ifCond type '==' 'textbox'}}
|
|
67
|
-
{{> textbox this}}
|
|
68
|
-
{{else ifCond type '==' 'textarea'}}
|
|
69
|
-
{{> textarea this}}
|
|
70
|
-
{{else ifCond type '==' 'radio'}}
|
|
71
|
-
{{> formcheck this}}
|
|
72
|
-
{{/ifCond}}
|
|
73
|
-
</div>
|
|
74
|
-
{{/each}}
|
|
75
|
-
|
|
76
|
-
<h3 id="form-heading">Contact details (H3)</h3>
|
|
77
|
-
|
|
78
|
-
{{#each form.fields2}}
|
|
79
|
-
<div class="form-group mb-32">
|
|
80
|
-
{{#ifCond type '==' 'textbox'}}
|
|
81
|
-
{{> textbox this}}
|
|
82
|
-
{{else ifCond type '==' 'select'}}
|
|
83
|
-
{{> select this}}
|
|
84
|
-
{{else ifCond type '==' 'checkbox'}}
|
|
85
|
-
{{> formcheck this}}
|
|
86
|
-
{{/ifCond}}
|
|
87
|
-
</div>
|
|
88
|
-
{{/each}}
|
|
89
|
-
|
|
90
|
-
{{#if form.buttons}}
|
|
91
|
-
<div class="form-actions d-flex mt-5 gap-4">
|
|
92
|
-
{{#each form.buttons}}
|
|
93
|
-
{{> button this}}
|
|
94
|
-
{{/each}}
|
|
95
|
-
</div>
|
|
96
|
-
{{/if}}
|
|
97
|
-
</form>
|
|
98
|
-
{{/if}}
|
|
99
|
-
|
|
100
|
-
</div>
|
|
101
|
-
</div>
|
|
102
|
-
{{> contentFooter contentFooter}}
|
|
95
|
+
{{#if form.buttons}}
|
|
96
|
+
<div class="form-actions d-flex mt-5 gap-4">
|
|
97
|
+
{{#each form.buttons}}
|
|
98
|
+
{{> button this}}
|
|
99
|
+
{{/each}}
|
|
103
100
|
</div>
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
101
|
+
{{/if}}
|
|
102
|
+
</form>
|
|
103
|
+
{{/if}}
|
|
104
|
+
|
|
105
|
+
</main>
|
|
106
|
+
|
|
107
|
+
</div>
|
|
108
|
+
<!-- End Column (span 8) -->
|
|
109
|
+
|
|
110
|
+
</div>
|
|
111
|
+
<!-- End Content Row -->
|
|
112
|
+
|
|
113
|
+
<!-- Start QGDS Content Footer -->
|
|
114
|
+
<div class="mt-64">
|
|
115
|
+
{{> contentFooter contentFooter}}
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
</div>
|
|
119
|
+
<!-- End Main .container -->
|
|
120
|
+
|
|
121
|
+
<!-- Start QGDS Footer -->
|
|
122
|
+
{{> footer footer}}
|
|
123
|
+
<!-- End QGDS Footer -->
|
|
124
|
+
|
|
107
125
|
</body>
|
|
108
126
|
|
|
127
|
+
|
|
109
128
|
</html>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
{{> globalAlert globalAlert}}
|
|
13
13
|
|
|
14
14
|
<!-- Header -->
|
|
15
|
-
{{> header header }}
|
|
15
|
+
{{> header header }}
|
|
16
16
|
|
|
17
17
|
<!-- Navbar -->
|
|
18
18
|
{{> navbar navbar}}
|
|
@@ -21,40 +21,37 @@
|
|
|
21
21
|
{{> banner banner}}
|
|
22
22
|
{{/if}}
|
|
23
23
|
|
|
24
|
-
<
|
|
24
|
+
<div class="container mt-40 mt-lg-64">
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
</div>
|
|
34
|
-
{{/if}}
|
|
26
|
+
{{#if breadcrumbs}}
|
|
27
|
+
<!-- breadcrumbs -->
|
|
28
|
+
{{> breadcrumbs breadcrumbs}}
|
|
29
|
+
{{/if}}
|
|
30
|
+
|
|
31
|
+
<!-- Start Main Content Body -->
|
|
32
|
+
<div class="row">
|
|
35
33
|
|
|
36
|
-
<!--
|
|
37
|
-
<div class="
|
|
34
|
+
<!-- Start Side navigation column (span 3) -->
|
|
35
|
+
<div class="col-12 col-lg-3">
|
|
36
|
+
<!-- QGDS Side navigation Component -->
|
|
37
|
+
{{> sidenav sidenav}}
|
|
38
|
+
</div>
|
|
39
|
+
<!-- End Side navigation column -->
|
|
38
40
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
{{> sidenav sidenav}}
|
|
42
|
-
</div>
|
|
43
|
-
<!-- End Side navigation column -->
|
|
41
|
+
<!-- Start Main Column (span 8) -->
|
|
42
|
+
<div class="col-12 col-lg-8 mt-40 mt-lg-0">
|
|
44
43
|
|
|
45
|
-
<!-- Content
|
|
46
|
-
<
|
|
44
|
+
<!-- Main Content div, includes a 2rem/32px horizontal padding on large screens and up -->
|
|
45
|
+
<main class="px-lg-32">
|
|
47
46
|
|
|
48
47
|
{{#if inpagenav}}
|
|
49
|
-
<!-- Inpagenav Component
|
|
48
|
+
<!-- QGDS Inpagenav Component -->
|
|
50
49
|
{{> inpagenav inpagenav}}
|
|
51
50
|
{{/if}}
|
|
52
51
|
|
|
53
|
-
|
|
54
|
-
|
|
55
52
|
<!-- Content Section with top vertical spacer (2rem mobile, 4rem LG and above) -->
|
|
56
53
|
<div class="mt-32 mt-lg-64">
|
|
57
|
-
<h2 id="section-heading">Section heading (H2)</h2>
|
|
54
|
+
<h2 id="section-heading">Section heading (H2)</h2>
|
|
58
55
|
<p>
|
|
59
56
|
Lorem ipsum dolor sit amet consectetur. Sed facilisis purus eu convallis ut. Morbi condimentum volutpat
|
|
60
57
|
feugiat pellentesque. Auctor amet auctor dolor metus eget diam. Facilisis vitae venenatis vestibulum
|
|
@@ -67,20 +64,20 @@
|
|
|
67
64
|
</div>
|
|
68
65
|
|
|
69
66
|
|
|
70
|
-
|
|
71
67
|
<!-- Content Section with top vertical spacer (2rem mobile, 4rem LG and above) -->
|
|
72
68
|
<div class="mt-32 mt-lg-64">
|
|
73
69
|
|
|
74
70
|
<h2 id="content-heading">Content heading (H2)</h2>
|
|
75
|
-
|
|
76
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et
|
|
71
|
+
|
|
72
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et
|
|
73
|
+
dolore magna aliqua.</p>
|
|
77
74
|
|
|
78
75
|
{{#if calloutdata}}
|
|
79
|
-
<!-- Callout Component -->
|
|
76
|
+
<!-- QGDS Callout Component -->
|
|
80
77
|
{{> callout calloutdata}}
|
|
81
78
|
{{/if}}
|
|
82
79
|
</div>
|
|
83
|
-
|
|
80
|
+
|
|
84
81
|
|
|
85
82
|
|
|
86
83
|
<!-- Content Section with top vertical spacer (2rem mobile, 2.5rem LG and above) -->
|
|
@@ -90,12 +87,12 @@
|
|
|
90
87
|
|
|
91
88
|
<h4 id="fees-and-charges">Fees and charges (H4)</h4>
|
|
92
89
|
<p>Details about fees and charges for vehicle registration.</p>
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
|
|
91
|
+
|
|
95
92
|
{{#if accordionItems}}
|
|
96
|
-
<!-- QGDS Accordion Component with 1.5rem
|
|
93
|
+
<!-- QGDS Accordion Component with 24px/1.5rem margin-top -->
|
|
97
94
|
<div class="mt-24">
|
|
98
|
-
|
|
95
|
+
{{> accordion accordionItems}}
|
|
99
96
|
</div>
|
|
100
97
|
{{/if}}
|
|
101
98
|
</div>
|
|
@@ -110,46 +107,53 @@
|
|
|
110
107
|
|
|
111
108
|
<!-- Emphasis Container, with top vertical spacer: 2rem default (mobile), 4rem LG and above -->
|
|
112
109
|
<div class="mt-40 mt-lg-64 bg-light content-emphasis">
|
|
113
|
-
|
|
110
|
+
|
|
114
111
|
<h2 id="inspection">Section heading (H2) with emphasis</h2>
|
|
115
|
-
|
|
116
|
-
<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt
|
|
117
|
-
|
|
112
|
+
|
|
113
|
+
<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt
|
|
114
|
+
ultrices commodo vestibulum non netus. </p>
|
|
115
|
+
|
|
118
116
|
<!-- QGDS Call To Action button -->
|
|
119
117
|
{{> callToAction callToAction}}
|
|
120
|
-
|
|
121
|
-
</div>
|
|
122
|
-
|
|
123
118
|
|
|
119
|
+
</div>
|
|
124
120
|
|
|
125
121
|
<!-- Top vertical spacer: 2rem default (mobile), 4rem LG and above -->
|
|
126
122
|
<div class="mt-32 mt-lg-64">
|
|
127
123
|
<h2 id="inspection">Section heading (H2)</h2>
|
|
128
|
-
<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt
|
|
129
|
-
|
|
124
|
+
<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt
|
|
125
|
+
ultrices commodo vestibulum non netus. </p>
|
|
126
|
+
|
|
130
127
|
{{#if table}}
|
|
131
|
-
<!-- Table Component
|
|
128
|
+
<!-- QGDS Table Component -->
|
|
132
129
|
<div class="mt-24">
|
|
133
|
-
|
|
130
|
+
{{> table table}}
|
|
134
131
|
</div>
|
|
135
132
|
{{/if}}
|
|
136
133
|
</div>
|
|
137
134
|
|
|
138
|
-
</
|
|
139
|
-
<!-- End Main Content
|
|
135
|
+
</main>
|
|
136
|
+
<!-- End Main Content div -->
|
|
140
137
|
|
|
141
138
|
</div>
|
|
142
|
-
<!-- End
|
|
143
|
-
|
|
139
|
+
<!-- End Column (8) -->
|
|
140
|
+
|
|
141
|
+
</div>
|
|
142
|
+
<!-- End Row -->
|
|
144
143
|
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
|
|
145
|
+
<!-- Start QGDS Content Footer -->
|
|
146
|
+
<div class="mt-64">
|
|
147
147
|
{{> contentFooter contentFooter}}
|
|
148
|
-
|
|
148
|
+
</div>
|
|
149
|
+
|
|
150
|
+
</div>
|
|
149
151
|
|
|
150
|
-
|
|
151
|
-
<!-- Footer -->
|
|
152
|
+
<!-- Start QGDS Footer -->
|
|
152
153
|
{{> footer footer}}
|
|
154
|
+
<!-- End QGDS Footer -->
|
|
155
|
+
|
|
153
156
|
</body>
|
|
154
157
|
|
|
158
|
+
|
|
155
159
|
</html>
|