@qld-gov-au/qgds-bootstrap5 1.1.40 → 2.0.0

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 (184) hide show
  1. package/.eslintrc.cjs +27 -27
  2. package/.vscode/settings.json +5 -5
  3. package/dist/assets/components/bs5/button/button.hbs +48 -30
  4. package/dist/assets/components/bs5/card/card.hbs +3 -17
  5. package/dist/assets/components/bs5/containerLayout/containerLayout.hbs +100 -0
  6. package/dist/assets/components/bs5/footer/customLinks.hbs +7 -0
  7. package/dist/assets/components/bs5/footer/feedbackForm.hbs +25 -0
  8. package/dist/assets/components/bs5/footer/followLinks.hbs +14 -0
  9. package/dist/assets/components/bs5/footer/footer.hbs +229 -346
  10. package/dist/assets/components/bs5/formcheck/formcheck.hbs +1 -1
  11. package/dist/assets/components/bs5/head/head.hbs +4 -4
  12. package/dist/assets/components/bs5/header/header.hbs +124 -878
  13. package/dist/assets/components/bs5/header/headerBrand.hbs +35 -0
  14. package/dist/assets/components/bs5/link/link.hbs +41 -0
  15. package/dist/assets/components/bs5/logo/logoCOALandscape.hbs +110 -55
  16. package/dist/assets/components/bs5/logo/logoCOALandscape2Lines.hbs +2 -1
  17. package/dist/assets/components/bs5/navbar/navbar.hbs +65 -245
  18. package/dist/assets/components/bs5/pageLayout/templates/contentPageWithForm.hbs +53 -22
  19. package/dist/assets/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +79 -59
  20. package/dist/assets/components/bs5/pageLayout/templates/homePage.hbs +111 -0
  21. package/dist/assets/components/bs5/searchInput/searchInput.hbs +9 -11
  22. package/dist/assets/css/qld.bootstrap.css +1 -1
  23. package/dist/assets/css/qld.bootstrap.css.map +3 -3
  24. package/dist/assets/js/bootstrap.bundle.js +3 -6
  25. package/dist/assets/js/bootstrap.bundle.js.map +1 -1
  26. package/dist/assets/js/bootstrap.bundle.min.js +2 -2
  27. package/dist/assets/js/bootstrap.bundle.min.js.map +1 -1
  28. package/dist/assets/js/bootstrap.js +3 -6
  29. package/dist/assets/js/bootstrap.min.js +2 -2
  30. package/dist/assets/js/bootstrap.min.js.map +1 -1
  31. package/dist/assets/js/handlebars.helpers.bundle.js.map +2 -2
  32. package/dist/assets/js/handlebars.helpers.js +34 -34
  33. package/dist/assets/js/handlebars.init.min.js +1055 -2041
  34. package/dist/assets/js/handlebars.init.min.js.map +4 -4
  35. package/dist/assets/js/handlebars.partials.js +14 -6
  36. package/dist/assets/js/qld.bootstrap.min.js +9 -9
  37. package/dist/assets/js/qld.bootstrap.min.js.map +4 -4
  38. package/dist/assets/node/handlebars.init.min.js +538 -108
  39. package/dist/assets/node/handlebars.init.min.js.map +3 -3
  40. package/dist/components/bs5/button/button.hbs +48 -30
  41. package/dist/components/bs5/card/card.hbs +3 -17
  42. package/dist/components/bs5/containerLayout/containerLayout.hbs +100 -0
  43. package/dist/components/bs5/footer/customLinks.hbs +7 -0
  44. package/dist/components/bs5/footer/feedbackForm.hbs +25 -0
  45. package/dist/components/bs5/footer/followLinks.hbs +14 -0
  46. package/dist/components/bs5/footer/footer.hbs +229 -346
  47. package/dist/components/bs5/formcheck/formcheck.hbs +1 -1
  48. package/dist/components/bs5/head/head.hbs +4 -4
  49. package/dist/components/bs5/header/header.hbs +124 -878
  50. package/dist/components/bs5/header/headerBrand.hbs +35 -0
  51. package/dist/components/bs5/link/link.hbs +41 -0
  52. package/dist/components/bs5/logo/logoCOALandscape.hbs +110 -55
  53. package/dist/components/bs5/logo/logoCOALandscape2Lines.hbs +2 -1
  54. package/dist/components/bs5/navbar/navbar.hbs +65 -245
  55. package/dist/components/bs5/pageLayout/templates/contentPageWithForm.hbs +53 -22
  56. package/dist/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +79 -59
  57. package/dist/components/bs5/pageLayout/templates/homePage.hbs +111 -0
  58. package/dist/components/bs5/searchInput/searchInput.hbs +9 -11
  59. package/dist/components/handlebars.helpers.js +34 -34
  60. package/dist/components/handlebars.partials.js +14 -6
  61. package/dist/package.json +2 -2
  62. package/dist/sample-data/button/button.data.json +10 -8
  63. package/dist/sample-data/footer/footer.data.json +128 -84
  64. package/dist/sample-data/formcheck/stories/checkbox/checkbox.data.json +51 -46
  65. package/dist/sample-data/formcheck/stories/radio/radio.data.json +51 -46
  66. package/dist/sample-data/header/header.variant.coBrand.data.json +28 -40
  67. package/dist/sample-data/header/header.variant.endorsed.data.json +116 -150
  68. package/dist/sample-data/header/header.variant.masterBrand.data.json +116 -152
  69. package/dist/sample-data/header/header.variant.standAlone.data.json +118 -150
  70. package/dist/sample-data/header/header.variant.subBrand.data.json +32 -159
  71. package/dist/sample-data/inpageAlert/inpageAlert.data.json +6 -6
  72. package/dist/sample-data/link/link.data.json +77 -0
  73. package/dist/sample-data/logo/logo.data.json +1 -0
  74. package/dist/sample-data/navbar/navbar.data.json +191 -0
  75. package/dist/sample-data/searchInput/searchInput.data.json +2 -3
  76. package/dist/sample-data/tabs/tabs.data.json +45 -44
  77. package/package.json +2 -2
  78. package/src/components/bs5/accordion/Accordion.mdx +8 -2
  79. package/src/components/bs5/banner/Banner.mdx +6 -1
  80. package/src/components/bs5/banner/banner.scss +16 -9
  81. package/src/components/bs5/banner/banner.stories.js +17 -17
  82. package/src/components/bs5/breadcrumbs/Breadcrumbs.mdx +8 -2
  83. package/src/components/bs5/breadcrumbs/breadcrumbs.functions.js +2 -0
  84. package/src/components/bs5/breadcrumbs/breadcrumbs.scss +1 -1
  85. package/src/components/bs5/button/button.data.json +10 -8
  86. package/src/components/bs5/button/button.hbs +48 -30
  87. package/src/components/bs5/button/button.scss +61 -0
  88. package/src/components/bs5/button/button.stories.js +29 -10
  89. package/src/components/bs5/callToAction/callToAction.mdx +8 -3
  90. package/src/components/bs5/card/Card.mdx +8 -2
  91. package/src/components/bs5/card/card.hbs +3 -17
  92. package/src/components/bs5/card/card.scss +103 -103
  93. package/src/components/bs5/containerLayout/containerLayout.hbs +100 -0
  94. package/src/components/bs5/containerLayout/containerLayout.stories.js +83 -0
  95. package/src/components/bs5/footer/Footer.js +3 -3
  96. package/src/components/bs5/footer/Footer.mdx +8 -2
  97. package/src/components/bs5/footer/customLinks.hbs +7 -0
  98. package/src/components/bs5/footer/feedbackForm.hbs +25 -0
  99. package/src/components/bs5/footer/followLinks.hbs +14 -0
  100. package/src/components/bs5/footer/footer.data.json +128 -84
  101. package/src/components/bs5/footer/footer.functions.js +2 -1
  102. package/src/components/bs5/footer/footer.hbs +229 -346
  103. package/src/components/bs5/footer/footer.scss +262 -272
  104. package/src/components/bs5/footer/footer.stories.js +4 -92
  105. package/src/components/bs5/footer/footer_formio.scss +219 -0
  106. package/src/components/bs5/formcheck/formcheck.hbs +1 -1
  107. package/src/components/bs5/formcheck/formcheck.scss +161 -139
  108. package/src/components/bs5/formcheck/stories/checkbox/checkbox.data.json +51 -46
  109. package/src/components/bs5/formcheck/stories/radio/radio.data.json +51 -46
  110. package/src/components/bs5/globalAlert/GlobalAlert.mdx +8 -2
  111. package/src/components/bs5/globalAlert/globalAlert.test.js +3 -11
  112. package/src/components/bs5/header/_header-variables.scss +272 -0
  113. package/src/components/bs5/header/header.functions.js +9 -9
  114. package/src/components/bs5/header/header.hbs +124 -878
  115. package/src/components/bs5/header/header.scss +279 -411
  116. package/src/components/bs5/header/header.stories.js +8 -28
  117. package/src/components/bs5/header/header.variant.coBrand.data.json +28 -40
  118. package/src/components/bs5/header/header.variant.endorsed.data.json +116 -150
  119. package/src/components/bs5/header/header.variant.masterBrand.data.json +116 -152
  120. package/src/components/bs5/header/header.variant.standAlone.data.json +118 -150
  121. package/src/components/bs5/header/header.variant.subBrand.data.json +32 -159
  122. package/src/components/bs5/header/headerBrand.hbs +35 -0
  123. package/src/components/bs5/icons/icons.scss +79 -72
  124. package/src/components/bs5/inpageAlert/InpageAlert.mdx +8 -2
  125. package/src/components/bs5/inpageAlert/inpageAlert.data.json +6 -6
  126. package/src/components/bs5/inpagenav/inpagenav.scss +37 -37
  127. package/src/components/bs5/link/link.data.json +77 -0
  128. package/src/components/bs5/link/link.hbs +41 -0
  129. package/src/components/bs5/{pageLayout/pageLayout.js → link/link.js} +4 -5
  130. package/src/components/bs5/link/link.mdx +16 -0
  131. package/src/components/bs5/link/link.scss +81 -0
  132. package/src/components/bs5/link/link.stories.js +126 -0
  133. package/src/components/bs5/linkColumns/linkColumns.mdx +8 -3
  134. package/src/components/bs5/logo/logo.data.json +1 -0
  135. package/src/components/bs5/logo/logoCOALandscape.hbs +110 -55
  136. package/src/components/bs5/logo/logoCOALandscape2Lines.hbs +2 -1
  137. package/src/components/bs5/navbar/Navbar.js +2 -9
  138. package/src/components/bs5/navbar/navbar.data.json +191 -0
  139. package/src/components/bs5/navbar/navbar.functions.js +48 -196
  140. package/src/components/bs5/navbar/navbar.hbs +65 -245
  141. package/src/components/bs5/navbar/navbar.scss +684 -562
  142. package/src/components/bs5/navbar/navbar.stories.js +533 -0
  143. package/src/components/bs5/pageLayout/{FullWidthLandingPage.js → HomePage.js} +2 -2
  144. package/src/components/bs5/pageLayout/pageLayout.stories.js +242 -98
  145. package/src/components/bs5/pageLayout/templates/contentPageWithForm.hbs +53 -22
  146. package/src/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +79 -59
  147. package/src/components/bs5/pageLayout/templates/homePage.hbs +111 -0
  148. package/src/components/bs5/promotionalPanel/PromotionalPanel.mdx +8 -3
  149. package/src/components/bs5/searchInput/__snapshots__/searchInput.test.js.snap +10 -9
  150. package/src/components/bs5/searchInput/search.functions.js +94 -63
  151. package/src/components/bs5/searchInput/searchInput.data.json +2 -3
  152. package/src/components/bs5/searchInput/searchInput.hbs +9 -11
  153. package/src/components/bs5/searchInput/searchInput.scss +297 -255
  154. package/src/components/bs5/searchInput/searchInput.test.js +98 -90
  155. package/src/components/bs5/tabs/tabs.data.json +45 -44
  156. package/src/components/bs5/tabs/tabs.scss +544 -500
  157. package/src/components/bs5/tabs/tabs.stories.js +81 -51
  158. package/src/components/common/layout/container.scss +22 -0
  159. package/src/components/common/layout/content.scss +11 -4
  160. package/src/components/common/layout/grid.scss +26 -0
  161. package/src/css/main.scss +7 -2
  162. package/src/css/mixins/_index.scss +2 -1
  163. package/src/css/mixins/register-vars.scss +23 -0
  164. package/src/css/qld-variables.scss +106 -83
  165. package/src/css/utilities/_index.scss +1 -0
  166. package/src/css/utilities/responsive-visually-hidden.scss +10 -0
  167. package/src/js/handlebars.helpers.js +34 -34
  168. package/src/js/handlebars.partials.js +14 -6
  169. package/src/js/qld.bootstrap.js +10 -11
  170. package/dist/assets/components/bs5/footer/footerForgov.hbs +0 -279
  171. package/dist/assets/components/bs5/pageLayout/pageLayout.hbs +0 -34
  172. package/dist/assets/components/bs5/pageLayout/templates/fullWidthLandingPage.hbs +0 -61
  173. package/dist/components/bs5/footer/footerForgov.hbs +0 -279
  174. package/dist/components/bs5/pageLayout/pageLayout.hbs +0 -34
  175. package/dist/components/bs5/pageLayout/templates/fullWidthLandingPage.hbs +0 -61
  176. package/src/components/bs5/footer/_colours.scss +0 -149
  177. package/src/components/bs5/footer/_measurements.scss +0 -32
  178. package/src/components/bs5/footer/footerForgov.hbs +0 -279
  179. package/src/components/bs5/header/_colours.scss +0 -271
  180. package/src/components/bs5/header/_icons.scss +0 -10
  181. package/src/components/bs5/navbar/_colours.scss +0 -85
  182. package/src/components/bs5/navbar/_icons.scss +0 -64
  183. package/src/components/bs5/pageLayout/pageLayout.hbs +0 -34
  184. package/src/components/bs5/pageLayout/templates/fullWidthLandingPage.hbs +0 -61
