@qld-gov-au/qgds-bootstrap5 2.0.2 → 2.0.4
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/.storybook/preview.js +4 -1
- package/dist/assets/components/bs5/accordion/accordion.hbs +0 -3
- package/dist/assets/components/bs5/directionLinks/directionLinks.hbs +2 -1
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/components/bs5/header/header.hbs +6 -9
- package/dist/assets/components/bs5/navbar/navbar.hbs +21 -14
- package/dist/assets/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
- package/dist/assets/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
- package/dist/assets/components/bs5/pageLayout/templates/homePage.hbs +1 -1
- package/dist/assets/components/bs5/searchInput/searchInput.hbs +34 -35
- package/dist/assets/components/bs5/sidenav/sidenav.hbs +56 -37
- package/dist/assets/css/qld.bootstrap.css +1 -6
- package/dist/assets/css/qld.bootstrap.css.map +3 -3
- package/dist/assets/js/handlebars.init.min.js +263 -212
- package/dist/assets/js/handlebars.init.min.js.map +2 -2
- package/dist/assets/js/qld.bootstrap.min.js +5 -5
- package/dist/assets/js/qld.bootstrap.min.js.map +4 -4
- package/dist/assets/node/handlebars.init.min.js +29 -25
- package/dist/assets/node/handlebars.init.min.js.map +2 -2
- package/dist/components/bs5/accordion/accordion.hbs +0 -3
- package/dist/components/bs5/directionLinks/directionLinks.hbs +2 -1
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/components/bs5/header/header.hbs +6 -9
- package/dist/components/bs5/navbar/navbar.hbs +21 -14
- package/dist/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
- package/dist/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
- package/dist/components/bs5/pageLayout/templates/homePage.hbs +1 -1
- package/dist/components/bs5/searchInput/searchInput.hbs +34 -35
- package/dist/components/bs5/sidenav/sidenav.hbs +56 -37
- package/dist/package.json +2 -4
- package/dist/sample-data/navbar/navbar.data.json +91 -25
- package/dist/sample-data/pagination/pagination.data.json +19 -19
- package/dist/sample-data/searchInput/searchInput.data.json +0 -1
- package/dist/sample-data/sidenav/sidenav.data.json +81 -80
- package/package.json +2 -4
- package/src/components/bs5/accordion/Accordion.mdx +34 -10
- package/src/components/bs5/accordion/__snapshots__/accordion.test.js.snap +0 -3
- package/src/components/bs5/accordion/accordion.hbs +0 -3
- package/src/components/bs5/accordion/mdx/_designResources.mdx +6 -0
- package/src/components/bs5/accordion/mdx/_usageInstructions.mdx +10 -0
- package/src/components/bs5/blockquote/blockquote.scss +47 -7
- package/src/components/bs5/button/button.scss +4 -0
- package/src/components/bs5/directionLinks/directionLinks.hbs +2 -1
- package/src/components/bs5/directionLinks/directionLinks.scss +27 -80
- package/src/components/bs5/directionLinks/directionLinks.stories.js +7 -14
- package/src/components/bs5/header/header.hbs +6 -9
- package/src/components/bs5/header/header.scss +15 -27
- package/src/components/bs5/inpagenav/inpagenav.scss +7 -3
- package/src/components/bs5/logo/Logo.mdx +1 -1
- package/src/components/bs5/navbar/navbar.data.json +91 -25
- package/src/components/bs5/navbar/navbar.functions.js +4 -0
- package/src/components/bs5/navbar/navbar.hbs +21 -14
- package/src/components/bs5/navbar/navbar.scss +225 -170
- package/src/components/bs5/navbar/navbar.stories.js +31 -2
- package/src/components/bs5/pageLayout/pageLayout.stories.js +3 -1
- package/src/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
- package/src/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
- package/src/components/bs5/pageLayout/templates/homePage.hbs +1 -1
- package/src/components/bs5/pagination/pagination.data.json +19 -19
- package/src/components/bs5/pagination/pagination.scss +37 -63
- package/src/components/bs5/promotionalPanel/promotionalPanel.scss +23 -22
- package/src/components/bs5/quickexit/quickexit.functions.js +24 -37
- package/src/components/bs5/quickexit/quickexit.scss +4 -0
- package/src/components/bs5/searchInput/SearchInput.mdx +1 -1
- package/src/components/bs5/searchInput/__snapshots__/searchInput.test.js.snap +32 -34
- package/src/components/bs5/searchInput/searchInput.data.json +0 -1
- package/src/components/bs5/searchInput/searchInput.hbs +34 -35
- package/src/components/bs5/searchInput/searchInput.scss +216 -195
- package/src/components/bs5/searchInput/searchInput.stories.js +42 -26
- package/src/components/bs5/sidenav/sidenav.data.json +81 -80
- package/src/components/bs5/sidenav/sidenav.hbs +56 -37
- package/src/components/bs5/sidenav/sidenav.scss +236 -151
- package/src/components/bs5/skiplinks/skipLinks.functions.js +0 -9
- package/src/components/bs5/skiplinks/skipLinks.test.js +0 -1
- package/src/components/bs5/tabs/tabs.scss +47 -40
- package/src/components/common/layout/container.scss +5 -0
- package/src/components/common/layout/content.scss +16 -8
- package/src/css/main.scss +0 -7
- package/src/css/mixins/focusable.scss +11 -3
- package/src/css/mixins/make-icon.scss +7 -1
- package/src/css/qld-theme.scss +1 -0
- package/src/css/utilities/_index.scss +1 -0
- package/src/css/utilities/sr-only.scss +5 -0
- package/src/js/qld.bootstrap.js +1 -9
- package/src/stories/documentation/_storybookDocsTabs.jsx +63 -0
- package/src/stories/documentation/storybook-documentation.scss +51 -0
- package/src/components/bs5/pagination/health-icon-sprite.svg +0 -156
- package/src/components/bs5/searchInput/_colours.scss +0 -63
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
display: grid;
|
|
10
10
|
grid-template-columns: repeat(2, 1fr);
|
|
11
11
|
grid-template-areas: "content graphic";
|
|
12
|
-
|
|
12
|
+
& > * {
|
|
13
13
|
padding: 0;
|
|
14
14
|
}
|
|
15
15
|
&.content-right {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
align-items: start;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
&.bg-img {
|
|
22
|
-
background-repeat: no-repeat;
|
|
21
|
+
&.bg-img {
|
|
22
|
+
background-repeat: no-repeat;
|
|
23
23
|
background-size: cover;
|
|
24
24
|
.content-panel {
|
|
25
25
|
padding: 4rem;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
flex-direction: column;
|
|
49
49
|
gap: 2rem;
|
|
50
50
|
align-items: end;
|
|
51
|
-
|
|
51
|
+
& > * {
|
|
52
52
|
max-width: 65ch;
|
|
53
53
|
padding: 0;
|
|
54
54
|
margin: 0;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
justify-content: center;
|
|
65
65
|
}
|
|
66
66
|
.qld-icon {
|
|
67
|
-
--#{$prefix}icon-color: var(--icon-colour);
|
|
67
|
+
--#{$prefix}icon-color: var(--icon-colour);
|
|
68
68
|
width: 2rem;
|
|
69
69
|
height: 2rem;
|
|
70
70
|
mask-size: 100%;
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
gap: 1.5rem;
|
|
80
80
|
}
|
|
81
81
|
h2 {
|
|
82
|
-
margin:0;
|
|
82
|
+
margin: 0;
|
|
83
83
|
line-height: 1.25;
|
|
84
84
|
}
|
|
85
85
|
.btn-container {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
gap: 1rem;
|
|
88
88
|
flex-direction: row;
|
|
89
89
|
justify-content: start;
|
|
90
|
-
flex-wrap:wrap;
|
|
90
|
+
flex-wrap: wrap;
|
|
91
91
|
}
|
|
92
92
|
.cta-container {
|
|
93
93
|
.qld-cta-link {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
@include media-breakpoint-down(xl) {
|
|
123
123
|
.row {
|
|
124
|
-
|
|
124
|
+
border-radius: 0;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -130,12 +130,12 @@
|
|
|
130
130
|
border-radius: 0;
|
|
131
131
|
padding: 0;
|
|
132
132
|
background-color: transparent;
|
|
133
|
-
gap:0;
|
|
133
|
+
gap: 0;
|
|
134
134
|
.content-panel {
|
|
135
135
|
border-radius: 3rem;
|
|
136
136
|
border-start-end-radius: 0;
|
|
137
137
|
padding: 4rem;
|
|
138
|
-
}
|
|
138
|
+
}
|
|
139
139
|
.image-panel {
|
|
140
140
|
.promo-panel-image {
|
|
141
141
|
border-radius: 0;
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
&.content-right {
|
|
184
184
|
.content-panel {
|
|
185
185
|
border-radius: 0;
|
|
186
|
-
border-start-end-radius: 3rem;
|
|
186
|
+
border-start-end-radius: 3rem;
|
|
187
187
|
border-end-end-radius: 3rem;
|
|
188
188
|
}
|
|
189
189
|
.image-panel {
|
|
@@ -209,14 +209,14 @@
|
|
|
209
209
|
&.indent .row {
|
|
210
210
|
.content-panel {
|
|
211
211
|
border-radius: 0;
|
|
212
|
-
border-end-end-radius: 3rem
|
|
212
|
+
border-end-end-radius: 3rem;
|
|
213
213
|
padding-inline: 3rem;
|
|
214
214
|
padding-block: 2.5rem;
|
|
215
215
|
gap: 1.5rem;
|
|
216
216
|
}
|
|
217
217
|
&.content-right {
|
|
218
218
|
.content-panel {
|
|
219
|
-
border-radius: 0
|
|
219
|
+
border-radius: 0;
|
|
220
220
|
border-end-start-radius: 3rem;
|
|
221
221
|
}
|
|
222
222
|
.image-panel {
|
|
@@ -236,10 +236,10 @@
|
|
|
236
236
|
&.indent-img .row {
|
|
237
237
|
.image-panel {
|
|
238
238
|
margin-block-end: -2.75rem;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
239
|
+
.promo-panel-image {
|
|
240
|
+
border-radius: 0;
|
|
241
|
+
border-end-start-radius: 2.5rem;
|
|
242
|
+
}
|
|
243
243
|
}
|
|
244
244
|
.content-panel {
|
|
245
245
|
border-radius: 0;
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
.content-panel {
|
|
256
|
-
border-radius: 0
|
|
256
|
+
border-radius: 0;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
}
|
|
@@ -267,7 +267,8 @@
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
a.btn
|
|
270
|
+
a.btn,
|
|
271
|
+
.btn {
|
|
271
272
|
white-space: normal;
|
|
272
273
|
}
|
|
273
274
|
@include media-breakpoint-down(md) {
|
|
@@ -297,7 +298,7 @@
|
|
|
297
298
|
}
|
|
298
299
|
&.bg-img {
|
|
299
300
|
border-radius: 3rem;
|
|
300
|
-
gap:0;
|
|
301
|
+
gap: 0;
|
|
301
302
|
.content-panel {
|
|
302
303
|
border-radius: 2rem;
|
|
303
304
|
}
|
|
@@ -324,7 +325,7 @@
|
|
|
324
325
|
margin-block-end: 0;
|
|
325
326
|
.promo-panel-image {
|
|
326
327
|
border-radius: 0;
|
|
327
|
-
border-end-end-radius:
|
|
328
|
+
border-end-end-radius: 2rem;
|
|
328
329
|
}
|
|
329
330
|
}
|
|
330
331
|
.content-panel {
|
|
@@ -333,4 +334,4 @@
|
|
|
333
334
|
}
|
|
334
335
|
}
|
|
335
336
|
}
|
|
336
|
-
}
|
|
337
|
+
}
|
|
@@ -1,49 +1,36 @@
|
|
|
1
|
-
export function positionQuickExit() {
|
|
2
|
-
let quickexitInstances = document.getElementsByClassName('qld-quick-exit');
|
|
3
|
-
if (quickexitInstances.length > 0) {
|
|
4
|
-
const el = document.getElementsByClassName('qld-quick-exit')[0];
|
|
5
|
-
if (document.documentElement.clientWidth > 992) {
|
|
6
|
-
if (window.pageYOffset > 200) {
|
|
7
|
-
el.setAttribute("style", "position: 'fixed', top: '0px'");
|
|
8
|
-
}
|
|
9
|
-
if (window.pageYOffset < 200) {
|
|
10
|
-
el.setAttribute("style", "position: 'sticky', top: '0px'");
|
|
11
|
-
}
|
|
12
|
-
} else {
|
|
13
|
-
el.setAttribute("style", "position: 'fixed', top: 'auto'");
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
1
|
export function initQuickexit() {
|
|
19
|
-
var quickExitElement = document.getElementsByClassName(
|
|
20
|
-
var quickExitButton = document.querySelector(
|
|
2
|
+
var quickExitElement = document.getElementsByClassName("qld-quick-exit");
|
|
3
|
+
var quickExitButton = document.querySelector(".qld-quick-exit-button");
|
|
21
4
|
|
|
22
|
-
if (
|
|
5
|
+
if (
|
|
6
|
+
quickExitElement.length > 0 &&
|
|
7
|
+
typeof quickExitButton !== "undefined" &&
|
|
8
|
+
quickExitButton != null
|
|
9
|
+
) {
|
|
23
10
|
onbtnClick();
|
|
24
11
|
onKeyDown();
|
|
25
12
|
}
|
|
26
13
|
}
|
|
27
14
|
/**
|
|
28
|
-
* onbtnClick -> clicking quick exit button a page
|
|
29
|
-
* @return {undefined}
|
|
30
|
-
**/
|
|
15
|
+
* onbtnClick -> clicking quick exit button a page
|
|
16
|
+
* @return {undefined}
|
|
17
|
+
**/
|
|
31
18
|
function onbtnClick() {
|
|
32
|
-
const escapeSite =
|
|
33
|
-
var quickExitButton = document.querySelector(
|
|
19
|
+
const escapeSite = "https://www.google.com.au/";
|
|
20
|
+
var quickExitButton = document.querySelector(".qld-quick-exit-button");
|
|
34
21
|
quickExitButton.onclick = function () {
|
|
35
22
|
return quickExit(escapeSite);
|
|
36
|
-
}
|
|
23
|
+
};
|
|
37
24
|
}
|
|
38
25
|
|
|
39
26
|
/**
|
|
40
|
-
* onKeyDown -> escape keydown event
|
|
41
|
-
* @return {undefined}
|
|
42
|
-
**/
|
|
27
|
+
* onKeyDown -> escape keydown event
|
|
28
|
+
* @return {undefined}
|
|
29
|
+
**/
|
|
43
30
|
function onKeyDown() {
|
|
44
|
-
const escapeSite =
|
|
31
|
+
const escapeSite = "https://www.google.com.au/";
|
|
45
32
|
// add hotkey trigger
|
|
46
|
-
document.addEventListener(
|
|
33
|
+
document.addEventListener("keydown", function (e) {
|
|
47
34
|
if (e.keyCode === 27) {
|
|
48
35
|
quickExit(escapeSite);
|
|
49
36
|
if (e) {
|
|
@@ -58,18 +45,18 @@ function onKeyDown() {
|
|
|
58
45
|
}
|
|
59
46
|
|
|
60
47
|
/**
|
|
61
|
-
* quickExit function redirects a user on click and Esc key down
|
|
62
|
-
* @param {string} site - site to replace on initiating the 'quick exit' ('Esc' key or clicking 'Close this site' button) function
|
|
63
|
-
* @return {undefined}
|
|
64
|
-
**/
|
|
48
|
+
* quickExit function redirects a user on click and Esc key down
|
|
49
|
+
* @param {string} site - site to replace on initiating the 'quick exit' ('Esc' key or clicking 'Close this site' button) function
|
|
50
|
+
* @return {undefined}
|
|
51
|
+
**/
|
|
65
52
|
function quickExit(site) {
|
|
66
53
|
// then redirect to a non-sensitive site
|
|
67
|
-
window.open(site,
|
|
54
|
+
window.open(site, "_blank");
|
|
68
55
|
window.location.replace(site);
|
|
69
56
|
// remove as much info from URL as possible
|
|
70
57
|
if (window.history) {
|
|
71
58
|
try {
|
|
72
|
-
window.history.replaceState({},
|
|
59
|
+
window.history.replaceState({}, "", "/");
|
|
73
60
|
} catch (e) {
|
|
74
61
|
e.printStackTrace();
|
|
75
62
|
}
|
|
@@ -9,4 +9,4 @@ import * as SearchInputStories from "./searchInput.stories";
|
|
|
9
9
|
|
|
10
10
|
## Design resources
|
|
11
11
|
|
|
12
|
-
- [Component library
|
|
12
|
+
- [Component library(Figma)](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?node-id=11017-307599&t=NGmPmPhkUQMN7qQw-0)
|
|
@@ -4,44 +4,42 @@ exports[`SearchInput > Renders as expected 1`] = `
|
|
|
4
4
|
"<!--
|
|
5
5
|
QGDS Component: Search input
|
|
6
6
|
-->
|
|
7
|
-
<div class="
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
autocomplete="off" aria-label="Search website" data-collection="qgov~sp-search" data-profile="qld" data-numranks="10" data-tiers="off" data-suggestions="https://discover.search.qld.gov.au/s/suggest.json" data-results-url="https://discover.search.qld.gov.au/s/search.json" />
|
|
7
|
+
<div class="qld-search-input ">
|
|
8
|
+
<input id="search" name="query" class="form-control" type="text" autocomplete="off"
|
|
9
|
+
aria-label="Search website" data-collection="qgov~sp-search" data-profile="qld" data-numranks="10" data-tiers="off" data-suggestions="https://discover.search.qld.gov.au/s/suggest.json" data-results-url="https://discover.search.qld.gov.au/s/search.json" />
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
<div class="suggestions suggestions__group d-none">
|
|
12
|
+
<div class="default-suggestions">
|
|
13
|
+
<div class="suggestions-category mt-16">
|
|
14
|
+
<strong class="suggestions-category-label d-block">Popular services</strong>
|
|
15
|
+
<ul class="mt-2">
|
|
16
|
+
<li><a href="https://www.forgov.qld.gov.au/pay-benefits-and-policy/leave/submit-a-leave-application">Apply for leave</a></li>
|
|
17
|
+
<li><a href="https://www.forgov.qld.gov.au/recruitment-performance-and-career/starting-a-new-job/apply-for-higher-duties-or-relieving-at-level">Apply for higher duties or relieving at level</a></li>
|
|
18
|
+
<li><a href="https://www.forgov.qld.gov.au/recruitment-performance-and-career/recruitment/extending-my-job/extend-a-temporary-or-casual-employee">Extend a temporary or casual employee</a></li>
|
|
19
|
+
<li><a href="https://www.forgov.qld.gov.au/recruitment-performance-and-career/recruitment">Hire a staff member (recruitment)</a></li>
|
|
20
|
+
</ul>
|
|
21
|
+
</div>
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
<div class="suggestions-category mt-16">
|
|
24
|
+
<strong class="suggestions-category-label d-block">Browse by category</strong>
|
|
25
|
+
<ul class="mt-12 mb-0">
|
|
26
|
+
<li><a href="https://www.forgov.qld.gov.au/pay-benefits-and-policy/directives-policies-circulars-and-guidelines">Search for directives, policies, circulars, and guidelines</a></li>
|
|
27
|
+
<li><a href="https://www.forgov.qld.gov.au/pay-benefits-and-policy/benefits/employee-pay-and-benefits">Employee pay and benefits</a></li>
|
|
28
|
+
<li><a href="https://www.forgov.qld.gov.au/sandbox/archive/queensland-shared-services">Queensland Shared Services</a></li>
|
|
29
|
+
<li><a href="https://www.forgov.qld.gov.au/recruitment-performance-and-career/career-development">Career development</a></li>
|
|
30
|
+
</ul>
|
|
31
|
+
</div>
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</
|
|
33
|
+
<div class="suggestions-category">
|
|
34
|
+
<a class="px-16 pt-12 pb-16 d-block suggestions-category-view-more"
|
|
35
|
+
href="/queenslanders">Browse all categories</a>
|
|
37
36
|
</div>
|
|
38
|
-
<div class="dynamic-suggestions"></div>
|
|
39
37
|
</div>
|
|
40
|
-
<
|
|
41
|
-
<span class="btn-icon mx-0"></span>
|
|
42
|
-
<span class="btn-label">Search</span>
|
|
43
|
-
</button>
|
|
38
|
+
<div class="dynamic-suggestions"></div>
|
|
44
39
|
</div>
|
|
45
|
-
|
|
46
|
-
"
|
|
40
|
+
<button class="btn btn-primary" type="submit" id="search-button">
|
|
41
|
+
<span class="btn-icon"></span>
|
|
42
|
+
<span class="btn-label">Search</span>
|
|
43
|
+
</button>
|
|
44
|
+
</div>"
|
|
47
45
|
`;
|
|
@@ -1,44 +1,43 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
QGDS Component: Search input
|
|
3
3
|
-->
|
|
4
|
-
<div class="
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
autocomplete="off" aria-label="{{ ariaLabel }}" {{#each tags}} data-{{@key}}="{{this}}" {{/each}} />
|
|
4
|
+
<div class="qld-search-input {{customClass}}">
|
|
5
|
+
<input id="{{ inputID }}" name="{{ inputName }}" class="form-control" type="text" autocomplete="off"
|
|
6
|
+
aria-label="{{ ariaLabel }}" {{#each tags}} data-{{@key}}="{{this}}" {{/each}} />
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
{{#if suggestions}}
|
|
9
|
+
<div class="suggestions suggestions__group d-none">
|
|
10
|
+
<div class="default-suggestions">
|
|
11
|
+
<div class="suggestions-category mt-16">
|
|
12
|
+
<strong class="suggestions-category-label d-block">Popular services</strong>
|
|
13
|
+
<ul class="mt-2">
|
|
14
|
+
{{#each default_suggestions.popular_services}}
|
|
15
|
+
<li><a href="{{link}}">{{title}}</a></li>
|
|
16
|
+
{{/each}}
|
|
17
|
+
</ul>
|
|
18
|
+
</div>
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
<div class="suggestions-category mt-16">
|
|
21
|
+
<strong class="suggestions-category-label d-block">Browse by category</strong>
|
|
22
|
+
<ul class="mt-12 mb-0">
|
|
23
|
+
{{#each default_suggestions.categories}}
|
|
24
|
+
<li><a href="{{link}}">{{title}}</a></li>
|
|
25
|
+
{{/each}}
|
|
26
|
+
</ul>
|
|
27
|
+
</div>
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
</
|
|
34
|
-
{{/if}}
|
|
29
|
+
{{#if default_suggestions.options.view_more}}
|
|
30
|
+
<div class="suggestions-category">
|
|
31
|
+
<a class="px-16 pt-12 pb-16 d-block suggestions-category-view-more"
|
|
32
|
+
href="{{default_suggestions.options.href}}">{{default_suggestions.options.label}}</a>
|
|
35
33
|
</div>
|
|
36
|
-
|
|
34
|
+
{{/if}}
|
|
37
35
|
</div>
|
|
38
|
-
|
|
39
|
-
<button class="btn btn-primary" type="{{ buttonType }}" id="{{ buttonID }}">
|
|
40
|
-
<span class="btn-icon mx-0"></span>
|
|
41
|
-
<span class="btn-label">{{ buttonLabel }}</span>
|
|
42
|
-
</button>
|
|
36
|
+
<div class="dynamic-suggestions"></div>
|
|
43
37
|
</div>
|
|
44
|
-
|
|
38
|
+
{{/if}}
|
|
39
|
+
<button class="btn btn-primary" type="{{ buttonType }}" id="{{ buttonID }}">
|
|
40
|
+
<span class="btn-icon"></span>
|
|
41
|
+
<span class="btn-label">{{ buttonLabel }}</span>
|
|
42
|
+
</button>
|
|
43
|
+
</div>
|