@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
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
"groupid": "accordion-group-1",
|
|
3
|
+
"toggleAll": true,
|
|
4
|
+
"headingTag": "h2",
|
|
5
|
+
"accordionItems": [
|
|
6
|
+
{
|
|
7
|
+
"id": "One",
|
|
8
|
+
"title": "Accordion item #1",
|
|
9
|
+
"expanded": true,
|
|
10
|
+
"content": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce dictum efficitur egestas.</p><p>Aenean sed pretium mauris. Quisque euismod in nisl et consequat.</p> "
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "Two",
|
|
14
|
+
"title": "Accordion item #2",
|
|
15
|
+
"expanded": false,
|
|
16
|
+
"content": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae elit libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id elit.</p><ul><li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li><li>Aliquam tincidunt mauris eu risus.</li><li>Vestibulum auctor dapibus neque.</li></ul>"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "Three",
|
|
20
|
+
"title": "Accordion item #3",
|
|
21
|
+
"expanded": false,
|
|
22
|
+
"content": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae elit libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id elit.</p><ol><li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li><li>Aliquam tincidunt mauris eu risus.</li><li>Vestibulum auctor dapibus neque.</li></ol>"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -12,70 +12,87 @@
|
|
|
12
12
|
"alternativeColor": false,
|
|
13
13
|
"mobileOnly": false,
|
|
14
14
|
"hideLabel": true,
|
|
15
|
+
"currentPage": true,
|
|
15
16
|
"target": ""
|
|
16
17
|
},
|
|
17
18
|
{
|
|
18
19
|
"text": "Simple list",
|
|
19
20
|
"iconName": "",
|
|
20
|
-
"url": "
|
|
21
|
-
"alternativeColor":
|
|
21
|
+
"url": "https://www.wired.html",
|
|
22
|
+
"alternativeColor": false,
|
|
22
23
|
"mobileOnly": false,
|
|
24
|
+
"currentPage": false,
|
|
23
25
|
"hideLabel": false,
|
|
24
26
|
"target": "_blank",
|
|
25
27
|
"dropdownOptions": {
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
28
|
+
"hasNoLink": false,
|
|
29
|
+
"alternativeText": "",
|
|
30
|
+
"description": "",
|
|
31
|
+
"viewAllHref": ""
|
|
29
32
|
},
|
|
30
33
|
"navigationItems": [
|
|
31
34
|
{
|
|
32
35
|
"text": "Find your reason",
|
|
33
36
|
"description": "",
|
|
34
37
|
"url": "index.html",
|
|
35
|
-
"mobileOnly":
|
|
36
|
-
"target": ""
|
|
38
|
+
"mobileOnly": false,
|
|
39
|
+
"target": "",
|
|
40
|
+
"isHTML": false,
|
|
41
|
+
"htmlContent": ""
|
|
37
42
|
},
|
|
38
43
|
{
|
|
39
44
|
"text": "Quit stories",
|
|
40
45
|
"description": "",
|
|
41
46
|
"url": "index.html",
|
|
42
47
|
"mobileOnly": false,
|
|
43
|
-
"target": ""
|
|
48
|
+
"target": "",
|
|
49
|
+
"isHTML": false,
|
|
50
|
+
"htmlContent": ""
|
|
44
51
|
},
|
|
45
52
|
{
|
|
46
53
|
"text": "Vaping (e-cigarettes)",
|
|
47
54
|
"description": "",
|
|
48
55
|
"url": "index.html",
|
|
49
56
|
"mobileOnly": false,
|
|
50
|
-
"target": ""
|
|
57
|
+
"target": "",
|
|
58
|
+
"isHTML": false,
|
|
59
|
+
"htmlContent": ""
|
|
51
60
|
},
|
|
52
61
|
{
|
|
53
62
|
"text": "Choose your method",
|
|
54
63
|
"description": "",
|
|
55
64
|
"url": "index.html",
|
|
56
65
|
"mobileOnly": false,
|
|
57
|
-
"target": ""
|
|
66
|
+
"target": "",
|
|
67
|
+
"isHTML": false,
|
|
68
|
+
"htmlContent": ""
|
|
58
69
|
},
|
|
59
70
|
{
|
|
60
71
|
"text": "Pregnancy and smoking",
|
|
61
72
|
"description": "",
|
|
62
73
|
"url": "index.html",
|
|
63
74
|
"mobileOnly": false,
|
|
64
|
-
"target": ""
|
|
75
|
+
"target": "",
|
|
76
|
+
"isHTML": false,
|
|
77
|
+
"htmlContent": ""
|
|
65
78
|
},
|
|
66
79
|
{
|
|
67
80
|
"text": "Sign up for our support program",
|
|
68
81
|
"description": "",
|
|
69
82
|
"url": "index.html",
|
|
70
83
|
"mobileOnly": false,
|
|
71
|
-
"target": ""
|
|
84
|
+
"target": "",
|
|
85
|
+
"isHTML": false,
|
|
86
|
+
"htmlContent": ""
|
|
72
87
|
},
|
|
73
88
|
{
|
|
74
89
|
"text": "Plan your journey",
|
|
75
90
|
"description": "",
|
|
76
91
|
"url": "index.html",
|
|
77
92
|
"mobileOnly": false,
|
|
78
|
-
"target": ""
|
|
93
|
+
"target": "",
|
|
94
|
+
"isHTML": false,
|
|
95
|
+
"htmlContent": ""
|
|
79
96
|
}
|
|
80
97
|
]
|
|
81
98
|
},
|
|
@@ -83,11 +100,13 @@
|
|
|
83
100
|
"text": "Mega menu",
|
|
84
101
|
"iconName": "qld-icon-calendar",
|
|
85
102
|
"url": "https://example.com",
|
|
86
|
-
"alternativeColor":
|
|
103
|
+
"alternativeColor": false,
|
|
87
104
|
"mobileOnly": false,
|
|
105
|
+
"currentPage": false,
|
|
88
106
|
"hideLabel": false,
|
|
89
107
|
"target": "",
|
|
90
108
|
"dropdownOptions": {
|
|
109
|
+
"hasNoLink": true,
|
|
91
110
|
"alternativeText": "Mega menu alt title",
|
|
92
111
|
"description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.",
|
|
93
112
|
"viewAllHref": "index.html"
|
|
@@ -98,56 +117,72 @@
|
|
|
98
117
|
"description": "One of the best motivations for quitting is having a clear reason in mind so you know exactly why you’re doing it in the first place.",
|
|
99
118
|
"url": "index.html",
|
|
100
119
|
"mobileOnly": false,
|
|
101
|
-
"target": ""
|
|
120
|
+
"target": "",
|
|
121
|
+
"isHTML": false,
|
|
122
|
+
"htmlContent": ""
|
|
102
123
|
},
|
|
103
124
|
{
|
|
104
125
|
"text": "Aboriginal and Torres Strait Islander support",
|
|
105
126
|
"description": "Be encouraged and motivated by listening to stories of others who've quit smoking for life.",
|
|
106
127
|
"url": "index.html",
|
|
107
128
|
"mobileOnly": false,
|
|
108
|
-
"target": ""
|
|
129
|
+
"target": "",
|
|
130
|
+
"isHTML": false,
|
|
131
|
+
"htmlContent": ""
|
|
109
132
|
},
|
|
110
133
|
{
|
|
111
134
|
"text": "Your healthcare rights and responsibilities",
|
|
112
135
|
"description": "Vaping products are also known as e-cigarettes, e-cigars, vape pens or personal vapourisers. Vapes are harmful. The safest option is to not vape at all.",
|
|
113
136
|
"url": "index.html",
|
|
114
137
|
"mobileOnly": false,
|
|
115
|
-
"target": ""
|
|
138
|
+
"target": "",
|
|
139
|
+
"isHTML": false,
|
|
140
|
+
"htmlContent": ""
|
|
116
141
|
},
|
|
117
142
|
{
|
|
118
143
|
"text": "Going to hospital",
|
|
119
144
|
"description": "There are plenty of ways to quit smoking cigarettes and vapes. Find one that suits you best and commit to it.",
|
|
120
145
|
"url": "index.html",
|
|
121
146
|
"mobileOnly": false,
|
|
122
|
-
"target": ""
|
|
147
|
+
"target": "",
|
|
148
|
+
"isHTML": false,
|
|
149
|
+
"htmlContent": ""
|
|
123
150
|
},
|
|
124
151
|
{
|
|
125
152
|
"text": "Interpreter services",
|
|
126
153
|
"description": "Whether you’re thinking about getting pregnant, you're pregnant or have recently given birth, quitting smoking or vaping is the best thing you can do for the health of you and your baby.",
|
|
127
154
|
"url": "index.html",
|
|
128
155
|
"mobileOnly": false,
|
|
129
|
-
"target": ""
|
|
156
|
+
"target": "",
|
|
157
|
+
"isHTML": false,
|
|
158
|
+
"htmlContent": ""
|
|
130
159
|
},
|
|
131
160
|
{
|
|
132
161
|
"text": "Health costs, insurance and financial support",
|
|
133
162
|
"description": "Sign up for My Quit Journey to support you to stop smoking.",
|
|
134
163
|
"url": "index.html",
|
|
135
164
|
"mobileOnly": false,
|
|
136
|
-
"target": ""
|
|
165
|
+
"target": "",
|
|
166
|
+
"isHTML": false,
|
|
167
|
+
"htmlContent": ""
|
|
137
168
|
},
|
|
138
169
|
{
|
|
139
170
|
"text": "Leaving hospital",
|
|
140
171
|
"description": "Congratulations on taking the first step in your journey and deciding to make one of the best choices of your life.",
|
|
141
172
|
"url": "index.html",
|
|
142
173
|
"mobileOnly": false,
|
|
143
|
-
"target": ""
|
|
174
|
+
"target": "",
|
|
175
|
+
"isHTML": false,
|
|
176
|
+
"htmlContent": ""
|
|
144
177
|
},
|
|
145
178
|
{
|
|
146
179
|
"text": "Your health record",
|
|
147
180
|
"description": "Congratulations on taking the first step in your journey and deciding to make one of the best choices of your life.",
|
|
148
181
|
"url": "index.html",
|
|
149
182
|
"mobileOnly": false,
|
|
150
|
-
"target": ""
|
|
183
|
+
"target": "",
|
|
184
|
+
"isHTML": false,
|
|
185
|
+
"htmlContent": ""
|
|
151
186
|
}
|
|
152
187
|
]
|
|
153
188
|
},
|
|
@@ -157,6 +192,7 @@
|
|
|
157
192
|
"url": "/iframe.html?viewMode=story&id=3-components-navbar--default",
|
|
158
193
|
"alternativeColor": false,
|
|
159
194
|
"mobileOnly": false,
|
|
195
|
+
"currentPage": false,
|
|
160
196
|
"hideLabel": false,
|
|
161
197
|
"target": ""
|
|
162
198
|
},
|
|
@@ -166,24 +202,54 @@
|
|
|
166
202
|
"url": "/?path=/docs/3-components-navbar--overview",
|
|
167
203
|
"alternativeColor": false,
|
|
168
204
|
"mobileOnly": false,
|
|
205
|
+
"currentPage": false,
|
|
169
206
|
"hideLabel": false,
|
|
170
207
|
"target": ""
|
|
171
208
|
},
|
|
172
209
|
{
|
|
173
|
-
"text": "
|
|
210
|
+
"text": "Full screen view 2",
|
|
174
211
|
"iconName": "",
|
|
175
212
|
"url": "index.html",
|
|
176
|
-
"alternativeColor":
|
|
213
|
+
"alternativeColor": true,
|
|
177
214
|
"mobileOnly": true,
|
|
215
|
+
"currentPage": false,
|
|
178
216
|
"hideLabel": false,
|
|
179
217
|
"target": ""
|
|
180
218
|
},
|
|
219
|
+
{
|
|
220
|
+
"text": "Login",
|
|
221
|
+
"iconName": "qld-icon-login",
|
|
222
|
+
"url": "",
|
|
223
|
+
"alternativeColor": true,
|
|
224
|
+
"mobileOnly": true,
|
|
225
|
+
"currentPage": false,
|
|
226
|
+
"hideLabel": false,
|
|
227
|
+
"target": "",
|
|
228
|
+
"dropdownOptions": {
|
|
229
|
+
"hasNoLink": true,
|
|
230
|
+
"alternativeText": "",
|
|
231
|
+
"description": "",
|
|
232
|
+
"viewAllHref": ""
|
|
233
|
+
},
|
|
234
|
+
"navigationItems": [
|
|
235
|
+
{
|
|
236
|
+
"text": "",
|
|
237
|
+
"description": "",
|
|
238
|
+
"url": "",
|
|
239
|
+
"mobileOnly": true,
|
|
240
|
+
"target": "",
|
|
241
|
+
"isHTML": true,
|
|
242
|
+
"htmlContent": "<div class='someClass'><h4 class='mt-2 mb-3'>Log in to For government</h4><p>Most employees can log in using single sign on (SSO).</p><div class='someClass'><a class='btn btn-secondary justify-content-center' href='/someLink'>Log in with single sign-on</a><div class='group'><a class='mt-2 qld__header__cta-group-list' href='/somelink'>If your agency doesn't use SSO.</a></div></div><hr><h4 class='mt-2 mb-3'>Select your agency</h4><p>See information relevant to your agency.</p></div>"
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
181
246
|
{
|
|
182
247
|
"text": "Mobile only with icon",
|
|
183
248
|
"iconName": "qld-icon-chart",
|
|
184
249
|
"url": "index.html",
|
|
185
|
-
"alternativeColor":
|
|
250
|
+
"alternativeColor": true,
|
|
186
251
|
"mobileOnly": true,
|
|
252
|
+
"currentPage": false,
|
|
187
253
|
"hideLabel": false,
|
|
188
254
|
"target": ""
|
|
189
255
|
}
|
|
@@ -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
|
}
|
|
@@ -1,88 +1,89 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
"collapseTitle": "In this section",
|
|
3
|
+
"navtitle": "Parent page",
|
|
4
|
+
"navtitlelink": "#optionallink",
|
|
5
|
+
"navlist": [
|
|
6
|
+
{
|
|
7
|
+
"link": "https://www.qld.gov.au/transport/registration/register/heavy",
|
|
8
|
+
"label": "Sibling page",
|
|
9
|
+
"class": "",
|
|
10
|
+
"target": "",
|
|
11
|
+
"children": [
|
|
5
12
|
{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"children": [
|
|
11
|
-
{
|
|
12
|
-
"link": "#",
|
|
13
|
-
"class": "",
|
|
14
|
-
"label": "Level two item",
|
|
15
|
-
"children": []
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"link": "#",
|
|
19
|
-
"class": "active",
|
|
20
|
-
"label": "Level two item",
|
|
21
|
-
"children": []
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"link": "#",
|
|
25
|
-
"class": "",
|
|
26
|
-
|
|
27
|
-
"label": "Level two item",
|
|
28
|
-
"children": [
|
|
29
|
-
{
|
|
30
|
-
"link": "#",
|
|
31
|
-
"class": "",
|
|
32
|
-
"label": "Level three item",
|
|
33
|
-
"children": []
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"link": "#",
|
|
37
|
-
"class": "active",
|
|
38
|
-
"label": "Level three item that wraps to another line",
|
|
39
|
-
"children": []
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"link": "#",
|
|
47
|
-
"label": "Renew registration",
|
|
48
|
-
"class": "",
|
|
49
|
-
"children": []
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"link": "#",
|
|
53
|
-
"label": "Register a motorised mobility device",
|
|
54
|
-
"class": "active",
|
|
55
|
-
"children": []
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"link": "#",
|
|
59
|
-
"label": "Register a boat",
|
|
60
|
-
"class": "",
|
|
61
|
-
"children": []
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"link": "#",
|
|
65
|
-
"label": "Conditional registration",
|
|
66
|
-
"class": "",
|
|
67
|
-
"children": []
|
|
13
|
+
"link": "#",
|
|
14
|
+
"class": "",
|
|
15
|
+
"label": "Child page",
|
|
16
|
+
"children": []
|
|
68
17
|
},
|
|
69
18
|
{
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
19
|
+
"link": "#",
|
|
20
|
+
"class": "active",
|
|
21
|
+
"label": "Child page",
|
|
22
|
+
"children": []
|
|
74
23
|
},
|
|
75
24
|
{
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
25
|
+
"link": "#",
|
|
26
|
+
"class": "",
|
|
27
|
+
|
|
28
|
+
"label": "Child page",
|
|
29
|
+
"children": [
|
|
30
|
+
{
|
|
31
|
+
"link": "#",
|
|
32
|
+
"class": "",
|
|
33
|
+
"label": "Grandchild page",
|
|
34
|
+
"children": []
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"link": "#",
|
|
38
|
+
"class": "active",
|
|
39
|
+
"label": "Grandchild page",
|
|
40
|
+
"children": []
|
|
41
|
+
}
|
|
42
|
+
]
|
|
86
43
|
}
|
|
87
|
-
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"link": "#",
|
|
48
|
+
"label": "Sibling page",
|
|
49
|
+
"class": "",
|
|
50
|
+
"children": []
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"link": "#",
|
|
54
|
+
"label": "Sibling page",
|
|
55
|
+
"class": "active",
|
|
56
|
+
"children": []
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"link": "#",
|
|
60
|
+
"label": "Sibling page",
|
|
61
|
+
"class": "",
|
|
62
|
+
"children": []
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"link": "#",
|
|
66
|
+
"label": "Sibling page",
|
|
67
|
+
"class": "",
|
|
68
|
+
"children": []
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"link": "#",
|
|
72
|
+
"label": "Sibling page",
|
|
73
|
+
"class": "",
|
|
74
|
+
"children": []
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"link": "#",
|
|
78
|
+
"label": "Sibling page",
|
|
79
|
+
"class": "",
|
|
80
|
+
"children": []
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"link": "#",
|
|
84
|
+
"label": "Sibling page",
|
|
85
|
+
"class": "",
|
|
86
|
+
"children": []
|
|
87
|
+
}
|
|
88
|
+
]
|
|
88
89
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qld-gov-au/qgds-bootstrap5",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,9 +43,7 @@
|
|
|
43
43
|
"vite.config.js"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"
|
|
47
|
-
"bootstrap": "^5.3.8",
|
|
48
|
-
"material-symbols": "^0.31.7"
|
|
46
|
+
"bootstrap": "^5.3.8"
|
|
49
47
|
},
|
|
50
48
|
"devDependencies": {
|
|
51
49
|
"@chromatic-com/storybook": "^3.2.2",
|
|
@@ -1,22 +1,44 @@
|
|
|
1
1
|
import { Canvas, Meta, Story, Source } from "@storybook/blocks";
|
|
2
2
|
import * as AccordionStories from "./accordion.stories";
|
|
3
3
|
import defaultdata from "./accordion.data.json";
|
|
4
|
+
import "../../../stories/documentation/storybook-documentation.scss";
|
|
5
|
+
import { StorybookDocsTabs } from "../../../stories/documentation/_storybookDocsTabs.jsx";
|
|
6
|
+
import DesignResources from "./mdx/_designResources.mdx";
|
|
7
|
+
import UsageInstructions from "./mdx/_usageInstructions.mdx";
|
|
4
8
|
|
|
5
9
|
<Meta of={AccordionStories} />
|
|
6
10
|
|
|
7
11
|
# Accordion
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
<Story of={AccordionStories.Default} />
|
|
11
|
-
</Canvas>
|
|
13
|
+
> Accordions help users see only the content they need. Accordions expand and collapse sections of content.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
<Canvas of={AccordionStories.Default} />
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
<StorybookDocsTabs
|
|
18
|
+
tabs={[
|
|
19
|
+
{
|
|
20
|
+
label: "Code",
|
|
21
|
+
id: "code-doc",
|
|
22
|
+
heading: "Component code",
|
|
23
|
+
content: <Source language="html" id="accordion-default" />,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: "JSON",
|
|
27
|
+
id: "json-doc",
|
|
28
|
+
heading: "Example Component data",
|
|
29
|
+
content: (
|
|
30
|
+
<Source language="json" code={JSON.stringify(defaultdata, null, 2)} />
|
|
31
|
+
),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: "Design Resources",
|
|
35
|
+
id: "design-resources-doc",
|
|
36
|
+
content: <DesignResources />,
|
|
37
|
+
},
|
|
38
|
+
/* {
|
|
39
|
+
label: "Usage Instructions",
|
|
40
|
+
id: "usage-instructions-doc",
|
|
41
|
+
content: <UsageInstructions />,
|
|
42
|
+
}, */
|
|
43
|
+
]}
|
|
44
|
+
></StorybookDocsTabs>
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
exports[`Accordion > Renders as expected 1`] = `
|
|
4
4
|
"<!-- QGDS Component: Accordion -->
|
|
5
5
|
<div class="accordion-group">
|
|
6
|
-
|
|
7
6
|
<div class="accordion-toggle">
|
|
8
7
|
<button class="accordion-toggle-btn accordion-toggle-btn--closed" type="button">Open all</button>
|
|
9
8
|
</div>
|
|
@@ -15,7 +14,7 @@ exports[`Accordion > Renders as expected 1`] = `
|
|
|
15
14
|
</button>
|
|
16
15
|
</h2>
|
|
17
16
|
|
|
18
|
-
<div id="collapse-One" class="accordion-collapse collapse show" aria-labelledby="heading-One">
|
|
17
|
+
<div id="collapse-One" class="accordion-collapse collapse show" aria-labelledby="heading-One" role="region">
|
|
19
18
|
<div class="accordion-body">
|
|
20
19
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce dictum efficitur egestas.</p><p>Aenean sed pretium mauris. Quisque euismod in nisl et consequat.</p>
|
|
21
20
|
</div>
|
|
@@ -28,7 +27,7 @@ exports[`Accordion > Renders as expected 1`] = `
|
|
|
28
27
|
</button>
|
|
29
28
|
</h2>
|
|
30
29
|
|
|
31
|
-
<div id="collapse-Two" class="accordion-collapse collapse " aria-labelledby="heading-Two">
|
|
30
|
+
<div id="collapse-Two" class="accordion-collapse collapse " aria-labelledby="heading-Two" role="region">
|
|
32
31
|
<div class="accordion-body">
|
|
33
32
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae elit libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id elit.</p><ul><li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li><li>Aliquam tincidunt mauris eu risus.</li><li>Vestibulum auctor dapibus neque.</li></ul>
|
|
34
33
|
</div>
|
|
@@ -41,15 +40,13 @@ exports[`Accordion > Renders as expected 1`] = `
|
|
|
41
40
|
</button>
|
|
42
41
|
</h2>
|
|
43
42
|
|
|
44
|
-
<div id="collapse-Three" class="accordion-collapse collapse " aria-labelledby="heading-Three">
|
|
43
|
+
<div id="collapse-Three" class="accordion-collapse collapse " aria-labelledby="heading-Three" role="region">
|
|
45
44
|
<div class="accordion-body">
|
|
46
45
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae elit libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id elit.</p><ol><li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li><li>Aliquam tincidunt mauris eu risus.</li><li>Vestibulum auctor dapibus neque.</li></ol>
|
|
47
46
|
</div>
|
|
48
47
|
</div>
|
|
49
48
|
</div>
|
|
50
|
-
|
|
51
49
|
</div>
|
|
52
|
-
|
|
53
50
|
</div>
|
|
54
51
|
"
|
|
55
52
|
`;
|