@caweb/html-webpack-plugin 1.4.12 → 1.4.14

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 (74) hide show
  1. package/build/delta-rtl.css +163 -121
  2. package/build/delta.asset.php +1 -1
  3. package/build/delta.css +163 -121
  4. package/build/delta.css.map +1 -1
  5. package/build/delta.js +27 -44
  6. package/build/delta.js.map +1 -1
  7. package/build/eureka-rtl.css +163 -121
  8. package/build/eureka.asset.php +1 -1
  9. package/build/eureka.css +163 -121
  10. package/build/eureka.css.map +1 -1
  11. package/build/eureka.js +27 -44
  12. package/build/eureka.js.map +1 -1
  13. package/build/mono-rtl.css +163 -121
  14. package/build/mono.asset.php +1 -1
  15. package/build/mono.css +163 -121
  16. package/build/mono.css.map +1 -1
  17. package/build/mono.js +27 -44
  18. package/build/mono.js.map +1 -1
  19. package/build/oceanside-rtl.css +163 -121
  20. package/build/oceanside.asset.php +1 -1
  21. package/build/oceanside.css +163 -121
  22. package/build/oceanside.css.map +1 -1
  23. package/build/oceanside.js +27 -44
  24. package/build/oceanside.js.map +1 -1
  25. package/build/orangecounty-rtl.css +163 -121
  26. package/build/orangecounty.asset.php +1 -1
  27. package/build/orangecounty.css +163 -121
  28. package/build/orangecounty.css.map +1 -1
  29. package/build/orangecounty.js +27 -44
  30. package/build/orangecounty.js.map +1 -1
  31. package/build/pasorobles-rtl.css +163 -121
  32. package/build/pasorobles.asset.php +1 -1
  33. package/build/pasorobles.css +163 -121
  34. package/build/pasorobles.css.map +1 -1
  35. package/build/pasorobles.js +27 -44
  36. package/build/pasorobles.js.map +1 -1
  37. package/build/sacramento-rtl.css +163 -121
  38. package/build/sacramento.asset.php +1 -1
  39. package/build/sacramento.css +163 -121
  40. package/build/sacramento.css.map +1 -1
  41. package/build/sacramento.js +27 -44
  42. package/build/sacramento.js.map +1 -1
  43. package/build/santabarbara-rtl.css +163 -121
  44. package/build/santabarbara.asset.php +1 -1
  45. package/build/santabarbara.css +163 -121
  46. package/build/santabarbara.css.map +1 -1
  47. package/build/santabarbara.js +27 -44
  48. package/build/santabarbara.js.map +1 -1
  49. package/build/santacruz-rtl.css +163 -121
  50. package/build/santacruz.asset.php +1 -1
  51. package/build/santacruz.css +163 -121
  52. package/build/santacruz.css.map +1 -1
  53. package/build/santacruz.js +27 -44
  54. package/build/santacruz.js.map +1 -1
  55. package/build/shasta-rtl.css +163 -121
  56. package/build/shasta.asset.php +1 -1
  57. package/build/shasta.css +163 -121
  58. package/build/shasta.css.map +1 -1
  59. package/build/shasta.js +27 -44
  60. package/build/shasta.js.map +1 -1
  61. package/build/sierra-rtl.css +163 -121
  62. package/build/sierra.asset.php +1 -1
  63. package/build/sierra.css +163 -121
  64. package/build/sierra.css.map +1 -1
  65. package/build/sierra.js +27 -44
  66. package/build/sierra.js.map +1 -1
  67. package/build/trinity-rtl.css +163 -121
  68. package/build/trinity.asset.php +1 -1
  69. package/build/trinity.css +163 -121
  70. package/build/trinity.css.map +1 -1
  71. package/build/trinity.js +27 -44
  72. package/build/trinity.js.map +1 -1
  73. package/package.json +1 -1
  74. package/sample/components/lists.html +67 -34
package/build/shasta.js CHANGED
@@ -6322,37 +6322,6 @@
6322
6322
  //# sourceMappingURL=bootstrap.bundle.js.map
6323
6323
 
6324
6324
 
