@openeuropa/bcl-theme-default 0.23.0 → 0.24.0

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.
Files changed (338) hide show
  1. package/bcl-builder.config.js +6 -2
  2. package/css/oe-bcl-default.css +239 -1744
  3. package/css/oe-bcl-default.css.map +1 -1
  4. package/css/oe-bcl-default.min.css +1 -1
  5. package/css/oe-bcl-default.min.css.map +1 -1
  6. package/icons/world-flags/ad.svg +154 -0
  7. package/icons/world-flags/ae.svg +6 -0
  8. package/icons/world-flags/af.svg +1 -0
  9. package/icons/world-flags/ag.svg +1 -0
  10. package/icons/world-flags/ai.svg +1 -0
  11. package/icons/world-flags/al.svg +1 -0
  12. package/icons/world-flags/am.svg +5 -0
  13. package/icons/world-flags/an.svg +24 -0
  14. package/icons/world-flags/ao.svg +1 -0
  15. package/icons/world-flags/aq.svg +1 -0
  16. package/icons/world-flags/ar.svg +33 -0
  17. package/icons/world-flags/as.svg +1 -0
  18. package/icons/world-flags/at.svg +4 -0
  19. package/icons/world-flags/au.svg +1 -0
  20. package/icons/world-flags/aw.svg +1 -0
  21. package/icons/world-flags/ax.svg +11 -0
  22. package/icons/world-flags/az.svg +8 -0
  23. package/icons/world-flags/ba.svg +11 -0
  24. package/icons/world-flags/bb.svg +7 -0
  25. package/icons/world-flags/bd.svg +4 -0
  26. package/icons/world-flags/be.svg +5 -0
  27. package/icons/world-flags/bf.svg +14 -0
  28. package/icons/world-flags/bg.svg +5 -0
  29. package/icons/world-flags/bh.svg +1 -0
  30. package/icons/world-flags/bi.svg +26 -0
  31. package/icons/world-flags/bj.svg +5 -0
  32. package/icons/world-flags/bl.svg +160 -0
  33. package/icons/world-flags/bm.svg +1 -0
  34. package/icons/world-flags/bn.svg +58 -0
  35. package/icons/world-flags/bo.svg +1 -0
  36. package/icons/world-flags/bq.svg +5 -0
  37. package/icons/world-flags/br.svg +89 -0
  38. package/icons/world-flags/bs.svg +5 -0
  39. package/icons/world-flags/bt.svg +466 -0
  40. package/icons/world-flags/bv.svg +7 -0
  41. package/icons/world-flags/bw.svg +5 -0
  42. package/icons/world-flags/by.svg +14 -0
  43. package/icons/world-flags/bz.svg +1 -0
  44. package/icons/world-flags/ca.svg +1 -0
  45. package/icons/world-flags/cc.svg +19 -0
  46. package/icons/world-flags/cd.svg +5 -0
  47. package/icons/world-flags/cf.svg +8 -0
  48. package/icons/world-flags/cg.svg +5 -0
  49. package/icons/world-flags/ch.svg +5 -0
  50. package/icons/world-flags/ci.svg +5 -0
  51. package/icons/world-flags/ck.svg +1 -0
  52. package/icons/world-flags/cl.svg +14 -0
  53. package/icons/world-flags/cm.svg +15 -0
  54. package/icons/world-flags/cn.svg +11 -0
  55. package/icons/world-flags/co.svg +5 -0
  56. package/icons/world-flags/cr.svg +1 -0
  57. package/icons/world-flags/cu.svg +6 -0
  58. package/icons/world-flags/cv.svg +24 -0
  59. package/icons/world-flags/cw.svg +16 -0
  60. package/icons/world-flags/cx.svg +15 -0
  61. package/icons/world-flags/cy.svg +1 -0
  62. package/icons/world-flags/cz.svg +5 -0
  63. package/icons/world-flags/de.svg +6 -0
  64. package/icons/world-flags/dj.svg +6 -0
  65. package/icons/world-flags/dk.svg +5 -0
  66. package/icons/world-flags/dm.svg +1 -0
  67. package/icons/world-flags/do.svg +1 -0
  68. package/icons/world-flags/dz.svg +5 -0
  69. package/icons/world-flags/ec.svg +519 -0
  70. package/icons/world-flags/ee.svg +5 -0
  71. package/icons/world-flags/eg.svg +78 -0
  72. package/icons/world-flags/eh.svg +9 -0
  73. package/icons/world-flags/er.svg +6 -0
  74. package/icons/world-flags/es.svg +1 -0
  75. package/icons/world-flags/et.svg +16 -0
  76. package/icons/world-flags/eu.svg +29 -0
  77. package/icons/world-flags/fi.svg +5 -0
  78. package/icons/world-flags/fj.svg +1 -0
  79. package/icons/world-flags/fk.svg +1 -0
  80. package/icons/world-flags/fm.svg +16 -0
  81. package/icons/world-flags/fo.svg +11 -0
  82. package/icons/world-flags/fr.svg +1 -0
  83. package/icons/world-flags/ga.svg +5 -0
  84. package/icons/world-flags/gb-eng.svg +7 -0
  85. package/icons/world-flags/gb-nir.svg +1 -0
  86. package/icons/world-flags/gb-sct.svg +1 -0
  87. package/icons/world-flags/gb-wls.svg +9 -0
  88. package/icons/world-flags/gb.svg +1 -0
  89. package/icons/world-flags/gd.svg +27 -0
  90. package/icons/world-flags/ge.svg +17 -0
  91. package/icons/world-flags/gf.svg +5 -0
  92. package/icons/world-flags/gg.svg +8 -0
  93. package/icons/world-flags/gh.svg +6 -0
  94. package/icons/world-flags/gi.svg +54 -0
  95. package/icons/world-flags/gl.svg +4 -0
  96. package/icons/world-flags/gm.svg +7 -0
  97. package/icons/world-flags/gn.svg +5 -0
  98. package/icons/world-flags/gp.svg +5 -0
  99. package/icons/world-flags/gq.svg +75 -0
  100. package/icons/world-flags/gr.svg +4 -0
  101. package/icons/world-flags/gs.svg +1 -0
  102. package/icons/world-flags/gt.svg +214 -0
  103. package/icons/world-flags/gu.svg +1 -0
  104. package/icons/world-flags/gw.svg +13 -0
  105. package/icons/world-flags/gy.svg +7 -0
  106. package/icons/world-flags/hk.svg +12 -0
  107. package/icons/world-flags/hm.svg +1 -0
  108. package/icons/world-flags/hn.svg +18 -0
  109. package/icons/world-flags/hr.svg +240 -0
  110. package/icons/world-flags/ht.svg +196 -0
  111. package/icons/world-flags/hu.svg +5 -0
  112. package/icons/world-flags/id.svg +4 -0
  113. package/icons/world-flags/ie.svg +9 -0
  114. package/icons/world-flags/il.svg +1 -0
  115. package/icons/world-flags/im.svg +59 -0
  116. package/icons/world-flags/in.svg +25 -0
  117. package/icons/world-flags/io.svg +178 -0
  118. package/icons/world-flags/iq.svg +1 -0
  119. package/icons/world-flags/ir.svg +31 -0
  120. package/icons/world-flags/is.svg +5 -0
  121. package/icons/world-flags/it.svg +5 -0
  122. package/icons/world-flags/je.svg +49 -0
  123. package/icons/world-flags/jm.svg +4 -0
  124. package/icons/world-flags/jo.svg +7 -0
  125. package/icons/world-flags/jp.svg +4 -0
  126. package/icons/world-flags/ke.svg +23 -0
  127. package/icons/world-flags/kg.svg +1 -0
  128. package/icons/world-flags/kh.svg +116 -0
  129. package/icons/world-flags/ki.svg +1 -0
  130. package/icons/world-flags/km.svg +13 -0
  131. package/icons/world-flags/kn.svg +1 -0
  132. package/icons/world-flags/kp.svg +16 -0
  133. package/icons/world-flags/kr.svg +1 -0
  134. package/icons/world-flags/kw.svg +6 -0
  135. package/icons/world-flags/ky.svg +1 -0
  136. package/icons/world-flags/kz.svg +37 -0
  137. package/icons/world-flags/la.svg +5 -0
  138. package/icons/world-flags/lb.svg +5 -0
  139. package/icons/world-flags/lc.svg +6 -0
  140. package/icons/world-flags/li.svg +56 -0
  141. package/icons/world-flags/lk.svg +31 -0
  142. package/icons/world-flags/lr.svg +15 -0
  143. package/icons/world-flags/ls.svg +23 -0
  144. package/icons/world-flags/lt.svg +5 -0
  145. package/icons/world-flags/lu.svg +5 -0
  146. package/icons/world-flags/lv.svg +4 -0
  147. package/icons/world-flags/ly.svg +8 -0
  148. package/icons/world-flags/ma.svg +6 -0
  149. package/icons/world-flags/mc.svg +4 -0
  150. package/icons/world-flags/md.svg +140 -0
  151. package/icons/world-flags/me.svg +93 -0
  152. package/icons/world-flags/mf.svg +5 -0
  153. package/icons/world-flags/mg.svg +5 -0
  154. package/icons/world-flags/mh.svg +19 -0
  155. package/icons/world-flags/mk.svg +7 -0
  156. package/icons/world-flags/ml.svg +5 -0
  157. package/icons/world-flags/mm.svg +12 -0
  158. package/icons/world-flags/mn.svg +21 -0
  159. package/icons/world-flags/mo.svg +10 -0
  160. package/icons/world-flags/mp.svg +240 -0
  161. package/icons/world-flags/mq.svg +1 -0
  162. package/icons/world-flags/mr.svg +6 -0
  163. package/icons/world-flags/ms.svg +1 -0
  164. package/icons/world-flags/mt.svg +49 -0
  165. package/icons/world-flags/mu.svg +6 -0
  166. package/icons/world-flags/mv.svg +8 -0
  167. package/icons/world-flags/mw.svg +24 -0
  168. package/icons/world-flags/mx.svg +1 -0
  169. package/icons/world-flags/my.svg +13 -0
  170. package/icons/world-flags/mz.svg +13 -0
  171. package/icons/world-flags/na.svg +1 -0
  172. package/icons/world-flags/nc.svg +18 -0
  173. package/icons/world-flags/ne.svg +6 -0
  174. package/icons/world-flags/nf.svg +5 -0
  175. package/icons/world-flags/ng.svg +4 -0
  176. package/icons/world-flags/ni.svg +161 -0
  177. package/icons/world-flags/nl.svg +5 -0
  178. package/icons/world-flags/no.svg +7 -0
  179. package/icons/world-flags/np.svg +33 -0
  180. package/icons/world-flags/nr.svg +5 -0
  181. package/icons/world-flags/nu.svg +1 -0
  182. package/icons/world-flags/nz.svg +1 -0
  183. package/icons/world-flags/om.svg +226 -0
  184. package/icons/world-flags/pa.svg +20 -0
  185. package/icons/world-flags/pe.svg +320 -0
  186. package/icons/world-flags/pf.svg +55 -0
  187. package/icons/world-flags/pg.svg +13 -0
  188. package/icons/world-flags/ph.svg +30 -0
  189. package/icons/world-flags/pk.svg +8 -0
  190. package/icons/world-flags/pl.svg +4 -0
  191. package/icons/world-flags/pm.svg +5 -0
  192. package/icons/world-flags/pn.svg +1 -0
  193. package/icons/world-flags/pr.svg +1 -0
  194. package/icons/world-flags/ps.svg +6 -0
  195. package/icons/world-flags/pt.svg +66 -0
  196. package/icons/world-flags/pw.svg +4 -0
  197. package/icons/world-flags/py.svg +193 -0
  198. package/icons/world-flags/qa.svg +1 -0
  199. package/icons/world-flags/re.svg +5 -0
  200. package/icons/world-flags/ro.svg +5 -0
  201. package/icons/world-flags/rs.svg +294 -0
  202. package/icons/world-flags/ru.svg +5 -0
  203. package/icons/world-flags/rw.svg +13 -0
  204. package/icons/world-flags/sa.svg +4 -0
  205. package/icons/world-flags/sb.svg +23 -0
  206. package/icons/world-flags/sc.svg +7 -0
  207. package/icons/world-flags/sd.svg +6 -0
  208. package/icons/world-flags/se.svg +5 -0
  209. package/icons/world-flags/sg.svg +11 -0
  210. package/icons/world-flags/sh.svg +1 -0
  211. package/icons/world-flags/si.svg +22 -0
  212. package/icons/world-flags/sj.svg +7 -0
  213. package/icons/world-flags/sk.svg +12 -0
  214. package/icons/world-flags/sl.svg +5 -0
  215. package/icons/world-flags/sm.svg +321 -0
  216. package/icons/world-flags/sn.svg +15 -0
  217. package/icons/world-flags/so.svg +13 -0
  218. package/icons/world-flags/sr.svg +6 -0
  219. package/icons/world-flags/ss.svg +8 -0
  220. package/icons/world-flags/st.svg +16 -0
  221. package/icons/world-flags/sv.svg +1 -0
  222. package/icons/world-flags/sx.svg +94 -0
  223. package/icons/world-flags/sy.svg +17 -0
  224. package/icons/world-flags/sz.svg +1 -0
  225. package/icons/world-flags/tc.svg +1 -0
  226. package/icons/world-flags/td.svg +5 -0
  227. package/icons/world-flags/tf.svg +15 -0
  228. package/icons/world-flags/tg.svg +16 -0
  229. package/icons/world-flags/th.svg +5 -0
  230. package/icons/world-flags/tj.svg +26 -0
  231. package/icons/world-flags/tk.svg +25 -0
  232. package/icons/world-flags/tl.svg +1 -0
  233. package/icons/world-flags/tm.svg +179 -0
  234. package/icons/world-flags/tn.svg +9 -0
  235. package/icons/world-flags/to.svg +8 -0
  236. package/icons/world-flags/tr.svg +6 -0
  237. package/icons/world-flags/tt.svg +5 -0
  238. package/icons/world-flags/tv.svg +1 -0
  239. package/icons/world-flags/tw.svg +9 -0
  240. package/icons/world-flags/tz.svg +6 -0
  241. package/icons/world-flags/ua.svg +4 -0
  242. package/icons/world-flags/ug.svg +24 -0
  243. package/icons/world-flags/um.svg +25 -0
  244. package/icons/world-flags/us.svg +25 -0
  245. package/icons/world-flags/uy.svg +36 -0
  246. package/icons/world-flags/uz.svg +30 -0
  247. package/icons/world-flags/va.svg +205 -0
  248. package/icons/world-flags/vc.svg +10 -0
  249. package/icons/world-flags/ve.svg +28 -0
  250. package/icons/world-flags/vg.svg +1 -0
  251. package/icons/world-flags/vi.svg +1 -0
  252. package/icons/world-flags/vn.svg +12 -0
  253. package/icons/world-flags/vu.svg +15 -0
  254. package/icons/world-flags/wf.svg +7 -0
  255. package/icons/world-flags/ws.svg +14 -0
  256. package/icons/world-flags/xk.svg +1 -0
  257. package/icons/world-flags/ye.svg +5 -0
  258. package/icons/world-flags/yt.svg +5 -0
  259. package/icons/world-flags/za.svg +1 -0
  260. package/icons/world-flags/zm.svg +23 -0
  261. package/icons/world-flags/zw.svg +28 -0
  262. package/js/oe-bcl-default.bundle.js +25 -26
  263. package/js/oe-bcl-default.bundle.js.map +1 -1
  264. package/js/oe-bcl-default.bundle.min.js +1 -1
  265. package/js/oe-bcl-default.bundle.min.js.map +1 -1
  266. package/js/oe-bcl-default.esm.js +25 -26
  267. package/js/oe-bcl-default.esm.js.map +1 -1
  268. package/js/oe-bcl-default.esm.min.js +1 -1
  269. package/js/oe-bcl-default.esm.min.js.map +1 -1
  270. package/js/oe-bcl-default.umd.js +25 -26
  271. package/js/oe-bcl-default.umd.js.map +1 -1
  272. package/js/oe-bcl-default.umd.min.js +1 -1
  273. package/js/oe-bcl-default.umd.min.js.map +1 -1
  274. package/package.json +10 -9
  275. package/src/icons/icons.js +23 -23
  276. package/src/js/gallery/gallery.js +24 -21
  277. package/src/scss/_card.scss +14 -0
  278. package/src/scss/_description_list.scss +6 -0
  279. package/src/scss/_inpage-navigation.scss +7 -0
  280. package/src/scss/_multiselect.scss +23 -2
  281. package/src/scss/_pagination.scss +33 -0
  282. package/src/scss/_tabs.scss +3 -12
  283. package/src/scss/base/_colors.scss +0 -2
  284. package/src/scss/base/_layout.scss +5 -0
  285. package/src/scss/base/_mixins.scss +13 -0
  286. package/src/scss/base/_utilities.scss +36 -12
  287. package/src/scss/oe-bcl-default.scss +6 -0
  288. package/templates/bcl-accordion/accordion.html.twig +4 -5
  289. package/templates/bcl-alert/alert.html.twig +5 -3
  290. package/templates/bcl-badge/badge.html.twig +7 -5
  291. package/templates/bcl-banner/banner.html.twig +5 -5
  292. package/templates/bcl-base-templates/content-type.html.twig +5 -0
  293. package/templates/bcl-base-templates/listing-page.html.twig +2 -0
  294. package/templates/bcl-blockquote/blockquote.html.twig +3 -1
  295. package/templates/bcl-breadcrumb/breadcrumb.html.twig +3 -1
  296. package/templates/bcl-button/button.html.twig +6 -4
  297. package/templates/bcl-button-group/button-group.html.twig +4 -3
  298. package/templates/bcl-card/card.html.twig +5 -9
  299. package/templates/bcl-card-layout/card-layout.html.twig +3 -1
  300. package/templates/bcl-carousel/carousel.html.twig +10 -8
  301. package/templates/bcl-content-banner/content-banner.html.twig +14 -11
  302. package/templates/bcl-dropdown/dropdown.html.twig +3 -1
  303. package/templates/bcl-fact-figures/fact-figures.html.twig +4 -2
  304. package/templates/bcl-file/file.html.twig +43 -39
  305. package/templates/bcl-footer/footer.html.twig +2 -2
  306. package/templates/bcl-form/form.html.twig +2 -4
  307. package/templates/bcl-form-input/form-input.html.twig +25 -21
  308. package/templates/bcl-gallery/gallery.html.twig +5 -5
  309. package/templates/bcl-glossary/glossary-detail.html.twig +43 -0
  310. package/templates/bcl-glossary/glossary-listing.html.twig +22 -0
  311. package/templates/bcl-header/header.html.twig +11 -9
  312. package/templates/bcl-heading/heading.html.twig +1 -1
  313. package/templates/bcl-icon/icon.html.twig +3 -2
  314. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +19 -30
  315. package/templates/bcl-language-list/language-list-grid.html.twig +1 -1
  316. package/templates/bcl-link/link.html.twig +6 -4
  317. package/templates/bcl-links-block/links-block.html.twig +17 -16
  318. package/templates/bcl-list-group/list-group.html.twig +3 -1
  319. package/templates/bcl-listing/listing.html.twig +8 -6
  320. package/templates/bcl-modal/modal.html.twig +12 -3
  321. package/templates/bcl-navbar/navbar.html.twig +4 -1
  322. package/templates/bcl-navigation/navigation.html.twig +3 -1
  323. package/templates/bcl-offcanvas/offcanvas.html.twig +8 -7
  324. package/templates/bcl-pagination/pagination.html.twig +10 -4
  325. package/templates/bcl-person/person.html.twig +0 -13
  326. package/templates/bcl-placeholder/placeholder.html.twig +4 -3
  327. package/templates/bcl-progress/progress.html.twig +2 -0
  328. package/templates/bcl-project-status/project-status.html.twig +2 -0
  329. package/templates/bcl-search-form/search-form.html.twig +5 -4
  330. package/templates/bcl-select/select.html.twig +18 -17
  331. package/templates/bcl-spinner/spinner.html.twig +2 -0
  332. package/templates/bcl-subscription-block/subscription-block.html.twig +1 -1
  333. package/templates/bcl-table/table.html.twig +3 -1
  334. package/templates/bcl-textarea/textarea.html.twig +22 -19
  335. package/templates/bcl-timeline/timeline.html.twig +17 -14
  336. package/templates/bcl-toast/toasts.html.twig +15 -15
  337. package/templates/bcl-user/user.html.twig +10 -2
  338. package/yarn-error.log +17973 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openeuropa/bcl-theme-default",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.23.0",
