@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.
- package/.esbuild/plugins/qgds-plugin-build-log.js +2 -2
- package/.esbuild/plugins/qgds-plugin-copy-assets.js +0 -3
- package/.storybook/README.md +10 -0
- package/.storybook/dynamicThemeDecorator.js +28 -24
- package/.storybook/{main.js → main.mjs} +8 -7
- package/.storybook/modes.js +3 -12
- package/.storybook/preview.js +14 -11
- 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/js/handlebars.partials.js +2398 -136
- package/dist/assets/js/handlebars.partials.js.map +7 -0
- package/dist/assets/node/handlebars.init.min.js +1 -1
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/package.json +25 -27
- package/dist/sample-data/correctincorrect/correctincorrect.data.json +1 -0
- package/dist/sample-data/tabs/tabs.data.json +1 -2
- package/dist/sample-data/typography/typography.data.json +1 -0
- package/esbuild.js +22 -5
- package/package.json +25 -27
- package/pom.xml +3 -3
- package/src/components/bs5/accordion/Accordion.mdx +1 -1
- package/src/components/bs5/accordion/accordion.scss +3 -3
- package/src/components/bs5/accordion/accordion.stories.js +17 -22
- package/src/components/bs5/backToTop/backToTop.mdx +1 -1
- package/src/components/bs5/banner/Banner.mdx +1 -1
- package/src/components/bs5/blockquote/Blockquote.mdx +1 -1
- package/src/components/bs5/blockquote/manifest.json +1 -0
- package/src/components/bs5/breadcrumbs/Breadcrumbs.mdx +1 -1
- package/src/components/bs5/breadcrumbs/breadcrumbs.stories.js +19 -10
- package/src/components/bs5/breadcrumbs/manifest.json +1 -0
- package/src/components/bs5/breadcumbsWrapper/manifest.json +1 -0
- package/src/components/bs5/button/Button.mdx +1 -1
- package/src/components/bs5/button/button.scss +25 -45
- package/src/components/bs5/button/manifest.json +1 -0
- package/src/components/bs5/callToAction/callToAction.mdx +1 -1
- package/src/components/bs5/callToAction/callToAction.stories.js +15 -50
- package/src/components/bs5/callout/Callout.mdx +1 -1
- package/src/components/bs5/callout/callout.stories.js +14 -39
- package/src/components/bs5/callout/manifest.json +1 -0
- package/src/components/bs5/card/Card.mdx +1 -1
- package/src/components/bs5/card/card.scss +5 -5
- package/src/components/bs5/card/manifest.json +1 -0
- package/src/components/bs5/contentFooter/manifest.json +1 -0
- package/src/components/bs5/contentFooterWrapper/manifest.json +1 -0
- package/src/components/bs5/contentWrapper/manifest.json +1 -0
- package/src/components/bs5/correctincorrect/correctincorrect.data.json +1 -0
- package/src/components/bs5/correctincorrect/manifest.json +1 -0
- package/src/components/bs5/dateinput/Dateinput.stories.js +23 -31
- package/src/components/bs5/dateinput/manifest.json +1 -0
- package/src/components/bs5/directionLinks/DirectionLinks.mdx +1 -1
- package/src/components/bs5/directionLinks/directionLinks.stories.js +14 -12
- package/src/components/bs5/footer/Footer.mdx +1 -1
- package/src/components/bs5/footer/footer.scss +3 -7
- package/src/components/bs5/formcheck/manifest.json +1 -0
- package/src/components/bs5/formcheck/stories/checkbox/Checkbox.mdx +1 -1
- package/src/components/bs5/formcheck/stories/checkbox/checkbox.stories.js +44 -87
- package/src/components/bs5/formcheck/stories/radio/Radio.mdx +1 -1
- package/src/components/bs5/formcheck/stories/radio/radio.stories.js +9 -36
- package/src/components/bs5/fullPageWrapper/manifest.json +1 -0
- package/src/components/bs5/globalAlert/GlobalAlert.mdx +1 -1
- package/src/components/bs5/globalAlert/globalAlert.test.js +3 -3
- package/src/components/bs5/globalAlert/manifest.json +1 -0
- package/src/components/bs5/head/manifest.json +1 -0
- package/src/components/bs5/header/Header.mdx +1 -1
- package/src/components/bs5/header/header.stories.js +1 -30
- package/src/components/bs5/header/manifest.json +1 -0
- package/src/components/bs5/icons/Icons.mdx +1 -1
- package/src/components/bs5/icons/manifest.json +1 -0
- package/src/components/bs5/icons/mdx/_IconsSizes.mdx +1 -1
- package/src/components/bs5/image/Image.mdx +1 -1
- package/src/components/bs5/inpageAlert/InpageAlert.mdx +1 -1
- package/src/components/bs5/inpageAlert/inpageAlert.stories.js +7 -23
- package/src/components/bs5/inpageAlert/manifest.json +1 -0
- package/src/components/bs5/inpagenav/Inpagenav.mdx +1 -1
- package/src/components/bs5/inpagenav/inpagenav.stories.js +4 -6
- package/src/components/bs5/inpagenav/manifest.json +1 -0
- package/src/components/bs5/link/link.mdx +1 -1
- package/src/components/bs5/link/link.stories.js +4 -6
- package/src/components/bs5/linkColumns/linkColumns.mdx +1 -1
- package/src/components/bs5/logo/Logo.mdx +1 -1
- package/src/components/bs5/mainContainerWrapper/manifest.json +1 -0
- package/src/components/bs5/metaDcTerms/manifest.json +1 -0
- package/src/components/bs5/metaOpenGraph/manifest.json +1 -0
- package/src/components/bs5/modal/Modal.mdx +1 -1
- package/src/components/bs5/modal/manifest.json +1 -0
- package/src/components/bs5/pagination/Pagination.mdx +1 -1
- package/src/components/bs5/pagination/manifest.json +1 -0
- package/src/components/bs5/pagination/pagination.scss +290 -274
- package/src/components/bs5/pagination/pagination.stories.js +22 -46
- package/src/components/bs5/promotionalPanel/PromotionalPanel.mdx +1 -1
- package/src/components/bs5/quickexit/manifest.json +1 -0
- package/src/components/bs5/searchInput/SearchInput.mdx +1 -1
- package/src/components/bs5/searchInput/manifest.json +1 -0
- package/src/components/bs5/searchInput/searchInput.stories.js +10 -12
- package/src/components/bs5/select/manifest.json +1 -0
- package/src/components/bs5/sidenav/Sidenav.mdx +1 -1
- package/src/components/bs5/sidenav/manifest.json +1 -0
- package/src/components/bs5/sidenav/sidenav.stories.js +4 -7
- package/src/components/bs5/sidenavWrapper/manifest.json +1 -0
- package/src/components/bs5/skiplinks/SkipLinks.mdx +1 -1
- package/src/components/bs5/spinner/manifest.json +1 -0
- package/src/components/bs5/table/Table.mdx +1 -1
- package/src/components/bs5/table/manifest.json +1 -0
- package/src/components/bs5/tabs/Tabs.mdx +1 -1
- package/src/components/bs5/tabs/tabs.data.json +1 -2
- package/src/components/bs5/tabs/tabs.stories.js +38 -215
- package/src/components/bs5/tag/Tag.mdx +1 -1
- package/src/components/bs5/tag/manifest.json +1 -0
- package/src/components/bs5/textarea/manifest.json +1 -0
- package/src/components/bs5/textbox/manifest.json +1 -0
- package/src/components/bs5/textbox/textInput.scss +55 -39
- package/src/components/bs5/typography/Typography.mdx +1 -1
- package/src/components/bs5/typography/manifest.json +1 -0
- package/src/components/bs5/typography/typography.data.json +1 -0
- package/src/components/bs5/typography/typography.stories.js +6 -24
- package/src/components/bs5/video/Video.mdx +1 -1
- package/src/components/bs5/video/manifest.json +1 -0
- package/src/components/bs5/video/video.scss +41 -27
- package/src/components/bs5/video/video.stories.js +6 -24
- package/src/css/main.legacy.scss +19 -0
- package/src/css/main.scss +17 -0
- package/src/css/qld-print.scss +426 -304
- package/src/css/qld-tokens-legacy.scss +94 -0
- package/src/css/qld-tokens.scss +92 -77
- package/src/css/qld-variables.scss +37 -30
- package/src/stories/Introduction.mdx +1 -1
- package/vite.config.js +17 -0
- package/.eslintrc.cjs +0 -52
- package/dist/assets/js/bootstrap.js +0 -6312
- package/dist/assets/js/handlebars.helpers.js +0 -292
- package/dist/assets/js/handlebars.init.cjs +0 -6
- package/dist/assets/js/handlebars.init.js +0 -34
- package/dist/components/handlebars.helpers.js +0 -292
- package/dist/components/handlebars.init.cjs +0 -6
- package/dist/components/handlebars.init.js +0 -34
- package/dist/components/handlebars.partials.js +0 -136
- package/src/css/main.masterbrand.scss +0 -137
- package/src/css/themes/masterbrand.scss +0 -109
|
@@ -18,20 +18,16 @@
|
|
|
18
18
|
//Primary button variant
|
|
19
19
|
&-primary {
|
|
20
20
|
--#{$prefix}btn-bg: var(--#{$prefix}light-action-primary);
|
|
21
|
-
--#{$prefix}btn-hover-bg: var(
|
|
22
|
-
--#{$prefix}color-default-color-light-action-primary-hover
|
|
23
|
-
);
|
|
21
|
+
--#{$prefix}btn-hover-bg: var(--#{$prefix}light-action-primary-hover);
|
|
24
22
|
--#{$prefix}btn-active-bg: var(--#{$prefix}extra-light-grey);
|
|
25
23
|
--#{$prefix}btn-active-color: var(--#{$prefix}light-text-heading);
|
|
26
24
|
--#{$prefix}btn-disabled-bg: var(--#{$prefix}grey);
|
|
27
25
|
--#{$prefix}btn-disabled-color: var(--#{$prefix}dark-grey-muted);
|
|
28
26
|
--#{$prefix}btn-disabled-opacity: 1;
|
|
29
27
|
--#{$prefix}btn-disabled-border-color: transparent;
|
|
30
|
-
--#{$prefix}btn-focus-bg: var(
|
|
31
|
-
--#{$prefix}color-default-color-light-action-primary-hover
|
|
32
|
-
);
|
|
28
|
+
--#{$prefix}btn-focus-bg: var(--#{$prefix}light-action-primary-hover);
|
|
33
29
|
--#{$prefix}btn-focus-border-color: var(
|
|
34
|
-
--#{$prefix}
|
|
30
|
+
--#{$prefix}light-action-primary-hover
|
|
35
31
|
);
|
|
36
32
|
--#{$prefix}icon-color: currentColor;
|
|
37
33
|
--#{$prefix}icon-hover-color: currentColor;
|
|
@@ -41,12 +37,12 @@
|
|
|
41
37
|
&-outline-secondary {
|
|
42
38
|
--#{$prefix}btn-bg: transparent;
|
|
43
39
|
--#{$prefix}btn-color: var(--#{$prefix}light-action-primary);
|
|
44
|
-
--#{$prefix}btn-border-color: var(--#{$prefix}
|
|
45
|
-
--#{$prefix}btn-hover-color: var(--#{$prefix}light-action-primary);
|
|
46
|
-
--#{$prefix}btn-hover-bg: transparent;
|
|
40
|
+
--#{$prefix}btn-border-color: var(--#{$prefix}light-action-secondary);
|
|
47
41
|
--#{$prefix}btn-hover-border-color: var(
|
|
48
|
-
--#{$prefix}
|
|
42
|
+
--#{$prefix}light-action-secondary-hover
|
|
49
43
|
);
|
|
44
|
+
--#{$prefix}btn-hover-color: var(--#{$prefix}light-action-primary);
|
|
45
|
+
--#{$prefix}btn-hover-bg: transparent;
|
|
50
46
|
--#{$prefix}btn-active-color: var(--#{$prefix}light-text-heading);
|
|
51
47
|
--#{$prefix}btn-active-bg: var(--#{$prefix}extra-light-grey);
|
|
52
48
|
--#{$prefix}btn-active-border-color: var(--#{$prefix}extra-light-grey);
|
|
@@ -57,7 +53,7 @@
|
|
|
57
53
|
--#{$prefix}btn-disabled-border-color: var(--#{$prefix}grey);
|
|
58
54
|
--#{$prefix}gradient: none;
|
|
59
55
|
--#{$prefix}btn-focus-border-color: var(
|
|
60
|
-
--#{$prefix}
|
|
56
|
+
--#{$prefix}light-action-secondary-hover
|
|
61
57
|
);
|
|
62
58
|
}
|
|
63
59
|
|
|
@@ -83,40 +79,32 @@
|
|
|
83
79
|
.dark-alt .btn {
|
|
84
80
|
//Primary button variant (dark mode)
|
|
85
81
|
&-primary {
|
|
86
|
-
--#{$prefix}btn-bg: var(--#{$prefix}dark-
|
|
87
|
-
--#{$prefix}btn-border-color: var(--#{$prefix}dark-
|
|
82
|
+
--#{$prefix}btn-bg: var(--#{$prefix}dark-action-secondary);
|
|
83
|
+
--#{$prefix}btn-border-color: var(--#{$prefix}dark-action-secondary);
|
|
88
84
|
--#{$prefix}btn-color: var(--#{$prefix}text-darkest);
|
|
89
85
|
--#{$prefix}btn-hover-color: var(--#{$prefix}text-darkest);
|
|
90
|
-
--#{$prefix}btn-hover-bg: var(
|
|
91
|
-
--#{$prefix}color-default-color-dark-action-primary-hover
|
|
92
|
-
);
|
|
86
|
+
--#{$prefix}btn-hover-bg: var(--#{$prefix}dark-action-primary-hover);
|
|
93
87
|
--#{$prefix}btn-hover-border-color: var(
|
|
94
|
-
--#{$prefix}
|
|
88
|
+
--#{$prefix}dark-action-primary-hover
|
|
95
89
|
);
|
|
96
90
|
--#{$prefix}btn-active-color: var(--#{$prefix}light-text-heading);
|
|
97
91
|
--#{$prefix}btn-active-bg: var(--#{$prefix}extra-light-grey);
|
|
98
92
|
--#{$prefix}btn-disabled-bg: rgba(224, 224, 224, 0.1);
|
|
99
|
-
--#{$prefix}btn-disabled-color: var(
|
|
100
|
-
--#{$prefix}color-default-color-dark-text-lighter
|
|
101
|
-
);
|
|
93
|
+
--#{$prefix}btn-disabled-color: var(--#{$prefix}dark-text-lighter);
|
|
102
94
|
--#{$prefix}btn-disabled-border-color: transparent;
|
|
103
|
-
--#{$prefix}btn-focus-bg: var(
|
|
104
|
-
--#{$prefix}color-default-color-dark-action-primary-hover
|
|
105
|
-
);
|
|
95
|
+
--#{$prefix}btn-focus-bg: var(--#{$prefix}dark-action-primary-hover);
|
|
106
96
|
--#{$prefix}btn-focus-border-color: var(
|
|
107
|
-
--#{$prefix}
|
|
97
|
+
--#{$prefix}dark-action-primary-hover
|
|
108
98
|
);
|
|
109
99
|
}
|
|
110
100
|
|
|
111
101
|
//Secondary button variant (dark mode)
|
|
112
102
|
&-secondary,
|
|
113
103
|
&-outline-secondary {
|
|
114
|
-
--#{$prefix}btn-border-color: var(
|
|
115
|
-
--#{$prefix}color-default-color-dark-action-secondary
|
|
116
|
-
);
|
|
104
|
+
--#{$prefix}btn-border-color: var(--#{$prefix}dark-action-secondary);
|
|
117
105
|
--#{$prefix}btn-color: var(--#{$prefix}white);
|
|
118
106
|
--#{$prefix}btn-hover-border-color: var(
|
|
119
|
-
--#{$prefix}
|
|
107
|
+
--#{$prefix}dark-action-secondary-hover
|
|
120
108
|
);
|
|
121
109
|
--#{$prefix}btn-hover-bg: transparent;
|
|
122
110
|
--#{$prefix}btn-hover-color: var(--#{$prefix}white);
|
|
@@ -124,13 +112,11 @@
|
|
|
124
112
|
--#{$prefix}btn-active-border-color: var(--#{$prefix}extra-light-grey);
|
|
125
113
|
--#{$prefix}btn-active-color: var(--#{$prefix}light-text-heading);
|
|
126
114
|
--#{$prefix}btn-disabled-bg: transparent;
|
|
127
|
-
--#{$prefix}btn-disabled-color: var(
|
|
128
|
-
--#{$prefix}color-default-color-dark-text-lighter
|
|
129
|
-
);
|
|
115
|
+
--#{$prefix}btn-disabled-color: var(--#{$prefix}dark-text-lighter);
|
|
130
116
|
--#{$prefix}btn-disabled-border-color: rgba(224, 224, 224, 0.1);
|
|
131
117
|
--#{$prefix}btn-focus-bg: transparent;
|
|
132
118
|
--#{$prefix}btn-focus-border-color: var(
|
|
133
|
-
--#{$prefix}
|
|
119
|
+
--#{$prefix}dark-action-secondary-hover
|
|
134
120
|
);
|
|
135
121
|
}
|
|
136
122
|
|
|
@@ -145,9 +131,7 @@
|
|
|
145
131
|
--#{$prefix}btn-active-color: var(--#{$prefix}white);
|
|
146
132
|
--#{$prefix}btn-focus-bg: var(--#{$prefix}dark-background-shade);
|
|
147
133
|
--#{$prefix}btn-disabled-bg: transparent;
|
|
148
|
-
--#{$prefix}btn-disabled-color: var(
|
|
149
|
-
--#{$prefix}color-default-color-dark-text-lighter
|
|
150
|
-
);
|
|
134
|
+
--#{$prefix}btn-disabled-color: var(--#{$prefix}dark-text-lighter);
|
|
151
135
|
--#{$prefix}btn-disabled-border-color: transparent;
|
|
152
136
|
}
|
|
153
137
|
}
|
|
@@ -321,19 +305,15 @@ a.btn,
|
|
|
321
305
|
&-tertiary {
|
|
322
306
|
text-decoration: underline;
|
|
323
307
|
text-underline-offset: 0.3em;
|
|
324
|
-
--qld-body-color: var(--#{$prefix}
|
|
308
|
+
--qld-body-color: var(--#{$prefix}light-link);
|
|
325
309
|
|
|
326
310
|
&:hover {
|
|
327
|
-
--qld-body-color: var(
|
|
328
|
-
--#{$prefix}color-default-color-light-action-secondary-hover
|
|
329
|
-
);
|
|
311
|
+
--qld-body-color: var(--#{$prefix}light-action-secondary-hover);
|
|
330
312
|
}
|
|
331
313
|
|
|
332
314
|
&:focus {
|
|
333
315
|
background-color: var(--#{$prefix}btn-hover-bg);
|
|
334
|
-
--qld-body-color: var(
|
|
335
|
-
--#{$prefix}color-default-color-light-action-secondary-hover
|
|
336
|
-
);
|
|
316
|
+
--qld-body-color: var(--#{$prefix}light-action-secondary-hover);
|
|
337
317
|
}
|
|
338
318
|
|
|
339
319
|
&:active {
|
|
@@ -409,7 +389,7 @@ a.btn,
|
|
|
409
389
|
}
|
|
410
390
|
|
|
411
391
|
&-tertiary {
|
|
412
|
-
--qld-body-color: var(--#{$prefix}
|
|
392
|
+
--qld-body-color: var(--#{$prefix}dark-link);
|
|
413
393
|
|
|
414
394
|
&:hover {
|
|
415
395
|
--qld-body-color: var(--#{$prefix}dark-action-secondary-hover);
|
|
@@ -421,7 +401,7 @@ a.btn,
|
|
|
421
401
|
|
|
422
402
|
&:active {
|
|
423
403
|
text-decoration: none;
|
|
424
|
-
--qld-body-color: var(--#{$prefix}
|
|
404
|
+
--qld-body-color: var(--#{$prefix}dark-link);
|
|
425
405
|
}
|
|
426
406
|
}
|
|
427
407
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -16,14 +16,14 @@ export default {
|
|
|
16
16
|
<div class="container">
|
|
17
17
|
<div class="row">
|
|
18
18
|
<div class="col">
|
|
19
|
-
${new CallToAction({...args}).html}
|
|
19
|
+
${new CallToAction({ ...args }).html}
|
|
20
20
|
</div>
|
|
21
21
|
<div class="col">
|
|
22
|
-
${new CallToAction({...args, label:
|
|
22
|
+
${new CallToAction({ ...args, label: "Label", class: [{ small: false }, { "view-all": false }] }).html}
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
26
|
-
|
|
26
|
+
`;
|
|
27
27
|
},
|
|
28
28
|
parameters: {
|
|
29
29
|
design: {
|
|
@@ -31,7 +31,9 @@ export default {
|
|
|
31
31
|
type: "figma",
|
|
32
32
|
url: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321367&p=f&t=v3sxViBgYUUmwplL-0",
|
|
33
33
|
},
|
|
34
|
+
backgrounds: { disable: false },
|
|
34
35
|
},
|
|
36
|
+
globals: { backgrounds: { value: "default" } },
|
|
35
37
|
};
|
|
36
38
|
|
|
37
39
|
/**
|
|
@@ -39,6 +41,7 @@ export default {
|
|
|
39
41
|
*/
|
|
40
42
|
export const Default = {
|
|
41
43
|
args: defaultdata,
|
|
44
|
+
globals: { backgrounds: { value: "default" } },
|
|
42
45
|
decorators: [
|
|
43
46
|
(Story) => {
|
|
44
47
|
return `
|
|
@@ -54,14 +57,7 @@ export const Default = {
|
|
|
54
57
|
* Call To Action - Light
|
|
55
58
|
* */
|
|
56
59
|
export const Light = {
|
|
57
|
-
|
|
58
|
-
backgrounds: {
|
|
59
|
-
default: 'Light',
|
|
60
|
-
values: [
|
|
61
|
-
{ name: 'Light', value: 'var(--qld-light-background)' },
|
|
62
|
-
],
|
|
63
|
-
},
|
|
64
|
-
},
|
|
60
|
+
globals: { backgrounds: { value: "light" } },
|
|
65
61
|
decorators: [
|
|
66
62
|
(Story) => {
|
|
67
63
|
return `
|
|
@@ -77,14 +73,7 @@ export const Light = {
|
|
|
77
73
|
* Call To Action - Light-Alt
|
|
78
74
|
* */
|
|
79
75
|
export const LightAlt = {
|
|
80
|
-
|
|
81
|
-
backgrounds: {
|
|
82
|
-
default: 'LightAlt',
|
|
83
|
-
values: [
|
|
84
|
-
{ name: 'LightAlt', value: 'var(--qld-light-alt-background)' },
|
|
85
|
-
],
|
|
86
|
-
},
|
|
87
|
-
},
|
|
76
|
+
globals: { backgrounds: { value: "alt" } },
|
|
88
77
|
decorators: [
|
|
89
78
|
(Story) => {
|
|
90
79
|
return `
|
|
@@ -100,14 +89,7 @@ export const LightAlt = {
|
|
|
100
89
|
* Call To Action - Dark
|
|
101
90
|
* */
|
|
102
91
|
export const Dark = {
|
|
103
|
-
|
|
104
|
-
backgrounds: {
|
|
105
|
-
default: 'Dark',
|
|
106
|
-
values: [
|
|
107
|
-
{ name: 'Dark', value: 'var(--qld-dark-background)' },
|
|
108
|
-
],
|
|
109
|
-
},
|
|
110
|
-
},
|
|
92
|
+
globals: { backgrounds: { value: "dark" } },
|
|
111
93
|
decorators: [
|
|
112
94
|
(Story) => {
|
|
113
95
|
return `
|
|
@@ -123,14 +105,7 @@ export const Dark = {
|
|
|
123
105
|
* Call To Action - Dark-Alt
|
|
124
106
|
* */
|
|
125
107
|
export const DarkAlt = {
|
|
126
|
-
|
|
127
|
-
backgrounds: {
|
|
128
|
-
default: 'DarkAlt',
|
|
129
|
-
values: [
|
|
130
|
-
{ name: 'DarkAlt', value: 'var(--qld-dark-alt-background)' },
|
|
131
|
-
],
|
|
132
|
-
},
|
|
133
|
-
},
|
|
108
|
+
globals: { backgrounds: { value: "darkAlt" } },
|
|
134
109
|
decorators: [
|
|
135
110
|
(Story) => {
|
|
136
111
|
return `
|
|
@@ -149,33 +124,23 @@ export const Small = {
|
|
|
149
124
|
args: {
|
|
150
125
|
...defaultdata,
|
|
151
126
|
label: "View all",
|
|
152
|
-
class: [
|
|
153
|
-
{"small": true},
|
|
154
|
-
{"view-all": true},
|
|
155
|
-
],
|
|
127
|
+
class: [{ small: true }, { "view-all": true }],
|
|
156
128
|
},
|
|
157
129
|
render: (args) => {
|
|
158
130
|
return `
|
|
159
131
|
<div class="container">
|
|
160
132
|
<div class="row">
|
|
161
133
|
<div class="col">
|
|
162
|
-
${new CallToAction({...args}).html}
|
|
134
|
+
${new CallToAction({ ...args }).html}
|
|
163
135
|
</div>
|
|
164
136
|
<div class="col">
|
|
165
|
-
${new CallToAction({...args, label:
|
|
137
|
+
${new CallToAction({ ...args, label: "Label", class: [{ small: true }, { "view-all": false }] }).html}
|
|
166
138
|
</div>
|
|
167
139
|
</div>
|
|
168
140
|
</div>
|
|
169
|
-
|
|
170
|
-
},
|
|
171
|
-
parameters: {
|
|
172
|
-
backgrounds: {
|
|
173
|
-
default: 'DarkAlt',
|
|
174
|
-
values: [
|
|
175
|
-
{ name: 'DarkAlt', value: 'var(--qld-dark-alt-background)' },
|
|
176
|
-
],
|
|
177
|
-
},
|
|
141
|
+
`;
|
|
178
142
|
},
|
|
143
|
+
globals: { backgrounds: { value: "darkAlt" } },
|
|
179
144
|
decorators: [
|
|
180
145
|
(Story) => {
|
|
181
146
|
return `
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// callout.stories.js
|
|
2
|
-
import { Callout } from
|
|
3
|
-
import defaultdata from
|
|
2
|
+
import { Callout } from "./Callout.js";
|
|
3
|
+
import defaultdata from "./callout.data.json";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
tags: [
|
|
7
|
-
title:
|
|
6
|
+
tags: ["autodocs"],
|
|
7
|
+
title: "3. Components/Callout",
|
|
8
8
|
render: (args) => new Callout(args).html,
|
|
9
9
|
|
|
10
10
|
argTypes: {
|
|
11
11
|
title: {
|
|
12
|
-
name:
|
|
12
|
+
name: "Title",
|
|
13
13
|
description: `H3 title text for the callout.`,
|
|
14
14
|
},
|
|
15
15
|
content: {
|
|
16
|
-
name:
|
|
17
|
-
description:
|
|
16
|
+
name: "Content",
|
|
17
|
+
description: "Text content for the callout. Can include HTML markup.",
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
|
|
@@ -33,7 +33,9 @@ export default {
|
|
|
33
33
|
type: "figma",
|
|
34
34
|
url: "https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5990-98115&mode=design&t=Ue7c77KjVYU1eTGj-0",
|
|
35
35
|
},
|
|
36
|
+
backgrounds: { disable: false },
|
|
36
37
|
},
|
|
38
|
+
globals: { backgrounds: { value: "default" } },
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
/**
|
|
@@ -41,6 +43,7 @@ export default {
|
|
|
41
43
|
*/
|
|
42
44
|
export const Default = {
|
|
43
45
|
args: defaultdata.default,
|
|
46
|
+
globals: { backgrounds: { value: "default" } },
|
|
44
47
|
};
|
|
45
48
|
|
|
46
49
|
/**
|
|
@@ -55,14 +58,7 @@ export const NoTitle = {
|
|
|
55
58
|
*/
|
|
56
59
|
export const Light = {
|
|
57
60
|
args: defaultdata.default,
|
|
58
|
-
|
|
59
|
-
backgrounds: {
|
|
60
|
-
default: 'Light',
|
|
61
|
-
values: [
|
|
62
|
-
{ name: 'Light', value: 'var(--qld-light-background)' },
|
|
63
|
-
],
|
|
64
|
-
},
|
|
65
|
-
},
|
|
61
|
+
globals: { backgrounds: { value: "light" } },
|
|
66
62
|
decorators: [
|
|
67
63
|
(Story) => {
|
|
68
64
|
return `
|
|
@@ -81,14 +77,7 @@ export const Light = {
|
|
|
81
77
|
*/
|
|
82
78
|
export const Alternative = {
|
|
83
79
|
args: defaultdata.default,
|
|
84
|
-
|
|
85
|
-
backgrounds: {
|
|
86
|
-
default: 'Alternative',
|
|
87
|
-
values: [
|
|
88
|
-
{ name: 'Alternative', value: 'var(--qld-light-grey-alt)' },
|
|
89
|
-
],
|
|
90
|
-
},
|
|
91
|
-
},
|
|
80
|
+
globals: { backgrounds: { value: "alt" } },
|
|
92
81
|
decorators: [
|
|
93
82
|
(Story) => {
|
|
94
83
|
return `
|
|
@@ -107,14 +96,7 @@ export const Alternative = {
|
|
|
107
96
|
*/
|
|
108
97
|
export const Dark = {
|
|
109
98
|
args: defaultdata.default,
|
|
110
|
-
|
|
111
|
-
backgrounds: {
|
|
112
|
-
default: 'Dark',
|
|
113
|
-
values: [
|
|
114
|
-
{ name: 'Dark', value: 'var(--qld-brand-primary)' },
|
|
115
|
-
],
|
|
116
|
-
},
|
|
117
|
-
},
|
|
99
|
+
globals: { backgrounds: { value: "dark" } },
|
|
118
100
|
decorators: [
|
|
119
101
|
(Story) => {
|
|
120
102
|
return `
|
|
@@ -133,14 +115,7 @@ export const Dark = {
|
|
|
133
115
|
*/
|
|
134
116
|
export const DarkAlternative = {
|
|
135
117
|
args: defaultdata.default,
|
|
136
|
-
|
|
137
|
-
backgrounds: {
|
|
138
|
-
default: 'Dark alternative',
|
|
139
|
-
values: [
|
|
140
|
-
{ name: 'Dark alternative', value: 'var(--qld-dark-blue)' },
|
|
141
|
-
],
|
|
142
|
-
},
|
|
143
|
-
},
|
|
118
|
+
globals: { backgrounds: { value: "darkAlt" } },
|
|
144
119
|
decorators: [
|
|
145
120
|
(Story) => {
|
|
146
121
|
return `
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
// Video styled card
|
|
51
51
|
.video-overlay {
|
|
52
52
|
--#{$prefix}video-nav-bg: var(--#{$prefix}light-action-primary);
|
|
53
|
-
--#{$prefix}video-nav-bg-rgb:
|
|
53
|
+
--#{$prefix}video-nav-bg-rgb: 0, 94, 184;
|
|
54
54
|
--#{$prefix}video-nav-bg-hover: var(--#{$prefix}light-action-primary-hover);
|
|
55
|
-
--#{$prefix}video-nav-bg-hover-rgb: 0, 62,
|
|
55
|
+
--#{$prefix}video-nav-bg-hover-rgb: 0, 62, 150;
|
|
56
56
|
--#{$prefix}video-nav-bg-opacity: 0.9;
|
|
57
57
|
--#{$prefix}video-nav-color: var(--#{$prefix}dark-text);
|
|
58
58
|
--#{$prefix}video-clock-icon-size: 1.25rem;
|
|
@@ -144,11 +144,11 @@
|
|
|
144
144
|
}
|
|
145
145
|
.video-overlay {
|
|
146
146
|
--#{$prefix}video-nav-bg: var(--#{$prefix}dark-action-primary);
|
|
147
|
-
--#{$prefix}video-nav-bg-rgb:
|
|
147
|
+
--#{$prefix}video-nav-bg-rgb: 132, 211, 255;
|
|
148
148
|
--#{$prefix}video-nav-bg-hover: var(
|
|
149
149
|
--#{$prefix}dark-action-primary-hover
|
|
150
150
|
);
|
|
151
|
-
--#{$prefix}video-nav-bg-hover-rgb:
|
|
151
|
+
--#{$prefix}video-nav-bg-hover-rgb: 166, 247, 255;
|
|
152
152
|
--#{$prefix}video-nav-color: var(--#{$prefix}dark-action-text);
|
|
153
153
|
--#{$prefix}video-play-icon-color: var(--#{$prefix}text-darkest);
|
|
154
154
|
}
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
--#{$prefix}card-footer-border: var(--#{$prefix}dark-border);
|
|
163
163
|
}
|
|
164
164
|
&-dark-alt {
|
|
165
|
-
--#{$prefix}card-bg: var(--#{$prefix}dark-
|
|
165
|
+
--#{$prefix}card-bg: var(--#{$prefix}dark-alt-background);
|
|
166
166
|
--#{$prefix}card-icon-background-color: var(
|
|
167
167
|
--#{$prefix}dark-alt-background-shade
|
|
168
168
|
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -6,23 +6,22 @@ export default {
|
|
|
6
6
|
tags: ["autodocs"],
|
|
7
7
|
title: "3. Components/Forms/Dateinput",
|
|
8
8
|
render: (args) => {
|
|
9
|
-
|
|
10
|
-
//Storybook produces a comma delimited string when using the check control type (table-striped, table-bordered) etc.
|
|
9
|
+
//Storybook produces a comma delimited string when using the check control type (table-striped, table-bordered) etc.
|
|
11
10
|
//We can't use commas on our class="..." attribute, so we need to replace the commas with spaces.
|
|
12
11
|
|
|
13
|
-
if(
|
|
14
|
-
args.customClass = args.customClass.replaceAll(","," ");
|
|
15
|
-
} else if (
|
|
12
|
+
if (typeof args.customClass === "string") {
|
|
13
|
+
args.customClass = args.customClass.replaceAll(",", " ");
|
|
14
|
+
} else if (typeof args.customClass === "object") {
|
|
16
15
|
args.customClass = args.customClass.join(" ");
|
|
17
16
|
}
|
|
18
|
-
|
|
17
|
+
|
|
19
18
|
return new Dateinput(args).html;
|
|
20
|
-
|
|
21
19
|
},
|
|
22
20
|
|
|
23
21
|
//https://storybook.js.org/docs/api/arg-types
|
|
24
|
-
argTypes: {
|
|
25
|
-
},
|
|
22
|
+
argTypes: {},
|
|
23
|
+
globals: { backgrounds: { value: "default" } },
|
|
24
|
+
parameters: { backgrounds: { disable: false } },
|
|
26
25
|
};
|
|
27
26
|
|
|
28
27
|
/**
|
|
@@ -30,24 +29,18 @@ export default {
|
|
|
30
29
|
*/
|
|
31
30
|
export const Default = {
|
|
32
31
|
args: defaultdata,
|
|
32
|
+
globals: { backgrounds: { value: "default" } },
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Dark themed Date inputs
|
|
37
37
|
*/
|
|
38
38
|
export const Dark = {
|
|
39
|
-
args: {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
parameters: {
|
|
44
|
-
backgrounds: {
|
|
45
|
-
default: 'Dark',
|
|
46
|
-
values: [
|
|
47
|
-
{ name: 'Dark', value: 'var(--qld-brand-primary)' },
|
|
48
|
-
],
|
|
49
|
-
},
|
|
39
|
+
args: {
|
|
40
|
+
...defaultdata,
|
|
41
|
+
...{ isDisabled: false },
|
|
50
42
|
},
|
|
43
|
+
globals: { backgrounds: { value: "dark" } },
|
|
51
44
|
decorators: [
|
|
52
45
|
(Story) => {
|
|
53
46
|
return `
|
|
@@ -63,20 +56,19 @@ export const Dark = {
|
|
|
63
56
|
* Filled style Date inputs
|
|
64
57
|
*/
|
|
65
58
|
export const Filled = {
|
|
66
|
-
args: {
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
args: {
|
|
60
|
+
...defaultdata,
|
|
61
|
+
...{ customClass: "form-style-filled" },
|
|
69
62
|
},
|
|
70
63
|
};
|
|
71
64
|
|
|
72
|
-
|
|
73
65
|
/**
|
|
74
66
|
* Disabled Date inputs
|
|
75
67
|
*/
|
|
76
68
|
export const Disabled = {
|
|
77
|
-
args: {
|
|
78
|
-
|
|
79
|
-
|
|
69
|
+
args: {
|
|
70
|
+
...defaultdata,
|
|
71
|
+
...{ isDisabled: true },
|
|
80
72
|
},
|
|
81
73
|
};
|
|
82
74
|
|
|
@@ -85,8 +77,8 @@ export const Disabled = {
|
|
|
85
77
|
*/
|
|
86
78
|
export const Valid = {
|
|
87
79
|
args: {
|
|
88
|
-
|
|
89
|
-
...{customClass: "qld-input-success"},
|
|
80
|
+
...defaultdata,
|
|
81
|
+
...{ customClass: "qld-input-success" },
|
|
90
82
|
},
|
|
91
83
|
};
|
|
92
84
|
|
|
@@ -95,7 +87,7 @@ export const Valid = {
|
|
|
95
87
|
*/
|
|
96
88
|
export const Invalid = {
|
|
97
89
|
args: {
|
|
98
|
-
|
|
99
|
-
...{customClass: "qld-input-error"},
|
|
90
|
+
...defaultdata,
|
|
91
|
+
...{ customClass: "qld-input-error" },
|
|
100
92
|
},
|
|
101
93
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -10,6 +10,11 @@ import defaultdata from "./directionLinks.data.json";
|
|
|
10
10
|
export default {
|
|
11
11
|
tags: ["autodocs"],
|
|
12
12
|
title: "3. Components/Direction Links",
|
|
13
|
+
globals: {
|
|
14
|
+
backgrounds: {
|
|
15
|
+
value: "default",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
13
18
|
render: (args) => {
|
|
14
19
|
return `
|
|
15
20
|
<!-- Grid container -->
|
|
@@ -51,6 +56,7 @@ export default {
|
|
|
51
56
|
label: { control: "text" },
|
|
52
57
|
},
|
|
53
58
|
parameters: {
|
|
59
|
+
backgrounds: { disable: false },
|
|
54
60
|
controls: { disable: true },
|
|
55
61
|
design: {
|
|
56
62
|
name: "QGDS Figma Reference",
|
|
@@ -69,10 +75,9 @@ export const Default = {};
|
|
|
69
75
|
* Direction Link - Light
|
|
70
76
|
* */
|
|
71
77
|
export const Light = {
|
|
72
|
-
|
|
78
|
+
globals: {
|
|
73
79
|
backgrounds: {
|
|
74
|
-
|
|
75
|
-
values: [{ name: "Light", value: "var(--qld-light-background)" }],
|
|
80
|
+
value: "light",
|
|
76
81
|
},
|
|
77
82
|
},
|
|
78
83
|
decorators: [
|
|
@@ -90,10 +95,9 @@ export const Light = {
|
|
|
90
95
|
* Direction Link - Light-Alt
|
|
91
96
|
* */
|
|
92
97
|
export const LightAlt = {
|
|
93
|
-
|
|
98
|
+
globals: {
|
|
94
99
|
backgrounds: {
|
|
95
|
-
|
|
96
|
-
values: [{ name: "LightAlt", value: "var(--qld-light-alt-background)" }],
|
|
100
|
+
value: "alt",
|
|
97
101
|
},
|
|
98
102
|
},
|
|
99
103
|
decorators: [
|
|
@@ -111,10 +115,9 @@ export const LightAlt = {
|
|
|
111
115
|
* Direction Link - Dark
|
|
112
116
|
* */
|
|
113
117
|
export const Dark = {
|
|
114
|
-
|
|
118
|
+
globals: {
|
|
115
119
|
backgrounds: {
|
|
116
|
-
|
|
117
|
-
values: [{ name: "Dark", value: "var(--qld-dark-background)" }],
|
|
120
|
+
value: "dark",
|
|
118
121
|
},
|
|
119
122
|
},
|
|
120
123
|
decorators: [
|
|
@@ -132,10 +135,9 @@ export const Dark = {
|
|
|
132
135
|
* Direction Link - Dark-Alt
|
|
133
136
|
* */
|
|
134
137
|
export const DarkAlt = {
|
|
135
|
-
|
|
138
|
+
globals: {
|
|
136
139
|
backgrounds: {
|
|
137
|
-
|
|
138
|
-
values: [{ name: "DarkAlt", value: "var(--qld-dark-alt-background)" }],
|
|
140
|
+
value: "darkAlt",
|
|
139
141
|
},
|
|
140
142
|
},
|
|
141
143
|
decorators: [
|