6325
- /***/ }),
6326
-
6327
- /***/ "./src/scripts/components/dark-mode.js":
6328
- /*!*********************************************!*\
6329
- !*** ./src/scripts/components/dark-mode.js ***!
6330
- \*********************************************/
6331
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
6332
-
6333
- "use strict";
6334
- __webpack_require__.r(__webpack_exports__);
6335
- document.addEventListener('DOMContentLoaded', () => {
6336
- //const button = document.querySelector( '.button__theme-toggle' );
6337
-
6338
- /*button.addEventListener('click', () => {
6339
- const isDarkMode = document.body.classList.contains( 'is-dark-mode' );
6340
- if ( isDarkMode ) {
6341
- button.setAttribute( 'aria-pressed', 'false' );
6342
- document.body.classList.remove( 'is-dark-mode' );
6343
- } else {
6344
- button.setAttribute( 'aria-pressed', 'true' );
6345
- document.body.classList.add( 'is-dark-mode' );
6346
- }
6347
- })*/
6348
-
6349
- // Set is-dark-mode class if user has requested dark mode.
6350
- if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
6351
- document.documentElement.setAttribute('data-bs-theme', 'dark');
6352
- //button.setAttribute( 'aria-pressed', 'true' );
6353
- }
6354
- });
6355
-
6356
6325
  /***/ }),
6357
6326
 
6358
6327
  /***/ "./src/scripts/components/external-link.js":
@@ -6403,24 +6372,39 @@ window.addEventListener('load', () => {
6403
6372
  const toggleMenuCloseButton = mainHeader ? mainHeader.querySelector('.mobile-control.ca-gov-icon-close-mark') : null;
6404
6373
  const mobileCheck = () => {
6405
6374
  if (isDesktopWidth()) {
6406
- if (mainNavUl) {
6407
- mainNavUl.classList.remove('flex-column');
6408
- }
6409
6375
  if (mainNav) {
6376
+ // navigation is always shown in desktop mode
6410
6377
  mainNav.classList.add('show');
6378
+
6379
+ // navigation ul should render as a row
6380
+ if (mainNavUl) {
6381
+ mainNavUl.classList.remove('flex-column');
6382
+ }
6411
6383
  }
6384
+ // if in desktop we append the search container after the branding logo
6412
6385
  if (searchContainer && mainHeader) {
6413
6386
  mainHeader.querySelector('.header-organization-banner')?.after(searchContainer);
6414
6387
  }
6415
6388
  } else {
6416
- if (mainNavUl) {
6417
- mainNavUl.classList.add('flex-column');
6418
- }
6419
- if (mainNav) {
6420
- mainNav.classList.remove('show');
6421
- }
6422
- if (searchContainer && mainHeader) {
6423
- mainHeader.querySelector('.mobile-controlled.overlay')?.append(searchContainer);
6389
+ // if mobile menu is open
6390
+ if ('true' === toggleMenuCloseButton.getAttribute('aria-expanded')) {
6391
+ // we make sure to close the mobile menu.
6392
+ toggleMenuCloseButton.click();
6393
+ } else {
6394
+ // we hide the main navigation in mobile
6395
+ if (mainNav) {
6396
+ mainNav.classList.remove('show');
6397
+
6398
+ // navigation ul should render as a column
6399
+ if (mainNavUl) {
6400
+ mainNavUl.classList.add('flex-column');
6401
+ }
6402
+ }
6403
+
6404
+ // if in mobile we append the search container to the mobile overlay
6405
+ if (searchContainer && mainHeader) {
6406
+ mainHeader.querySelector('.mobile-controlled.overlay')?.append(searchContainer);
6407
+ }
6424
6408
  }
6425
6409
  }
6426
6410
  };
@@ -6591,14 +6575,13 @@ __webpack_require__.r(__webpack_exports__);
6591
6575
  /* harmony import */ var _components_mobile_controls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/mobile-controls.js */ "./src/scripts/components/mobile-controls.js");
6592
6576
  /* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/return-top.js */ "./src/scripts/components/return-top.js");
6593
6577
  /* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/external-link.js */ "./src/scripts/components/external-link.js");
6594
- /* harmony import */ var _components_dark_mode_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/dark-mode.js */ "./src/scripts/components/dark-mode.js");
6595
-
6596
6578
 
6597
6579
 
6598
6580
 
6599
6581
 
6600
6582
 
6601
6583
  /*
6584
+ import './components/dark-mode.js';
6602
6585
  import './components/fixed-header.js';
6603
6586
  import './components/accordion.js';
6604
6587
  import './components/accordion-list.js';