@qld-gov-au/qgds-bootstrap5 2.0.4 → 2.0.6
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/.esbuild/helpers/scssOverrideTheme.js +40 -0
- package/.esbuild/plugins/qgds-plugin-handlebar-partial-builder.js +4 -0
- package/.storybook/dynamicThemeDecorator.js +159 -0
- package/.storybook/main.js +8 -0
- package/.storybook/preview.js +19 -0
- package/README.md +26 -18
- package/dist/README.md +26 -18
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/css/qld.bootstrap.css +1 -1
- package/dist/assets/css/qld.bootstrap.css.map +3 -3
- package/dist/assets/css/qld.bootstrap.legacy.css +2 -0
- package/dist/assets/css/qld.bootstrap.legacy.css.map +7 -0
- package/dist/assets/js/handlebars.init.min.js +1 -1
- package/dist/assets/node/handlebars.init.min.js +1 -1
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/package.json +6 -2
- package/esbuild.js +40 -10
- package/package.json +6 -2
- package/src/components/bs5/accordion/accordion.scss +3 -3
- package/src/components/bs5/button/button.scss +25 -45
- package/src/components/bs5/callout/callout.stories.js +15 -21
- package/src/components/bs5/card/card--icon-list-footer.stories.js +171 -0
- package/src/components/bs5/card/card.scss +20 -5
- package/src/components/bs5/footer/footer.scss +3 -7
- package/src/components/bs5/header/header.scss +8 -0
- package/src/components/bs5/pageLayout/pageLayout.stories.js +2 -2
- package/src/components/bs5/pagination/pagination.scss +290 -274
- package/src/components/bs5/pagination/pagination.stories.js +18 -33
- package/src/components/bs5/searchInput/searchInput.test.js +21 -5
- package/src/components/bs5/textbox/textInput.scss +55 -39
- package/src/components/bs5/video/video.scss +41 -27
- package/src/css/main.legacy.scss +19 -0
- package/src/css/main.scss +17 -0
- package/src/css/qld-tokens-legacy.scss +94 -0
- package/src/css/qld-tokens.scss +110 -0
- package/src/css/qld-variables.scss +43 -29
- package/src/css/readme.md +6 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/* Master brand SASS variables that have changed to align with Brand Book release 2025 */
|
|
2
|
+
|
|
3
|
+
/* Dark palettes */
|
|
4
|
+
$color-default-color-dark-accent-design-accent: #84d3ff !default;
|
|
5
|
+
$color-default-color-dark-action-primary-hover: #a6f7ff !default;
|
|
6
|
+
$color-default-color-dark-action-primary: #84d3ff !default;
|
|
7
|
+
$color-default-color-dark-action-secondary-hover: #a6f7ff !default;
|
|
8
|
+
$color-default-color-dark-action-secondary: #84d3ff !default;
|
|
9
|
+
$color-default-color-dark-background-alt-shade: #000764 !default;
|
|
10
|
+
$color-default-color-dark-background-alt: #001d74 !default;
|
|
11
|
+
$color-default-color-dark-background-default-shade: #003e96 !default;
|
|
12
|
+
$color-default-color-dark-background-default: #005eb8 !default;
|
|
13
|
+
$color-default-color-dark-border-alt: #63b1ff !default;
|
|
14
|
+
$color-default-color-dark-border-default: #418fed !default;
|
|
15
|
+
$color-default-color-dark-crest-fill: #ffffff !default;
|
|
16
|
+
$color-default-color-dark-focus-default: #c6ffff !default;
|
|
17
|
+
$color-default-color-dark-link-default: #ffffff !default;
|
|
18
|
+
$color-default-color-dark-link-on-action: #001c37 !default;
|
|
19
|
+
$color-default-color-dark-link-visited: #e1bbee !default;
|
|
20
|
+
$color-default-color-dark-site-title: #ffffff !default;
|
|
21
|
+
$color-default-color-dark-text-default: #ffffff !default;
|
|
22
|
+
$color-default-color-dark-text-heading: #ffffff !default;
|
|
23
|
+
$color-default-color-dark-text-lighter: #deebf9 !default;
|
|
24
|
+
$color-default-color-dark-underline-default-hover: #ffffff !default;
|
|
25
|
+
$color-default-color-dark-underline-default: #b5cce2 !default;
|
|
26
|
+
$color-default-color-dark-underline-visited-hover: #e1bbee !default;
|
|
27
|
+
$color-default-color-dark-underline-visited: #e1c2ff !default;
|
|
28
|
+
|
|
29
|
+
/* Light palettes */
|
|
30
|
+
$color-default-color-light-accent-design-accent: #84d3ff !default;
|
|
31
|
+
$color-default-color-light-action-primary-hover: #003e96 !default;
|
|
32
|
+
$color-default-color-light-action-primary: #005eb8 !default;
|
|
33
|
+
$color-default-color-light-action-secondary-hover: #004ea7 !default;
|
|
34
|
+
$color-default-color-light-action-secondary: #307edb !default;
|
|
35
|
+
$color-default-color-light-background-alt-shade: #d6dce0 !default;
|
|
36
|
+
$color-default-color-light-background-alt: #e3e7ea !default;
|
|
37
|
+
$color-default-color-light-background-default-shade: #f5f5f5 !default;
|
|
38
|
+
$color-default-color-light-background-default: #ffffff !default;
|
|
39
|
+
$color-default-color-light-background-light-shade: #ceedff !default;
|
|
40
|
+
$color-default-color-light-background-light: #e6f6ff !default;
|
|
41
|
+
$color-default-color-light-border-alt: #848484 !default;
|
|
42
|
+
$color-default-color-light-border-default: #ebebeb !default;
|
|
43
|
+
$color-default-color-light-border-light: #bedfff !default;
|
|
44
|
+
$color-default-color-light-crest-fill: #005eb8 !default;
|
|
45
|
+
$color-default-color-light-focus-default: #002e85 !default;
|
|
46
|
+
$color-default-color-light-link-default: #005eb8 !default;
|
|
47
|
+
$color-default-color-light-link-on-action: #ffffff !default;
|
|
48
|
+
$color-default-color-light-link-visited: #551a8b !default;
|
|
49
|
+
$color-default-color-light-site-title: #005eb8 !default;
|
|
50
|
+
$color-default-color-light-text-default: #353535 !default;
|
|
51
|
+
$color-default-color-light-text-heading: #000053 !default;
|
|
52
|
+
$color-default-color-light-text-lighter: #636363 !default;
|
|
53
|
+
$color-default-color-light-underline-default-hover: #005eb8 !default;
|
|
54
|
+
$color-default-color-light-underline-default: #3f7ab4 !default;
|
|
55
|
+
$color-default-color-light-underline-visited-hover: #551a8b !default;
|
|
56
|
+
$color-default-color-light-underline-visited: #8b63b0 !default;
|
|
57
|
+
|
|
58
|
+
/* V1 brand colors */
|
|
59
|
+
$core-default-color-brand-other-gov-maroon: #771e32 !default;
|
|
60
|
+
$core-default-color-brand-other-modern-maroon: #a70240 !default;
|
|
61
|
+
$core-default-color-brand-primary-dark-blue: #05325f !default;
|
|
62
|
+
$core-default-color-brand-primary-light-blue: #0085b3 !default;
|
|
63
|
+
$core-default-color-brand-primary-light-green: #6bbe27 !default;
|
|
64
|
+
$core-default-color-brand-primary-sapphire-blue: #09549f !default;
|
|
65
|
+
$core-default-color-brand-secondary-darkgreen: #008635 !default;
|
|
66
|
+
$core-default-color-brand-secondary-golden-yellow: #ffe500 !default;
|
|
67
|
+
|
|
68
|
+
/* Code colors */
|
|
69
|
+
$core-default-color-code-green: #6bbe27 !default;
|
|
70
|
+
$core-default-color-code-light-blue: #a7e5ff !default;
|
|
71
|
+
$core-default-color-code-muted: #c0d7ec !default;
|
|
72
|
+
$core-default-color-code-violet: #c88df7 !default;
|
|
73
|
+
|
|
74
|
+
/* Neutral colors */
|
|
75
|
+
$core-default-color-neutral-black: #131212 !default;
|
|
76
|
+
$core-default-color-neutral-dark: #78797e !default;
|
|
77
|
+
$core-default-color-neutral-darker: #444444 !default;
|
|
78
|
+
$core-default-color-neutral-darkest: #222020 !default;
|
|
79
|
+
$core-default-color-neutral-light: #e0e0e0 !default;
|
|
80
|
+
$core-default-color-neutral-lighter: #ebebeb !default;
|
|
81
|
+
$core-default-color-neutral-lightest: #f5f5f5 !default;
|
|
82
|
+
$core-default-color-neutral-white: #ffffff !default;
|
|
83
|
+
|
|
84
|
+
/* Status colors */
|
|
85
|
+
$core-default-color-status-caution-darker: #b38800 !default;
|
|
86
|
+
$core-default-color-status-caution-default: #ffcc2c !default;
|
|
87
|
+
$core-default-color-status-caution-lighter: #fff2c9 !default;
|
|
88
|
+
$core-default-color-status-caution-lightest: #fffaea !default;
|
|
89
|
+
$core-default-color-status-error-darker: #8a1220 !default;
|
|
90
|
+
$core-default-color-status-error-default: #e22339 !default;
|
|
91
|
+
$core-default-color-status-error-lighter: #fdf0f0 !default;
|
|
92
|
+
$core-default-color-status-error-lightest: #fff6f6 !default;
|
|
93
|
+
$core-default-color-status-info-darker: #006a8f !default;
|
|
94
|
+
$core-default-color-status-info-default: #0085b3 !default;
|
|
95
|
+
$core-default-color-status-info-lighter: #e5eef5 !default;
|
|
96
|
+
$core-default-color-status-info-lightest: #eff4f9 !default;
|
|
97
|
+
$core-default-color-status-success-darker: #0a690d !default;
|
|
98
|
+
$core-default-color-status-success-default: #339d37 !default;
|
|
99
|
+
$core-default-color-status-success-lighter: #f2faf4 !default;
|
|
100
|
+
$core-default-color-status-success-lightest: #f7fbf8 !default;
|
|
101
|
+
$core-default-color-status-underline-dark: #03213fb8 !default;
|
|
102
|
+
$core-default-color-status-underline-light: #ffffffb8 !default;
|
|
103
|
+
|
|
104
|
+
/* Other for review */
|
|
105
|
+
$core-default-color-contained-layout-background-dark: #09549f !default;
|
|
106
|
+
$core-default-color-contained-layout-background: #09549f !default;
|
|
107
|
+
$core-default-color-contained-layout-background-dark: #005eb8 !default;
|
|
108
|
+
$core-default-color-contained-layout-background: #005eb8 !default;
|
|
109
|
+
$core-default-color-status-underline-dark: #03213f !default;
|
|
110
|
+
$core-default-color-status-underline-light: #ffffff !default;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
+
@use "sass:meta";
|
|
1
2
|
@use "mixins" as m;
|
|
2
3
|
|
|
3
|
-
// GLOBALLY SCOPED VARIABLES
|
|
4
|
-
// These variables are available to the full project and all components. (This file is included at the top of main.css to ensure this)
|
|
5
|
-
|
|
6
|
-
// These variables include new $variables for the project, or replace existing out-of-the-box bootstrap variables defined under /node_modules/bootstrap/.../_variables.css,
|
|
7
|
-
|
|
8
|
-
//QGDS tokens - masterbrand
|
|
9
|
-
@import "@qld-gov-au/qgds-tokens/dist/scss/_variables.scss";
|
|
10
|
-
@import "@qld-gov-au/qgds-tokens/dist/scss/_map.scss";
|
|
4
|
+
// GLOBALLY SCOPED VARIABLES defined via qld-tokens.scss sass map, imported at top of main.scss
|
|
11
5
|
|
|
12
6
|
//QLD Names Colours
|
|
13
7
|
$qld-dark-blue: $core-default-color-brand-primary-dark-blue;
|
|
@@ -33,16 +27,17 @@ $qld-light-border: $color-default-color-light-border-default;
|
|
|
33
27
|
$qld-light-border-alt: $color-default-color-light-border-alt;
|
|
34
28
|
$qld-dark-focus: $color-default-color-dark-focus-default;
|
|
35
29
|
$qld-light-focus: $color-default-color-light-focus-default;
|
|
30
|
+
|
|
36
31
|
////
|
|
37
32
|
$qld-link-underline: $color-default-color-light-underline-default;
|
|
38
33
|
$qld-link-underline-hover: $color-default-color-light-underline-default-hover;
|
|
39
34
|
$qld-link-underline-visited: $color-default-color-light-underline-visited;
|
|
40
35
|
$qld-link-underline-visited-hover: $color-default-color-light-underline-visited-hover;
|
|
41
|
-
|
|
42
36
|
$qld-link-underline-dark: $color-default-color-dark-underline-default;
|
|
43
37
|
$qld-link-underline-hover-dark: $color-default-color-dark-underline-default-hover;
|
|
44
38
|
$qld-link-underline-visited-dark: $color-default-color-dark-underline-visited;
|
|
45
39
|
$qld-link-underline-visited-hover-dark: $color-default-color-dark-underline-visited-hover;
|
|
40
|
+
|
|
46
41
|
///
|
|
47
42
|
$qld-link-visited: $color-default-color-light-underline-visited;
|
|
48
43
|
$qld-link-visited-dark: $color-default-color-dark-underline-visited;
|
|
@@ -56,12 +51,20 @@ $qld-light-yellow: $core-default-color-status-caution-lightest;
|
|
|
56
51
|
$qld-button-dark-blue: $color-default-color-light-action-primary-hover;
|
|
57
52
|
|
|
58
53
|
//QGOV Brand Mapping - QLD.GOV.AU
|
|
59
|
-
$qld-brand-primary-dark: $qld-dark-blue;
|
|
60
|
-
$qld-brand-primary: $qld-sapphire-blue;
|
|
61
|
-
$qld-brand-primary-light: $qld-light-blue;
|
|
62
|
-
$qld-brand-secondary-dark: $qld-dark-green;
|
|
63
|
-
$qld-brand-secondary: $qld-light-green;
|
|
64
|
-
$qld-brand-accent: $qld-golden-yellow;
|
|
54
|
+
// $qld-brand-primary-dark: $qld-dark-blue;
|
|
55
|
+
// $qld-brand-primary: $qld-sapphire-blue;
|
|
56
|
+
// $qld-brand-primary-light: $qld-light-blue;
|
|
57
|
+
// $qld-brand-secondary-dark: $qld-dark-green;
|
|
58
|
+
// $qld-brand-secondary: $qld-light-green;
|
|
59
|
+
// $qld-brand-accent: $qld-golden-yellow;
|
|
60
|
+
|
|
61
|
+
// Remapped legacy brand color values to align with correct UI Kit variables
|
|
62
|
+
$qld-brand-primary: $color-default-color-light-action-primary;
|
|
63
|
+
$qld-brand-primary-light: $color-default-color-light-action-primary;
|
|
64
|
+
$qld-brand-primary-dark: $color-default-color-dark-action-primary;
|
|
65
|
+
$qld-brand-secondary: $color-default-color-light-action-secondary;
|
|
66
|
+
$qld-brand-secondary-dark: $color-default-color-dark-action-secondary;
|
|
67
|
+
$qld-brand-accent: $color-default-color-light-accent-design-accent;
|
|
65
68
|
|
|
66
69
|
// Resolves @qgds-tokens V1 gap between (_variables.scss and _map.scss).
|
|
67
70
|
// Nuetrals were dropped from _variables.scss, but retained in _map.scss.
|
|
@@ -79,8 +82,12 @@ $qld-system-darkest: $core-default-color-neutral-darkest;
|
|
|
79
82
|
$qld-dark-grey: $core-default-color-neutral-darker;
|
|
80
83
|
$qld-medium-grey: $core-default-color-neutral-dark;
|
|
81
84
|
$qld-alt-grey: $core-default-color-neutral-light;
|
|
85
|
+
|
|
86
|
+
//Links
|
|
82
87
|
$qld-light-link: $color-default-color-light-link-default;
|
|
83
88
|
$qld-dark-link: $color-default-color-dark-link-default;
|
|
89
|
+
$qld-light-link-on-action: $color-default-color-light-link-on-action;
|
|
90
|
+
$qld-dark-link-on-action: $color-default-color-dark-link-on-action;
|
|
84
91
|
|
|
85
92
|
//Should be core color rather than second hand reference (no match)
|
|
86
93
|
$qld-soft-grey: $color-default-color-light-border-alt; //todo, replace soft-greys across the system with the below color
|
|
@@ -89,7 +96,7 @@ $qld-dark-grey-muted: $color-default-color-light-text-lighter;
|
|
|
89
96
|
$qld-text-grey: $color-default-color-light-text-default;
|
|
90
97
|
$qld-hint-text-color: $color-default-color-light-text-lighter;
|
|
91
98
|
$qld-hint-text-color-muted: $color-default-color-dark-text-lighter;
|
|
92
|
-
|
|
99
|
+
|
|
93
100
|
$qld-text-headings: $color-default-color-light-text-heading;
|
|
94
101
|
$qld-grey: $core-default-color-neutral-light;
|
|
95
102
|
$qld-light-grey: $core-default-color-neutral-lighter;
|
|
@@ -120,19 +127,19 @@ $qld-color-light-background--shade: $color-default-color-light-background-light-
|
|
|
120
127
|
$qld-color-light-alt-background: $color-default-color-light-background-alt;
|
|
121
128
|
$qld-color-light-alt-background--shade: $color-default-color-light-background-alt-shade;
|
|
122
129
|
|
|
123
|
-
$qld-color-dark-background: $
|
|
130
|
+
$qld-color-dark-background: $color-default-color-dark-background-default;
|
|
124
131
|
$qld-color-dark-background--shade: $color-default-color-dark-background-default-shade;
|
|
125
|
-
$qld-color-dark-alt-background: $
|
|
132
|
+
$qld-color-dark-alt-background: $color-default-color-dark-background-alt;
|
|
126
133
|
$qld-color-dark-alt-background--shade: $color-default-color-dark-background-alt-shade;
|
|
127
134
|
|
|
128
|
-
$qld-light-action-primary: $
|
|
135
|
+
$qld-light-action-primary: $color-default-color-light-action-primary;
|
|
129
136
|
$qld-light-action-primary-hover: $color-default-color-light-action-primary-hover;
|
|
130
137
|
$qld-light-action-secondary: $color-default-color-light-action-secondary;
|
|
131
138
|
$qld-light-action-secondary-hover: $color-default-color-light-action-secondary-hover;
|
|
132
139
|
|
|
133
140
|
$qld-dark-action-primary: $color-default-color-dark-action-primary;
|
|
134
141
|
$qld-dark-action-primary-hover: $color-default-color-dark-action-primary-hover;
|
|
135
|
-
$qld-dark-action-secondary: $
|
|
142
|
+
$qld-dark-action-secondary: $color-default-color-dark-action-secondary;
|
|
136
143
|
$qld-dark-action-secondary-hover: $color-default-color-dark-action-secondary-hover;
|
|
137
144
|
$qld-dark-action-text: $color-default-color-dark-link-on-action;
|
|
138
145
|
|
|
@@ -158,6 +165,7 @@ $color-default-color-dark-underline-default-hover: #ffffff;
|
|
|
158
165
|
// These will NOT create utility classes, only CSS variables on :root
|
|
159
166
|
// Available as var(--qld-[color-name])
|
|
160
167
|
|
|
168
|
+
// DO NOT override the variables inside the object
|
|
161
169
|
$project-colors: (
|
|
162
170
|
"brand-primary-dark": $qld-brand-primary-dark,
|
|
163
171
|
"brand-primary": $qld-brand-primary,
|
|
@@ -226,6 +234,8 @@ $project-colors: (
|
|
|
226
234
|
//Links
|
|
227
235
|
"light-link": $color-default-color-light-link-default,
|
|
228
236
|
"dark-link": $color-default-color-dark-link-default,
|
|
237
|
+
"light-link-on-action": $color-default-color-light-link-on-action,
|
|
238
|
+
"dark-link-on-action": $color-default-color-dark-link-on-action,
|
|
229
239
|
|
|
230
240
|
"link-visited": $qld-link-visited,
|
|
231
241
|
"link-visited-dark": $qld-link-visited-dark,
|
|
@@ -277,11 +287,19 @@ $project-colors: (
|
|
|
277
287
|
$color-default-color-dark-underline-default-hover,
|
|
278
288
|
);
|
|
279
289
|
|
|
290
|
+
// Generate CSS custom properties for qld-tokens & project colours on :root to prevent utility class generation
|
|
291
|
+
:root {
|
|
292
|
+
@include m.generate-color-vars($qld-tokens);
|
|
293
|
+
@include m.generate-color-vars($project-colors);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
// These variables replace existing out-of-the-box bootstrap variables defined under /node_modules/bootstrap/.../_variables.css`
|
|
297
|
+
|
|
280
298
|
$project-base-colors: (
|
|
281
299
|
//Legacy color based variables - to review
|
|
282
|
-
"primary": $
|
|
283
|
-
"primary-dark": $
|
|
284
|
-
"secondary": $
|
|
300
|
+
"primary": $color-default-color-light-action-primary,
|
|
301
|
+
"primary-dark": $color-default-color-dark-action-primary,
|
|
302
|
+
"secondary": $color-default-color-light-action-secondary,
|
|
285
303
|
"success": $qld-notify-success,
|
|
286
304
|
"info": $qld-notify-information,
|
|
287
305
|
"warning": $qld-notify-alert,
|
|
@@ -304,14 +322,9 @@ $project-base-colors: (
|
|
|
304
322
|
"dark-hover": $qld-dark-hover
|
|
305
323
|
);
|
|
306
324
|
|
|
307
|
-
// Generate CSS custom properties for qld-tokens & project colours on :root to prevent utility class generation
|
|
308
|
-
:root {
|
|
309
|
-
@include m.generate-color-vars($qld-tokens);
|
|
310
|
-
@include m.generate-color-vars($project-colors);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
325
|
$theme-colors: map-merge($theme-colors, $project-base-colors);
|
|
314
326
|
|
|
327
|
+
// DO NOT override the variables which is predefined in bootstrap;
|
|
315
328
|
// Cusotm GRID breakpoints: https://getbootstrap.com/docs/5.2/layout/grid/#variables
|
|
316
329
|
$grid-breakpoints: (
|
|
317
330
|
xs: 0,
|
|
@@ -339,6 +352,7 @@ $qld-border-width-medium: 3px;
|
|
|
339
352
|
$qld-border-width-thick: 4px;
|
|
340
353
|
$qld-border-width-extra-thick: 8px;
|
|
341
354
|
|
|
355
|
+
// DO NOT override the variables which is predefined in bootstrap;
|
|
342
356
|
// Extended spacers to procude 8px and 16px increments
|
|
343
357
|
// use px-16, py-sm-16, ml-40, mr-40, etc
|
|
344
358
|
$qld-custom-spacers: (
|
package/src/css/readme.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
This is the scss folder, that is converted to css for dist.
|
|
2
2
|
|
|
3
|
-
To match pathing the folder is 'css' even though it should be 'scss'.
|
|
3
|
+
To match pathing the folder is 'css' even though it should be 'scss'.
|
|
4
|
+
|
|
5
|
+
`/themes/qld-variables-theme.scss` is the additional variables file with the overriding theme palette or css variables. This would impact the main.scss to be bundled as a separate css output
|
|
6
|
+
|
|
7
|
+
DO NOT override the variables inside the object;
|
|
8
|
+
DO NOT override the variables which is predefined in bootstrap;
|