5
+ "version": "0.24.0",
6
6
  "description": "OE - BCL theme default",
7
7
  "scripts": {
8
8
  "align-templates": "lerna --scope \"@openeuropa/bcl-twig-templates\" run prepublish",
@@ -18,17 +18,18 @@
18
18
  "update:templates": "run-s align-templates build:copy"
19
19
  },
20
20
  "devDependencies": {
21
- "@ecl/resources-ec-logo": "3.3.0",
22
- "@ecl/resources-eu-logo": "3.3.0",
23
- "@ecl/resources-flag-icons": "3.3.0",
24
- "@openeuropa/bcl-bootstrap": "^0.23.0",
25
- "@openeuropa/bcl-builder": "^0.23.0",
26
- "@openeuropa/bcl-twig-templates": "^0.23.0",
21
+ "@ecl/resources-ec-logo": "3.3.2",
22
+ "@ecl/resources-eu-logo": "3.3.2",
23
+ "@ecl/resources-flag-icons": "3.3.2",
24
+ "@openeuropa/bcl-bootstrap": "^0.24.0",
25
+ "@openeuropa/bcl-builder": "^0.24.0",
26
+ "@openeuropa/bcl-twig-templates": "^0.24.0",
27
27
  "copyfiles": "2.4.1",
28
28
  "cross-env": "7.0.3",
29
29
  "glob": "8.0.3",
30
30
  "npm-run-all": "4.1.5",
31
- "slim-select": "1.27.1"
31
+ "slim-select": "1.27.1",
32
+ "svg-country-flags": "1.2.10"
32
33
  },