@@ -1,173 +1,46 @@
1
1
  {
2
- "icon-root": "./assets/img/svg-icons.svg",
3
- "icons": {
4
- "menu-icon": "qld__icon__mobile-menu",
5
- "search-icon": "qld__icon__search",
6
- "close-icon": "qld__icon__close",
7
- "chevron_down": "qld__icon__chevron-down"
8
- },
9
- "sitePreHeader": {
10
- "url": {
11
- "value": "https://qld.gov.au"
12
- },
13
- "text": {
14
- "value": "www.qld.gov.au"
2
+ "isSubBrand": true,
3
+ "preHeader": {
4
+ "globalLink": {
5
+ "text": "www.qld.gov.au",
6
+ "url": "https://qld.gov.au"
15
7
  },
16
- "CTA": [
8
+ "actions": [
17
9
  {
18
10
  "id": "CTAone",
19
- "url": {
20
- "value": "#"
21
- },
22
- "text": {
23
- "value": "For Queenslanders"
24
- },
25
- "dropdown_enabled": true,
26
- "dropdown_options": {
27
- "dropdown_type": "list",
28
- "view_more": true,
29
- "label": "View all",
30
- "url": "https://www.qld.gov.au/queenslanders",
31
- "target": "_blank",
32
- "dropdown_config": {
33
- "groups": [
34
- {
35
- "action": "_blank",
36
- "url": "#",
37
- "label": "Transport and motoring"
38
- },
39
- {
40
- "action": "_blank",
41
- "url": "#",
42
- "label": "Employment and jobs"
43
- },
44
- {
45
- "action": "_blank",
46
- "url": "#",
47
- "label": "Education and training"
48
- },
49
- {
50
- "action": "_blank",
51
- "url": "#",
52
- "label": "Queensland and its government"
53
- },
54
- {
55
- "action": "_blank",
56
- "url": "#",
57
- "label": "Health and wellbeing"
58
- },
59
- {
60
- "action": "_blank",
61
- "url": "#",
62
- "label": "Community support"
63
- }
64
- ]
65
- }
66
- }
67
- },
68
- {
69
- "id": "CTAtwo",
70
- "url": {
71
- "value": "#"
72
- },
73
- "text": {
74
- "value": "Business and Industry"
75
- },
76
- "dropdown_enabled": true,
77
- "dropdown_options": {
78
- "dropdown_type": "list",
79
- "view_more": true,
80
- "label": "View all",
81
- "url": "https://www.qld.gov.au/queenslanders",
82
- "target": "_blank",
83
- "dropdown_config": {
84
- "groups": [
85
- {
86
- "action": "_blank",
87
- "url": "#",
88
- "label": "Transport and motoring"
89
- },
90
- {
91
- "action": "_blank",
92
- "url": "#",
93
- "label": "Employment and jobs"
94
- },
95
- {
96
- "action": "_blank",
97
- "url": "#",
98
- "label": "Education and training"
99
- },
100
- {
101
- "action": "_blank",
102
- "url": "#",
103
- "label": "Queensland and its government"
104
- },
105
- {
106
- "action": "_blank",
107
- "url": "#",
108
- "label": "Health and wellbeing"
109
- },
110
- {
111
- "action": "_blank",
112
- "url": "#",
113
- "label": "Community support"
114
- }
115
- ]
116
- }
117
- }
11
+ "url": "#",
12
+ "text": "Contact Information",
13
+ "icon": "phone"
118
14
  },
15
+
119
16
  {
120
17
  "id": "CTAthree",
121
- "url": {
122
- "value": "#"
123
- },
124
- "text": {
125
- "value": "Login"
126
- },
127
- "dropdown_enabled": true,
128
- "dropdown_options": {
129
- "dropdown_type": "form",
130
- "dropdown_config": {
131
- "content": "<div></div>"
132
- }
133
- }
18
+ "url": "#",
19
+ "text": "Login",
20
+ "icon": "login"
134
21
  }
135
22
  ]
136
23
  },
137
- "siteHeader": {
138
- "config": {
139
- "masterbrand_enabled": false,
140
- "subbrand_enabled": true,
141
- "cobrand_enabled": false,
142
- "endorsed_enabled": false,
143
- "standalone_enabled": false
144
- },
145
- "url": {
146
- "value": "https://qld.gov.au"
147
- },
148
- "logo": {},
149
- "secondaryType": {
150
- "logo": {
151
- "value": ""
152
- },
153
- "siteTitle": {
154
- "value": "For government"
155
- },
156
- "subline": {
157
- "value": ""
158
- }
159
- }
24
+ "mainContent": {
25
+ "url": "https://qld.gov.au",
26
+ "logoPath": "",
27
+ "secondaryLogoPath": "",
28
+ "siteTitle": "For government",
29
+ "subline": "Hospital and Health Service"
160
30
  },
161
- "siteSearchAsset": {
162
- "value": "#",
163
- "placeholder": "Placeholder",
164
- "label": "Label",
165
- "formAction": {
166
- "url": "https://www.forgov.qld.gov.au/search"
167
- },
168
- "options": {
169
- "borderStyle": {
170
- "full": false
31
+ "assets": {
32
+ "SVGSpritePath": "./assets/img/icons-sprite.svg",
33
+ "siteSearch": {
34
+ "value": "#",
35
+ "placeholder": "",
36
+ "label": "",
37
+ "formAction": {
38
+ "url": "https://www.forgov.qld.gov.au/search"
39
+ },
40
+ "options": {
41
+ "borderStyle": {
42
+ "full": true
43
+ }
171
44
  }
172
45
  }
173
46
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "variantClass": "alert-success",
3
- "alertType": "",
4
- "heading": "Alert heading",
5
- "headingTag": "h2",
6
- "content": "<p>This is an alert notice with some important information. <a href='#'>Find out more</a>.</p>"
7
- }
2
+ "variantClass": "alert-success",
3
+ "alertType": "",
4
+ "heading": "Alert heading",
5
+ "headingTag": "h2",
6
+ "content": "<p>This is an alert notice with some important information. <a href='#'>Find out more</a>.</p>"
7
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "default": {
3
+ "url": "",
4
+ "id": "",
5
+ "label": "Document title (PDF 2.5 MB)",
6
+ "target": "_self",
7
+ "arialabel": "Document title (PDF 2.5 MB)",
8
+ "iconClass": "qld-icon-document-pdf",
9
+ "iconPosition": "leading",
10
+ "download": null
11
+ },
12
+ "linkGroup": {
13
+ "title": "Link group title",
14
+ "linkList": [
15
+ {
16
+ "url": "",
17
+ "id": "doc-1",
18
+ "label": "Document title (DOC 2.5 MB)",
19
+ "target": "_self",
20
+ "arialabel": "Document title (DOC 2.5 MB)",
21
+ "iconClass": "qld-icon-document-word",
22
+ "iconPosition": "leading",
23
+ "download": null
24
+ },
25
+ {
26
+ "url": "",
27
+ "id": "doc-2",
28
+ "label": "JPG image file (JPG 2.5 KB)",
29
+ "target": "_self",
30
+ "arialabel": "JPG image file (JPG 2.5 KB)",
31
+ "iconClass": "qld-icon-image",
32
+ "iconPosition": "leading",
33
+ "download": null
34
+ },
35
+ {
36
+ "url": "",
37
+ "id": "doc-3",
38
+ "label": "PNG image file (PNG 2.5 KB)",
39
+ "target": "_self",
40
+ "arialabel": "PNG image file (PNG 2.5 KB)",
41
+ "iconClass": "qld-icon-image",
42
+ "iconPosition": "leading",
43
+ "download": null
44
+ },
45
+ {
46
+ "url": "",
47
+ "id": "doc-4",
48
+ "label": "Document title (PDF 2.5 MB)",
49
+ "target": "_self",
50
+ "arialabel": "Document title (PDF 2.5 MB)",
51
+ "iconClass": "qld-icon-document-pdf",
52
+ "iconPosition": "leading",
53
+ "download": null
54
+ },
55
+ {
56
+ "url": "",
57
+ "id": "doc-5",
58
+ "label": "Document title (CSV 2.5 MB)",
59
+ "target": "_self",
60
+ "arialabel": "Document title (CSV 2.5 MB)",
61
+ "iconClass": "qld-icon-document-spreadsheet",
62
+ "iconPosition": "leading",
63
+ "download": null
64
+ },
65
+ {
66
+ "url": "",
67
+ "id": "doc-6",
68
+ "label": "Document title (PDF 2.5 MB)",
69
+ "target": "_self",
70
+ "arialabel": "Document title (PDF 2.5 MB)",
71
+ "iconClass": "qld-icon-document-pdf",
72
+ "iconPosition": "leading",
73
+ "download": null
74
+ }
75
+ ]
76
+ }
77
+ }
@@ -2,5 +2,6 @@
2
2
  "logo": "coa-landscape",
3
3
  "fill": "currentColor",
4
4
  "width": "",
5
+ "height": "",
5
6
  "className": ""
6
7
  }
@@ -0,0 +1,191 @@
1
+ {
2
+ "metadata": {
3
+ "alternativeColor": false,
4
+ "verticalOrientation": false,
5
+ "navbarBrandName": "Menu"
6
+ },
7
+ "navigation": [
8
+ {
9
+ "text": "Home",
10
+ "iconName": "qld-icon-home",
11
+ "url": "index.html",
12
+ "alternativeColor": false,
13
+ "mobileOnly": false,
14
+ "hideLabel": true,
15
+ "target": ""
16
+ },
17
+ {
18
+ "text": "Simple list",
19
+ "iconName": "",
20
+ "url": "index.html",
21
+ "alternativeColor": true,
22
+ "mobileOnly": false,
23
+ "hideLabel": false,
24
+ "target": "_blank",
25
+ "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"
29
+ },
30
+ "navigationItems": [
31
+ {
32
+ "text": "Find your reason",
33
+ "description": "",
34
+ "url": "index.html",
35
+ "mobileOnly": true,
36
+ "target": ""
37
+ },
38
+ {
39
+ "text": "Quit stories",
40
+ "description": "",
41
+ "url": "index.html",
42
+ "mobileOnly": false,
43
+ "target": ""
44
+ },
45
+ {
46
+ "text": "Vaping (e-cigarettes)",
47
+ "description": "",
48
+ "url": "index.html",
49
+ "mobileOnly": false,
50
+ "target": ""
51
+ },
52
+ {
53
+ "text": "Choose your method",
54
+ "description": "",
55
+ "url": "index.html",
56
+ "mobileOnly": false,
57
+ "target": ""
58
+ },
59
+ {
60
+ "text": "Pregnancy and smoking",
61
+ "description": "",
62
+ "url": "index.html",
63
+ "mobileOnly": false,
64
+ "target": ""
65
+ },
66
+ {
67
+ "text": "Sign up for our support program",
68
+ "description": "",
69
+ "url": "index.html",
70
+ "mobileOnly": false,
71
+ "target": ""
72
+ },
73
+ {
74
+ "text": "Plan your journey",
75
+ "description": "",
76
+ "url": "index.html",
77
+ "mobileOnly": false,
78
+ "target": ""
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ "text": "Mega menu",
84
+ "iconName": "qld-icon-calendar",
85
+ "url": "https://example.com",
86
+ "alternativeColor": true,
87
+ "mobileOnly": false,
88
+ "hideLabel": false,
89
+ "target": "",
90
+ "dropdownOptions": {
91
+ "alternativeText": "Mega menu alt title",
92
+ "description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.",
93
+ "viewAllHref": "index.html"
94
+ },
95
+ "navigationItems": [
96
+ {
97
+ "text": "Visiting someone in hospital",
98
+ "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
+ "url": "index.html",
100
+ "mobileOnly": false,
101
+ "target": ""
102
+ },
103
+ {
104
+ "text": "Aboriginal and Torres Strait Islander support",
105
+ "description": "Be encouraged and motivated by listening to stories of others who've quit smoking for life.",
106
+ "url": "index.html",
107
+ "mobileOnly": false,
108
+ "target": ""
109
+ },
110
+ {
111
+ "text": "Your healthcare rights and responsibilities",
112
+ "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
+ "url": "index.html",
114
+ "mobileOnly": false,
115
+ "target": ""
116
+ },
117
+ {
118
+ "text": "Going to hospital",
119
+ "description": "There are plenty of ways to quit smoking cigarettes and vapes. Find one that suits you best and commit to it.",
120
+ "url": "index.html",
121
+ "mobileOnly": false,
122
+ "target": ""
123
+ },
124
+ {
125
+ "text": "Interpreter services",
126
+ "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
+ "url": "index.html",
128
+ "mobileOnly": false,
129
+ "target": ""
130
+ },
131
+ {
132
+ "text": "Health costs, insurance and financial support",
133
+ "description": "Sign up for My Quit Journey to support you to stop smoking.",
134
+ "url": "index.html",
135
+ "mobileOnly": false,
136
+ "target": ""
137
+ },
138
+ {
139
+ "text": "Leaving hospital",
140
+ "description": "Congratulations on taking the first step in your journey and deciding to make one of the best choices of your life.",
141
+ "url": "index.html",
142
+ "mobileOnly": false,
143
+ "target": ""
144
+ },
145
+ {
146
+ "text": "Your health record",
147
+ "description": "Congratulations on taking the first step in your journey and deciding to make one of the best choices of your life.",
148
+ "url": "index.html",
149
+ "mobileOnly": false,
150
+ "target": ""
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ "text": "Full screen view",
156
+ "iconName": "",
157
+ "url": "/iframe.html?viewMode=story&id=3-components-navbar--default",
158
+ "alternativeColor": false,
159
+ "mobileOnly": false,
160
+ "hideLabel": false,
161
+ "target": ""
162
+ },
163
+ {
164
+ "text": "Overview view",
165
+ "iconName": "",
166
+ "url": "/?path=/docs/3-components-navbar--overview",
167
+ "alternativeColor": false,
168
+ "mobileOnly": false,
169
+ "hideLabel": false,
170
+ "target": ""
171
+ },
172
+ {
173
+ "text": "Mobile only",
174
+ "iconName": "",
175
+ "url": "index.html",
176
+ "alternativeColor": false,
177
+ "mobileOnly": true,
178
+ "hideLabel": false,
179
+ "target": ""
180
+ },
181
+ {
182
+ "text": "Mobile only with icon",
183
+ "iconName": "qld-icon-chart",
184
+ "url": "index.html",
185
+ "alternativeColor": false,
186
+ "mobileOnly": true,
187
+ "hideLabel": false,
188
+ "target": ""
189
+ }
190
+ ]
191
+ }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "customClass": "",
3
3
  "variantClass": "",
4
- "placeholder": "Search website",
5
4
  "inputID": "search",
6
5
  "inputName": "query",
7
6
  "buttonID": "search-button",
@@ -56,8 +55,8 @@
56
55
  ],
57
56
  "options": {
58
57
  "label": "Browse all categories",
59
- "view_more": false,
58
+ "view_more": true,
60
59
  "href": "/queenslanders"
61
60
  }
62
61
  }
63
- }
62
+ }
@@ -1,45 +1,46 @@
1
1
  {
2
- "type_variant": "section-tabs",
3
- "variant": "dark",
4
- "tab_variant": "default",
5
- "unique_id": "1234",
6
- "sibiling_section_title": "Heading (H2)",
7
- "sibling_section_content":"<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>",
8
- "data": {
9
- "items": [
10
- {
11
- "tab_text": "Tab label 1",
12
- "title": "Section Heading (H2)",
13
- "icon": "btn-icon fa-solid fa-arrow-up-right-from-square",
14
- "content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p><a class=\"qld-cta-link\" href=\"#\" target=\"_blank\" aria-label=\"Call to action\">Call to action<span class=\"icon\" aria-hidden=\"true\"></span></a>"
15
- },
16
- {
17
- "tab_text":"Tab label 2",
18
- "title": "Section Heading Item 2",
19
- "icon": "btn-icon fa-solid fa-arrow-up-right-from-square",
20
- "content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>"
21
- },
22
- {
23
- "tab_text": "Tab label 3",
24
- "title": "Section Heading Item 3",
25
- "content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>"
26
- },
27
- {
28
- "tab_text": "Tab label 4",
29
- "title": "Section Heading Item 4",
30
- "content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>",
31
- "disabled": true
32
- },
33
- {
34
- "tab_text": "Tab label 5",
35
- "title": "Section Heading Item 5",
36
- "content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>"
37
- },
38
- {
39
- "tab_text": "Tab label 6",
40
- "title": "Section Heading Item 6",
41
- "content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>"
42
- }
43
- ]
44
- }
45
- }
2
+ "type_variant": "section-tabs",
3
+ "variant": "dark",
4
+ "tab_variant": "default",
5
+ "unique_id": "1234",
6
+ "sibiling_section_title": "Heading (H2)",
7
+ "sibling_section_content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>",
8
+ "data": {
9
+ "items": [
10
+ {
11
+ "tab_text": "Tab label 1",
12
+ "title": "Section Heading (H2)",
13
+ "icon": "qld-icon qld-icon-md qld-icon-calendar",
14
+ "content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p><a class=\"qld-cta-link\" href=\"#\" target=\"_blank\" aria-label=\"Call to action\">Call to action<span class=\"icon\" aria-hidden=\"true\"></span></a>"
15
+ },
16
+ {
17
+ "tab_text": "Tab label 2",
18
+ "title": "Section Heading Item 2",
19
+ "icon": "qld-icon qld-icon-md qld-icon-calendar",
20
+ "content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>"
21
+ },
22
+ {
23
+ "tab_text": "Tab label 3",
24
+ "title": "Section Heading Item 3",
25
+ "icon": "qld-icon qld-icon-md qld-icon-calendar",
26
+ "content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>"
27
+ },
28
+ {
29
+ "tab_text": "Tab label 4",
30
+ "title": "Section Heading Item 4",
31
+ "content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>",
32
+ "disabled": true
33
+ },
34
+ {
35
+ "tab_text": "Tab label 5",
36
+ "title": "Section Heading Item 5",
37
+ "content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>"
38
+ },
39
+ {
40
+ "tab_text": "Tab label 6",
41
+ "title": "Section Heading Item 6",
42
+ "content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>"
43
+ }
44
+ ]
45
+ }
46
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qld-gov-au/qgds-bootstrap5",
3
- "version": "1.1.40",
3
+ "version": "2.0.0",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,7 +44,7 @@
44
44
  ],
45
45
  "dependencies": {
46
46
  "@fortawesome/fontawesome-free": "^6.6.0",
47
- "bootstrap": "^5.3.6",
47
+ "bootstrap": "^5.3.8",
48
48
  "material-symbols": "^0.31.7"
49
49
  },
50
50
  "devDependencies": {
@@ -1,9 +1,11 @@
1
- import { Canvas, Meta, Story } from "@storybook/blocks"
2
- import * as AccordionStories from "./accordion.stories"
1
+ import { Canvas, Meta, Story, Source } from "@storybook/blocks";
2
+ import * as AccordionStories from "./accordion.stories";
3
+ import defaultdata from "./accordion.data.json";
3
4
 
4
5
  <Meta of={AccordionStories} />
5
6
 
6
7
  # Accordion
8
+
7
9
  <Canvas>
8
10
  <Story of={AccordionStories.Default} />
9
11
  </Canvas>
@@ -14,3 +16,7 @@ import * as AccordionStories from "./accordion.stories"
14
16
  - [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
17
  - [Design System website](https://www.design-system.health.qld.gov.au/components/accordions)
16
18
  - [Bootstrap component](https://getbootstrap.com/docs/5.3/components/accordion/)
19
+
20
+ ## Example Component data
21
+
22
+ <Source language="json" code={JSON.stringify(defaultdata, null, 2)} />