@qld-gov-au/qgds-bootstrap5 2.0.1 → 2.0.3
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/preview.js +4 -1
- package/dist/assets/components/bs5/accordion/accordion.hbs +3 -6
- package/dist/assets/components/bs5/directionLinks/directionLinks.hbs +2 -1
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/components/bs5/header/header.hbs +6 -9
- package/dist/assets/components/bs5/navbar/navbar.hbs +21 -14
- package/dist/assets/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
- package/dist/assets/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
- package/dist/assets/components/bs5/pageLayout/templates/homePage.hbs +1 -1
- package/dist/assets/components/bs5/quickexit/quickexit.hbs +1 -1
- package/dist/assets/components/bs5/sidenav/sidenav.hbs +56 -37
- package/dist/assets/css/qld.bootstrap.css +1 -6
- package/dist/assets/css/qld.bootstrap.css.map +3 -3
- package/dist/assets/js/handlebars.init.min.js +232 -179
- package/dist/assets/js/handlebars.init.min.js.map +2 -2
- package/dist/assets/js/qld.bootstrap.min.js +5 -5
- package/dist/assets/js/qld.bootstrap.min.js.map +4 -4
- package/dist/assets/node/handlebars.init.min.js +55 -23
- package/dist/assets/node/handlebars.init.min.js.map +2 -2
- package/dist/components/bs5/accordion/accordion.hbs +3 -6
- package/dist/components/bs5/directionLinks/directionLinks.hbs +2 -1
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/components/bs5/header/header.hbs +6 -9
- package/dist/components/bs5/navbar/navbar.hbs +21 -14
- package/dist/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
- package/dist/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
- package/dist/components/bs5/pageLayout/templates/homePage.hbs +1 -1
- package/dist/components/bs5/quickexit/quickexit.hbs +1 -1
- package/dist/components/bs5/sidenav/sidenav.hbs +56 -37
- package/dist/package.json +2 -4
- package/dist/sample-data/accordion/accordion.data.json +24 -23
- package/dist/sample-data/navbar/navbar.data.json +91 -25
- package/dist/sample-data/pagination/pagination.data.json +19 -19
- package/dist/sample-data/sidenav/sidenav.data.json +81 -80
- package/package.json +2 -4
- package/src/components/bs5/accordion/Accordion.mdx +34 -12
- package/src/components/bs5/accordion/__snapshots__/accordion.test.js.snap +3 -6
- package/src/components/bs5/accordion/accordion.data.json +24 -23
- package/src/components/bs5/accordion/accordion.hbs +3 -6
- package/src/components/bs5/accordion/accordion.scss +19 -9
- package/src/components/bs5/accordion/accordion.stories.js +8 -0
- package/src/components/bs5/accordion/accordion.test.js +5 -0
- package/src/components/bs5/accordion/mdx/_designResources.mdx +6 -0
- package/src/components/bs5/accordion/mdx/_usageInstructions.mdx +10 -0
- package/src/components/bs5/backToTop/backToTop.mdx +4 -5
- package/src/components/bs5/banner/Banner.mdx +1 -3
- package/src/components/bs5/blockquote/Blockquote.mdx +4 -5
- package/src/components/bs5/blockquote/blockquote.scss +47 -7
- package/src/components/bs5/breadcrumbs/Breadcrumbs.mdx +1 -3
- package/src/components/bs5/button/Button.mdx +4 -5
- package/src/components/bs5/button/button.scss +13 -1
- package/src/components/bs5/callToAction/callToAction.mdx +1 -3
- package/src/components/bs5/callout/Callout.mdx +4 -5
- package/src/components/bs5/card/Card.mdx +1 -3
- package/src/components/bs5/card/card.scss +1 -25
- package/src/components/bs5/directionLinks/DirectionLinks.mdx +4 -5
- package/src/components/bs5/directionLinks/directionLinks.hbs +2 -1
- package/src/components/bs5/directionLinks/directionLinks.scss +27 -80
- package/src/components/bs5/directionLinks/directionLinks.stories.js +7 -14
- package/src/components/bs5/footer/Footer.mdx +1 -3
- package/src/components/bs5/footer/footer.scss +4 -11
- package/src/components/bs5/formcheck/stories/checkbox/Checkbox.mdx +7 -6
- package/src/components/bs5/formcheck/stories/radio/Radio.mdx +7 -6
- package/src/components/bs5/globalAlert/GlobalAlert.mdx +1 -3
- package/src/components/bs5/globalAlert/globalAlert.scss +6 -0
- package/src/components/bs5/header/Header.mdx +1 -3
- package/src/components/bs5/header/header.hbs +6 -9
- package/src/components/bs5/header/header.scss +6 -2
- package/src/components/bs5/icons/Icons.mdx +167 -7
- package/src/components/bs5/icons/_icons.sizes.scss +9 -0
- package/src/components/bs5/icons/icons.scss +23 -71
- package/src/components/bs5/icons/icons.stories.js +34 -57
- package/src/components/bs5/icons/mdx/_IconsSizes.mdx +112 -0
- package/src/components/bs5/icons/stories/storyFlexContainer.html +18 -0
- package/src/components/bs5/icons/stories/storyInlineWithText.html +18 -0
- package/src/components/bs5/icons/stories/storySizes.html +89 -0
- package/src/components/bs5/image/Image.mdx +1 -4
- package/src/components/bs5/inpageAlert/InpageAlert.mdx +1 -3
- package/src/components/bs5/inpagenav/Inpagenav.mdx +4 -5
- package/src/components/bs5/inpagenav/inpagenav.scss +7 -3
- package/src/components/bs5/link/link.mdx +1 -3
- package/src/components/bs5/link/link.scss +2 -15
- package/src/components/bs5/linkColumns/linkColumns.mdx +1 -3
- package/src/components/bs5/logo/Logo.mdx +1 -3
- package/src/components/bs5/navbar/navbar.data.json +91 -25
- package/src/components/bs5/navbar/navbar.functions.js +4 -0
- package/src/components/bs5/navbar/navbar.hbs +21 -14
- package/src/components/bs5/navbar/navbar.scss +219 -166
- package/src/components/bs5/navbar/navbar.stories.js +31 -2
- package/src/components/bs5/pageLayout/ThemeShowcase.stories.js +249 -0
- package/src/components/bs5/pageLayout/pageLayout.stories.js +3 -1
- package/src/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
- package/src/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
- package/src/components/bs5/pageLayout/templates/homePage.hbs +1 -1
- package/src/components/bs5/pagination/Pagination.mdx +4 -5
- package/src/components/bs5/pagination/pagination.data.json +19 -19
- package/src/components/bs5/pagination/pagination.scss +37 -63
- package/src/components/bs5/promotionalPanel/PromotionalPanel.mdx +1 -3
- package/src/components/bs5/promotionalPanel/promotionalPanel.scss +23 -22
- package/src/components/bs5/quickexit/quickexit.functions.js +24 -37
- package/src/components/bs5/quickexit/quickexit.hbs +1 -1
- package/src/components/bs5/quickexit/quickexit.scss +27 -10
- package/src/components/bs5/searchInput/SearchInput.mdx +5 -5
- package/src/components/bs5/sidenav/Sidenav.mdx +4 -5
- package/src/components/bs5/sidenav/sidenav.data.json +81 -80
- package/src/components/bs5/sidenav/sidenav.hbs +56 -37
- package/src/components/bs5/sidenav/sidenav.scss +236 -151
- package/src/components/bs5/skiplinks/SkipLinks.mdx +1 -3
- package/src/components/bs5/skiplinks/skipLinks.functions.js +0 -9
- package/src/components/bs5/skiplinks/skipLinks.test.js +0 -1
- package/src/components/bs5/table/Table.mdx +4 -5
- package/src/components/bs5/tabs/Tabs.mdx +4 -5
- package/src/components/bs5/tabs/tabs.scss +22 -1
- package/src/components/bs5/tag/Tag.mdx +4 -5
- package/src/components/bs5/typography/Typography.mdx +4 -5
- package/src/components/bs5/video/Video.mdx +4 -5
- package/src/components/common/layout/container.scss +5 -0
- package/src/components/common/layout/content.scss +16 -8
- package/src/css/functions/_index.scss +1 -0
- package/src/css/functions/in-list.scss +5 -0
- package/src/css/main.scss +4 -10
- package/src/css/mixins/_index.scss +3 -0
- package/src/css/mixins/make-icon.scss +87 -0
- package/src/css/qld-theme.scss +74 -31
- package/src/css/qld-type.scss +26 -140
- package/src/css/qld-utilities.scss +29 -14
- package/src/css/qld-variables.scss +4 -4
- package/src/css/utilities/_index.scss +1 -0
- package/src/css/utilities/sr-only.scss +5 -0
- package/src/css/variables/_index.scss +1 -0
- package/src/css/variables/type.scss +58 -0
- package/src/js/qld.bootstrap.js +1 -9
- package/src/stories/documentation/_storybookDocsTabs.jsx +63 -0
- package/src/stories/documentation/storybook-documentation.scss +51 -0
- package/src/components/bs5/icons/story-icon-sizing.html +0 -131
- package/src/components/bs5/icons/story-icon-usage.html +0 -89
- package/src/components/bs5/pagination/health-icon-sprite.svg +0 -156
|
@@ -312,10 +312,15 @@ export default {
|
|
|
312
312
|
};
|
|
313
313
|
|
|
314
314
|
export const Default = {
|
|
315
|
+
parameters: {
|
|
316
|
+
docs: {
|
|
317
|
+
story: { height: "80vh" },
|
|
318
|
+
},
|
|
319
|
+
},
|
|
315
320
|
args: {
|
|
316
321
|
"Nav alternativeColor": false,
|
|
317
322
|
"Nav verticalOrientation": false,
|
|
318
|
-
"Nav navbarBrandName": "",
|
|
323
|
+
"Nav navbarBrandName": "Menu",
|
|
319
324
|
"Add Navigation Item": 0,
|
|
320
325
|
// Initialize base items with iconName
|
|
321
326
|
...(() => {
|
|
@@ -500,8 +505,32 @@ export const Default = {
|
|
|
500
505
|
align-items: center;
|
|
501
506
|
}
|
|
502
507
|
@media (width <= 992px) {
|
|
508
|
+
|
|
503
509
|
#burgerBtn {
|
|
510
|
+
--nav-header-icon-color: #ffe500;
|
|
504
511
|
display: flex !important;
|
|
512
|
+
flex-direction: column;
|
|
513
|
+
gap:0;
|
|
514
|
+
.qld-icon {
|
|
515
|
+
background-color: var(--nav-header-icon-color);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
.navbar.show #overlay {
|
|
519
|
+
position: absolute;
|
|
520
|
+
}
|
|
521
|
+
#story--3-components-navbar--default--primary-inner:has(.show) {
|
|
522
|
+
#storybook-only-header {
|
|
523
|
+
display:none;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
#storybook-root:has(.show) {
|
|
527
|
+
#storybook-only-header {
|
|
528
|
+
display:none;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
.navbar #burgerCloseBtn::before {
|
|
532
|
+
--nav-header-icon-color: var(--#{$prefix}brand-accent);
|
|
533
|
+
background-color: var(--nav-header-icon-color, #008635);
|
|
505
534
|
}
|
|
506
535
|
}
|
|
507
536
|
@media (width >= 992px) {
|
|
@@ -519,7 +548,7 @@ export const Default = {
|
|
|
519
548
|
<div id="storybook-only-header">
|
|
520
549
|
<button id="burgerBtn" class="btn btn-primary" type="button" data-bs-toggle="collapse" data-bs-target="#main-nav" aria-expanded="false" aria-controls="collapseExample">
|
|
521
550
|
<span class="qld-icon qld-icon-xl qld-icon-menu"></span>
|
|
522
|
-
|
|
551
|
+
menu
|
|
523
552
|
</button>
|
|
524
553
|
</div>
|
|
525
554
|
`;
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: "5. Templates/Theme Showcase",
|
|
3
|
+
render: (args) => {
|
|
4
|
+
return args.content;
|
|
5
|
+
},
|
|
6
|
+
argTypes: {
|
|
7
|
+
themeClass: {
|
|
8
|
+
control: { type: 'select' },
|
|
9
|
+
options: ['', 'default', 'light', 'alt', 'dark', 'dark-alt'],
|
|
10
|
+
description: 'Theme class to apply to the content area',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
parameters: {
|
|
14
|
+
layout: "padded",
|
|
15
|
+
docs: {
|
|
16
|
+
description: {
|
|
17
|
+
story: 'This showcase demonstrates the theme palette classes (.default, .light, .alt, .dark, .dark-alt) that automatically apply color and background-color styling.',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Default Theme
|
|
25
|
+
* The default theme uses the base color scheme without additional background styling
|
|
26
|
+
*/
|
|
27
|
+
export const DefaultTheme = {
|
|
28
|
+
args: {
|
|
29
|
+
content: `
|
|
30
|
+
<div class="default p-4 mb-4 border">
|
|
31
|
+
<h2>Default Theme</h2>
|
|
32
|
+
<p>This demonstrates the default theme palette. It provides a clean, neutral appearance suitable for most content.</p>
|
|
33
|
+
<a href="#" class="btn btn-primary me-2">Primary Button</a>
|
|
34
|
+
<a href="#" class="btn btn-secondary">Secondary Button</a>
|
|
35
|
+
|
|
36
|
+
<h3 class="mt-4">Background Utilities</h3>
|
|
37
|
+
<div class="row g-3">
|
|
38
|
+
<div class="col-md-4">
|
|
39
|
+
<div class="bg-default p-3 rounded">
|
|
40
|
+
<strong>.bg-default</strong><br>
|
|
41
|
+
Background using default theme color
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="col-md-4">
|
|
45
|
+
<div class="bg-light p-3 rounded">
|
|
46
|
+
<strong>.bg-light</strong><br>
|
|
47
|
+
Background using light theme color
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="col-md-4">
|
|
51
|
+
<div class="bg-light-alt p-3 rounded">
|
|
52
|
+
<strong>.bg-light-alt</strong><br>
|
|
53
|
+
Background using light alt color
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
`,
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Light Theme
|
|
64
|
+
* The light theme provides a bright, clean appearance
|
|
65
|
+
*/
|
|
66
|
+
export const LightTheme = {
|
|
67
|
+
args: {
|
|
68
|
+
content: `
|
|
69
|
+
<div class="light p-4 mb-4 border">
|
|
70
|
+
<h2>Light Theme</h2>
|
|
71
|
+
<p>This demonstrates the light theme palette. It provides enhanced readability with a light background.</p>
|
|
72
|
+
<a href="#" class="btn btn-primary me-2">Primary Button</a>
|
|
73
|
+
<a href="#" class="btn btn-secondary">Secondary Button</a>
|
|
74
|
+
|
|
75
|
+
<h3 class="mt-4">Theme Features</h3>
|
|
76
|
+
<ul>
|
|
77
|
+
<li>Automatic color and background-color application</li>
|
|
78
|
+
<li>Optimized contrast ratios</li>
|
|
79
|
+
<li>Consistent styling across components</li>
|
|
80
|
+
</ul>
|
|
81
|
+
</div>
|
|
82
|
+
`,
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Alt Theme
|
|
88
|
+
* The alt theme provides an alternative light styling
|
|
89
|
+
*/
|
|
90
|
+
export const AltTheme = {
|
|
91
|
+
args: {
|
|
92
|
+
content: `
|
|
93
|
+
<div class="alt p-4 mb-4 border">
|
|
94
|
+
<h2>Alt Theme</h2>
|
|
95
|
+
<p>This demonstrates the alt theme palette. It provides a subtle alternative to the standard light theme.</p>
|
|
96
|
+
<a href="#" class="btn btn-primary me-2">Primary Button</a>
|
|
97
|
+
<a href="#" class="btn btn-secondary">Secondary Button</a>
|
|
98
|
+
|
|
99
|
+
<blockquote class="blockquote mt-4">
|
|
100
|
+
<p>"The alt theme provides visual variety while maintaining accessibility standards."</p>
|
|
101
|
+
<footer class="blockquote-footer">QLD Design System</footer>
|
|
102
|
+
</blockquote>
|
|
103
|
+
</div>
|
|
104
|
+
`,
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Dark Theme
|
|
110
|
+
* The dark theme provides a bold, high-contrast appearance
|
|
111
|
+
*/
|
|
112
|
+
export const DarkTheme = {
|
|
113
|
+
args: {
|
|
114
|
+
content: `
|
|
115
|
+
<div class="dark p-4 mb-4 border">
|
|
116
|
+
<h2>Dark Theme</h2>
|
|
117
|
+
<p>This demonstrates the dark theme palette. It provides excellent contrast and a modern appearance.</p>
|
|
118
|
+
<a href="#" class="btn btn-primary me-2">Primary Button</a>
|
|
119
|
+
<a href="#" class="btn btn-secondary">Secondary Button</a>
|
|
120
|
+
|
|
121
|
+
<div class="alert alert-info mt-4">
|
|
122
|
+
<h4 class="alert-heading">Dark Theme Benefits</h4>
|
|
123
|
+
<p class="mb-0">Reduces eye strain in low-light conditions and provides a sophisticated appearance.</p>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
`,
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Dark Alt Theme
|
|
132
|
+
* The dark alt theme provides an alternative dark styling
|
|
133
|
+
*/
|
|
134
|
+
export const DarkAltTheme = {
|
|
135
|
+
args: {
|
|
136
|
+
content: `
|
|
137
|
+
<div class="dark-alt p-4 mb-4 border">
|
|
138
|
+
<h2>Dark Alt Theme</h2>
|
|
139
|
+
<p>This demonstrates the dark alt theme palette. It provides a variation of the dark theme with different background styling.</p>
|
|
140
|
+
<a href="#" class="btn btn-primary me-2">Primary Button</a>
|
|
141
|
+
<a href="#" class="btn btn-secondary">Secondary Button</a>
|
|
142
|
+
|
|
143
|
+
<h3 class="mt-4">Dark Utility Examples</h3>
|
|
144
|
+
<div class="row g-3">
|
|
145
|
+
<div class="col-md-6">
|
|
146
|
+
<div class="bg-dark p-3 rounded text-white">
|
|
147
|
+
<strong>.bg-dark</strong><br>
|
|
148
|
+
Dark background utility
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
<div class="col-md-6">
|
|
152
|
+
<div class="bg-dark-alt p-3 rounded text-white">
|
|
153
|
+
<strong>.bg-dark-alt</strong><br>
|
|
154
|
+
Dark alt background utility
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
`,
|
|
160
|
+
},
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Theme Comparison
|
|
165
|
+
* Shows all themes in a single view for comparison
|
|
166
|
+
*/
|
|
167
|
+
export const ThemeComparison = {
|
|
168
|
+
args: {
|
|
169
|
+
content: `
|
|
170
|
+
<div class="mb-4">
|
|
171
|
+
<h2>Theme Palette Comparison</h2>
|
|
172
|
+
<p>Compare all available theme classes side by side. Each theme automatically applies appropriate color and background-color styling.</p>
|
|
173
|
+
</div>
|
|
174
|
+
|
|
175
|
+
<div class="row g-4">
|
|
176
|
+
<div class="col-lg-6">
|
|
177
|
+
<div class="default p-3 border">
|
|
178
|
+
<h3>Default Theme</h3>
|
|
179
|
+
<p>Base theme with neutral styling.</p>
|
|
180
|
+
<a href="#" class="btn btn-sm btn-primary">Button</a>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
|
|
184
|
+
<div class="col-lg-6">
|
|
185
|
+
<div class="light p-3 border">
|
|
186
|
+
<h3>Light Theme</h3>
|
|
187
|
+
<p>Clean, bright appearance.</p>
|
|
188
|
+
<a href="#" class="btn btn-sm btn-primary">Button</a>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<div class="col-lg-6">
|
|
193
|
+
<div class="alt p-3 border">
|
|
194
|
+
<h3>Alt Theme</h3>
|
|
195
|
+
<p>Alternative light styling.</p>
|
|
196
|
+
<a href="#" class="btn btn-sm btn-primary">Button</a>
|
|
197
|
+
</div>
|
|
198
|
+
</div>
|
|
199
|
+
|
|
200
|
+
<div class="col-lg-6">
|
|
201
|
+
<div class="dark p-3 border">
|
|
202
|
+
<h3>Dark Theme</h3>
|
|
203
|
+
<p>High contrast, modern look.</p>
|
|
204
|
+
<a href="#" class="btn btn-sm btn-primary">Button</a>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
|
|
208
|
+
<div class="col-12">
|
|
209
|
+
<div class="dark-alt p-3 border">
|
|
210
|
+
<h3>Dark Alt Theme</h3>
|
|
211
|
+
<p>Alternative dark styling with different background treatment.</p>
|
|
212
|
+
<a href="#" class="btn btn-sm btn-primary">Button</a>
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
|
|
217
|
+
<div class="mt-5">
|
|
218
|
+
<h3>Background Utility Classes</h3>
|
|
219
|
+
<p>These utilities can be used independently of theme classes for specific background styling:</p>
|
|
220
|
+
<div class="row g-3">
|
|
221
|
+
<div class="col-md-3">
|
|
222
|
+
<div class="bg-default p-2 text-center rounded">.bg-default</div>
|
|
223
|
+
</div>
|
|
224
|
+
<div class="col-md-3">
|
|
225
|
+
<div class="bg-light p-2 text-center rounded">.bg-light</div>
|
|
226
|
+
</div>
|
|
227
|
+
<div class="col-md-3">
|
|
228
|
+
<div class="bg-light-alt p-2 text-center rounded">.bg-light-alt</div>
|
|
229
|
+
</div>
|
|
230
|
+
<div class="col-md-3">
|
|
231
|
+
<div class="bg-dark p-2 text-center rounded text-white">.bg-dark</div>
|
|
232
|
+
</div>
|
|
233
|
+
<div class="col-md-3">
|
|
234
|
+
<div class="bg-dark-alt p-2 text-center rounded text-white">.bg-dark-alt</div>
|
|
235
|
+
</div>
|
|
236
|
+
<div class="col-md-3">
|
|
237
|
+
<div class="bg-default-shade p-2 text-center rounded">.bg-default-shade</div>
|
|
238
|
+
</div>
|
|
239
|
+
<div class="col-md-3">
|
|
240
|
+
<div class="bg-light-shade p-2 text-center rounded">.bg-light-shade</div>
|
|
241
|
+
</div>
|
|
242
|
+
<div class="col-md-3">
|
|
243
|
+
<div class="bg-light-alt-shade p-2 text-center rounded">.bg-light-alt-shade</div>
|
|
244
|
+
</div>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
`,
|
|
248
|
+
},
|
|
249
|
+
};
|
|
@@ -3,7 +3,7 @@ import { ContentPageWithSideNavigation } from "./ContentPageWithSideNavigation.j
|
|
|
3
3
|
import { ContentPageWithForm } from "./ContentPageWithForm.js";
|
|
4
4
|
//Data
|
|
5
5
|
import masterbrand_variant from "../header/header.variant.masterBrand.data.json";
|
|
6
|
-
import menu_state from "../navbar/navbar.
|
|
6
|
+
import menu_state from "../navbar/navbar.data.json";
|
|
7
7
|
import globalAlertData from "../globalAlert/globalAlert.data.json";
|
|
8
8
|
import tableData from "../table/table.data.json";
|
|
9
9
|
import footerData from "../footer/footer.data.json";
|
|
@@ -70,6 +70,8 @@ const defaultData = {
|
|
|
70
70
|
},
|
|
71
71
|
contentFooter: contentFooterData,
|
|
72
72
|
sidenav: sideNavData,
|
|
73
|
+
// Mapping some @root header fields to this pageLayout root object, so template partials can resolve values
|
|
74
|
+
// assets: masterbrand_variant.assets,
|
|
73
75
|
};
|
|
74
76
|
|
|
75
77
|
export default {
|
|
@@ -2,122 +2,154 @@
|
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
11
|
+
<!-- Global ALert -->
|
|
12
|
+
{{> globalAlert globalAlert}}
|
|
13
|
+
|
|
14
|
+
<!-- Header -->
|
|
15
|
+
{{> header header }}
|
|
16
|
+
|
|
17
|
+
<!-- Navbar -->
|
|
18
|
+
{{> navbar navbar}}
|
|
19
|
+
|
|
20
|
+
{{#if banner}}
|
|
21
|
+
{{> banner banner}}
|
|
22
|
+
{{/if}}
|
|
23
|
+
|
|
24
|
+
<main>
|
|
25
|
+
|
|
26
|
+
<div class="container mt-40 mt-lg-64">
|
|
27
|
+
{{#if breadcrumbs}}
|
|
28
|
+
<div class="row">
|
|
29
|
+
<div class="col-12">
|
|
30
|
+
<!-- breadcrumbs -->
|
|
31
|
+
{{> breadcrumbs breadcrumbs}}
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
{{/if}}
|
|
35
|
+
|
|
36
|
+
<!-- Main Grid Layout: Side navigation and content -->
|
|
37
|
+
<div class="row">
|
|
38
|
+
|
|
39
|
+
<!-- Side navigation column -->
|
|
40
|
+
<div class="col-12 col-lg-3 mt-0 pe-lg-0">
|
|
41
|
+
{{> sidenav sidenav}}
|
|
42
|
+
</div>
|
|
43
|
+
<!-- End Side navigation column -->
|
|
44
|
+
|
|
45
|
+
<!-- Content Column -->
|
|
46
|
+
<div class="col-lg-8 mt-40 mt-lg-0 ms-lg-32 ps-lg-32">
|
|
47
|
+
|
|
48
|
+
{{#if inpagenav}}
|
|
49
|
+
<!-- Inpagenav Component (.mb-64 provides vertical spacing) -->
|
|
50
|
+
{{> inpagenav inpagenav}}
|
|
51
|
+
{{/if}}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<!-- Content Section with top vertical spacer (2rem mobile, 4rem LG and above) -->
|
|
56
|
+
<div class="mt-32 mt-lg-64">
|
|
57
|
+
<h2 id="section-heading">Section heading (H2)</h2>
|
|
58
|
+
<p>
|
|
59
|
+
Lorem ipsum dolor sit amet consectetur. Sed facilisis purus eu convallis ut. Morbi condimentum volutpat
|
|
60
|
+
feugiat pellentesque. Auctor amet auctor dolor metus eget diam. Facilisis vitae venenatis vestibulum
|
|
61
|
+
libero ut. Luctus diam pellentesque ipsum accumsan amet commodo.
|
|
62
|
+
</p>
|
|
63
|
+
<p>
|
|
64
|
+
Convallis et ullamcorper ac nisi ornare sed facilisis sem. Scelerisque malesuada vivamus tellus mi vitae
|
|
65
|
+
amet ornare donec malesuada. Nascetur senectus aenean fames id turpis.
|
|
66
|
+
</p>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
<!-- Content Section with top vertical spacer (2rem mobile, 4rem LG and above) -->
|
|
72
|
+
<div class="mt-32 mt-lg-64">
|
|
73
|
+
|
|
74
|
+
<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 dolore magna aliqua.</p>
|
|
77
|
+
|
|
78
|
+
{{#if calloutdata}}
|
|
79
|
+
<!-- Callout Component -->
|
|
80
|
+
{{> callout calloutdata}}
|
|
81
|
+
{{/if}}
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<!-- Content Section with top vertical spacer (2rem mobile, 2.5rem LG and above) -->
|
|
87
|
+
<div class="mt-32 mt-lg-40">
|
|
88
|
+
<h3 id="inspection">Pre-registration inspection (H3)</h3>
|
|
89
|
+
<p>Information about pre-registration inspection requirements.</p>
|
|
90
|
+
|
|
91
|
+
<h4 id="fees-and-charges">Fees and charges (H4)</h4>
|
|
92
|
+
<p>Details about fees and charges for vehicle registration.</p>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
{{#if accordionItems}}
|
|
96
|
+
<!-- QGDS Accordion Component with 1.5rem vertical spacer -->
|
|
97
|
+
<div class="mt-24">
|
|
98
|
+
{{> accordion accordionItems}}
|
|
30
99
|
</div>
|
|
31
100
|
{{/if}}
|
|
101
|
+
</div>
|
|
32
102
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
incididunt ut labore et dolore magna aliqua.</p>
|
|
65
|
-
|
|
66
|
-
{{#if calloutdata}}
|
|
67
|
-
<!-- callout Section -->
|
|
68
|
-
{{> callout calloutdata}}
|
|
69
|
-
{{/if}}
|
|
70
|
-
|
|
71
|
-
<h3 id="inspection">Pre-registration inspection (H3)</h3>
|
|
72
|
-
<p>Information about pre-registration inspection requirements.</p>
|
|
73
|
-
|
|
74
|
-
<h4 id="fees-and-charges">Fees and charges (H4)</h4>
|
|
75
|
-
<p>Details about fees and charges for vehicle registration.</p>
|
|
76
|
-
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
{{#if accordionItems}}
|
|
80
|
-
<!-- accordion Section -->
|
|
81
|
-
<div class="my-5 px-1 px-md-32">
|
|
82
|
-
{{> accordion accordionItems}}
|
|
83
|
-
</div>
|
|
84
|
-
{{/if}}
|
|
85
|
-
|
|
86
|
-
{{#if video}}
|
|
87
|
-
<!-- video Section -->
|
|
88
|
-
<div class="my-5 px-1 px-md-32">
|
|
89
|
-
{{> video video}}
|
|
90
|
-
</div>
|
|
91
|
-
{{/if}}
|
|
92
|
-
|
|
93
|
-
<div class="my-5 p-1 p-md-32 bg-light">
|
|
94
|
-
<h2 id="inspection">Section heading (H2)</h2>
|
|
95
|
-
<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies
|
|
96
|
-
est.
|
|
97
|
-
Tincidunt ultrices commodo vestibulum non netus. </p>
|
|
98
|
-
<p>Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien
|
|
99
|
-
condimentum adipiscing augue quisque eu.</p>
|
|
100
|
-
|
|
101
|
-
{{> callToAction callToAction}}
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
{{#if table}}
|
|
105
|
-
<!-- table Section -->
|
|
106
|
-
<div class="my-5 px-1 px-md-32">
|
|
107
|
-
{{> table table}}
|
|
108
|
-
</div>
|
|
109
|
-
{{/if}}
|
|
110
|
-
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
|
|
114
|
-
<!-- Content Footer -->
|
|
115
|
-
{{> contentFooter contentFooter}}
|
|
103
|
+
<!-- Top vertical spacer: 2rem default (mobile), 4rem LG and above -->
|
|
104
|
+
<div class="mt-32 mt-lg-64">
|
|
105
|
+
{{#if video}}
|
|
106
|
+
<!-- QGDS Video Component -->
|
|
107
|
+
{{> video video}}
|
|
108
|
+
{{/if}}
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
<!-- Emphasis Container, with top vertical spacer: 2rem default (mobile), 4rem LG and above -->
|
|
112
|
+
<div class="mt-40 mt-lg-64 bg-light content-emphasis">
|
|
113
|
+
|
|
114
|
+
<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 ultrices commodo vestibulum non netus. </p>
|
|
117
|
+
|
|
118
|
+
<!-- QGDS Call To Action button -->
|
|
119
|
+
{{> callToAction callToAction}}
|
|
120
|
+
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
<!-- Top vertical spacer: 2rem default (mobile), 4rem LG and above -->
|
|
126
|
+
<div class="mt-32 mt-lg-64">
|
|
127
|
+
<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 ultrices commodo vestibulum non netus. </p>
|
|
129
|
+
|
|
130
|
+
{{#if table}}
|
|
131
|
+
<!-- Table Component (.my-40 wrapper provides vertical spacing) -->
|
|
132
|
+
<div class="mt-24">
|
|
133
|
+
{{> table table}}
|
|
116
134
|
</div>
|
|
135
|
+
{{/if}}
|
|
136
|
+
</div>
|
|
137
|
+
|
|
117
138
|
</div>
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
139
|
+
<!-- End Main Content Section -->
|
|
140
|
+
|
|
141
|
+
</div>
|
|
142
|
+
<!-- End Content Column -->
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
<!-- QGDS Content Footer Component -->
|
|
146
|
+
<div class="mt-64">
|
|
147
|
+
{{> contentFooter contentFooter}}
|
|
148
|
+
</div>
|
|
149
|
+
|
|
150
|
+
</main>
|
|
151
|
+
<!-- Footer -->
|
|
152
|
+
{{> footer footer}}
|
|
121
153
|
</body>
|
|
122
154
|
|
|
123
155
|
</html>
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Canvas, Meta, Story } from "@storybook/blocks"
|
|
2
|
-
import * as PaginationStories from "./pagination.stories"
|
|
1
|
+
import { Canvas, Meta, Story } from "@storybook/blocks";
|
|
2
|
+
import * as PaginationStories from "./pagination.stories";
|
|
3
3
|
|
|
4
4
|
<Meta of={PaginationStories} />
|
|
5
5
|
|
|
6
6
|
# Pagination
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
</Canvas>
|
|
7
|
+
|
|
8
|
+
<Canvas of={PaginationStories.Default} />
|
|
10
9
|
|
|
11
10
|
## Design resources
|
|
12
11
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
"arialabel": "Pagination for search results",
|
|
3
|
+
"previous": {
|
|
4
|
+
"href": "#",
|
|
5
|
+
"linktext": "Back",
|
|
6
|
+
"arialabel": "Previous page"
|
|
7
|
+
},
|
|
8
|
+
"next": {
|
|
9
|
+
"href": "#",
|
|
10
|
+
"linktext": "Next",
|
|
11
|
+
"arialabel": "Next page"
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
"pages": [
|
|
15
|
+
{ "href": "#", "linktext": "1", "customClasses": "" },
|
|
16
|
+
{ "href": "#", "linktext": "2", "customClasses": "active" },
|
|
17
|
+
{ "href": "#", "linktext": "3", "customClasses": "" },
|
|
18
|
+
{ "href": "#", "linktext": "", "customClasses": "more", "more": true },
|
|
19
|
+
{ "href": "#", "linktext": "7", "customClasses": "" }
|
|
20
|
+
]
|
|
21
21
|
}
|