@qld-gov-au/qgds-bootstrap5 2.0.2 → 2.0.4

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.
Files changed (88) hide show
  1. package/.storybook/preview.js +4 -1
  2. package/dist/assets/components/bs5/accordion/accordion.hbs +0 -3
  3. package/dist/assets/components/bs5/directionLinks/directionLinks.hbs +2 -1
  4. package/dist/assets/components/bs5/head/head.hbs +1 -1
  5. package/dist/assets/components/bs5/header/header.hbs +6 -9
  6. package/dist/assets/components/bs5/navbar/navbar.hbs +21 -14
  7. package/dist/assets/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
  8. package/dist/assets/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
  9. package/dist/assets/components/bs5/pageLayout/templates/homePage.hbs +1 -1
  10. package/dist/assets/components/bs5/searchInput/searchInput.hbs +34 -35
  11. package/dist/assets/components/bs5/sidenav/sidenav.hbs +56 -37
  12. package/dist/assets/css/qld.bootstrap.css +1 -6
  13. package/dist/assets/css/qld.bootstrap.css.map +3 -3
  14. package/dist/assets/js/handlebars.init.min.js +263 -212
  15. package/dist/assets/js/handlebars.init.min.js.map +2 -2
  16. package/dist/assets/js/qld.bootstrap.min.js +5 -5
  17. package/dist/assets/js/qld.bootstrap.min.js.map +4 -4
  18. package/dist/assets/node/handlebars.init.min.js +29 -25
  19. package/dist/assets/node/handlebars.init.min.js.map +2 -2
  20. package/dist/components/bs5/accordion/accordion.hbs +0 -3
  21. package/dist/components/bs5/directionLinks/directionLinks.hbs +2 -1
  22. package/dist/components/bs5/head/head.hbs +1 -1
  23. package/dist/components/bs5/header/header.hbs +6 -9
  24. package/dist/components/bs5/navbar/navbar.hbs +21 -14
  25. package/dist/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
  26. package/dist/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
  27. package/dist/components/bs5/pageLayout/templates/homePage.hbs +1 -1
  28. package/dist/components/bs5/searchInput/searchInput.hbs +34 -35
  29. package/dist/components/bs5/sidenav/sidenav.hbs +56 -37
  30. package/dist/package.json +2 -4
  31. package/dist/sample-data/navbar/navbar.data.json +91 -25
  32. package/dist/sample-data/pagination/pagination.data.json +19 -19
  33. package/dist/sample-data/searchInput/searchInput.data.json +0 -1
  34. package/dist/sample-data/sidenav/sidenav.data.json +81 -80
  35. package/package.json +2 -4
  36. package/src/components/bs5/accordion/Accordion.mdx +34 -10
  37. package/src/components/bs5/accordion/__snapshots__/accordion.test.js.snap +0 -3
  38. package/src/components/bs5/accordion/accordion.hbs +0 -3
  39. package/src/components/bs5/accordion/mdx/_designResources.mdx +6 -0
  40. package/src/components/bs5/accordion/mdx/_usageInstructions.mdx +10 -0
  41. package/src/components/bs5/blockquote/blockquote.scss +47 -7
  42. package/src/components/bs5/button/button.scss +4 -0
  43. package/src/components/bs5/directionLinks/directionLinks.hbs +2 -1
  44. package/src/components/bs5/directionLinks/directionLinks.scss +27 -80
  45. package/src/components/bs5/directionLinks/directionLinks.stories.js +7 -14
  46. package/src/components/bs5/header/header.hbs +6 -9
  47. package/src/components/bs5/header/header.scss +15 -27
  48. package/src/components/bs5/inpagenav/inpagenav.scss +7 -3
  49. package/src/components/bs5/logo/Logo.mdx +1 -1
  50. package/src/components/bs5/navbar/navbar.data.json +91 -25
  51. package/src/components/bs5/navbar/navbar.functions.js +4 -0
  52. package/src/components/bs5/navbar/navbar.hbs +21 -14
  53. package/src/components/bs5/navbar/navbar.scss +225 -170
  54. package/src/components/bs5/navbar/navbar.stories.js +31 -2
  55. package/src/components/bs5/pageLayout/pageLayout.stories.js +3 -1
  56. package/src/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
  57. package/src/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
  58. package/src/components/bs5/pageLayout/templates/homePage.hbs +1 -1
  59. package/src/components/bs5/pagination/pagination.data.json +19 -19
  60. package/src/components/bs5/pagination/pagination.scss +37 -63
  61. package/src/components/bs5/promotionalPanel/promotionalPanel.scss +23 -22
  62. package/src/components/bs5/quickexit/quickexit.functions.js +24 -37
  63. package/src/components/bs5/quickexit/quickexit.scss +4 -0
  64. package/src/components/bs5/searchInput/SearchInput.mdx +1 -1
  65. package/src/components/bs5/searchInput/__snapshots__/searchInput.test.js.snap +32 -34
  66. package/src/components/bs5/searchInput/searchInput.data.json +0 -1
  67. package/src/components/bs5/searchInput/searchInput.hbs +34 -35
  68. package/src/components/bs5/searchInput/searchInput.scss +216 -195
  69. package/src/components/bs5/searchInput/searchInput.stories.js +42 -26
  70. package/src/components/bs5/sidenav/sidenav.data.json +81 -80
  71. package/src/components/bs5/sidenav/sidenav.hbs +56 -37
  72. package/src/components/bs5/sidenav/sidenav.scss +236 -151
  73. package/src/components/bs5/skiplinks/skipLinks.functions.js +0 -9
  74. package/src/components/bs5/skiplinks/skipLinks.test.js +0 -1
  75. package/src/components/bs5/tabs/tabs.scss +47 -40
  76. package/src/components/common/layout/container.scss +5 -0
  77. package/src/components/common/layout/content.scss +16 -8
  78. package/src/css/main.scss +0 -7
  79. package/src/css/mixins/focusable.scss +11 -3
  80. package/src/css/mixins/make-icon.scss +7 -1
  81. package/src/css/qld-theme.scss +1 -0
  82. package/src/css/utilities/_index.scss +1 -0
  83. package/src/css/utilities/sr-only.scss +5 -0
  84. package/src/js/qld.bootstrap.js +1 -9
  85. package/src/stories/documentation/_storybookDocsTabs.jsx +63 -0
  86. package/src/stories/documentation/storybook-documentation.scss +51 -0
  87. package/src/components/bs5/pagination/health-icon-sprite.svg +0 -156
  88. package/src/components/bs5/searchInput/_colours.scss +0 -63
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qld-gov-au/qgds-bootstrap5",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
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
- "@fortawesome/fontawesome-free": "^6.6.0",
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",
@@ -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": "index.html",
21
- "alternativeColor": true,
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
- "alternativeText": "Patients and visitors",
27
- "description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.",
28
- "viewAllHref": "https://example.com"
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": true,
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": true,
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": "Mobile only",
210
+ "text": "Full screen view 2",
174
211
  "iconName": "",
175
212
  "url": "index.html",
176
- "alternativeColor": false,
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": false,
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
- "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": "", "customClasses": "more", "more": true },
18
- { "href": "#", "linktext": "6", "customClasses": "" },
19
- { "href": "#", "linktext": "7", "customClasses": "" }
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,6 +1,5 @@
1
1
  {
2
2
  "customClass": "",
3
- "variantClass": "",
4
3
  "inputID": "search",
5
4
  "inputName": "query",
6
5
  "buttonID": "search-button",
@@ -1,88 +1,89 @@
1
1
  {
2
- "navtitle": "In this section",
3
- "navtitlelink": "#optionallink",
4
- "navlist": [
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
- "link": "https://www.qld.gov.au/transport/registration/register/heavy",
7
- "label": "Heavy vehicles",
8
- "class": "",
9
- "target": "",
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
- "link": "#",
71
- "label": "Vehicles registered overseas temporarily being used in Queensland",
72
- "class": "",
73
- "children": []
19
+ "link": "#",
20
+ "class": "active",
21
+ "label": "Child page",
22
+ "children": []
74
23
  },
75
24
  {
76
- "link": "#",
77
- "label": "Left hand drive vehicles",
78
- "class": "",
79
- "children": []
80
- },
81
- {
82
- "link": "#",
83
- "label": "Registration Help Tool—how to register a used motor vehicle or motorcycle",
84
- "class": "",
85
- "children": []
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.2",
3
+ "version": "2.0.4",
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
- "@fortawesome/fontawesome-free": "^6.6.0",
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,20 +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
- <Canvas of={AccordionStories.Default} />
10
-
11
- ## Design resources
13
+ > Accordions help users see only the content they need. Accordions expand and collapse sections of content.
12
14
 
13
- - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=6276-45691&mode=design&t=chjWFr1CLu6KQXzg-4)
14
- - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5990-98109&mode=design&t=ORVHLonASEFQzPeD-0)
15
- - [Design System website](https://www.design-system.health.qld.gov.au/components/accordions)
16
- - [Bootstrap component](https://getbootstrap.com/docs/5.3/components/accordion/)
17
-
18
- ## Example Component data
15
+ <Canvas of={AccordionStories.Default} />
19
16
 
20
- <Source language="json" code={JSON.stringify(defaultdata, null, 2)} />
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>
@@ -47,9 +46,7 @@ exports[`Accordion > Renders as expected 1`] = `
47
46
  </div>
48
47
  </div>
49
48
  </div>
50
-
51
49
  </div>
52
-
53
50
  </div>
54
51
  "
55
52
  `;
@@ -1,6 +1,5 @@
1
1
  <!-- QGDS Component: Accordion -->
2
2
  <div class="accordion-group">
3
-
4
3
  {{#if toggleAll}}
5
4
  <div class="accordion-toggle">
6
5
  <button class="accordion-toggle-btn accordion-toggle-btn--closed" type="button">Open all</button>
@@ -22,7 +21,5 @@
22
21
  </div>
23
22
  </div>
24
23
  {{/each }}
25
-
26
24
  </div>
27
-
28
25
  </div>
@@ -0,0 +1,6 @@
1
+ ## Design resources
2
+
3
+ - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=6276-45691&mode=design&t=chjWFr1CLu6KQXzg-4)
4
+ - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5990-98109&mode=design&t=ORVHLonASEFQzPeD-0)
5
+ - [Design System website](https://www.design-system.health.qld.gov.au/components/accordions)
6
+ - [Bootstrap component](https://getbootstrap.com/docs/5.3/components/accordion/)
@@ -0,0 +1,10 @@
1
+ <h3>Usage Instructions</h3>
2
+ <div>
3
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras consequat
4
+ gravida nulla et elementum. Vivamus ac nisl ac nunc mollis tincidunt. Maecenas
5
+ sagittis sit amet tellus accumsan sagittis. Duis a magna eu sem dapibus auctor
6
+ sit amet in eros. Ut consectetur augue vitae metus efficitur aliquam. Donec at
7
+ velit venenatis, vulputate ipsum id, dignissim nibh. Pellentesque nisi mauris,
8
+ sodales vitae blandit vel, semper eu mi. In vitae lectus nec urna condimentum
9
+ convallis.
10
+ </div>