@qld-gov-au/qgds-bootstrap5 1.1.39 → 1.1.41
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/dist/assets/components/bs5/backToTop/backToTop.hbs +1 -1
- package/dist/assets/components/bs5/breadcrumbs/breadcrumbs.hbs +19 -15
- package/dist/assets/components/bs5/button/button.hbs +48 -30
- package/dist/assets/components/bs5/containerLayout/containerLayout.hbs +100 -0
- package/dist/assets/components/bs5/contentFooter/contentFooter.hbs +15 -4
- package/dist/assets/components/bs5/formcheck/formcheck.hbs +1 -1
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/components/bs5/iconLink/iconLink.hbs +41 -0
- package/dist/assets/components/bs5/logo/logo.hbs +7 -0
- package/dist/assets/components/bs5/logo/logoCOALandscape.hbs +58 -0
- package/dist/assets/components/bs5/logo/logoCOALandscape2Lines.hbs +58 -0
- package/dist/assets/components/bs5/navbar/navbar.hbs +65 -245
- package/dist/assets/components/bs5/pageLayout/pageLayout.hbs +11 -10
- package/dist/assets/components/bs5/pageLayout/templates/contentPageWithForm.hbs +78 -0
- package/dist/assets/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +103 -0
- package/dist/assets/components/bs5/pageLayout/templates/fullWidthLandingPage.hbs +61 -0
- package/dist/assets/components/bs5/searchInput/searchInput.hbs +8 -10
- package/dist/assets/css/qld.bootstrap.css +1 -1
- package/dist/assets/css/qld.bootstrap.css.map +3 -3
- package/dist/assets/js/bootstrap.bundle.js +3 -6
- package/dist/assets/js/bootstrap.bundle.js.map +1 -1
- package/dist/assets/js/bootstrap.bundle.min.js +2 -2
- package/dist/assets/js/bootstrap.bundle.min.js.map +1 -1
- package/dist/assets/js/bootstrap.js +3 -6
- package/dist/assets/js/bootstrap.min.js +2 -2
- package/dist/assets/js/bootstrap.min.js.map +1 -1
- 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.helpers.js +51 -40
- package/dist/assets/js/handlebars.init.min.js +698 -347
- package/dist/assets/js/handlebars.init.min.js.map +4 -4
- package/dist/assets/js/handlebars.partials.js +16 -0
- package/dist/assets/js/qld.bootstrap.min.js +9 -9
- package/dist/assets/js/qld.bootstrap.min.js.map +4 -4
- package/dist/assets/node/handlebars.init.min.js +359 -72
- package/dist/assets/node/handlebars.init.min.js.map +3 -3
- package/dist/components/bs5/backToTop/backToTop.hbs +1 -1
- package/dist/components/bs5/breadcrumbs/breadcrumbs.hbs +19 -15
- package/dist/components/bs5/button/button.hbs +48 -30
- package/dist/components/bs5/containerLayout/containerLayout.hbs +100 -0
- package/dist/components/bs5/contentFooter/contentFooter.hbs +15 -4
- package/dist/components/bs5/formcheck/formcheck.hbs +1 -1
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/components/bs5/iconLink/iconLink.hbs +41 -0
- package/dist/components/bs5/logo/logo.hbs +7 -0
- package/dist/components/bs5/logo/logoCOALandscape.hbs +58 -0
- package/dist/components/bs5/logo/logoCOALandscape2Lines.hbs +58 -0
- package/dist/components/bs5/navbar/navbar.hbs +65 -245
- package/dist/components/bs5/pageLayout/pageLayout.hbs +11 -10
- package/dist/components/bs5/pageLayout/templates/contentPageWithForm.hbs +78 -0
- package/dist/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +103 -0
- package/dist/components/bs5/pageLayout/templates/fullWidthLandingPage.hbs +61 -0
- package/dist/components/bs5/searchInput/searchInput.hbs +8 -10
- package/dist/components/handlebars.helpers.js +51 -40
- package/dist/components/handlebars.partials.js +16 -0
- package/dist/package.json +2 -2
- package/dist/sample-data/breadcrumbs/breadcrumbs.data.json +113 -49
- package/dist/sample-data/button/button.data.json +10 -8
- package/dist/sample-data/contentFooter/contentFooter.data.json +9 -1
- package/dist/sample-data/formcheck/stories/checkbox/checkbox.data.json +51 -46
- package/dist/sample-data/formcheck/stories/radio/radio.data.json +51 -46
- package/dist/sample-data/iconLink/iconLink.data.json +77 -0
- package/dist/sample-data/logo/logo.data.json +6 -0
- package/dist/sample-data/navbar/navbar.data.json +191 -0
- package/dist/sample-data/searchInput/searchInput.data.json +2 -3
- package/dist/sample-data/tabs/tabs.data.json +45 -44
- package/package.json +2 -2
- package/src/components/bs5/backToTop/backToTop.hbs +1 -1
- package/src/components/bs5/banner/banner.scss +52 -46
- package/src/components/bs5/breadcrumbs/__snapshots__/breadcrumbs.test.js.snap +49 -0
- package/src/components/bs5/breadcrumbs/breadcrumbs.data.json +113 -49
- package/src/components/bs5/breadcrumbs/breadcrumbs.functions.js +169 -0
- package/src/components/bs5/breadcrumbs/breadcrumbs.hbs +19 -15
- package/src/components/bs5/breadcrumbs/breadcrumbs.scss +164 -43
- package/src/components/bs5/breadcrumbs/breadcrumbs.stories.js +16 -2
- package/src/components/bs5/breadcrumbs/breadcrumbs.test.js +136 -0
- package/src/components/bs5/button/button.data.json +10 -8
- package/src/components/bs5/button/button.hbs +48 -30
- package/src/components/bs5/button/button.scss +365 -244
- package/src/components/bs5/button/button.stories.js +116 -30
- package/src/components/bs5/containerLayout/containerLayout.hbs +100 -0
- package/src/components/bs5/containerLayout/containerLayout.stories.js +83 -0
- package/src/components/bs5/contentFooter/contentFooter.data.json +9 -1
- package/src/components/bs5/contentFooter/contentFooter.hbs +15 -4
- package/src/components/bs5/formcheck/formcheck.hbs +1 -1
- package/src/components/bs5/formcheck/formcheck.scss +161 -139
- package/src/components/bs5/formcheck/stories/checkbox/checkbox.data.json +51 -46
- package/src/components/bs5/formcheck/stories/radio/radio.data.json +51 -46
- package/src/components/bs5/iconLink/iconLink.data.json +77 -0
- package/src/components/bs5/iconLink/iconLink.hbs +41 -0
- package/src/components/bs5/iconLink/iconLink.js +20 -0
- package/src/components/bs5/iconLink/iconLink.mdx +16 -0
- package/src/components/bs5/iconLink/iconLink.scss +57 -0
- package/src/components/bs5/iconLink/iconLink.stories.js +127 -0
- package/src/components/bs5/icons/icons.scss +79 -72
- package/src/components/bs5/inpagenav/inpagenav.scss +37 -37
- package/src/components/bs5/logo/Logo.js +20 -0
- package/src/components/bs5/logo/Logo.mdx +10 -0
- package/src/components/bs5/logo/logo.data.json +6 -0
- package/src/components/bs5/logo/logo.hbs +7 -0
- package/src/components/bs5/logo/logo.stories.js +32 -0
- package/src/components/bs5/logo/logoCOALandscape.hbs +58 -0
- package/src/components/bs5/logo/logoCOALandscape2Lines.hbs +58 -0
- package/src/components/bs5/navbar/Navbar.js +2 -9
- package/src/components/bs5/navbar/navbar.data.json +191 -0
- package/src/components/bs5/navbar/navbar.functions.js +48 -196
- package/src/components/bs5/navbar/navbar.hbs +65 -245
- package/src/components/bs5/navbar/navbar.scss +585 -518
- package/src/components/bs5/navbar/navbar.stories.js +532 -0
- package/src/components/bs5/pageLayout/ContentPageWithForm.js +8 -0
- package/src/components/bs5/pageLayout/ContentPageWithSideNavigation.js +8 -0
- package/src/components/bs5/pageLayout/FullWidthLandingPage.js +8 -0
- package/src/components/bs5/pageLayout/pageLayout.hbs +11 -10
- package/src/components/bs5/pageLayout/pageLayout.stories.js +230 -6
- package/src/components/bs5/pageLayout/templates/contentPageWithForm.hbs +78 -0
- package/src/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +103 -0
- package/src/components/bs5/pageLayout/templates/fullWidthLandingPage.hbs +61 -0
- package/src/components/bs5/searchInput/__snapshots__/searchInput.test.js.snap +9 -8
- package/src/components/bs5/searchInput/search.functions.js +94 -63
- package/src/components/bs5/searchInput/searchInput.data.json +2 -3
- package/src/components/bs5/searchInput/searchInput.hbs +8 -10
- package/src/components/bs5/searchInput/searchInput.scss +296 -255
- package/src/components/bs5/searchInput/searchInput.test.js +98 -89
- package/src/components/bs5/sidenav/sidenav.stories.js +17 -15
- package/src/components/bs5/tabs/tabs.data.json +45 -44
- package/src/components/bs5/tabs/tabs.scss +544 -500
- package/src/components/bs5/tabs/tabs.stories.js +81 -51
- package/src/components/common/footer/footer.scss +137 -140
- package/src/components/common/layout/container.scss +22 -0
- package/src/components/common/layout/content.scss +11 -4
- package/src/components/common/layout/grid.scss +26 -0
- package/src/css/main.scss +5 -4
- package/src/css/qld-variables.scss +102 -81
- package/src/js/handlebars.helpers.js +51 -40
- package/src/js/handlebars.partials.js +16 -0
- package/src/js/qld.bootstrap.js +17 -9
- package/src/components/bs5/backToTop/backToTop.scss +0 -9
- package/src/components/bs5/breadcrumbs/breadcrumb.functions.js +0 -95
- package/src/components/bs5/breadcumbsWrapper/breadcrumbsWrapper.stories.js +0 -34
- package/src/components/bs5/contentFooterWrapper/contentFooterWrapper.stories.js +0 -36
- package/src/components/bs5/contentWrapper/contentWrapper.stories.js +0 -65
- package/src/components/bs5/fullPageWrapper/fullPage.stories.js +0 -63
- package/src/components/bs5/mainContainerWrapper/mainContainerWrapper.stories.js +0 -50
- package/src/components/bs5/navbar/_colours.scss +0 -85
- package/src/components/bs5/navbar/_icons.scss +0 -64
- package/src/components/bs5/sidenavWrapper/SidenavWrapper.mdx +0 -11
- package/src/components/bs5/sidenavWrapper/sidenavWrapper.stories.js +0 -65
- package/src/stories/integration/MainIntegration.js +0 -28
- package/src/stories/integration/MainIntegration.mdx +0 -10
- package/src/stories/integration/breadcrumb.data.json +0 -28
- package/src/stories/integration/content.data.json +0 -3
- package/src/stories/integration/contentFooter.data.json +0 -3
- package/src/stories/integration/footer.data.json +0 -111
- package/src/stories/integration/globalAlert.data.json +0 -10
- package/src/stories/integration/header.data.json +0 -173
- package/src/stories/integration/inpagenav.data.json +0 -26
- package/src/stories/integration/integration.stories.js +0 -147
- package/src/stories/integration/main.hbs +0 -13
- package/src/stories/integration/navigation.data.json +0 -22
- package/src/stories/integration/search.data.json +0 -20
- package/src/stories/integration/sidenav.data.json +0 -88
|
@@ -25,7 +25,8 @@ $input-transition:
|
|
|
25
25
|
// Checks and radios (LARGE)
|
|
26
26
|
$form-check-input-width: 2rem;
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
// Checks and radios (SMALL)
|
|
29
|
+
$form-check-input-width-small: 1.375rem;
|
|
29
30
|
|
|
30
31
|
$form-check-min-height: $font-size-base * $line-height-base;
|
|
31
32
|
$form-check-padding-start: $form-check-input-width + 0.5rem;
|
|
@@ -37,13 +38,13 @@ $form-check-transition: null;
|
|
|
37
38
|
$form-check-input-active-filter: brightness(100%);
|
|
38
39
|
|
|
39
40
|
$form-check-input-bg: $input-bg;
|
|
40
|
-
$form-check-input-border: 2px solid var(--#{$prefix}
|
|
41
|
+
$form-check-input-border: 2px solid var(--#{$prefix}light-text-text);
|
|
41
42
|
$form-check-input-border-radius: 0.25em;
|
|
42
43
|
$form-check-radio-border-radius: 50%;
|
|
43
44
|
|
|
44
|
-
$form-check-input-checked-color:
|
|
45
|
+
$form-check-input-checked-color: var(--#{$prefix}light-text-text);
|
|
45
46
|
$form-check-input-checked-bg-color: transparent;
|
|
46
|
-
$form-check-input-checked-border-color: var(--#{$prefix}
|
|
47
|
+
$form-check-input-checked-border-color: var(--#{$prefix}light-text-text);
|
|
47
48
|
|
|
48
49
|
$form-check-hover: var(--#{$prefix}dark-hover);
|
|
49
50
|
|
|
@@ -58,25 +59,27 @@ $form-check-input-outline-dark: 3px solid var(--#{$prefix}dark-focus);
|
|
|
58
59
|
$form-check-input-border-width-small: 2px;
|
|
59
60
|
|
|
60
61
|
// DARK ICON
|
|
61
|
-
$form-check-input-checked-color-dark:
|
|
62
|
+
$form-check-input-checked-color-dark: var(--#{$prefix}dark-text-text);
|
|
62
63
|
|
|
63
64
|
// DARK BORDER
|
|
64
|
-
$form-check-input-border-dark:
|
|
65
|
+
$form-check-input-border-dark: var(--#{$prefix}dark-text-text);
|
|
65
66
|
|
|
66
67
|
// RADIO CHECKED LIGHT
|
|
67
|
-
$form-radio-bg-image: url(
|
|
68
|
+
$form-radio-bg-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><circle cx="16" cy="16" r="11" fill="#000000"/></svg>');
|
|
69
|
+
$form-radio-bg-image-small: url('data:image/svg+xml,<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11 17.5C14.5899 17.5 17.5 14.5899 17.5 11C17.5 7.41015 14.5899 4.5 11 4.5C7.41015 4.5 4.5 7.41015 4.5 11C4.5 14.5899 7.41015 17.5 11 17.5Z" fill="#000000"/></svg>');
|
|
68
70
|
|
|
69
71
|
// RADIO CHECKED DARK
|
|
70
72
|
$form-radio-bg-image-dark: url("data:image/svg+xml,<svg viewBox='-2 -2 4 4' xmlns='http://www.w3.org/2000/svg'><circle r='1.8' fill='#{$form-check-input-checked-color-dark}'/></svg>");
|
|
71
73
|
|
|
72
74
|
// CHECKBOX CHECKED LIGHT
|
|
73
|
-
$form-check-bg-image: url("data:image/svg+xml
|
|
75
|
+
$form-check-bg-image: url("data:image/svg+xml,%3Csvg width='18' height='14' viewBox='0 0 18 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5498 13.8L0.0498047 7.30002L2.2998 5.05002L6.5498 9.30002L15.6998 0.150024L17.9498 2.40002L6.5498 13.8Z' fill='currentColor'/%3E%3C/svg%3E%0A");
|
|
74
76
|
|
|
75
77
|
// CHECKBOX CHECKED DARK
|
|
76
|
-
$form-check-bg-image-dark: url("data:image/svg+xml
|
|
78
|
+
$form-check-bg-image-dark: url("data:image/svg+xml,%3Csvg width='18' height='14' viewBox='0 0 18 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5498 13.8L0.0498047 7.30002L2.2998 5.05002L6.5498 9.30002L15.6998 0.150024L17.9498 2.40002L6.5498 13.8Z' fill='#{$form-check-input-checked-color-dark}'/%3E%3C/svg%3E");
|
|
77
79
|
|
|
78
80
|
// ESCAPE SVGs FOR ICONS
|
|
79
81
|
$form-radio-button: #{escape-svg($form-radio-bg-image)};
|
|
82
|
+
$form-radio-button-small: #{escape-svg($form-radio-bg-image-small)};
|
|
80
83
|
$form-radio-button-dark: #{escape-svg($form-radio-bg-image-dark)};
|
|
81
84
|
$form-checkbox-button: #{escape-svg($form-check-bg-image)};
|
|
82
85
|
$form-checkbox-button-dark: #{escape-svg($form-check-bg-image-dark)};
|
|
@@ -92,21 +95,6 @@ $form-check-btn-check-disabled-opacity: $btn-disabled-opacity;
|
|
|
92
95
|
|
|
93
96
|
$form-check-inline-margin-end: 1rem;
|
|
94
97
|
|
|
95
|
-
.small {
|
|
96
|
-
.form-check .form-check-input {
|
|
97
|
-
width: $form-check-input-width-small;
|
|
98
|
-
height: $form-check-input-width-small;
|
|
99
|
-
|
|
100
|
-
&[type="checkbox"],
|
|
101
|
-
&[type="radio"] {
|
|
102
|
-
border-width: #{$form-check-input-border-width-small};
|
|
103
|
-
&:checked {
|
|
104
|
-
background-size: 14px 14px;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
98
|
.form-label {
|
|
111
99
|
font-weight: 600;
|
|
112
100
|
line-height: 1.5;
|
|
@@ -138,158 +126,192 @@ $form-check-inline-margin-end: 1rem;
|
|
|
138
126
|
&:active,
|
|
139
127
|
&:focus {
|
|
140
128
|
border-color: var(--#{$prefix}input-border-color-hover);
|
|
141
|
-
outline:
|
|
129
|
+
outline: $form-check-input-outline;
|
|
142
130
|
outline-offset: 2px;
|
|
143
131
|
box-shadow: none;
|
|
144
132
|
}
|
|
145
133
|
}
|
|
146
134
|
|
|
147
|
-
.form-check {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
135
|
+
.form-check-input {
|
|
136
|
+
// hides the original input element, and + label recreates it visually
|
|
137
|
+
background-size: calc(2rem - 8px);
|
|
138
|
+
border: 0;
|
|
139
|
+
clip-path: inset(0 0 0 0);
|
|
140
|
+
width: 1px;
|
|
141
|
+
height: 1px;
|
|
142
|
+
margin: -1px;
|
|
143
|
+
overflow: hidden;
|
|
144
|
+
padding: 0;
|
|
145
|
+
position: absolute;
|
|
146
|
+
margin-top: 0;
|
|
147
|
+
|
|
148
|
+
+ label {
|
|
149
|
+
--_background-color: transparent;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
position: relative;
|
|
152
|
+
vertical-align: bottom;
|
|
153
|
+
line-height: 2rem;
|
|
154
|
+
padding-left: 2.5rem;
|
|
155
|
+
margin-left: -1.5em;
|
|
156
|
+
|
|
157
|
+
// before is the outer box with border,
|
|
158
|
+
// after is the check or radio icon
|
|
159
|
+
&::before,
|
|
160
|
+
&::after {
|
|
161
|
+
visibility: visible;
|
|
162
|
+
content: " ";
|
|
163
|
+
display: block;
|
|
164
|
+
position: absolute;
|
|
165
|
+
top: 0;
|
|
166
|
+
left: 0;
|
|
167
|
+
box-sizing: border-box;
|
|
168
|
+
background-repeat: no-repeat;
|
|
169
|
+
z-index: 9;
|
|
170
|
+
border: $form-check-input-border;
|
|
171
|
+
width: 2rem;
|
|
172
|
+
height: 2rem;
|
|
161
173
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
border-color:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
174
|
+
&::before {
|
|
175
|
+
background-color: var(--_background-color);
|
|
176
|
+
border-color: $form-check-input-checked-border-color;
|
|
177
|
+
background-image: none !important;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&::after {
|
|
181
|
+
z-index: 101;
|
|
182
|
+
background-color: transparent;
|
|
168
183
|
}
|
|
169
184
|
}
|
|
170
185
|
|
|
171
|
-
|
|
172
|
-
|
|
186
|
+
&:active + label::before,
|
|
187
|
+
&:focus + label::before {
|
|
188
|
+
border-color: var(--#{$prefix}input-border-color-hover);
|
|
189
|
+
outline: $form-check-input-outline;
|
|
190
|
+
outline-offset: 2px;
|
|
191
|
+
box-shadow: none;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&:hover + label {
|
|
195
|
+
--_background-color: var(--#{$prefix}extra-light-grey);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&:checked {
|
|
199
|
+
background-color: transparent;
|
|
173
200
|
background-image: none;
|
|
174
|
-
background-size: calc(2rem - 8px);
|
|
175
|
-
border: $form-check-input-border;
|
|
176
201
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
202
|
+
& + label::after {
|
|
203
|
+
content: "";
|
|
204
|
+
display: block;
|
|
205
|
+
mask-repeat: no-repeat;
|
|
206
|
+
mask-position: center;
|
|
207
|
+
background-color: $form-check-input-checked-color;
|
|
181
208
|
}
|
|
182
209
|
}
|
|
183
210
|
|
|
184
|
-
|
|
185
|
-
.form-check-input[type="checkbox"] {
|
|
186
|
-
background-size: calc(2rem - 8px);
|
|
187
|
-
border: $form-check-input-border;
|
|
211
|
+
&[type="checkbox"] {
|
|
188
212
|
border-radius: 0;
|
|
189
213
|
|
|
190
214
|
&:checked {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
border-color: #{$form-check-input-checked-border-color};
|
|
215
|
+
+ label::after {
|
|
216
|
+
mask-image: $form-check-bg-image;
|
|
217
|
+
mask-size: 1.125rem;
|
|
218
|
+
}
|
|
196
219
|
}
|
|
197
220
|
}
|
|
198
221
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
outline-offset: 2px;
|
|
208
|
-
box-shadow: none;
|
|
222
|
+
&[type="radio"] {
|
|
223
|
+
background-image: none;
|
|
224
|
+
|
|
225
|
+
+ label {
|
|
226
|
+
//
|
|
227
|
+
&::before,
|
|
228
|
+
&::after {
|
|
229
|
+
border-radius: 50%;
|
|
209
230
|
}
|
|
210
|
-
|
|
211
|
-
|
|
231
|
+
|
|
232
|
+
&::after {
|
|
233
|
+
mask-image: $form-radio-button;
|
|
234
|
+
mask-size: 100%;
|
|
212
235
|
}
|
|
213
236
|
}
|
|
214
237
|
}
|
|
215
|
-
|
|
238
|
+
|
|
239
|
+
// DEFAULT VALID & INVALID
|
|
240
|
+
.valid &,
|
|
241
|
+
.invalid & {
|
|
242
|
+
&:focus + label::before {
|
|
243
|
+
outline: $form-check-input-outline;
|
|
244
|
+
outline-offset: 2px;
|
|
245
|
+
box-shadow: none;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
.valid & {
|
|
249
|
+
+ label::before {
|
|
250
|
+
outline: $form-check-valid-color solid 2px;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
216
253
|
.invalid & {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
outline: #{$form-check-invalid-color} solid 2px;
|
|
220
|
-
|
|
221
|
-
&:focus {
|
|
222
|
-
outline: #{$form-check-input-outline};
|
|
223
|
-
outline-offset: 2px;
|
|
224
|
-
box-shadow: none;
|
|
225
|
-
}
|
|
226
|
-
&:checked:focus {
|
|
227
|
-
outline: #{$form-check-input-outline};
|
|
228
|
-
}
|
|
254
|
+
+ label::before {
|
|
255
|
+
outline: $form-check-invalid-color solid 2px;
|
|
229
256
|
}
|
|
230
257
|
}
|
|
231
|
-
|
|
232
|
-
.
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
&:hover,
|
|
236
|
-
&:focus {
|
|
237
|
-
background-color: #{$form-check-hover};
|
|
238
|
-
}
|
|
258
|
+
|
|
259
|
+
.small & {
|
|
260
|
+
&:checked + label::before {
|
|
261
|
+
background-size: 22px 22px;
|
|
239
262
|
}
|
|
240
|
-
|
|
241
|
-
|
|
263
|
+
|
|
264
|
+
&[type="checkbox"]:checked + label:after {
|
|
265
|
+
mask-size: 0.84906rem 0.63988rem;
|
|
242
266
|
}
|
|
243
|
-
|
|
244
|
-
|
|
267
|
+
|
|
268
|
+
+ label {
|
|
269
|
+
font-size: 1rem;
|
|
270
|
+
font-style: normal;
|
|
271
|
+
font-weight: 400;
|
|
272
|
+
line-height: $input-line-height;
|
|
273
|
+
padding-left: 1.875rem;
|
|
274
|
+
|
|
275
|
+
&:before,
|
|
276
|
+
&:after {
|
|
277
|
+
width: $form-check-input-width-small;
|
|
278
|
+
height: $form-check-input-width-small;
|
|
279
|
+
border-width: $form-check-input-border-width-small;
|
|
280
|
+
}
|
|
245
281
|
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
282
|
+
|
|
283
|
+
&[type="radio"] + label::after {
|
|
284
|
+
mask-image: $form-radio-button-small;
|
|
249
285
|
}
|
|
250
|
-
|
|
251
|
-
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.dark &,
|
|
289
|
+
.dark-alt & {
|
|
290
|
+
&:hover + label {
|
|
291
|
+
--_background-color: $form-check-hover;
|
|
252
292
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
.form-check-input[type="radio"] {
|
|
256
|
-
&:checked {
|
|
257
|
-
background-color: transparent;
|
|
258
|
-
background-size: 14px 14px;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
293
|
+
&:hover + label::after {
|
|
294
|
+
background-color: $form-check-hover;
|
|
261
295
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
.form-check-input[type="checkbox"] {
|
|
266
|
-
outline: #{$form-check-valid-color} solid 2px;
|
|
267
|
-
&:focus {
|
|
268
|
-
outline: #{$form-check-input-outline-dark};
|
|
269
|
-
outline-offset: 2px;
|
|
270
|
-
box-shadow: none;
|
|
271
|
-
}
|
|
272
|
-
&:checked:focus {
|
|
273
|
-
outline: #{$form-check-input-outline-dark};
|
|
274
|
-
}
|
|
275
|
-
}
|
|
296
|
+
+ label::before,
|
|
297
|
+
+ label::after {
|
|
298
|
+
border-color: $form-check-input-border-dark;
|
|
276
299
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
.form-check-input[type="checkbox"] {
|
|
281
|
-
outline: #{$form-check-invalid-color} solid 2px;
|
|
282
|
-
&:focus {
|
|
283
|
-
outline: #{$form-check-input-outline-dark};
|
|
284
|
-
outline-offset: 2px;
|
|
285
|
-
box-shadow: none;
|
|
286
|
-
}
|
|
287
|
-
&:checked:focus {
|
|
288
|
-
outline: #{$form-check-input-outline-dark};
|
|
289
|
-
}
|
|
300
|
+
&:checked {
|
|
301
|
+
& + label::after {
|
|
302
|
+
background-color: $form-check-input-checked-color-dark;
|
|
290
303
|
}
|
|
291
304
|
}
|
|
305
|
+
:focus {
|
|
306
|
+
outline: $form-check-input-outline-dark;
|
|
307
|
+
}
|
|
292
308
|
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.form-check {
|
|
312
|
+
display: flex;
|
|
313
|
+
align-items: center;
|
|
314
|
+
margin-bottom: $form-check-margin-bottom;
|
|
293
315
|
&-label {
|
|
294
316
|
margin-left: 0.5rem;
|
|
295
317
|
}
|
|
@@ -1,48 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
2
|
+
"questionLabel": "Which service do you need?",
|
|
3
|
+
"optionalLabel": "(Optional)",
|
|
4
|
+
"hintLabel": "Hint label",
|
|
5
|
+
"listClasses": "field-required",
|
|
6
|
+
"listitems": [
|
|
7
|
+
{
|
|
8
|
+
"type": "checkbox",
|
|
9
|
+
"id": "checkboxItem1",
|
|
10
|
+
"name": "checkboxOption",
|
|
11
|
+
"label": "Option 1",
|
|
12
|
+
"value": "1",
|
|
13
|
+
"isDisabled": false,
|
|
14
|
+
"isChecked": false
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "checkbox",
|
|
18
|
+
"id": "checkboxItem2",
|
|
19
|
+
"name": "checkboxOption",
|
|
20
|
+
"label": "Option 2",
|
|
21
|
+
"value": "2",
|
|
22
|
+
"isDisabled": false,
|
|
23
|
+
"isChecked": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "checkbox",
|
|
27
|
+
"id": "checkboxItem3",
|
|
28
|
+
"name": "checkboxOption",
|
|
29
|
+
"label": "Option 3",
|
|
30
|
+
"value": "3",
|
|
31
|
+
"isDisabled": false,
|
|
32
|
+
"isChecked": false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "checkbox",
|
|
36
|
+
"id": "checkboxItem4",
|
|
37
|
+
"name": "checkboxOption",
|
|
38
|
+
"label": "Option 4",
|
|
39
|
+
"value": "4",
|
|
40
|
+
"isDisabled": false,
|
|
41
|
+
"isChecked": true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "checkbox",
|
|
45
|
+
"id": "checkboxItem5",
|
|
46
|
+
"name": "checkboxOption",
|
|
47
|
+
"label": "Disabled",
|
|
48
|
+
"value": "",
|
|
49
|
+
"isDisabled": true,
|
|
50
|
+
"isChecked": false
|
|
51
|
+
}
|
|
52
|
+
]
|
|
48
53
|
}
|
|
@@ -1,48 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
2
|
+
"questionLabel": "Which service do you need?",
|
|
3
|
+
"optionalLabel": "(Optional)",
|
|
4
|
+
"hintLabel": "Hint label",
|
|
5
|
+
"listClasses": "field-required",
|
|
6
|
+
"listitems": [
|
|
7
|
+
{
|
|
8
|
+
"type": "radio",
|
|
9
|
+
"id": "radioItem1",
|
|
10
|
+
"name": "radioOption",
|
|
11
|
+
"label": "Option 1",
|
|
12
|
+
"value": "1",
|
|
13
|
+
"isDisabled": false,
|
|
14
|
+
"isChecked": false
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "radio",
|
|
18
|
+
"id": "radioItem2",
|
|
19
|
+
"name": "radioOption",
|
|
20
|
+
"label": "Option 2",
|
|
21
|
+
"value": "2",
|
|
22
|
+
"isDisabled": false,
|
|
23
|
+
"isChecked": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "radio",
|
|
27
|
+
"id": "radioItem3",
|
|
28
|
+
"name": "radioOption",
|
|
29
|
+
"label": "Option 3",
|
|
30
|
+
"value": "3",
|
|
31
|
+
"isDisabled": false,
|
|
32
|
+
"isChecked": true
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "radio",
|
|
36
|
+
"id": "radioItem4",
|
|
37
|
+
"name": "radioOption",
|
|
38
|
+
"label": "Option 4",
|
|
39
|
+
"value": "4",
|
|
40
|
+
"isDisabled": false,
|
|
41
|
+
"isChecked": false
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "radio",
|
|
45
|
+
"id": "radioItem5",
|
|
46
|
+
"name": "radioOption",
|
|
47
|
+
"label": "Disabled",
|
|
48
|
+
"value": "",
|
|
49
|
+
"isDisabled": true,
|
|
50
|
+
"isChecked": false
|
|
51
|
+
}
|
|
52
|
+
]
|
|
48
53
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"default": {
|
|
3
|
+
"url": "",
|
|
4
|
+
"id": "",
|
|
5
|
+
"label": "Document title (PDF 2.5 MB)",
|
|
6
|
+
"target": "_self",
|
|
7
|
+
"arialabel": "Document title (PDF 2.5 MB)",
|
|
8
|
+
"iconClass": "qld-icon-document-pdf",
|
|
9
|
+
"iconPosition": "leading",
|
|
10
|
+
"download": null
|
|
11
|
+
},
|
|
12
|
+
"linkGroup": {
|
|
13
|
+
"title": "Link group title",
|
|
14
|
+
"linkList": [
|
|
15
|
+
{
|
|
16
|
+
"url": "",
|
|
17
|
+
"id": "doc-1",
|
|
18
|
+
"label": "Document title (DOC 2.5 MB)",
|
|
19
|
+
"target": "_self",
|
|
20
|
+
"arialabel": "Document title (DOC 2.5 MB)",
|
|
21
|
+
"iconClass": "qld-icon-document-word",
|
|
22
|
+
"iconPosition": "leading",
|
|
23
|
+
"download": null
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"url": "",
|
|
27
|
+
"id": "doc-2",
|
|
28
|
+
"label": "JPG image file (JPG 2.5 KB)",
|
|
29
|
+
"target": "_self",
|
|
30
|
+
"arialabel": "JPG image file (JPG 2.5 KB)",
|
|
31
|
+
"iconClass": "qld-icon-image",
|
|
32
|
+
"iconPosition": "leading",
|
|
33
|
+
"download": null
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"url": "",
|
|
37
|
+
"id": "doc-3",
|
|
38
|
+
"label": "PNG image file (PNG 2.5 KB)",
|
|
39
|
+
"target": "_self",
|
|
40
|
+
"arialabel": "PNG image file (PNG 2.5 KB)",
|
|
41
|
+
"iconClass": "qld-icon-image",
|
|
42
|
+
"iconPosition": "leading",
|
|
43
|
+
"download": null
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"url": "",
|
|
47
|
+
"id": "doc-4",
|
|
48
|
+
"label": "Document title (PDF 2.5 MB)",
|
|
49
|
+
"target": "_self",
|
|
50
|
+
"arialabel": "Document title (PDF 2.5 MB)",
|
|
51
|
+
"iconClass": "qld-icon-document-pdf",
|
|
52
|
+
"iconPosition": "leading",
|
|
53
|
+
"download": null
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"url": "",
|
|
57
|
+
"id": "doc-5",
|
|
58
|
+
"label": "Document title (CSV 2.5 MB)",
|
|
59
|
+
"target": "_self",
|
|
60
|
+
"arialabel": "Document title (CSV 2.5 MB)",
|
|
61
|
+
"iconClass": "qld-icon-document-spreadsheet",
|
|
62
|
+
"iconPosition": "leading",
|
|
63
|
+
"download": null
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"url": "",
|
|
67
|
+
"id": "doc-6",
|
|
68
|
+
"label": "Document title (PDF 2.5 MB)",
|
|
69
|
+
"target": "_self",
|
|
70
|
+
"arialabel": "Document title (PDF 2.5 MB)",
|
|
71
|
+
"iconClass": "qld-icon-document-pdf",
|
|
72
|
+
"iconPosition": "leading",
|
|
73
|
+
"download": null
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|