@qld-gov-au/qgds-bootstrap5 2.0.5 → 2.0.7

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 (142) hide show
  1. package/.esbuild/plugins/qgds-plugin-build-log.js +2 -2
  2. package/.esbuild/plugins/qgds-plugin-copy-assets.js +0 -3
  3. package/.storybook/README.md +10 -0
  4. package/.storybook/dynamicThemeDecorator.js +28 -24
  5. package/.storybook/{main.js → main.mjs} +8 -7
  6. package/.storybook/modes.js +3 -12
  7. package/.storybook/preview.js +14 -11
  8. package/dist/assets/components/bs5/head/head.hbs +1 -1
  9. package/dist/assets/css/qld.bootstrap.css +1 -1
  10. package/dist/assets/css/qld.bootstrap.css.map +3 -3
  11. package/dist/assets/css/qld.bootstrap.legacy.css +2 -0
  12. package/dist/assets/css/qld.bootstrap.legacy.css.map +7 -0
  13. package/dist/assets/js/handlebars.init.min.js +1 -1
  14. package/dist/assets/js/handlebars.partials.js +2398 -136
  15. package/dist/assets/js/handlebars.partials.js.map +7 -0
  16. package/dist/assets/node/handlebars.init.min.js +1 -1
  17. package/dist/components/bs5/head/head.hbs +1 -1
  18. package/dist/package.json +25 -27
  19. package/dist/sample-data/correctincorrect/correctincorrect.data.json +1 -0
  20. package/dist/sample-data/tabs/tabs.data.json +1 -2
  21. package/dist/sample-data/typography/typography.data.json +1 -0
  22. package/esbuild.js +22 -5
  23. package/package.json +25 -27
  24. package/pom.xml +3 -3
  25. package/src/components/bs5/accordion/Accordion.mdx +1 -1
  26. package/src/components/bs5/accordion/accordion.scss +3 -3
  27. package/src/components/bs5/accordion/accordion.stories.js +17 -22
  28. package/src/components/bs5/backToTop/backToTop.mdx +1 -1
  29. package/src/components/bs5/banner/Banner.mdx +1 -1
  30. package/src/components/bs5/blockquote/Blockquote.mdx +1 -1
  31. package/src/components/bs5/blockquote/manifest.json +1 -0
  32. package/src/components/bs5/breadcrumbs/Breadcrumbs.mdx +1 -1
  33. package/src/components/bs5/breadcrumbs/breadcrumbs.stories.js +19 -10
  34. package/src/components/bs5/breadcrumbs/manifest.json +1 -0
  35. package/src/components/bs5/breadcumbsWrapper/manifest.json +1 -0
  36. package/src/components/bs5/button/Button.mdx +1 -1
  37. package/src/components/bs5/button/button.scss +25 -45
  38. package/src/components/bs5/button/manifest.json +1 -0
  39. package/src/components/bs5/callToAction/callToAction.mdx +1 -1
  40. package/src/components/bs5/callToAction/callToAction.stories.js +15 -50
  41. package/src/components/bs5/callout/Callout.mdx +1 -1
  42. package/src/components/bs5/callout/callout.stories.js +14 -39
  43. package/src/components/bs5/callout/manifest.json +1 -0
  44. package/src/components/bs5/card/Card.mdx +1 -1
  45. package/src/components/bs5/card/card.scss +5 -5
  46. package/src/components/bs5/card/manifest.json +1 -0
  47. package/src/components/bs5/contentFooter/manifest.json +1 -0
  48. package/src/components/bs5/contentFooterWrapper/manifest.json +1 -0
  49. package/src/components/bs5/contentWrapper/manifest.json +1 -0
  50. package/src/components/bs5/correctincorrect/correctincorrect.data.json +1 -0
  51. package/src/components/bs5/correctincorrect/manifest.json +1 -0
  52. package/src/components/bs5/dateinput/Dateinput.stories.js +23 -31
  53. package/src/components/bs5/dateinput/manifest.json +1 -0
  54. package/src/components/bs5/directionLinks/DirectionLinks.mdx +1 -1
  55. package/src/components/bs5/directionLinks/directionLinks.stories.js +14 -12
  56. package/src/components/bs5/footer/Footer.mdx +1 -1
  57. package/src/components/bs5/footer/footer.scss +3 -7
  58. package/src/components/bs5/formcheck/manifest.json +1 -0
  59. package/src/components/bs5/formcheck/stories/checkbox/Checkbox.mdx +1 -1
  60. package/src/components/bs5/formcheck/stories/checkbox/checkbox.stories.js +44 -87
  61. package/src/components/bs5/formcheck/stories/radio/Radio.mdx +1 -1
  62. package/src/components/bs5/formcheck/stories/radio/radio.stories.js +9 -36
  63. package/src/components/bs5/fullPageWrapper/manifest.json +1 -0
  64. package/src/components/bs5/globalAlert/GlobalAlert.mdx +1 -1
  65. package/src/components/bs5/globalAlert/globalAlert.test.js +3 -3
  66. package/src/components/bs5/globalAlert/manifest.json +1 -0
  67. package/src/components/bs5/head/manifest.json +1 -0
  68. package/src/components/bs5/header/Header.mdx +1 -1
  69. package/src/components/bs5/header/header.stories.js +1 -30
  70. package/src/components/bs5/header/manifest.json +1 -0
  71. package/src/components/bs5/icons/Icons.mdx +1 -1
  72. package/src/components/bs5/icons/manifest.json +1 -0
  73. package/src/components/bs5/icons/mdx/_IconsSizes.mdx +1 -1
  74. package/src/components/bs5/image/Image.mdx +1 -1
  75. package/src/components/bs5/inpageAlert/InpageAlert.mdx +1 -1
  76. package/src/components/bs5/inpageAlert/inpageAlert.stories.js +7 -23
  77. package/src/components/bs5/inpageAlert/manifest.json +1 -0
  78. package/src/components/bs5/inpagenav/Inpagenav.mdx +1 -1
  79. package/src/components/bs5/inpagenav/inpagenav.stories.js +4 -6
  80. package/src/components/bs5/inpagenav/manifest.json +1 -0
  81. package/src/components/bs5/link/link.mdx +1 -1
  82. package/src/components/bs5/link/link.stories.js +4 -6
  83. package/src/components/bs5/linkColumns/linkColumns.mdx +1 -1
  84. package/src/components/bs5/logo/Logo.mdx +1 -1
  85. package/src/components/bs5/mainContainerWrapper/manifest.json +1 -0
  86. package/src/components/bs5/metaDcTerms/manifest.json +1 -0
  87. package/src/components/bs5/metaOpenGraph/manifest.json +1 -0
  88. package/src/components/bs5/modal/Modal.mdx +1 -1
  89. package/src/components/bs5/modal/manifest.json +1 -0
  90. package/src/components/bs5/pagination/Pagination.mdx +1 -1
  91. package/src/components/bs5/pagination/manifest.json +1 -0
  92. package/src/components/bs5/pagination/pagination.scss +290 -274
  93. package/src/components/bs5/pagination/pagination.stories.js +22 -46
  94. package/src/components/bs5/promotionalPanel/PromotionalPanel.mdx +1 -1
  95. package/src/components/bs5/quickexit/manifest.json +1 -0
  96. package/src/components/bs5/searchInput/SearchInput.mdx +1 -1
  97. package/src/components/bs5/searchInput/manifest.json +1 -0
  98. package/src/components/bs5/searchInput/searchInput.stories.js +10 -12
  99. package/src/components/bs5/select/manifest.json +1 -0
  100. package/src/components/bs5/sidenav/Sidenav.mdx +1 -1
  101. package/src/components/bs5/sidenav/manifest.json +1 -0
  102. package/src/components/bs5/sidenav/sidenav.stories.js +4 -7
  103. package/src/components/bs5/sidenavWrapper/manifest.json +1 -0
  104. package/src/components/bs5/skiplinks/SkipLinks.mdx +1 -1
  105. package/src/components/bs5/spinner/manifest.json +1 -0
  106. package/src/components/bs5/table/Table.mdx +1 -1
  107. package/src/components/bs5/table/manifest.json +1 -0
  108. package/src/components/bs5/tabs/Tabs.mdx +1 -1
  109. package/src/components/bs5/tabs/tabs.data.json +1 -2
  110. package/src/components/bs5/tabs/tabs.stories.js +38 -215
  111. package/src/components/bs5/tag/Tag.mdx +1 -1
  112. package/src/components/bs5/tag/manifest.json +1 -0
  113. package/src/components/bs5/textarea/manifest.json +1 -0
  114. package/src/components/bs5/textbox/manifest.json +1 -0
  115. package/src/components/bs5/textbox/textInput.scss +55 -39
  116. package/src/components/bs5/typography/Typography.mdx +1 -1
  117. package/src/components/bs5/typography/manifest.json +1 -0
  118. package/src/components/bs5/typography/typography.data.json +1 -0
  119. package/src/components/bs5/typography/typography.stories.js +6 -24
  120. package/src/components/bs5/video/Video.mdx +1 -1
  121. package/src/components/bs5/video/manifest.json +1 -0
  122. package/src/components/bs5/video/video.scss +41 -27
  123. package/src/components/bs5/video/video.stories.js +6 -24
  124. package/src/css/main.legacy.scss +19 -0
  125. package/src/css/main.scss +17 -0
  126. package/src/css/qld-print.scss +426 -304
  127. package/src/css/qld-tokens-legacy.scss +94 -0
  128. package/src/css/qld-tokens.scss +92 -77
  129. package/src/css/qld-variables.scss +37 -30
  130. package/src/stories/Introduction.mdx +1 -1
  131. package/vite.config.js +17 -0
  132. package/.eslintrc.cjs +0 -52
  133. package/dist/assets/js/bootstrap.js +0 -6312
  134. package/dist/assets/js/handlebars.helpers.js +0 -292
  135. package/dist/assets/js/handlebars.init.cjs +0 -6
  136. package/dist/assets/js/handlebars.init.js +0 -34
  137. package/dist/components/handlebars.helpers.js +0 -292
  138. package/dist/components/handlebars.init.cjs +0 -6
  139. package/dist/components/handlebars.init.js +0 -34
  140. package/dist/components/handlebars.partials.js +0 -136
  141. package/src/css/main.masterbrand.scss +0 -137
  142. package/src/css/themes/masterbrand.scss +0 -109
