@qld-gov-au/qgds-bootstrap5 2.0.6 → 2.0.8
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/.esbuild/plugins/qgds-plugin-handlebar-partial-builder.js +76 -66
- package/.storybook/README.md +10 -0
- package/.storybook/{main.js → main.mjs} +4 -5
- package/.storybook/modes.js +3 -12
- package/.storybook/preview.js +14 -11
- package/dist/assets/components/bs5/footer/footer.hbs +20 -18
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/components/bs5/header/header.hbs +40 -52
- package/dist/assets/components/bs5/header/headerBrand.hbs +9 -10
- package/dist/assets/components/bs5/logo/logo.hbs +2 -0
- package/dist/assets/components/bs5/logo/logoCOADeliveringForQLD.hbs +49 -0
- package/dist/assets/components/bs5/logo/logoCOALandscape.hbs +55 -109
- package/dist/assets/components/bs5/logo/logoCOALandscape2Lines.hbs +55 -55
- package/dist/assets/components/bs5/searchInput/searchInput.hbs +5 -5
- 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 +1 -1
- package/dist/assets/css/qld.bootstrap.legacy.css.map +3 -3
- package/dist/assets/img/coa-delivering-for-qld.svg +47 -0
- package/dist/assets/img/coa-delivering-for-qld.svg.old +58 -0
- package/dist/assets/img/coa-landscape-2lines.svg +63 -0
- package/dist/assets/img/coa-landscape-web.svg +56 -0
- package/dist/assets/js/handlebars.helpers.bundle.js +1 -1
- package/dist/assets/js/handlebars.helpers.bundle.js.map +3 -3
- package/dist/assets/js/handlebars.init.min.js +1329 -1344
- package/dist/assets/js/handlebars.init.min.js.map +4 -4
- package/dist/assets/js/handlebars.partials.js +2383 -136
- package/dist/assets/js/handlebars.partials.js.map +7 -0
- package/dist/assets/js/qld.bootstrap.min.js +3 -3
- package/dist/assets/js/qld.bootstrap.min.js.map +3 -3
- package/dist/assets/node/handlebars.init.min.js +219 -198
- package/dist/assets/node/handlebars.init.min.js.map +3 -3
- package/dist/components/bs5/footer/footer.hbs +20 -18
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/components/bs5/header/header.hbs +40 -52
- package/dist/components/bs5/header/headerBrand.hbs +9 -10
- package/dist/components/bs5/logo/logo.hbs +2 -0
- package/dist/components/bs5/logo/logoCOADeliveringForQLD.hbs +49 -0
- package/dist/components/bs5/logo/logoCOALandscape.hbs +55 -109
- package/dist/components/bs5/logo/logoCOALandscape2Lines.hbs +55 -55
- package/dist/components/bs5/searchInput/searchInput.hbs +5 -5
- package/dist/package.json +27 -29
- package/dist/sample-data/correctincorrect/correctincorrect.data.json +1 -0
- package/dist/sample-data/header/header.variant.coBrand.data.json +5 -8
- package/dist/sample-data/header/header.variant.endorsed.data.json +3 -6
- package/dist/sample-data/header/header.variant.masterBrand.data.json +1 -6
- package/dist/sample-data/header/header.variant.standAlone.data.json +3 -6
- package/dist/sample-data/header/header.variant.subBrand.data.json +5 -8
- package/dist/sample-data/tabs/tabs.data.json +1 -2
- package/dist/sample-data/typography/typography.data.json +1 -0
- package/esbuild.js +16 -4
- package/package.json +27 -29
- package/pom.xml +3 -3
- package/src/components/bs5/accordion/Accordion.mdx +1 -1
- 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/banner/banner.scss +2 -2
- 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.scss +7 -2
- 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/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 +7 -26
- 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 +1 -1
- 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.hbs +20 -18
- package/src/components/bs5/footer/footer.scss +7 -5
- 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.js +25 -0
- package/src/components/bs5/header/Header.mdx +1 -1
- package/src/components/bs5/header/_header-variables.scss +61 -247
- package/src/components/bs5/header/header.functions.js +10 -15
- package/src/components/bs5/header/header.hbs +40 -52
- package/src/components/bs5/header/header.scss +166 -158
- package/src/components/bs5/header/header.stories.js +35 -233
- package/src/components/bs5/header/header.variant.coBrand.data.json +5 -8
- package/src/components/bs5/header/header.variant.endorsed.data.json +3 -6
- package/src/components/bs5/header/header.variant.masterBrand.data.json +1 -6
- package/src/components/bs5/header/header.variant.standAlone.data.json +3 -6
- package/src/components/bs5/header/header.variant.subBrand.data.json +5 -8
- package/src/components/bs5/header/headerBrand.hbs +9 -10
- 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.scss +107 -120
- 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/linkColumns/linkColumns.scss +18 -25
- package/src/components/bs5/logo/Logo.mdx +1 -1
- package/src/components/bs5/logo/logo.hbs +2 -0
- package/src/components/bs5/logo/logoCOADeliveringForQLD.hbs +49 -0
- package/src/components/bs5/logo/logoCOALandscape.hbs +55 -109
- package/src/components/bs5/logo/logoCOALandscape2Lines.hbs +55 -55
- 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/navbar/navbar.scss +36 -14
- package/src/components/bs5/pagination/Pagination.mdx +1 -1
- package/src/components/bs5/pagination/manifest.json +1 -0
- package/src/components/bs5/pagination/pagination.stories.js +12 -21
- package/src/components/bs5/promotionalPanel/PromotionalPanel.mdx +1 -1
- package/src/components/bs5/quickexit/manifest.json +1 -0
- package/src/components/bs5/searchInput/SearchInput.js +3 -5
- package/src/components/bs5/searchInput/SearchInput.mdx +1 -1
- package/src/components/bs5/searchInput/__snapshots__/searchInput.test.js.snap +5 -5
- package/src/components/bs5/searchInput/manifest.json +1 -0
- package/src/components/bs5/searchInput/searchInput.hbs +5 -5
- package/src/components/bs5/searchInput/searchInput.scss +13 -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/tag/tag--large.stories.js +53 -0
- package/src/components/bs5/tag/tag--standard.stories.js +39 -0
- package/src/components/bs5/tag/tag--status.stories.js +97 -0
- package/src/components/bs5/tag/tag.scss +67 -36
- package/src/components/bs5/tag/tag.stories.js +69 -106
- package/src/components/bs5/textarea/manifest.json +1 -0
- package/src/components/bs5/textbox/manifest.json +1 -0
- 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.stories.js +6 -24
- package/src/css/main.scss +2 -2
- package/src/css/mixins/_index.scss +1 -0
- package/src/css/mixins/focusable.scss +6 -5
- package/src/css/mixins/make-link.scss +40 -0
- package/src/css/qld-print.scss +426 -304
- package/src/css/qld-theme.scss +16 -8
- package/src/css/qld-type.scss +3 -73
- package/src/css/variables/animation.scss +5 -0
- package/src/img/coa-delivering-for-qld.svg +47 -0
- package/src/img/coa-delivering-for-qld.svg.old +58 -0
- package/src/img/coa-landscape-2lines.svg +63 -0
- package/src/img/coa-landscape-web.svg +56 -0
- package/src/js/handlebars.helpers.js +51 -38
- package/src/js/handlebars.partials.js +12 -10
- package/src/stories/Introduction.mdx +1 -1
- package/vite.config.js +17 -0
- package/.eslintrc.cjs +0 -52
- package/dist/assets/img/_coa_header-logo-qgov--stacked.svg +0 -171
- package/dist/assets/img/_coa_header-logo-qgov-masterbrand.svg +0 -56
- package/dist/assets/img/_coa_preheader-logo-qgov.svg +0 -56
- 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/img/_coa_header-logo-qgov--stacked.svg +0 -171
- package/src/img/_coa_header-logo-qgov-masterbrand.svg +0 -56
- package/src/img/_coa_preheader-logo-qgov.svg +0 -56
|
@@ -15,7 +15,11 @@ export default {
|
|
|
15
15
|
description: `Pass a JSON object containing an array of links to the component.`,
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
globals: {
|
|
19
|
+
backgrounds: {
|
|
20
|
+
value: "default",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
19
23
|
decorators: [
|
|
20
24
|
(Story, context) => {
|
|
21
25
|
const { args } = context; // Deconstruct args from the context oject
|
|
@@ -47,30 +51,36 @@ export default {
|
|
|
47
51
|
type: "figma",
|
|
48
52
|
url: "https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5990-98076&mode=design&t=Ge7frKNP4uEGswUz-0",
|
|
49
53
|
},
|
|
54
|
+
backgrounds: {
|
|
55
|
+
disable: false,
|
|
56
|
+
},
|
|
50
57
|
},
|
|
51
58
|
};
|
|
52
59
|
|
|
53
60
|
/**
|
|
54
61
|
* Default Breadcrumbs story
|
|
55
62
|
* */
|
|
56
|
-
export const Default = {
|
|
63
|
+
export const Default = {
|
|
64
|
+
globals: {
|
|
65
|
+
backgrounds: {
|
|
66
|
+
value: "default",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
};
|
|
57
70
|
|
|
58
71
|
/**
|
|
59
72
|
* Dark Breadcrumbs story
|
|
60
73
|
* */
|
|
61
74
|
export const Dark = {
|
|
62
|
-
|
|
75
|
+
globals: {
|
|
63
76
|
backgrounds: {
|
|
64
|
-
|
|
65
|
-
values: [{ name: "Dark", value: "var(--qld-dark-background)" }],
|
|
77
|
+
value: "dark",
|
|
66
78
|
},
|
|
67
79
|
},
|
|
68
|
-
|
|
69
80
|
args: {
|
|
70
81
|
...defaultdata.default,
|
|
71
82
|
class: "dark",
|
|
72
83
|
},
|
|
73
|
-
|
|
74
84
|
decorators: [
|
|
75
85
|
(Story) => {
|
|
76
86
|
return `
|
|
@@ -92,10 +102,9 @@ export const WithExpanderDefault = {
|
|
|
92
102
|
* Breadcrumbs with expander (Dark)
|
|
93
103
|
* */
|
|
94
104
|
export const WithExpanderDark = {
|
|
95
|
-
|
|
105
|
+
globals: {
|
|
96
106
|
backgrounds: {
|
|
97
|
-
|
|
98
|
-
values: [{ name: "Dark", value: "var(--qld-dark-background)" }],
|
|
107
|
+
value: "dark",
|
|
99
108
|
},
|
|
100
109
|
},
|
|
101
110
|
args: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -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 `
|
|
@@ -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,12 +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: [{ name: "Light", value: "var(--qld-light-background)" }],
|
|
62
|
-
},
|
|
63
|
-
},
|
|
61
|
+
globals: { backgrounds: { value: "light" } },
|
|
64
62
|
decorators: [
|
|
65
63
|
(Story) => {
|
|
66
64
|
return `
|
|
@@ -79,12 +77,7 @@ export const Light = {
|
|
|
79
77
|
*/
|
|
80
78
|
export const Alternative = {
|
|
81
79
|
args: defaultdata.default,
|
|
82
|
-
|
|
83
|
-
backgrounds: {
|
|
84
|
-
default: "Alternative",
|
|
85
|
-
values: [{ name: "Alternative", value: "var(--qld-light-grey-alt)" }],
|
|
86
|
-
},
|
|
87
|
-
},
|
|
80
|
+
globals: { backgrounds: { value: "alt" } },
|
|
88
81
|
decorators: [
|
|
89
82
|
(Story) => {
|
|
90
83
|
return `
|
|
@@ -103,12 +96,7 @@ export const Alternative = {
|
|
|
103
96
|
*/
|
|
104
97
|
export const Dark = {
|
|
105
98
|
args: defaultdata.default,
|
|
106
|
-
|
|
107
|
-
backgrounds: {
|
|
108
|
-
default: "Dark",
|
|
109
|
-
values: [{ name: "Dark", value: "var(--qld-dark-background)" }],
|
|
110
|
-
},
|
|
111
|
-
},
|
|
99
|
+
globals: { backgrounds: { value: "dark" } },
|
|
112
100
|
decorators: [
|
|
113
101
|
(Story) => {
|
|
114
102
|
return `
|
|
@@ -127,14 +115,7 @@ export const Dark = {
|
|
|
127
115
|
*/
|
|
128
116
|
export const DarkAlternative = {
|
|
129
117
|
args: defaultdata.default,
|
|
130
|
-
|
|
131
|
-
backgrounds: {
|
|
132
|
-
default: "Dark alternative",
|
|
133
|
-
values: [
|
|
134
|
-
{ name: "Dark alternative", value: "var(--qld-dark-alt-background)" },
|
|
135
|
-
],
|
|
136
|
-
},
|
|
137
|
-
},
|
|
118
|
+
globals: { backgrounds: { value: "darkAlt" } },
|
|
138
119
|
decorators: [
|
|
139
120
|
(Story) => {
|
|
140
121
|
return `
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -429,6 +429,7 @@
|
|
|
429
429
|
flex-wrap: wrap;
|
|
430
430
|
.tag-item {
|
|
431
431
|
margin: 0;
|
|
432
|
+
font-weight: normal;
|
|
432
433
|
}
|
|
433
434
|
}
|
|
434
435
|
/////////////////////////////////////////////
|
|
@@ -458,7 +459,6 @@
|
|
|
458
459
|
li.tag-link {
|
|
459
460
|
border-color: var(--#{$prefix}card-link-color);
|
|
460
461
|
font-size: 0.875rem;
|
|
461
|
-
font-weight: normal;
|
|
462
462
|
&:hover {
|
|
463
463
|
border-color: var(--#{$prefix}link-hover-colour);
|
|
464
464
|
background-color: var(--#{$prefix}link-hover-colour);
|
|
@@ -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: [
|
|
@@ -38,24 +38,26 @@
|
|
|
38
38
|
|
|
39
39
|
<div class="col-12">
|
|
40
40
|
{{!-- Custom contact list --}}
|
|
41
|
-
{{#ifCond contact.showList "
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
41
|
+
{{#ifCond contact.showList "!==" false}}
|
|
42
|
+
{{#ifCond contact.showList "&&" contact.list}}
|
|
43
|
+
{{#each contact.list }}
|
|
44
|
+
<div class="footer-contact-item footer-contact-{{@key}}">
|
|
45
|
+
<span class="qld-icon {{this.icon}}" aria-hidden="true"></span> {{{ this.label }}}
|
|
46
|
+
</div>
|
|
47
|
+
{{/each}}
|
|
48
|
+
|
|
49
|
+
{{else}}
|
|
50
|
+
{{!default contact list }}
|
|
51
|
+
<div class="footer-contact-item footer-contact-phone">
|
|
52
|
+
<span class="qld-icon qld-icon-phone" aria-hidden="true"></span> <b>Phone:</b> <a href="tel:137468"
|
|
53
|
+
rel="noopener">13 QGOV (13 74 68)</a>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<div class="footer-contact-item footer-contact-email">
|
|
57
|
+
<span class="qld-icon qld-icon-email" aria-hidden="true"></span> <b>Email:</b> <a
|
|
58
|
+
href="mailto:email@qld.gov.au" rel="noopener"><span class="user-select-all">email@qld.gov.au</span></a>
|
|
59
|
+
</div>
|
|
60
|
+
{{/ifCond}}
|
|
59
61
|
{{/ifCond}}
|
|
60
62
|
</div>
|
|
61
63
|
</div>
|
|
@@ -290,10 +290,6 @@
|
|
|
290
290
|
padding-block-start: 0;
|
|
291
291
|
padding-block-end: 0;
|
|
292
292
|
|
|
293
|
-
&:focus-visible {
|
|
294
|
-
box-shadow: 0 0 0 3px var(--#{$prefix}footer-color-border);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
293
|
span {
|
|
298
294
|
display: block;
|
|
299
295
|
}
|
|
@@ -323,7 +319,13 @@
|
|
|
323
319
|
|
|
324
320
|
.btn {
|
|
325
321
|
min-width: 10rem;
|
|
326
|
-
width:
|
|
322
|
+
width: 100%;
|
|
323
|
+
margin-block-end: 1.5rem;
|
|
324
|
+
|
|
325
|
+
@include media-breakpoint-up(md) {
|
|
326
|
+
width: fit-content;
|
|
327
|
+
margin-block-end: 0;
|
|
328
|
+
}
|
|
327
329
|
}
|
|
328
330
|
}
|
|
329
331
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|