33
34
  "publishConfig": {
34
35
  "access": "public"
@@ -47,5 +48,5 @@
47
48
  "design-system",
48
49
  "twig"
49
50
  ],
50
- "gitHead": "fa2097e14024989cddf6f9cd7a9115bed5886aeb"
51
+ "gitHead": "a46bb6bc12771da4667516dc7b0665b00504ade2"
51
52
  }
@@ -18,7 +18,7 @@ module.exports = [
18
18
  "arrows-angle-contract.svg",
19
19
  "arrows-fullscreen.svg",
20
20
 
21
- //Shape arrows
21
+ // Shape arrows
22
22
  "arrow-up-circle-fill.svg",
23
23
  "arrow-up-circle.svg",
24
24
  "arrow-down-circle-fill.svg",
@@ -28,19 +28,19 @@ module.exports = [
28
28
  "arrow-right-circle-fill.svg",
29
29
  "arrow-right-circle.svg",
30
30
 
31
- //Box arrows
31
+ // Box arrows
32
32
  "box-arrow-in-right.svg",
33
33
  "box-arrow-right.svg",
34
34
  "box-arrow-in-up-right.svg",
35
35
  "box-arrow-up-right.svg",
36
36
 
37
- //Carrets
37
+ // Carrets
38
38
  "caret-up-fill.svg",
39
39
  "caret-down-fill.svg",
40
40
  "caret-left-fill.svg",
41
41
  "caret-right-fill.svg",
42
42
 
43
- //Chevrons
43
+ // Chevrons
44
44
  "chevron-up.svg",
45
45
  "chevron-down.svg",
46
46
  "chevron-left.svg",
@@ -50,7 +50,7 @@ module.exports = [
50
50
  "chevron-double-left.svg",
51
51
  "chevron-double-right.svg",
52
52
 
53
- //Alerts, warnings and signs
53
+ // Alerts, warnings and signs
54
54
  "check-lg.svg",
55
55
  "check2.svg",
56
56
  "exclamation-lg.svg",
@@ -76,7 +76,7 @@ module.exports = [
76
76
  "dash-circle-fill.svg",
77
77
  "filter.svg",
78
78
 
79
- //Files and folders
79
+ // Files and folders
80
80
  "file-earmark-pdf.svg",
81
81
  "file-arrow-down-fill.svg",
82
82
  "file-pdf-fill.svg",
@@ -111,12 +111,12 @@ module.exports = [
111
111
  "folder.svg",
112
112
  "folder-fill.svg",
113
113
 
114
- //UI and keyboard
114
+ // UI and keyboard
115
115
  "trash.svg",
116
116
  "trash-fill.svg",
117
117
  "link.svg",
118
118
 
119
- //Social.svg
119
+ // Social.svg
120
120
  "skype.svg",
121
121
  "reddit.svg",
122
122
  "mastodon.svg",
@@ -134,7 +134,7 @@ module.exports = [
134
134
  "google.svg",
135
135
  "github.svg",
136
136
 
137
- //Shapes
137
+ // Shapes
138
138
  "heart.svg",
139
139
  "heart-fill.svg",
140
140
  "star.svg",
@@ -149,7 +149,7 @@ module.exports = [
149
149
  "circle.svg",
150
150
  "circle-fill.svg",
151
151
 
152
- //Media
152
+ // Media
153
153
  "volume-off.svg",
154
154
  "volume-off-fill.svg",
155
155
  "volume-mute.svg",
@@ -175,7 +175,7 @@ module.exports = [
175
175
  "record.svg",
176
176
  "record-fill.svg",
177
177
 
178
- //Devices
178
+ // Devices
179
179
  "camera.svg",
180
180
  "camera-fill.svg",
181
181
  "printer.svg",
@@ -191,7 +191,7 @@ module.exports = [
191
191
  "phone.svg",
192
192
  "phone-fill.svg",
193
193
 
194
- //Date and time
194
+ // Date and time
195
195
  "calendar-x.svg",
196
196
  "calendar-x-fill.svg",
197
197
  "calendar-check.svg",
@@ -205,7 +205,7 @@ module.exports = [
205
205
  "calendar.svg",
206
206
  "calendar-fill.svg",
207
207
 
208
- //Communications
208
+ // Communications
209
209
  "chat-left-quote.svg",
210
210
  "chat-left-quote-fill.svg",
211
211
  "chat-left-text.svg",
@@ -246,14 +246,14 @@ module.exports = [
246
246
  "telephone-fill.svg",
247
247
  "translate.svg",
248
248
 
249
- //Tools
249
+ // Tools
250
250
  "gear.svg",
251
251
  "gear-fill.svg",
252
252
  "pencil-square.svg",
253
253
  "pencil.svg",
254
254
  "pencil-fill.svg",
255
255
 
256
- //Real world
256
+ // Real world
257
257
  "key.svg",
258
258
  "key-fill.svg",
259
259
  "paperclip.svg",
@@ -278,15 +278,15 @@ module.exports = [
278
278
  "house-fill.svg",
279
279
  "pin-fill.svg",
280
280
 
281
- //Geo
281
+ // Geo
282
282
  "geo-alt.svg",
283
283
  "geo-alt-fill.svg",
284
284
 
285
- //Graphics
285
+ // Graphics
286
286
  "zoom-in.svg",
287
287
  "zoom-out.svg",
288
288
 
289
- //Emoji
289
+ // Emoji
290
290
  "emoji-neutral.svg",
291
291
  "emoji-neutral-fill.svg",
292
292
  "emoji-frown.svg",
@@ -294,13 +294,13 @@ module.exports = [
294
294
  "emoji-smile.svg",
295
295
  "emoji-smile-fill.svg",
296
296
 
297
- //Hands
297
+ // Hands
298
298
  "hand-thumbs-down.svg",
299
299
  "hand-thumbs-down-fill.svg",
300
300
  "hand-thumbs-up.svg",
301
301
  "hand-thumbs-up-fill.svg",
302
302
 
303
- //People
303
+ // People
304
304
  "person-square.svg",
305
305
  "person-lines-fill.svg",
306
306
  "building.svg",
@@ -317,7 +317,7 @@ module.exports = [
317
317
  "person.svg",
318
318
  "person-fill.svg",
319
319
 
320
- //Security
320
+ // Security
321
321
  "unlock.svg",
322
322
  "unlock-fill.svg",
323
323
  "lock.svg",
@@ -329,13 +329,13 @@ module.exports = [
329
329
  "shield-check.svg",
330
330
  "shield-fill-check.svg",
331
331
 
332
- //Cloud
332
+ // Cloud
333
333
  "cloud-arrow-up-fill.svg",
334
334
  "cloud-arrow-up.svg",
335
335
  "cloud-arrow-down-fill.svg",
336
336
  "cloud-arrow-down.svg",
337
337
 
338
- //Misc
338
+ // Misc
339
339
  "upload.svg",
340
340
  "download.svg",
341
341
  "bookmarks.svg",
@@ -44,15 +44,15 @@ const EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`
44
44
  class Gallery extends BaseComponent {
45
45
  constructor(element, config) {
46
46
  super(element)
47
- this._carousel = SelectorEngine.findOne(CAROUSEL_SELECTOR, this._element)
48
- this._carouselPager = SelectorEngine.findOne(CAROUSEL_PAGER_SELECTOR, this._element)
49
- this._carouselStartIndex = element.getAttribute('data-gallery-start')
50
- this._carouselActiveItem = SelectorEngine.find(CAROUSEL_ITEM_SELECTOR, this._carousel)[this._carouselStartIndex]
51
- this._carouselPager.textContent = Number(this._carouselStartIndex) + 1
52
- this._modal = SelectorEngine.findOne(MODAL_SELECTOR, this._element)
53
- this._config = this._getConfig(config)
54
- this._addEventListeners()
55
- this._carouselLazyLoad(this._carouselActiveItem)
47
+ this.carousel = SelectorEngine.findOne(CAROUSEL_SELECTOR, this.element)
48
+ this.carouselPager = SelectorEngine.findOne(CAROUSEL_PAGER_SELECTOR, this.element)
49
+ this.carouselStartIndex = element.getAttribute('data-gallery-start')
50
+ this.carouselActiveItem = SelectorEngine.find(CAROUSEL_ITEM_SELECTOR, this.carousel)[this.carouselStartIndex]
51
+ this.carouselPager.textContent = Number(this.carouselStartIndex) + 1
52
+ this.modal = SelectorEngine.findOne(MODAL_SELECTOR, this.element)
53
+ this.config = this.getConfig(config)
54
+ this.addEventListeners()
55
+ this.carouselLazyLoad(this.carouselActiveItem)
56
56
  }
57
57
 
58
58
  // Getters
@@ -62,18 +62,19 @@ class Gallery extends BaseComponent {
62
62
 
63
63
  // Public
64
64
  setSlide(event) {
65
- const slideFrom = SelectorEngine.findOne(CAROUSEL_ACTIVE_SELECTOR, this._carousel)
65
+ const slideFrom = SelectorEngine.findOne(CAROUSEL_ACTIVE_SELECTOR, this.carousel)
66
66
  const slideTo = event.relatedTarget
67
- this._carouselLazyLoad(slideTo)
68
- this._carouselPager.textContent = event.to + 1
67
+ this.carouselLazyLoad(slideTo)
68
+ this.carouselPager.textContent = event.to + 1
69
69
  this.stopVideo(slideFrom)
70
70
  }
71
71
 
72
72
  stopSlide() {
73
- const currentSlide = SelectorEngine.findOne(CAROUSEL_ACTIVE_SELECTOR, this._carousel)
73
+ const currentSlide = SelectorEngine.findOne(CAROUSEL_ACTIVE_SELECTOR, this.carousel)
74
74
  this.stopVideo(currentSlide)
75
75
  }
76
76
 
77
+ // eslint-disable-next-line class-methods-use-this
77
78
  stopVideo(slide) {
78
79
  const iframe = SelectorEngine.findOne('iframe', slide);
79
80
  const video = SelectorEngine.findOne('video', slide);
@@ -85,7 +86,8 @@ class Gallery extends BaseComponent {
85
86
  }
86
87
 
87
88
  // Private
88
- _carouselLazyLoad(slide) {
89
+ // eslint-disable-next-line class-methods-use-this
90
+ carouselLazyLoad(slide) {
89
91
  const media = SelectorEngine.findOne('[data-src]', slide);
90
92
 
91
93
  if (media && !media.src) {
@@ -93,19 +95,19 @@ class Gallery extends BaseComponent {
93
95
  }
94
96
  }
95
97
 
96
- _getConfig(config) {
98
+ getConfig(config) {
97
99
  config = {
98
100
  ...Default,
99
- ...Manipulator.getDataAttributes(this._element),
101
+ ...Manipulator.getDataAttributes(this.element),
100
102
  ...(typeof config === 'object' ? config : {})
101
103
  }
102
104
  typeCheckConfig(NAME, config, DefaultType)
103
105
  return config
104
106
  }
105
107
 
106
- _addEventListeners() {
107
- EventHandler.on(this._carousel, CAROUSEL_EVENT, event => this.setSlide(event))
108
- EventHandler.on(this._modal, EVENT_MODAL_HIDE, event => this.stopSlide(event))
108
+ addEventListeners() {
109
+ EventHandler.on(this.carousel, CAROUSEL_EVENT, event => this.setSlide(event))
110
+ EventHandler.on(this.modal, EVENT_MODAL_HIDE, event => this.stopSlide(event))
109
111
  }
110
112
 
111
113
  // Static
@@ -118,6 +120,7 @@ class Gallery extends BaseComponent {
118
120
 
119
121
  let { _config } = data
120
122
  if (typeof config === 'object') {
123
+ // eslint-disable-next-line no-unused-vars
121
124
  _config = {
122
125
  ..._config,
123
126
  ...config
@@ -126,7 +129,7 @@ class Gallery extends BaseComponent {
126
129
  }
127
130
 
128
131
  static jQueryInterface(config) {
129
- return this.each(function () {
132
+ return this.each(function jInterface() {
130
133
  const data = Gallery.getOrCreateInstance(this)
131
134
 
132
135
  if (typeof config !== 'string') {
@@ -148,7 +151,7 @@ class Gallery extends BaseComponent {
148
151
  * ------------------------------------------------------------------------
149
152
  */
150
153
 
151
- EventHandler.on(document, EVENT_CLICK_DATA_API, THUMBNAIL_SELECTOR, function (event) {
154
+ EventHandler.on(document, EVENT_CLICK_DATA_API, THUMBNAIL_SELECTOR, (event) => {
152
155
  const gallery = event.target.closest('div.bcl-gallery')
153
156
  const firstSlide = event.target.parentNode.getAttribute('data-bs-slide-to');
154
157
  gallery.dataset.galleryStart = firstSlide;
@@ -0,0 +1,14 @@
1
+ .card {
2
+ border-color: $gray-300;
3
+ }
4
+
5
+ @each $color, $value in $theme-colors {
6
+ .card.bg-#{$color} {
7
+ color: color-contrast($value);
8
+ .card-header,
9
+ .card-footer {
10
+ border: none;
11
+ background: shade-color($value, 20%);
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,6 @@
1
+ // Desktop uses grid, this is to apply the same spacing in tablet and mobile.
2
+ @include media-breakpoint-down(md) {
3
+ dd + dt {
4
+ margin-top: map-get($gutters, "2-5");
5
+ }
6
+ }
@@ -1,4 +1,5 @@
1
1
  .bcl-inpage-navigation {
2
+ display: none;
2
3
  top: map-get($spacers, 3); // needed for position-sticky
3
4
  background-color: $gray-100;
4
5
 
@@ -26,3 +27,9 @@
26
27
  }
27
28
  }
28
29
  }
30
+
31
+ @include media-breakpoint-up(lg) {
32
+ .bcl-inpage-navigation {
33
+ display: block;
34
+ }
35
+ }
@@ -10,7 +10,7 @@
10
10
  // Multiselect Spacers
11
11
  $multiselect-spacers: (
12
12
  "disabled-spacer": calc(map-get($spacers, 2) - 1px),
13
- "disabled-spacer-md": calc(map-get($spacers, 1) - 1px),
13
+ "disabled-spacer-md": calc(map-get($spacers, 2) - 2px),
14
14
  "select-spacer": calc(map-get($spacers, 2) - 2px),
15
15
  "select-spacer-md": 0.075rem,
16
16
  "select-spacer-start": 0.3rem,
@@ -46,8 +46,27 @@ select.multi-select {
46
46
  text-align: center;
47
47
  white-space: nowrap;
48
48
  vertical-align: baseline;
49
+ padding-right: map-get($spacers, "3-5");
49
50
  @include border-radius($badge-border-radius);
50
51
  @include gradient-bg();
52
+ .ss-value-delete {
53
+ font-size: 0;
54
+ &:after {
55
+ background-image: url("data:image/svg+xml,%3Csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 8.5C16 12.9183 12.4183 16.5 8 16.5C3.58172 16.5 0 12.9183 0 8.5C0 4.08172 3.58172 0.5 8 0.5C12.4183 0.5 16 4.08172 16 8.5ZM5.35355 5.14645C5.15829 4.95118 4.84171 4.95118 4.64645 5.14645C4.45118 5.34171 4.45118 5.65829 4.64645 5.85355L7.29289 8.5L4.64645 11.1464C4.45118 11.3417 4.45118 11.6583 4.64645 11.8536C4.84171 12.0488 5.15829 12.0488 5.35355 11.8536L8 9.20711L10.6464 11.8536C10.8417 12.0488 11.1583 12.0488 11.3536 11.8536C11.5488 11.6583 11.5488 11.3417 11.3536 11.1464L8.70711 8.5L11.3536 5.85355C11.5488 5.65829 11.5488 5.34171 11.3536 5.14645C11.1583 4.95118 10.8417 4.95118 10.6464 5.14645L8 7.79289L5.35355 5.14645Z' fill='%23F8F9FA'/%3E%3C/svg%3E%0A");
56
+ background-repeat: no-repeat;
57
+ content: "";
58
+ display: inline-block;
59
+ height: 1rem;
60
+ transform: scale(0.8);
61
+ width: 1rem;
62
+ padding: 15px;
63
+ background-position: 50%;
64
+ border-radius: 50%;
65
+ position: absolute;
66
+ right: 0;
67
+ bottom: -2px;
68
+ }
69
+ }
51
70
  }
52
71
  .ss-disabled {
53
72
  padding-top: map-get($multiselect-spacers, "disabled-spacer");
@@ -123,7 +142,9 @@ select.multi-select {
123
142
  @include font-size($badge-font-size-desktop);
124
143
  }
125
144
  .ss-disabled {
126
- padding-top: map-get($multiselect-spacers, "disabled-spacer-md");
145
+ padding-top: calc(
146
+ map-get($multiselect-spacers, "disabled-spacer-md") + 1px
147
+ );
127
148
  padding-bottom: map-get($multiselect-spacers, "disabled-spacer-md");
128
149
  }
129
150
  }
@@ -6,3 +6,36 @@
6
6
  align-items: center;
7
7
  }
8
8
  }
9
+
10
+ .pagination--glossary {
11
+ margin-bottom: 0;
12
+
13
+ .page-item {
14
+ margin-right: auto;
15
+ }
16
+
17
+ .page-link {
18
+ border: none;
19
+ border-bottom: 2px solid transparent;
20
+ color: $dark;
21
+ font-weight: bold;
22
+ text-transform: uppercase;
23
+ white-space: nowrap;
24
+ }
25
+
26
+ .active .page-link {
27
+ background: transparent;
28
+ border-color: $primary;
29
+ color: $dark;
30
+ }
31
+
32
+ .page-item:first-child .page-link {
33
+ border-radius: 0px;
34
+ }
35
+ }
36
+
37
+ @include media-breakpoint-down(lg) {
38
+ .pagination--glossary {
39
+ @include horizontal-slider;
40
+ }
41
+ }
@@ -1,4 +1,3 @@
1
- /* stylelint-disable declaration-no-important */
2
1
  .nav {
3
2
  &.bcl__nav {
4
3
  border: none;
@@ -30,18 +29,9 @@
30
29
 
31
30
  @include media-breakpoint-down(md) {
32
31
  .nav-tabs {
33
- position: relative;
34
- flex-wrap: nowrap;
35
- overflow-x: scroll;
36
- overflow-y: hidden;
37
- white-space: nowrap;
32
+ @include horizontal-slider;
38
33
  border: none;
39
- scrollbar-width: none;
40
- -ms-overflow-style: none;
41
- &::-webkit-scrollbar {
42
- width: 0;
43
- height: 0;
44
- }
34
+
45
35
  .nav-item {
46
36
  z-index: 1;
47
37
  }
@@ -53,6 +43,7 @@
53
43
  }
54
44
  }
55
45
  .dropdown-menu {
46
+ /* stylelint-disable-next-line declaration-no-important */
56
47
  position: fixed !important;
57
48
  }
58
49
  }
@@ -11,8 +11,6 @@ $dark: #212529;
11
11
 
12
12
  $text-muted: #495057;
13
13
 
14
- $link-visited: #6b22b5;
15
-
16
14
  // Color variants scales
17
15
 
18
16
  // Tables
@@ -0,0 +1,5 @@
1
+ @include media-breakpoint-up(lg) {
2
+ .bcl-sidebar h2 {
3
+ font-size: $h4-font-size;
4
+ }
5
+ }
@@ -0,0 +1,13 @@
1
+ @mixin horizontal-slider {
2
+ position: relative;
3
+ flex-wrap: nowrap;
4
+ overflow-x: scroll;
5
+ overflow-y: hidden;
6
+ white-space: nowrap;
7
+ scrollbar-width: none;
8
+ -ms-overflow-style: none;
9
+ &::-webkit-scrollbar {
10
+ width: 0;
11
+ height: 0;
12
+ }
13
+ }
@@ -23,8 +23,8 @@ $utilities: map-merge(
23
23
  map-merge(
24
24
  map-get(map-get($utilities, "max-width"), "values"),
25
25
  (
26
- date: 7.5rem,
27
- col-date: calc(7.5rem + var(--#{$variable-prefix}gutter-x)),
26
+ date: 10rem,
27
+ col-date: calc(10rem + var(--#{$variable-prefix}gutter-x)),
28
28
  "listing-img": 10rem,
29
29
  )
30
30
  ),
@@ -46,6 +46,20 @@ $utilities: map-merge(
46
46
  responsive: true,
47
47
  )
48
48
  ),
49
+ "border-top":
50
+ map-merge(
51
+ map-get($utilities, "border-top"),
52
+ (
53
+ responsive: true,
54
+ )
55
+ ),
56
+ "border-bottom":
57
+ map-merge(
58
+ map-get($utilities, "border-bottom"),
59
+ (
60
+ responsive: true,
61
+ )
62
+ ),
49
63
  // Create medium font weight class
50
64
  "font-weight":
51
65
  map-merge(
@@ -67,26 +81,32 @@ $utilities: map-merge(
67
81
  a {
68
82
  text-underline-offset: 2px;
69
83
 
70
- &:not(.text-underline-hover),
71
- &:not(.standalone) {
84
+ &:not(.text-underline-hover):not(.standalone) {
72
85
  text-decoration-color: rgba($primary, 0.3);
86
+
87
+ &:visited {
88
+ text-decoration-color: rgba($purple, 0.3);
89
+ }
90
+
73
91
  &:hover {
74
92
  text-decoration-color: currentColor;
93
+
94
+ &:visited {
95
+ text-decoration-color: $purple;
96
+ }
75
97
  }
76
98
  }
77
99
 
78
100
  &.standalone,
79
101
  &.text-underline-hover {
80
- text-decoration: none;
81
- &:hover {
82
- text-decoration: underline;
83
- }
84
- }
102
+ text-decoration-color: transparent;
85
103
 
86
- &:visited {
87
- color: $link-visited;
88
104
  &:hover {
89
- color: shade-color($link-visited, 20%);
105
+ text-decoration-color: currentColor;
106
+
107
+ &:visited {
108
+ text-decoration-color: $purple;
109
+ }
90
110
  }
91
111
  }
92
112
  }
@@ -117,6 +137,10 @@ svg {
117
137
  background-color: $gray-400;
118
138
  }
119
139
 
140
+ .border-gray-300 {
141
+ border-color: $gray-300;
142
+ }
143
+
120
144
  .grid-3-9 {
121
145
  grid-template-columns: 25% 75%;
122
146
  grid-gap: map-get($gutters, "2-5");
@@ -46,16 +46,22 @@
46
46
 
47
47
  // Helpers
48
48
  @import "@openeuropa/bcl-bootstrap/scss/helpers";
49
+ @import "@openeuropa/bcl-theme-default/src/scss/base/layout";
49
50
  @import "@openeuropa/bcl-theme-default/src/scss/base/utilities";
50
51
 
51
52
  // Utilities
52
53
  @import "@openeuropa/bcl-bootstrap/scss/utilities/api";
53
54
 
55
+ // BCL mixins
56
+ @import "@openeuropa/bcl-theme-default/src/scss/base/mixins";
57
+
54
58
  // Custom styles
55
59
  @import "@openeuropa/bcl-theme-default/src/scss/alert";
56
60
  @import "@openeuropa/bcl-theme-default/src/scss/button";
61
+ @import "@openeuropa/bcl-theme-default/src/scss/card";
57
62
  @import "@openeuropa/bcl-theme-default/src/scss/collapse";
58
63
  @import "@openeuropa/bcl-theme-default/src/scss/circular-progress-bar";
64
+ @import "@openeuropa/bcl-theme-default/src/scss/description_list";
59
65
  @import "@openeuropa/bcl-theme-default/src/scss/reset";
60
66
  @import "@openeuropa/bcl-theme-default/src/scss/header";
61
67
  @import "@openeuropa/bcl-theme-default/src/scss/footer";
@@ -3,18 +3,17 @@
3
3
  {#
4
4
  Parameters:
5
5
  - id (int) (default: random(1000))
6
- - flush (boolean) (default: false) flush variant of the accordion
6
+ - flush (boolean) (default: false)
7
7
  - items (array) (default: []): format: [
8
8
  {
9
9
  title: (string),
10
10
  title_tag: (string),
11
11
  content: (block),
12
- stay_open (boolean) (default: false) stay open after another selected
12
+ stay_open (boolean) (default: false)
13
13
  },
14
- ...
15
14
  ]
16
- - open_item_id (int) (default: 0) index value of the item to open (starting from 1),
17
- all closed by default (0)
15
+ - open_item_id (int) (default: 0)
16
+ - attributes (drupal attrs)
18
17
  #}
19
18
 
20
19
  {% set _id = id|default(random(1000)) %}
@@ -8,15 +8,17 @@
8
8
  - animated_dismiss (boolean) (default: true)
9
9
  - icon_path (string) (default: '')
10
10
  - icon_name (string) (default: '')
11
+ - attributes (drupal attrs)
11
12
  #}
12
13
 
13
14
  {% set _message = message|default('') %}
14
- {% set _variant = variant|default('primary') %}
15
15
  {% set _heading = heading|default('') %}
16
- {% set _icon_path = icon_path|default('') %}
16
+ {% set _variant = variant|default('primary') %}
17
17
  {% set _dismissible = dismissible ?? true %}
18
18
  {% set _animated_dismiss = animated_dismiss ?? true %}
19
+ {% set _icon_path = icon_path|default('') %}
19
20
  {% set _icon_name = icon_name|default('') %}
21
+
20
22
  {% set _classes = ['alert', 'alert-' ~ _variant|e('html_attr'), 'd-flex', 'align-items-center'] %}
21
23
  {% set _icon_names = {
22
24
  primary: "info-circle-fill",
@@ -62,7 +64,7 @@
62
64
  {% endif %}
63
65
  <div class="alert-content flex-grow-1">
64
66
  {%- if _heading is not empty -%}
65
- <h4 class="alert-heading">{{ _heading }}</h4>
67
+ <div class="alert-heading h4">{{ _heading }}</div>
66
68
  {%- endif -%}
67
69
  {%- if _message is not empty -%}
68
70
  {{- _message -}}