@@ -35,7 +35,7 @@
35
35
 
36
36
  &:disabled {
37
37
  cursor: not-allowed;
38
- opacity: .5;
38
+ opacity: 0.5;
39
39
  }
40
40
  }
41
41
 
@@ -53,7 +53,7 @@
53
53
 
54
54
  &.field-required {
55
55
  &:before {
56
- content: ' *';
56
+ content: " *";
57
57
  }
58
58
  }
59
59
  }
@@ -64,10 +64,10 @@
64
64
  }
65
65
  }
66
66
 
67
- *+.qld-hint-text,
68
- *+.qld-input-error,
69
- *+.qld-input-success,
70
- *+.date-container {
67
+ * + .qld-hint-text,
68
+ * + .qld-input-error,
69
+ * + .qld-input-success,
70
+ * + .date-container {
71
71
  margin-top: 8px;
72
72
  }
73
73
 
@@ -79,10 +79,10 @@
79
79
  margin-bottom: 0.5rem;
80
80
  }
81
81
 
82
- *+p.qld-input-error,
83
- *+span.qld-input-error,
84
- *+p.qld-input-success,
85
- *+span.qld-input-success {
82
+ * + p.qld-input-error,
83
+ * + span.qld-input-error,
84
+ * + p.qld-input-success,
85
+ * + span.qld-input-success {
86
86
  font-size: 1rem;
87
87
  line-height: 1.5;
88
88
  display: flex;
@@ -119,25 +119,25 @@ span.qld-input-error {
119
119
  }
120
120
  }
121
121
 
122
- .qld-hint-text+select,
123
- .qld-hint-text+input,
124
- .qld-hint-text+textarea,
125
- .sq-form-question-note+select,
126
- .sq-form-question-note+input,
127
- .sq-form-question-note+textarea {
122
+ .qld-hint-text + select,
123
+ .qld-hint-text + input,
124
+ .qld-hint-text + textarea,
125
+ .sq-form-question-note + select,
126
+ .sq-form-question-note + input,
127
+ .sq-form-question-note + textarea {
128
128
  margin-top: 0.5rem;
129
129
  }
130
130
 
131
- .qld-input-success+input[type=text],
132
- .qld-input-error+input[type=text],
133
- .qld-input-success+input[type=email],
134
- .qld-input-error+input[type=email],
135
- .qld-input-success+input[type=date],
136
- .qld-input-error+input[type=date],
137
- .qld-input-success+.qld-text-input,
138
- .qld-input-error+.qld-text-input,
139
- .qld-input-success+textarea,
140
- .qld-input-error+textarea {
131
+ .qld-input-success + input[type="text"],
132
+ .qld-input-error + input[type="text"],
133
+ .qld-input-success + input[type="email"],
134
+ .qld-input-error + input[type="email"],
135
+ .qld-input-success + input[type="date"],
136
+ .qld-input-error + input[type="date"],
137
+ .qld-input-success + .qld-text-input,
138
+ .qld-input-error + .qld-text-input,
139
+ .qld-input-success + textarea,
140
+ .qld-input-error + textarea {
141
141
  margin-top: 8px;
142
142
  margin-top: 0.5rem;
143
143
  }
@@ -172,7 +172,9 @@ select.qld-select.qld-input-success:not(:focus) {
172
172
 
173
173
  &.disabled,
174
174
  &:disabled {
175
- background-color: var(--#{$prefix}color-default-color-light-background-default-shade);
175
+ background-color: var(
176
+ --#{$prefix}color-default-color-light-background-default-shade
177
+ );
176
178
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23636363' d='M4.251 181.1C7.392 177.7 11.69 175.1 16 175.1c3.891 0 7.781 1.406 10.86 4.25l197.1 181.1l197.1-181.1c6.5-6 16.64-5.625 22.61 .9062c6 6.5 5.594 16.59-.8906 22.59l-208 192c-6.156 5.688-15.56 5.688-21.72 0l-208-192C-1.343 197.7-1.749 187.6 4.251 181.1z'/%3E%3C/svg%3E");
177
179
  }
178
180
 
@@ -204,7 +206,6 @@ select.qld-select.qld-input-success:not(:focus) {
204
206
  }
205
207
 
206
208
  @include media-breakpoint-up(md) {
207
-
208
209
  input.qld-field-width-1-quarter,
209
210
  select.qld-field-width-1-quarter {
210
211
  max-width: $qld-fluid-width-1-quarter;
@@ -222,41 +223,56 @@ select.qld-select.qld-input-success:not(:focus) {
222
223
  }
223
224
 
224
225
  .dark {
225
- .form-control.qld-text-input:not(:hover):not(:focus):not(.qld-input-error):not(.qld-input-success)::-webkit-input-placeholder {
226
+ .form-control.qld-text-input:not(:hover):not(:focus):not(
227
+ .qld-input-error
228
+ ):not(.qld-input-success)::-webkit-input-placeholder {
226
229
  color: $qld-hint-text-color-muted;
227
230
  }
228
231
 
229
- .form-control.qld-text-input:not(:hover):not(:focus):not(.qld-input-error):not(.qld-input-success)::-moz-placeholder {
232
+ .form-control.qld-text-input:not(:hover):not(:focus):not(
233
+ .qld-input-error
234
+ ):not(.qld-input-success)::-moz-placeholder {
230
235
  color: $qld-hint-text-color-muted;
231
236
  }
232
237
 
233
- .form-control.qld-text-input:not(:hover):not(:focus):not(.qld-input-error):not(.qld-input-success)::-ms-placeholder {
238
+ .form-control.qld-text-input:not(:hover):not(:focus):not(
239
+ .qld-input-error
240
+ ):not(.qld-input-success)::-ms-placeholder {
234
241
  color: $qld-hint-text-color-muted;
235
242
  }
236
243
 
237
- .form-control.qld-text-input:not(:hover):not(:focus):not(.qld-input-error):not(.qld-input-success)::placeholder {
244
+ .form-control.qld-text-input:not(:hover):not(:focus):not(
245
+ .qld-input-error
246
+ ):not(.qld-input-success)::placeholder {
238
247
  color: $qld-hint-text-color-muted;
239
248
  }
240
249
 
241
- .form-control.qld-text-input:hover:not(:focus):not(.qld-input-error):not(.qld-input-success)::-webkit-input-placeholder {
250
+ .form-control.qld-text-input:hover:not(:focus):not(.qld-input-error):not(
251
+ .qld-input-success
252
+ )::-webkit-input-placeholder {
242
253
  color: $qld-white;
243
254
  }
244
255
 
245
- .form-control.qld-text-input:hover:not(:focus):not(.qld-input-error):not(.qld-input-success)::-moz-placeholder {
256
+ .form-control.qld-text-input:hover:not(:focus):not(.qld-input-error):not(
257
+ .qld-input-success
258
+ )::-moz-placeholder {
246
259
  color: $qld-white;
247
260
  }
248
261
 
249
- .form-control.qld-text-input:hover:not(:focus):not(.qld-input-error):not(.qld-input-success)::-ms-placeholder {
262
+ .form-control.qld-text-input:hover:not(:focus):not(.qld-input-error):not(
263
+ .qld-input-success
264
+ )::-ms-placeholder {
250
265
  color: $qld-white;
251
266
  }
252
267
 
253
- .form-control.qld-text-input:hover:not(:focus):not(.qld-input-error):not(.qld-input-success)::placeholder {
268
+ .form-control.qld-text-input:hover:not(:focus):not(.qld-input-error):not(
269
+ .qld-input-success
270
+ )::placeholder {
254
271
  color: $qld-white;
255
272
  }
256
273
  }
257
274
 
258
275
  .dark {
259
-
260
276
  .qld-text-input {
261
277
  border-color: $qld-dark-alt-border;
262
278
  background-color: var(--qld-dark-background);
@@ -265,7 +281,7 @@ select.qld-select.qld-input-success:not(:focus) {
265
281
  &:hover {
266
282
  color: $qld-white;
267
283
  background-color: $qld-color-dark-background--shade;
268
- border-color: $qld-color-dark-button-hover;
284
+ border-color: $color-default-color-dark-action-primary-hover;
269
285
  }
270
286
 
271
287
  &:focus {
@@ -293,4 +309,4 @@ select.qld-select.qld-input-success:not(:focus) {
293
309
  .form-style-filled {
294
310
  background-color: $qld-color-dark-background--shade;
295
311
  }
296
- }
312
+ }
@@ -1,4 +1,4 @@
1
- import { Canvas, Meta, Story } from "@storybook/blocks";
1
+ import { Canvas, Meta, Story } from "@storybook/addon-docs/blocks";
2
2
  import * as TypographyStories from "./typography.stories";
3
3
 
4
4
  <Meta of={TypographyStories} />
@@ -68,6 +68,8 @@ export default {
68
68
  url: "https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=23805-301553&mode=design&t=5REJ3QGtTW1K0fGT-4",
69
69
  },
70
70
  ],
71
+ backgrounds: { disable: false },
72
+ globals: { backgrounds: { value: "default" } },
71
73
  },
72
74
  };
73
75
 
@@ -80,12 +82,7 @@ export const Default = {};
80
82
  * Light colour Callout
81
83
  */
82
84
  export const Light = {
83
- parameters: {
84
- backgrounds: {
85
- default: "Light",
86
- values: [{ name: "Light", value: "var(--qld-light-background)" }],
87
- },
88
- },
85
+ globals: { backgrounds: { value: "light" } },
89
86
  decorators: [
90
87
  (Story) => {
91
88
  return `
@@ -103,12 +100,7 @@ export const Light = {
103
100
  * Alternative Callout
104
101
  */
105
102
  export const Alternative = {
106
- parameters: {
107
- backgrounds: {
108
- default: "Alternative",
109
- values: [{ name: "Alternative", value: "var(--qld-light-grey-alt)" }],
110
- },
111
- },
103
+ globals: { backgrounds: { value: "alt" } },
112
104
  decorators: [
113
105
  (Story) => {
114
106
  return `
@@ -126,12 +118,7 @@ export const Alternative = {
126
118
  * Dark Callout
127
119
  */
128
120
  export const Dark = {
129
- parameters: {
130
- backgrounds: {
131
- default: "Dark",
132
- values: [{ name: "Dark", value: "var(--qld-brand-primary)" }],
133
- },
134
- },
121
+ globals: { backgrounds: { value: "dark" } },
135
122
  decorators: [
136
123
  (Story) => {
137
124
  return `
@@ -149,12 +136,7 @@ export const Dark = {
149
136
  * Dark alternative Callout
150
137
  */
151
138
  export const DarkAlternative = {
152
- parameters: {
153
- backgrounds: {
154
- default: "Dark alternative",
155
- values: [{ name: "Dark alternative", value: "var(--qld-dark-blue)" }],
156
- },
157
- },
139
+ globals: { backgrounds: { value: "darkAlt" } },
158
140
  decorators: [
159
141
  (Story) => {
160
142
  return `
@@ -1,4 +1,4 @@
1
- import { Canvas, Meta, Story } from "@storybook/blocks";
1
+ import { Canvas, Meta, Story } from "@storybook/addon-docs/blocks";
2
2
  import * as VideoStories from "./video.stories";
3
3
 
4
4
  <Meta of={VideoStories} />
@@ -0,0 +1 @@
1
+ {}
@@ -1,6 +1,5 @@
1
1
  // QGDS QOL Video Component
2
2
 
3
-
4
3
  // Video variables.
5
4
 
6
5
  $video-icon-color: $qld-dark-text;
@@ -19,10 +18,10 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
19
18
  .video {
20
19
  --#{$prefix}video-border-radius: 0.25rem;
21
20
  --#{$prefix}video-nav-bg: var(--#{$prefix}light-action-primary);
22
- --#{$prefix}video-nav-bg-rgb: 9, 84, 159;
21
+ --#{$prefix}video-nav-bg-rgb: 0, 94, 184;
23
22
  --#{$prefix}video-nav-bg-hover: var(--#{$prefix}light-action-primary-hover);
24
- --#{$prefix}video-nav-bg-hover-rgb: 0, 62, 125;
25
- --#{$prefix}video-nav-bg-opacity: .9;
23
+ --#{$prefix}video-nav-bg-hover-rgb: 0, 62, 150;
24
+ --#{$prefix}video-nav-bg-opacity: 0.9;
26
25
  --#{$prefix}video-nav-color: var(--#{$prefix}dark-text);
27
26
  --#{$prefix}video-play-icon: #{escape-svg($video-play-icon)};
28
27
  --#{$prefix}video-play-icon-size: 2rem;
@@ -33,13 +32,12 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
33
32
  .dark &,
34
33
  .dark-alt & {
35
34
  --#{$prefix}video-nav-bg: var(--#{$prefix}dark-action-primary);
36
- --#{$prefix}video-nav-bg-rgb: 120, 186, 0;
35
+ --#{$prefix}video-nav-bg-rgb: 132, 211, 255;
37
36
  --#{$prefix}video-nav-bg-hover: var(--#{$prefix}dark-action-primary-hover);
38
- --#{$prefix}video-nav-bg-hover-rgb: 173, 211, 63;
37
+ --#{$prefix}video-nav-bg-hover-rgb: 166, 247, 255;
39
38
  --#{$prefix}video-nav-color: var(--#{$prefix}dark-action-text);
40
39
  --#{$prefix}video-play-icon: #{escape-svg($video-play-icon-dark)};
41
40
  --#{$prefix}video-clock-icon: #{escape-svg($video-clock-icon-dark)};
42
-
43
41
  }
44
42
  }
45
43
 
@@ -47,7 +45,9 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
47
45
  .video {
48
46
  padding: 0px;
49
47
  border-radius: var(--#{$prefix}video-border-radius);
50
- box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.15), 0px 1px 2px rgba(0, 0, 0, 0.3);
48
+ box-shadow:
49
+ 0px 2px 6px 2px rgba(0, 0, 0, 0.15),
50
+ 0px 1px 2px rgba(0, 0, 0, 0.3);
51
51
  display: grid;
52
52
  grid-template-rows: 1fr;
53
53
  grid-template-areas: "video" "description" "transcript";
@@ -63,7 +63,6 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
63
63
  outline: 3px solid var(--#{$prefix}focus);
64
64
  outline-offset: 2px;
65
65
  }
66
-
67
66
  }
68
67
 
69
68
  &-thumbnail,
@@ -77,8 +76,12 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
77
76
  width: 100%;
78
77
  overflow: clip;
79
78
  border: 0;
80
- -webkit-transition: opacity .25s ease-out, z-index .3s 0s ease-out;
81
- transition: opacity .25s ease-out, z-index .3s 0s ease-out;
79
+ -webkit-transition:
80
+ opacity 0.25s ease-out,
81
+ z-index 0.3s 0s ease-out;
82
+ transition:
83
+ opacity 0.25s ease-out,
84
+ z-index 0.3s 0s ease-out;
82
85
  }
83
86
 
84
87
  &-thumbnail {
@@ -94,17 +97,21 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
94
97
  left: 0;
95
98
  width: 100%;
96
99
  height: 100%;
97
- -webkit-transition: opacity .25s ease-in-out;
98
- transition: opacity .25s ease-in-out;
100
+ -webkit-transition: opacity 0.25s ease-in-out;
101
+ transition: opacity 0.25s ease-in-out;
99
102
  }
100
103
 
101
- &:hover, &:focus {
104
+ &:hover,
105
+ &:focus {
102
106
  &:before {
103
- opacity: .15;
107
+ opacity: 0.15;
104
108
  }
105
109
 
106
110
  .video-nav {
107
- background-color: rgba(var(--#{$prefix}video-nav-bg-hover-rgb), var(--#{$prefix}video-nav-bg-opacity));
111
+ background-color: rgba(
112
+ var(--#{$prefix}video-nav-bg-hover-rgb),
113
+ var(--#{$prefix}video-nav-bg-opacity)
114
+ );
108
115
 
109
116
  .video-watch {
110
117
  background-color: var(--#{$prefix}video-nav-bg-hover);
@@ -116,7 +123,7 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
116
123
 
117
124
  .video-thumbnail-image {
118
125
  &:before {
119
- opacity: .15;
126
+ opacity: 0.15;
120
127
  }
121
128
  }
122
129
  }
@@ -140,8 +147,8 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
140
147
  left: 0;
141
148
  width: 100%;
142
149
  height: 100%;
143
- -webkit-transition: opacity .25s ease-in-out;
144
- transition: opacity .25s ease-in-out;
150
+ -webkit-transition: opacity 0.25s ease-in-out;
151
+ transition: opacity 0.25s ease-in-out;
145
152
  }
146
153
  }
147
154
  }
@@ -179,7 +186,10 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
179
186
  display: flex;
180
187
  left: 0;
181
188
  bottom: 0;
182
- background-color: rgba(var(--#{$prefix}video-nav-bg-rgb), var(--#{$prefix}video-nav-bg-opacity));
189
+ background-color: rgba(
190
+ var(--#{$prefix}video-nav-bg-rgb),
191
+ var(--#{$prefix}video-nav-bg-opacity)
192
+ );
183
193
  border-top-right-radius: 0.75rem;
184
194
  overflow: clip;
185
195
  font-weight: 400;
@@ -188,8 +198,12 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
188
198
 
189
199
  &-nav,
190
200
  &-watch {
191
- -webkit-transition: background-color .25s ease-in-out, text-decoration-color .25s ease-in-out;
192
- transition: background-color .25s ease-in-out, text-decoration-color .25s ease-in-out;
201
+ -webkit-transition:
202
+ background-color 0.25s ease-in-out,
203
+ text-decoration-color 0.25s ease-in-out;
204
+ transition:
205
+ background-color 0.25s ease-in-out,
206
+ text-decoration-color 0.25s ease-in-out;
193
207
  }
194
208
 
195
209
  &-duration,
@@ -206,7 +220,7 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
206
220
  display: inline-block;
207
221
  vertical-align: middle;
208
222
  margin-left: -2rem;
209
- margin-right: .5rem;
223
+ margin-right: 0.5rem;
210
224
  }
211
225
  }
212
226
 
@@ -229,12 +243,12 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
229
243
  }
230
244
  }
231
245
 
232
-
233
-
234
246
  &-description {
235
247
  padding: 0.75rem 1rem;
236
248
  grid-area: description;
237
- p, ul, ol {
249
+ p,
250
+ ul,
251
+ ol {
238
252
  &:last-child {
239
253
  margin-bottom: 0;
240
254
  }
@@ -246,7 +260,7 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
246
260
  grid-area: transcript;
247
261
  &-item {
248
262
  &,
249
- &:last-of-type>.accordion-header .accordion-button.collapsed {
263
+ &:last-of-type > .accordion-header .accordion-button.collapsed {
250
264
  border-bottom-right-radius: var(--#{$prefix}video-border-radius);
251
265
  border-bottom-left-radius: var(--#{$prefix}video-border-radius);
252
266
  }
@@ -84,7 +84,9 @@ export default {
84
84
  controls: {
85
85
  exclude: ["transcriptAccordion"],
86
86
  },
87
+ backgrounds: { disable: false },
87
88
  },
89
+ globals: { backgrounds: { value: "default" } },
88
90
  };
89
91
 
90
92
  /**
@@ -110,12 +112,7 @@ export const Custom = {
110
112
  * Light colour Video
111
113
  */
112
114
  export const Light = {
113
- parameters: {
114
- backgrounds: {
115
- default: "Light",
116
- values: [{ name: "Light", value: "var(--qld-light-background)" }],
117
- },
118
- },
115
+ globals: { backgrounds: { value: "light" } },
119
116
  decorators: [
120
117
  (Story) => {
121
118
  return `
@@ -131,12 +128,7 @@ export const Light = {
131
128
  * Alternative Video
132
129
  */
133
130
  export const Alternative = {
134
- parameters: {
135
- backgrounds: {
136
- default: "Alternative",
137
- values: [{ name: "Alternative", value: "var(--qld-light-grey-alt)" }],
138
- },
139
- },
131
+ globals: { backgrounds: { value: "alt" } },
140
132
  decorators: [
141
133
  (Story) => {
142
134
  return `
@@ -152,12 +144,7 @@ export const Alternative = {
152
144
  * Dark Video
153
145
  */
154
146
  export const Dark = {
155
- parameters: {
156
- backgrounds: {
157
- default: "Dark",
158
- values: [{ name: "Dark", value: "var(--qld-brand-primary)" }],
159
- },
160
- },
147
+ globals: { backgrounds: { value: "dark" } },
161
148
  decorators: [
162
149
  (Story) => {
163
150
  return `
@@ -173,12 +160,7 @@ export const Dark = {
173
160
  * Dark alternative Video
174
161
  */
175
162
  export const DarkAlternative = {
176
- parameters: {
177
- backgrounds: {
178
- default: "Dark alternative",
179
- values: [{ name: "Dark alternative", value: "var(--qld-dark-blue)" }],
180
- },
181
- },
163
+ globals: { backgrounds: { value: "darkAlt" } },
182
164
  decorators: [
183
165
  (Story) => {
184
166
  return `
@@ -0,0 +1,19 @@
1
+ // Legacy Theme Entry Point
2
+ //
3
+ // This file compiles the stylesheet using the legacy (pre-October 2025) theme.
4
+ //
5
+ // It works by loading variables from `qld-tokens-legacy.scss` and creating a
6
+ // `$qld-tokens` SASS map. This map is then consumed by the main application
7
+ // (`main.scss`) to override the default theme tokens.
8
+
9
+ @use "sass:meta";
10
+
11
+ //Legacy Masterbrand "tokens" (Pre October 2025)
12
+ @use "./qld-tokens-legacy";
13
+ @import "./qld-tokens-legacy";
14
+
15
+ //Map to $qld-tokens sass map
16
+ $qld-tokens: meta.module-variables("qld-tokens-legacy");
17
+
18
+ // Continue with full main.scss entry file
19
+ @import "./main.scss";
package/src/css/main.scss CHANGED
@@ -1,5 +1,22 @@
1
1
  // Guidelines for this setup: https://getbootstrap.com/docs/5.3/customize/sass/
2
2
 
3
+ @use "sass:meta";
4
+
5
+ //
6
+ // Default Theme Token Setup
7
+ //
8
+ // This block establishes the default theme by creating a SASS map named `$qld-tokens`.
9
+ //
10
+ // 1. It loads variables from the default `qld-tokens.scss` file.
11
+ // 2. It converts these variables into the `$qld-tokens` map.
12
+ // 3. The `!default` flag is the core of the theming system: it allows an upstream
13
+ // entry point (e.g., `main.legacy.scss`) to define its own `$qld-tokens` map
14
+ // first, which will be used instead of these defaults.
15
+ //
16
+ @use "./qld-tokens";
17
+ @import "./qld-tokens";
18
+ $qld-tokens: meta.module-variables("qld-tokens") !default;
19
+
3
20
  // External fonts
4
21
  @import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;700&family=Noto+Sans:wght@400;600;900&display=swap");
5
22
  $font-family-sans-serif: