@appartmint/mint 1.2.2 → 1.2.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.
Files changed (49) hide show
  1. package/README.md +3 -3
  2. package/dist/css/mint.css +85 -44
  3. package/dist/css/mint.css.map +1 -1
  4. package/dist/css/mint.min.css +1 -1
  5. package/dist/css/mint.min.css.map +1 -1
  6. package/dist/js/imports/components/header.d.ts +124 -124
  7. package/dist/js/imports/components/index.d.ts +4 -4
  8. package/dist/js/imports/enums/index.d.ts +4 -4
  9. package/dist/js/imports/enums/side.d.ts +9 -9
  10. package/dist/js/imports/index.d.ts +7 -7
  11. package/dist/js/imports/models/color.d.ts +31 -31
  12. package/dist/js/imports/models/file.d.ts +20 -20
  13. package/dist/js/imports/models/index.d.ts +9 -9
  14. package/dist/js/imports/models/item.d.ts +70 -70
  15. package/dist/js/imports/models/minify.d.ts +11 -11
  16. package/dist/js/imports/models/page.d.ts +17 -17
  17. package/dist/js/imports/models/recaptcha.d.ts +8 -8
  18. package/dist/js/imports/util/display.d.ts +24 -24
  19. package/dist/js/imports/util/event.d.ts +40 -40
  20. package/dist/js/imports/util/icon.d.ts +28 -28
  21. package/dist/js/imports/util/index.d.ts +14 -14
  22. package/dist/js/imports/util/list.d.ts +22 -22
  23. package/dist/js/imports/util/math.d.ts +13 -13
  24. package/dist/js/imports/util/object.d.ts +77 -77
  25. package/dist/js/imports/util/scroll.d.ts +22 -22
  26. package/dist/js/imports/util/selectors.d.ts +121 -121
  27. package/dist/js/imports/util/settings.d.ts +38 -38
  28. package/dist/js/imports/util/text.d.ts +39 -39
  29. package/dist/js/imports/util/window.d.ts +11 -11
  30. package/dist/js/index.d.ts +9 -9
  31. package/dist/js/index.js +351 -351
  32. package/dist/js/index.js.map +1 -1
  33. package/dist/js/index.min.js +1 -1
  34. package/dist/js/index.min.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/scss/imports/_index.scss +10 -10
  37. package/src/scss/imports/components/_cards.scss +1 -1
  38. package/src/scss/imports/components/_index.scss +16 -16
  39. package/src/scss/imports/global/_grid.scss +9 -0
  40. package/src/scss/imports/global/_icons.scss +6 -6
  41. package/src/scss/imports/global/_index.scss +2 -0
  42. package/src/scss/imports/global/_structure.scss +9 -0
  43. package/src/scss/imports/util/_index.scss +9 -9
  44. package/src/ts/imports/enums/side.ts +9 -9
  45. package/src/ts/imports/models/color.ts +96 -96
  46. package/src/ts/imports/util/display.ts +72 -72
  47. package/src/ts/imports/util/event.ts +93 -93
  48. package/src/ts/imports/util/math.ts +17 -17
  49. package/src/ts/imports/util/window.ts +14 -14
package/dist/js/index.js CHANGED
@@ -24,29 +24,29 @@ Object.defineProperty(exports, "__esModule", ({
24
24
  value: true
25
25
  }));
26
26
  exports.MintHeader = void 0;
27
- /**
28
- * Imports
27
+ /**
28
+ * Imports
29
29
  */
30
30
  const enums_1 = __webpack_require__(/*! ../enums */ "./src/ts/imports/enums/index.ts");
31
31
  const util_1 = __webpack_require__(/*! ../util */ "./src/ts/imports/util/index.ts");
32
- /**
33
- * Main header functionality
34
- * @public
32
+ /**
33
+ * Main header functionality
34
+ * @public
35
35
  */
36
36
  class MintHeader {
37
- /**
38
- * Initializes and closes the menu
37
+ /**
38
+ * Initializes and closes the menu
39
39
  */
40
40
  constructor(settings) {
41
- /**
42
- * Navbar settings
41
+ /**
42
+ * Navbar settings
43
43
  */
44
44
  this.settings = {
45
45
  from: enums_1.EMintSide.Top,
46
46
  fixed: true
47
47
  };
48
- /**
49
- * Frequently-referenced elements
48
+ /**
49
+ * Frequently-referenced elements
50
50
  */
51
51
  this.el = {};
52
52
  this.settings = Object.assign(Object.assign({}, this.settings), settings);
@@ -54,8 +54,8 @@ class MintHeader {
54
54
  this.attachEvents();
55
55
  this.addClasses();
56
56
  }
57
- /**
58
- * Adds elements to {@link el | `this.el`}
57
+ /**
58
+ * Adds elements to {@link el | `this.el`}
59
59
  */
60
60
  attachElements() {
61
61
  var _a;
@@ -65,8 +65,8 @@ class MintHeader {
65
65
  this.el.mobileButton = ((_a = this.el.header) === null || _a === void 0 ? void 0 : _a.querySelector(util_1.MintSelectors.controls('mint-wrapper'))) || null;
66
66
  this.el.wrapper = document.getElementById('mint-wrapper');
67
67
  }
68
- /**
69
- * Adds events to the dom
68
+ /**
69
+ * Adds events to the dom
70
70
  */
71
71
  attachEvents() {
72
72
  var _a, _b, _c, _d;
@@ -91,8 +91,8 @@ class MintHeader {
91
91
  }));
92
92
  (_d = this.el.wrapper) === null || _d === void 0 ? void 0 : _d.addEventListener('transitionend', this.eTransitionEnd.bind(this));
93
93
  }
94
- /**
95
- * Adds classes that inform the styles based on settings
94
+ /**
95
+ * Adds classes that inform the styles based on settings
96
96
  */
97
97
  addClasses() {
98
98
  var _a, _b, _c, _d, _e;
@@ -105,9 +105,9 @@ class MintHeader {
105
105
  (_e = this.el.header) === null || _e === void 0 ? void 0 : _e.classList.add('mint-tray');
106
106
  }
107
107
  }
108
- /**
109
- * Sets the state of the mobile menu
110
- * @param open - `true` to open the menu or `false` to close it
108
+ /**
109
+ * Sets the state of the mobile menu
110
+ * @param open - `true` to open the menu or `false` to close it
111
111
  */
112
112
  setMobileMenu() {
113
113
  let open = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
@@ -159,17 +159,17 @@ class MintHeader {
159
159
  this.closeAllMenus();
160
160
  }
161
161
  }
162
- /**
163
- * Toggles the state of the mobile menu
162
+ /**
163
+ * Toggles the state of the mobile menu
164
164
  */
165
165
  toggleMobileMenu() {
166
166
  var _a, _b;
167
167
  this.setMobileMenu(((_b = (_a = this.el.mobileButton) === null || _a === void 0 ? void 0 : _a.getAttribute('aria-expanded')) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'false');
168
168
  }
169
- /**
170
- * Sets the state of the provided button's menu
171
- * @param button - Button element to set
172
- * @param open - `true` to open the menu or `false` to close it
169
+ /**
170
+ * Sets the state of the provided button's menu
171
+ * @param button - Button element to set
172
+ * @param open - `true` to open the menu or `false` to close it
173
173
  */
174
174
  setMenu(button) {
175
175
  let open = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
@@ -185,17 +185,17 @@ class MintHeader {
185
185
  }
186
186
  }
187
187
  }
188
- /**
189
- * Toggles the state of the provided button's menu
190
- * @param button - Button element to toggle
188
+ /**
189
+ * Toggles the state of the provided button's menu
190
+ * @param button - Button element to toggle
191
191
  */
192
192
  toggleMenu(button) {
193
193
  var _a;
194
194
  this.setMenu(button, ((_a = button === null || button === void 0 ? void 0 : button.getAttribute('aria-expanded')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== 'true');
195
195
  }
196
- /**
197
- * Closes all submenus of the provided button's menu
198
- * @param button - Button element of the parent menu
196
+ /**
197
+ * Closes all submenus of the provided button's menu
198
+ * @param button - Button element of the parent menu
199
199
  */
200
200
  closeSubMenus(button) {
201
201
  let menu = button === null || button === void 0 ? void 0 : button.nextElementSibling,
@@ -208,9 +208,9 @@ class MintHeader {
208
208
  }
209
209
  });
210
210
  }
211
- /**
212
- * Closes all sibling menus of the provided button's menu
213
- * @param button - Button element of the sibling menus
211
+ /**
212
+ * Closes all sibling menus of the provided button's menu
213
+ * @param button - Button element of the sibling menus
214
214
  */
215
215
  closeSiblingMenus(button) {
216
216
  var _a;
@@ -222,8 +222,8 @@ class MintHeader {
222
222
  }
223
223
  });
224
224
  }
225
- /**
226
- * Closes all submenus of the n4vbar
225
+ /**
226
+ * Closes all submenus of the n4vbar
227
227
  */
228
228
  closeAllMenus() {
229
229
  var _a;
@@ -232,8 +232,8 @@ class MintHeader {
232
232
  this.setMenu(menuButton);
233
233
  });
234
234
  }
235
- /**
236
- * Opens the menu closest to the document's focus
235
+ /**
236
+ * Opens the menu closest to the document's focus
237
237
  */
238
238
  openClosestMenu() {
239
239
  var _a;
@@ -249,8 +249,8 @@ class MintHeader {
249
249
  firstFocusable === null || firstFocusable === void 0 ? void 0 : firstFocusable.focus();
250
250
  }
251
251
  }
252
- /**
253
- * Closes the menu closest to the document's focus
252
+ /**
253
+ * Closes the menu closest to the document's focus
254
254
  */
255
255
  closeClosestMenu() {
256
256
  var _a, _b;
@@ -265,8 +265,8 @@ class MintHeader {
265
265
  activeButton === null || activeButton === void 0 ? void 0 : activeButton.focus();
266
266
  }
267
267
  }
268
- /**
269
- * Toggles the menu closest to the document's focus
268
+ /**
269
+ * Toggles the menu closest to the document's focus
270
270
  */
271
271
  toggleClosestMenu() {
272
272
  var _a, _b;
@@ -276,8 +276,8 @@ class MintHeader {
276
276
  this.openClosestMenu();
277
277
  }
278
278
  }
279
- /**
280
- * Closes the mobile menu when the window resizes
279
+ /**
280
+ * Closes the mobile menu when the window resizes
281
281
  */
282
282
  eHandleResize() {
283
283
  var _a, _b;
@@ -297,15 +297,15 @@ class MintHeader {
297
297
  this.el.html.style.overflow = overflow;
298
298
  }
299
299
  }
300
- /**
301
- * Closes all submenus when the page is scrolled
300
+ /**
301
+ * Closes all submenus when the page is scrolled
302
302
  */
303
303
  eHandleScroll() {
304
304
  this.closeAllMenus();
305
305
  }
306
- /**
307
- * Sends the focus to the menu button after tabbing past the last menu item
308
- * @param e - Keyboard event
306
+ /**
307
+ * Sends the focus to the menu button after tabbing past the last menu item
308
+ * @param e - Keyboard event
309
309
  */
310
310
  eWrapTab(e) {
311
311
  var _a;
@@ -316,9 +316,9 @@ class MintHeader {
316
316
  }
317
317
  }
318
318
  }
319
- /**
320
- * Handles keypresses on n4vbar buttons
321
- * @param e - Keyboard event
319
+ /**
320
+ * Handles keypresses on n4vbar buttons
321
+ * @param e - Keyboard event
322
322
  */
323
323
  eHandleButtonKeypress(e) {
324
324
  var _a;
@@ -345,9 +345,9 @@ class MintHeader {
345
345
  break;
346
346
  }
347
347
  }
348
- /**
349
- * Handles keypresses on n4vbar links
350
- * @param e - Keyboard event
348
+ /**
349
+ * Handles keypresses on n4vbar links
350
+ * @param e - Keyboard event
351
351
  */
352
352
  eHandleLinkKeypress(e) {
353
353
  let target = e.target;
@@ -365,9 +365,9 @@ class MintHeader {
365
365
  break;
366
366
  }
367
367
  }
368
- /**
369
- * Handles keypresses on the n4vbar
370
- * @param e - Keyboard event
368
+ /**
369
+ * Handles keypresses on the n4vbar
370
+ * @param e - Keyboard event
371
371
  */
372
372
  eHandleKeypress(e) {
373
373
  if (e.key.toLowerCase() !== 'tab') {
@@ -383,23 +383,23 @@ class MintHeader {
383
383
  break;
384
384
  }
385
385
  }
386
- /**
387
- * Toggles the mobile menu
386
+ /**
387
+ * Toggles the mobile menu
388
388
  */
389
389
  eToggleMobileMenu() {
390
390
  this.toggleMobileMenu();
391
391
  }
392
- /**
393
- * Toggles the clicked submenu
394
- * @param e - Mouse event
392
+ /**
393
+ * Toggles the clicked submenu
394
+ * @param e - Mouse event
395
395
  */
396
396
  eToggleMenu(e) {
397
397
  let target = e.target;
398
398
  this.closeSiblingMenus(target);
399
399
  this.toggleMenu(target);
400
400
  }
401
- /**
402
- * Runs after the mobile menu transitions
401
+ /**
402
+ * Runs after the mobile menu transitions
403
403
  */
404
404
  eTransitionEnd() {
405
405
  var _a;
@@ -444,8 +444,8 @@ var __exportStar = this && this.__exportStar || function (m, exports) {
444
444
  Object.defineProperty(exports, "__esModule", ({
445
445
  value: true
446
446
  }));
447
- /**
448
- * Forward all exports from the components directory
447
+ /**
448
+ * Forward all exports from the components directory
449
449
  */
450
450
  __exportStar(__webpack_require__(/*! ./header */ "./src/ts/imports/components/header.ts"), exports);
451
451
 
@@ -481,8 +481,8 @@ var __exportStar = this && this.__exportStar || function (m, exports) {
481
481
  Object.defineProperty(exports, "__esModule", ({
482
482
  value: true
483
483
  }));
484
- /**
485
- * Forward all exports from the enums directory
484
+ /**
485
+ * Forward all exports from the enums directory
486
486
  */
487
487
  __exportStar(__webpack_require__(/*! ./side */ "./src/ts/imports/enums/side.ts"), exports);
488
488
 
@@ -500,8 +500,8 @@ Object.defineProperty(exports, "__esModule", ({
500
500
  value: true
501
501
  }));
502
502
  exports.EMintSide = void 0;
503
- /**
504
- * Side Enum
503
+ /**
504
+ * Side Enum
505
505
  */
506
506
  var EMintSide;
507
507
  (function (EMintSide) {
@@ -544,8 +544,8 @@ var __exportStar = this && this.__exportStar || function (m, exports) {
544
544
  Object.defineProperty(exports, "__esModule", ({
545
545
  value: true
546
546
  }));
547
- /**
548
- * Forward all exports from the imports directory
547
+ /**
548
+ * Forward all exports from the imports directory
549
549
  */
550
550
  __exportStar(__webpack_require__(/*! ./components */ "./src/ts/imports/components/index.ts"), exports);
551
551
  __exportStar(__webpack_require__(/*! ./enums */ "./src/ts/imports/enums/index.ts"), exports);
@@ -566,8 +566,8 @@ Object.defineProperty(exports, "__esModule", ({
566
566
  value: true
567
567
  }));
568
568
  exports.mintColor = void 0;
569
- /**
570
- * Color
569
+ /**
570
+ * Color
571
571
  */
572
572
  class mintColor {
573
573
  constructor(args) {
@@ -579,8 +579,8 @@ class mintColor {
579
579
  this.stringConstructor(args.color);
580
580
  }
581
581
  }
582
- /**
583
- * Constructor from a string argument
582
+ /**
583
+ * Constructor from a string argument
584
584
  */
585
585
  stringConstructor(str) {
586
586
  if (str.startsWith('#')) {
@@ -592,8 +592,8 @@ class mintColor {
592
592
  this.rgbConstructor(str);
593
593
  }
594
594
  }
595
- /**
596
- * Constructor from a hex argument
595
+ /**
596
+ * Constructor from a hex argument
597
597
  */
598
598
  hexConstructor(hex) {
599
599
  switch (hex.length) {
@@ -624,8 +624,8 @@ class mintColor {
624
624
  this.b = parseInt(hex.substring(5, 7), mintColor.hexBase);
625
625
  this.a = parseInt(hex.substring(7, 9), mintColor.hexBase) / mintColor.hexBase ** 2;
626
626
  }
627
- /**
628
- * Constructor from an rgba argument
627
+ /**
628
+ * Constructor from an rgba argument
629
629
  */
630
630
  rgbConstructor(rgb) {
631
631
  let match = rgb.match(/rgba?\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\)?(?:, ?(\d(?:\.\d*)?)\))?/);
@@ -636,8 +636,8 @@ class mintColor {
636
636
  this.a = parseFloat(match[4]);
637
637
  }
638
638
  }
639
- /**
640
- * Returns the perceived brightness of the color
639
+ /**
640
+ * Returns the perceived brightness of the color
641
641
  */
642
642
  getBrightness() {
643
643
  if (this.a === 0) {
@@ -700,8 +700,8 @@ var __exportStar = this && this.__exportStar || function (m, exports) {
700
700
  Object.defineProperty(exports, "__esModule", ({
701
701
  value: true
702
702
  }));
703
- /**
704
- * Forward all exports from the models directory
703
+ /**
704
+ * Forward all exports from the models directory
705
705
  */
706
706
  __exportStar(__webpack_require__(/*! ./color */ "./src/ts/imports/models/color.ts"), exports);
707
707
  __exportStar(__webpack_require__(/*! ./file */ "./src/ts/imports/models/file.ts"), exports);
@@ -724,15 +724,15 @@ Object.defineProperty(exports, "__esModule", ({
724
724
  value: true
725
725
  }));
726
726
  exports.MintItem = void 0;
727
- /**
728
- * A generic item
729
- * @note - this class must be convertable with JSON
730
- * - only add strings, numbers, booleans, arrays, and objects
727
+ /**
728
+ * A generic item
729
+ * @note - this class must be convertable with JSON
730
+ * - only add strings, numbers, booleans, arrays, and objects
731
731
  */
732
732
  class MintItem {
733
733
  constructor() {
734
- /**
735
- * Item settings
734
+ /**
735
+ * Item settings
736
736
  */
737
737
  this.version = 0;
738
738
  this.priority = 0;
@@ -746,15 +746,15 @@ class MintItem {
746
746
  this.centered = false;
747
747
  this.disabled = false;
748
748
  this.private = false;
749
- /**
750
- * Item data
749
+ /**
750
+ * Item data
751
751
  */
752
752
  this.attr = {};
753
753
  this.params = {};
754
754
  this.options = {};
755
755
  this.lists = {};
756
- /**
757
- * Item lists
756
+ /**
757
+ * Item lists
758
758
  */
759
759
  this.paragraphs = [];
760
760
  this.classes = [];
@@ -824,20 +824,20 @@ Object.defineProperty(exports, "__esModule", ({
824
824
  value: true
825
825
  }));
826
826
  exports.MintDisplay = void 0;
827
- /**
828
- * Imports
827
+ /**
828
+ * Imports
829
829
  */
830
830
  const enums_1 = __webpack_require__(/*! ../enums */ "./src/ts/imports/enums/index.ts");
831
831
  const settings_1 = __webpack_require__(/*! ./settings */ "./src/ts/imports/util/settings.ts");
832
- /**
833
- * Handles the display of elements
832
+ /**
833
+ * Handles the display of elements
834
834
  */
835
835
  class MintDisplay {
836
- /**
837
- * Sets the element's height to its `innerHeight`, then to `auto` after a delay
838
- * @param el - the element whose height will be set
839
- * @param delay - the amount of time in milliseconds that the show animation will be active
840
- * @param from - the side that the element is animating from
836
+ /**
837
+ * Sets the element's height to its `innerHeight`, then to `auto` after a delay
838
+ * @param el - the element whose height will be set
839
+ * @param delay - the amount of time in milliseconds that the show animation will be active
840
+ * @param from - the side that the element is animating from
841
841
  */
842
842
  static show(el) {
843
843
  let delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : settings_1.MintSettings.delay.default;
@@ -860,11 +860,11 @@ class MintDisplay {
860
860
  });
861
861
  }
862
862
  }
863
- /**
864
- * Sets the element's height to 0
865
- * @param el - the element whose height will be set
866
- * @param delay - the amount of time in milliseconds that the show animation will be active
867
- * @param from - the side that the element is animating from
863
+ /**
864
+ * Sets the element's height to 0
865
+ * @param el - the element whose height will be set
866
+ * @param delay - the amount of time in milliseconds that the show animation will be active
867
+ * @param from - the side that the element is animating from
868
868
  */
869
869
  static hide(el) {
870
870
  let delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : settings_1.MintSettings.delay.default;
@@ -919,15 +919,15 @@ Object.defineProperty(exports, "__esModule", ({
919
919
  }));
920
920
  exports.MintEvent = void 0;
921
921
  const settings_1 = __importDefault(__webpack_require__(/*! ./settings */ "./src/ts/imports/util/settings.ts"));
922
- /**
923
- * Event helper functions
922
+ /**
923
+ * Event helper functions
924
924
  */
925
925
  class MintEvent {
926
- /**
927
- * Ensures that a function `func` is run only after not being called for `wait` milliseconds
928
- * @param func - the function to debounce
929
- * @param wait - the amount of time to wait before running the function
930
- * @returns - the debounced function
926
+ /**
927
+ * Ensures that a function `func` is run only after not being called for `wait` milliseconds
928
+ * @param func - the function to debounce
929
+ * @param wait - the amount of time to wait before running the function
930
+ * @returns - the debounced function
931
931
  */
932
932
  static debounce(func) {
933
933
  let wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : settings_1.default.delay.default;
@@ -939,22 +939,22 @@ class MintEvent {
939
939
  timer = setTimeout(func, wait, e);
940
940
  };
941
941
  }
942
- /**
943
- * Ensures that a function `func` is run only after not being called for `wait` milliseconds
944
- * @param func - the function to debounce
945
- * @param wait - the amount of time to wait before running the function
946
- * @returns - the debounced function as an EventListener
942
+ /**
943
+ * Ensures that a function `func` is run only after not being called for `wait` milliseconds
944
+ * @param func - the function to debounce
945
+ * @param wait - the amount of time to wait before running the function
946
+ * @returns - the debounced function as an EventListener
947
947
  */
948
948
  static debounceEvent(func) {
949
949
  let wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : settings_1.default.delay.default;
950
950
  return MintEvent.debounce(func, wait);
951
951
  }
952
- /**
953
- * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls
954
- * @param func - the function to throttle
955
- * @param wait - the amount of time between function calls
956
- * @param options - leading and trailing options: default = \{ leading: true, trailing, true \}
957
- * @returns - the throttled function
952
+ /**
953
+ * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls
954
+ * @param func - the function to throttle
955
+ * @param wait - the amount of time between function calls
956
+ * @param options - leading and trailing options: default = \{ leading: true, trailing, true \}
957
+ * @returns - the throttled function
958
958
  */
959
959
  static throttle(func) {
960
960
  let wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : settings_1.default.delay.default;
@@ -997,12 +997,12 @@ class MintEvent {
997
997
  };
998
998
  return throttled;
999
999
  }
1000
- /**
1001
- * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls
1002
- * @param func - the function to throttle
1003
- * @param wait - the amount of time between function calls
1004
- * @param options - leading and trailing options: default = \{ leading: true, trailing, true \}
1005
- * @returns - the throttled function as an EventListener
1000
+ /**
1001
+ * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls
1002
+ * @param func - the function to throttle
1003
+ * @param wait - the amount of time between function calls
1004
+ * @param options - leading and trailing options: default = \{ leading: true, trailing, true \}
1005
+ * @returns - the throttled function as an EventListener
1006
1006
  */
1007
1007
  static throttleEvent(func) {
1008
1008
  let wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : settings_1.default.delay.default;
@@ -1033,16 +1033,16 @@ Object.defineProperty(exports, "__esModule", ({
1033
1033
  value: true
1034
1034
  }));
1035
1035
  exports.MintIcon = void 0;
1036
- /**
1037
- * Imports
1036
+ /**
1037
+ * Imports
1038
1038
  */
1039
1039
  const object_1 = __importDefault(__webpack_require__(/*! ./object */ "./src/ts/imports/util/object.ts"));
1040
- /**
1041
- * Icon helper functions
1040
+ /**
1041
+ * Icon helper functions
1042
1042
  */
1043
1043
  class MintIcon {
1044
- /**
1045
- * Appends the given icon to the given selector if there is not already an icon appended
1044
+ /**
1045
+ * Appends the given icon to the given selector if there is not already an icon appended
1046
1046
  */
1047
1047
  static append(icon, selector) {
1048
1048
  let items = document.querySelectorAll(selector);
@@ -1057,9 +1057,9 @@ class MintIcon {
1057
1057
  }
1058
1058
  });
1059
1059
  }
1060
- /**
1061
- * Updates the icons
1062
- * @param icons - the icons to update
1060
+ /**
1061
+ * Updates the icons
1062
+ * @param icons - the icons to update
1063
1063
  */
1064
1064
  static update(icons) {
1065
1065
  let activeIcons = object_1.default.removeValues(Object.assign(Object.assign({}, this.icons), icons), [false]);
@@ -1067,9 +1067,9 @@ class MintIcon {
1067
1067
  this.append(activeIcons[selector], selector);
1068
1068
  });
1069
1069
  }
1070
- /**
1071
- * Removes the given icon from the given selector
1072
- * @param icon - the icon to remove
1070
+ /**
1071
+ * Removes the given icon from the given selector
1072
+ * @param icon - the icon to remove
1073
1073
  */
1074
1074
  static remove(icon, selector) {
1075
1075
  let items = document.querySelectorAll(selector);
@@ -1082,8 +1082,8 @@ class MintIcon {
1082
1082
  }
1083
1083
  }
1084
1084
  exports.MintIcon = MintIcon;
1085
- /**
1086
- * Default icons
1085
+ /**
1086
+ * Default icons
1087
1087
  */
1088
1088
  MintIcon.icons = {
1089
1089
  'a[href^="mailto:"]': 'far fa-envelope',
@@ -1127,8 +1127,8 @@ var __exportStar = this && this.__exportStar || function (m, exports) {
1127
1127
  Object.defineProperty(exports, "__esModule", ({
1128
1128
  value: true
1129
1129
  }));
1130
- /**
1131
- * Forward all exports from the util directory
1130
+ /**
1131
+ * Forward all exports from the util directory
1132
1132
  */
1133
1133
  __exportStar(__webpack_require__(/*! ./display */ "./src/ts/imports/util/display.ts"), exports);
1134
1134
  __exportStar(__webpack_require__(/*! ./event */ "./src/ts/imports/util/event.ts"), exports);
@@ -1156,14 +1156,14 @@ Object.defineProperty(exports, "__esModule", ({
1156
1156
  value: true
1157
1157
  }));
1158
1158
  exports.MintList = void 0;
1159
- /**
1160
- * List functions for the util library
1159
+ /**
1160
+ * List functions for the util library
1161
1161
  */
1162
1162
  class MintList {
1163
- /**
1164
- * Returns a copy of the provided list with the items in random order
1165
- * @param list - the list to shuffle
1166
- * @returns - the shuffled list
1163
+ /**
1164
+ * Returns a copy of the provided list with the items in random order
1165
+ * @param list - the list to shuffle
1166
+ * @returns - the shuffled list
1167
1167
  */
1168
1168
  static shuffleCopy(list) {
1169
1169
  let copy = [...list];
@@ -1173,14 +1173,14 @@ class MintList {
1173
1173
  }
1174
1174
  return copy;
1175
1175
  }
1176
- /**
1177
- * Filters the array in place based on a test condition and returns the filtered array.
1178
- * This method modifies the original array by removing elements that do not pass the test implemented by the provided function.
1179
- *
1180
- * @template T The type of elements in the array.
1181
- * @param {T[]} list The array to filter, which will be modified in place.
1182
- * @param {(item: T) => boolean} test A function that tests each element of the array. Return `true` to keep the element, `false` otherwise.
1183
- * @returns {T[]} The original array with only the elements that passed the test.
1176
+ /**
1177
+ * Filters the array in place based on a test condition and returns the filtered array.
1178
+ * This method modifies the original array by removing elements that do not pass the test implemented by the provided function.
1179
+ *
1180
+ * @template T The type of elements in the array.
1181
+ * @param {T[]} list The array to filter, which will be modified in place.
1182
+ * @param {(item: T) => boolean} test A function that tests each element of the array. Return `true` to keep the element, `false` otherwise.
1183
+ * @returns {T[]} The original array with only the elements that passed the test.
1184
1184
  */
1185
1185
  static filter(list, test) {
1186
1186
  let newLength = 0;
@@ -1211,15 +1211,15 @@ Object.defineProperty(exports, "__esModule", ({
1211
1211
  value: true
1212
1212
  }));
1213
1213
  exports.MintMath = void 0;
1214
- /**
1215
- * Math functions for the util library
1214
+ /**
1215
+ * Math functions for the util library
1216
1216
  */
1217
1217
  class MintMath {
1218
- /**
1219
- * Get a random integer between min and max
1220
- * @param max Maximum value to return
1221
- * @param min Minimum value to return (default is 0)
1222
- * @returns a random integer between min and max
1218
+ /**
1219
+ * Get a random integer between min and max
1220
+ * @param max Maximum value to return
1221
+ * @param min Minimum value to return (default is 0)
1222
+ * @returns a random integer between min and max
1223
1223
  */
1224
1224
  static randomInt(max) {
1225
1225
  let min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
@@ -1246,12 +1246,12 @@ Object.defineProperty(exports, "__esModule", ({
1246
1246
  value: true
1247
1247
  }));
1248
1248
  exports.MintObject = void 0;
1249
- /**
1250
- * Object functions for the util library
1249
+ /**
1250
+ * Object functions for the util library
1251
1251
  */
1252
1252
  class MintObject {
1253
- /**
1254
- * Returns true if the provided objects have the same entries
1253
+ /**
1254
+ * Returns true if the provided objects have the same entries
1255
1255
  */
1256
1256
  static isSimilar(obj1, obj2) {
1257
1257
  let keys = Object.keys(obj1);
@@ -1266,13 +1266,13 @@ class MintObject {
1266
1266
  });
1267
1267
  return isSimilar;
1268
1268
  }
1269
- /**
1270
- * Returns true if the first object has at least the same
1271
- * entries as the second object
1272
- * @param superset - the object to check
1273
- * @param subset - the object whose entries are required
1274
- * @returns - true if the first object is a superset of the second
1275
- * @recursive
1269
+ /**
1270
+ * Returns true if the first object has at least the same
1271
+ * entries as the second object
1272
+ * @param superset - the object to check
1273
+ * @param subset - the object whose entries are required
1274
+ * @returns - true if the first object is a superset of the second
1275
+ * @recursive
1276
1276
  */
1277
1277
  static isSuperset(superset, subset) {
1278
1278
  let isSuperset = true;
@@ -1300,19 +1300,19 @@ class MintObject {
1300
1300
  });
1301
1301
  return isSuperset;
1302
1302
  }
1303
- /**
1304
- * Removes object entries by key
1305
- * @alias mintObject.removeKeys
1306
- * @param object - the object to remove entries from
1307
- * @param keys - the keys to remove
1303
+ /**
1304
+ * Removes object entries by key
1305
+ * @alias mintObject.removeKeys
1306
+ * @param object - the object to remove entries from
1307
+ * @param keys - the keys to remove
1308
1308
  */
1309
1309
  static remove(object, keys) {
1310
1310
  return this.removeKeys(object, keys);
1311
1311
  }
1312
- /**
1313
- * Removes object entries by key
1314
- * @param object - the object to remove entries from
1315
- * @param keys - the keys to remove
1312
+ /**
1313
+ * Removes object entries by key
1314
+ * @param object - the object to remove entries from
1315
+ * @param keys - the keys to remove
1316
1316
  */
1317
1317
  static removeKeys(object, keys) {
1318
1318
  return Object.keys(object).reduce((obj, key) => {
@@ -1322,8 +1322,8 @@ class MintObject {
1322
1322
  return obj;
1323
1323
  }, {});
1324
1324
  }
1325
- /**
1326
- * Removes object entries by value
1325
+ /**
1326
+ * Removes object entries by value
1327
1327
  */
1328
1328
  static removeValues(object, values) {
1329
1329
  return Object.keys(object).reduce((obj, key) => {
@@ -1333,14 +1333,14 @@ class MintObject {
1333
1333
  return obj;
1334
1334
  }, {});
1335
1335
  }
1336
- /**
1337
- * Sorts an object's entries alphabetically by key
1336
+ /**
1337
+ * Sorts an object's entries alphabetically by key
1338
1338
  */
1339
1339
  static sort(object, compareFn) {
1340
1340
  return this.sortKeys(object, compareFn);
1341
1341
  }
1342
- /**
1343
- * Sorts an object's entries alphabetically by key
1342
+ /**
1343
+ * Sorts an object's entries alphabetically by key
1344
1344
  */
1345
1345
  static sortKeys(object, compareFn) {
1346
1346
  return Object.keys(object).sort(compareFn).reduce((obj, key) => {
@@ -1348,8 +1348,8 @@ class MintObject {
1348
1348
  return obj;
1349
1349
  }, {});
1350
1350
  }
1351
- /**
1352
- * Sorts an object's entries alphabetically by value
1351
+ /**
1352
+ * Sorts an object's entries alphabetically by value
1353
1353
  */
1354
1354
  static sortValues(object, compareFn) {
1355
1355
  return Object.keys(object).sort((a, b) => compareFn(object[a], object[b])).reduce((obj, key) => {
@@ -1357,17 +1357,17 @@ class MintObject {
1357
1357
  return obj;
1358
1358
  }, {});
1359
1359
  }
1360
- /**
1361
- * @alias mintObject.filterKeys
1360
+ /**
1361
+ * @alias mintObject.filterKeys
1362
1362
  */
1363
1363
  static filter(object, keys) {
1364
1364
  return this.filterKeys(object, keys);
1365
1365
  }
1366
- /**
1367
- * Filters an object by its keys
1368
- * @param object - the object to filter
1369
- * @param keys - the keys to keep
1370
- * @returns - the filtered object
1366
+ /**
1367
+ * Filters an object by its keys
1368
+ * @param object - the object to filter
1369
+ * @param keys - the keys to keep
1370
+ * @returns - the filtered object
1371
1371
  */
1372
1372
  static filterKeys(object, keys) {
1373
1373
  return keys.reduce((obj, key) => {
@@ -1375,11 +1375,11 @@ class MintObject {
1375
1375
  return obj;
1376
1376
  }, {});
1377
1377
  }
1378
- /**
1379
- * Filters an object by its values
1380
- * @param object - the object to filter
1381
- * @param values - the values to keep
1382
- * @returns - the filtered object
1378
+ /**
1379
+ * Filters an object by its values
1380
+ * @param object - the object to filter
1381
+ * @param values - the values to keep
1382
+ * @returns - the filtered object
1383
1383
  */
1384
1384
  static filterValues(object, values) {
1385
1385
  return Object.keys(object).reduce((obj, key) => {
@@ -1389,11 +1389,11 @@ class MintObject {
1389
1389
  return obj;
1390
1390
  }, {});
1391
1391
  }
1392
- /**
1393
- * Update two sets of objects
1394
- * @param original - the original object
1395
- * @param update - the object to update the original with
1396
- * @returns - the original objects with updated data from the update
1392
+ /**
1393
+ * Update two sets of objects
1394
+ * @param original - the original object
1395
+ * @param update - the object to update the original with
1396
+ * @returns - the original objects with updated data from the update
1397
1397
  */
1398
1398
  static updateArray(original, update) {
1399
1399
  let key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'id';
@@ -1432,8 +1432,8 @@ class MintObject {
1432
1432
  const newObjects = update === null || update === void 0 ? void 0 : update.filter(object => !original.some(existingObject => (existingObject === null || existingObject === void 0 ? void 0 : existingObject[key]) === (object === null || object === void 0 ? void 0 : object[key])));
1433
1433
  newObjects === null || newObjects === void 0 ? void 0 : newObjects.forEach(newObject => original.push(newObject));
1434
1434
  }
1435
- /**
1436
- * Get an object's key by value
1435
+ /**
1436
+ * Get an object's key by value
1437
1437
  */
1438
1438
  static getKeyByValue(object, value) {
1439
1439
  return Object.keys(object).find(key => object[key] === value);
@@ -1462,28 +1462,28 @@ Object.defineProperty(exports, "__esModule", ({
1462
1462
  value: true
1463
1463
  }));
1464
1464
  exports.MintScroll = void 0;
1465
- /**
1466
- * Imports
1465
+ /**
1466
+ * Imports
1467
1467
  */
1468
1468
  const event_1 = __importDefault(__webpack_require__(/*! ./event */ "./src/ts/imports/util/event.ts"));
1469
- /**
1470
- * Scroll functions
1469
+ /**
1470
+ * Scroll functions
1471
1471
  */
1472
1472
  class MintScroll {
1473
- /**
1474
- * Scroll to the top of the page
1473
+ /**
1474
+ * Scroll to the top of the page
1475
1475
  */
1476
1476
  static toTop() {
1477
1477
  window.scrollTo(0, 0);
1478
1478
  }
1479
- /**
1480
- * Scroll to the bottom of the page
1479
+ /**
1480
+ * Scroll to the bottom of the page
1481
1481
  */
1482
1482
  static toBottom() {
1483
1483
  window.scrollTo(0, document.body.scrollHeight);
1484
1484
  }
1485
- /**
1486
- * Show visible elements
1485
+ /**
1486
+ * Show visible elements
1487
1487
  */
1488
1488
  static showElements() {
1489
1489
  requestAnimationFrame(() => {
@@ -1503,8 +1503,8 @@ class MintScroll {
1503
1503
  }
1504
1504
  });
1505
1505
  }
1506
- /**
1507
- * Show visible elements on scroll
1506
+ /**
1507
+ * Show visible elements on scroll
1508
1508
  */
1509
1509
  static showElementsOnScroll() {
1510
1510
  window.addEventListener('scroll', event_1.default.throttleEvent(this.showElements, 200));
@@ -1529,80 +1529,80 @@ Object.defineProperty(exports, "__esModule", ({
1529
1529
  value: true
1530
1530
  }));
1531
1531
  exports.MintSelectors = void 0;
1532
- /**
1533
- * CSS-selector helpers
1534
- * @public
1532
+ /**
1533
+ * CSS-selector helpers
1534
+ * @public
1535
1535
  */
1536
1536
  class MintSelectors {
1537
- /**
1538
- * Adds the library prefix to the beginning of the provided string
1539
- * @param base - the string to be prefixed
1540
- * @returns - the provided string prefixed with the library name
1537
+ /**
1538
+ * Adds the library prefix to the beginning of the provided string
1539
+ * @param base - the string to be prefixed
1540
+ * @returns - the provided string prefixed with the library name
1541
1541
  */
1542
1542
  static prefix(base) {
1543
1543
  base = base.toLowerCase();
1544
1544
  return base.startsWith(this.pre) ? base : `${this.pre}${base}`;
1545
1545
  }
1546
- /**
1547
- * Adds two dashes to the beginning of the provided string
1548
- * @param base - the string to be prefixed
1549
- * @returns - the provided string prefixed with two dashes
1546
+ /**
1547
+ * Adds two dashes to the beginning of the provided string
1548
+ * @param base - the string to be prefixed
1549
+ * @returns - the provided string prefixed with two dashes
1550
1550
  */
1551
1551
  static cssPrefix(base) {
1552
1552
  return `--${this.prefix(base.replace(/^-+/, ''))}`;
1553
1553
  }
1554
- /**
1555
- * Turns the provided string into a CSS variable call
1556
- * @param base - the name of the CSS variable to call
1557
- * @returns - the CSS variable call for the provided string
1554
+ /**
1555
+ * Turns the provided string into a CSS variable call
1556
+ * @param base - the name of the CSS variable to call
1557
+ * @returns - the CSS variable call for the provided string
1558
1558
  */
1559
1559
  static cssVar(base) {
1560
1560
  return `var(${this.cssPrefix(base)})`;
1561
1561
  }
1562
- /**
1563
- * Negates the provided CSS selector
1564
- * @param base - the CSS selector to negate
1565
- * @returns - the negated CSS selector
1562
+ /**
1563
+ * Negates the provided CSS selector
1564
+ * @param base - the CSS selector to negate
1565
+ * @returns - the negated CSS selector
1566
1566
  */
1567
1567
  static neg(base) {
1568
1568
  return `:not(${base})`;
1569
1569
  }
1570
- /**
1571
- * Generates a class CSS selector
1572
- * @param base - the name of the class to generate
1573
- * @returns - the generated CSS selector
1570
+ /**
1571
+ * Generates a class CSS selector
1572
+ * @param base - the name of the class to generate
1573
+ * @returns - the generated CSS selector
1574
1574
  */
1575
1575
  static class(base) {
1576
1576
  return `.${this.prefix(base)}`;
1577
1577
  }
1578
- /**
1579
- * Generates an id CSS selector
1580
- * @param base - the name of the id to generate
1581
- * @returns - the generated CSS selector
1578
+ /**
1579
+ * Generates an id CSS selector
1580
+ * @param base - the name of the id to generate
1581
+ * @returns - the generated CSS selector
1582
1582
  */
1583
1583
  static id(base) {
1584
1584
  return `#${this.prefix(base)}`;
1585
1585
  }
1586
- /**
1587
- * Generates an aria-controls CSS selector
1588
- * @param id - the id of the controlled element
1589
- * @returns - the generated CSS selector
1586
+ /**
1587
+ * Generates an aria-controls CSS selector
1588
+ * @param id - the id of the controlled element
1589
+ * @returns - the generated CSS selector
1590
1590
  */
1591
1591
  static controls(id) {
1592
1592
  return id ? `[aria-controls="${this.prefix(id)}"]` : this.hasControls;
1593
1593
  }
1594
- /**
1595
- * Generates an aria-expanded CSS selector
1596
- * @param bool - whether the element is expanded or not
1597
- * @returns - the generated CSS selector
1594
+ /**
1595
+ * Generates an aria-expanded CSS selector
1596
+ * @param bool - whether the element is expanded or not
1597
+ * @returns - the generated CSS selector
1598
1598
  */
1599
1599
  static expanded(bool) {
1600
1600
  return typeof bool === 'boolean' ? `[aria-expanded="${bool}"]` : this.hasExpanded;
1601
1601
  }
1602
- /**
1603
- * Returns a NodeList of HTMLElements within the given element that are focusable
1604
- * @param el - the element whose focusable children will be returned
1605
- * @returns - the elements within the given element that are focusable
1602
+ /**
1603
+ * Returns a NodeList of HTMLElements within the given element that are focusable
1604
+ * @param el - the element whose focusable children will be returned
1605
+ * @returns - the elements within the given element that are focusable
1606
1606
  */
1607
1607
  static getFocusables(el) {
1608
1608
  let focusables;
@@ -1613,12 +1613,12 @@ class MintSelectors {
1613
1613
  }
1614
1614
  return focusables.filter(el => this.isFocusable(el));
1615
1615
  }
1616
- /**
1617
- * Returns true if an element is focusable and false if not,
1618
- * based on styles (i.e. a parent has display: none;)
1619
- * NOTE: Still need to determine what other styles may make an element un-focusable
1620
- * @param el - the element
1621
- * @returns - true if the element is focusable; false if not
1616
+ /**
1617
+ * Returns true if an element is focusable and false if not,
1618
+ * based on styles (i.e. a parent has display: none;)
1619
+ * NOTE: Still need to determine what other styles may make an element un-focusable
1620
+ * @param el - the element
1621
+ * @returns - true if the element is focusable; false if not
1622
1622
  */
1623
1623
  static isFocusable(el) {
1624
1624
  let current = el;
@@ -1633,48 +1633,48 @@ class MintSelectors {
1633
1633
  }
1634
1634
  exports.MintSelectors = MintSelectors;
1635
1635
  _a = MintSelectors;
1636
- /**
1637
- * The library name that will be added as a prefix
1636
+ /**
1637
+ * The library name that will be added as a prefix
1638
1638
  */
1639
1639
  MintSelectors.lib = 'mint';
1640
- /**
1641
- * The prefix built from the library name
1640
+ /**
1641
+ * The prefix built from the library name
1642
1642
  */
1643
1643
  MintSelectors.pre = `${_a.lib}-`;
1644
- /**
1645
- * CSS-selector for disabled elements
1644
+ /**
1645
+ * CSS-selector for disabled elements
1646
1646
  */
1647
1647
  MintSelectors.disabled = '[disabled]';
1648
- /**
1649
- * CSS-selector for elements with an aria-controls attribute
1648
+ /**
1649
+ * CSS-selector for elements with an aria-controls attribute
1650
1650
  */
1651
1651
  MintSelectors.hasControls = '[aria-controls]';
1652
- /**
1653
- * CSS-selector for elements with an aria-expanded attribute
1652
+ /**
1653
+ * CSS-selector for elements with an aria-expanded attribute
1654
1654
  */
1655
1655
  MintSelectors.hasExpanded = '[aria-expanded]';
1656
- /**
1657
- * CSS-selector for elements with an href attribute
1656
+ /**
1657
+ * CSS-selector for elements with an href attribute
1658
1658
  */
1659
1659
  MintSelectors.hasLink = '[href]';
1660
- /**
1661
- * CSS-selector for elements with a routerLink attribute
1660
+ /**
1661
+ * CSS-selector for elements with a routerLink attribute
1662
1662
  */
1663
1663
  MintSelectors.hasRouterLink = '[routerLink]';
1664
- /**
1665
- * CSS-selector for elements with an id attribute
1664
+ /**
1665
+ * CSS-selector for elements with an id attribute
1666
1666
  */
1667
1667
  MintSelectors.hasId = '[id]';
1668
- /**
1669
- * CSS-selector for elements that aren't tabbable (i.e. tabindex is negative)
1668
+ /**
1669
+ * CSS-selector for elements that aren't tabbable (i.e. tabindex is negative)
1670
1670
  */
1671
1671
  MintSelectors.notTabbable = '[tabindex^="-"]';
1672
- /**
1673
- * CSS-selector for elements that are tabbable (i.e. tabindex isn't negative)
1672
+ /**
1673
+ * CSS-selector for elements that are tabbable (i.e. tabindex isn't negative)
1674
1674
  */
1675
1675
  MintSelectors.tabbable = `[tabindex]${_a.neg(_a.notTabbable)}`;
1676
- /**
1677
- * CSS-selector for elements that can receive focus
1676
+ /**
1677
+ * CSS-selector for elements that can receive focus
1678
1678
  */
1679
1679
  MintSelectors.focusable = `input${_a.neg(_a.disabled)}${_a.neg(_a.notTabbable)},
1680
1680
  select${_a.neg(_a.disabled)}${_a.neg(_a.notTabbable)},
@@ -1684,12 +1684,12 @@ MintSelectors.focusable = `input${_a.neg(_a.disabled)}${_a.neg(_a.notTabbable)},
1684
1684
  a${_a.hasLink}, a${_a.hasRouterLink},
1685
1685
  area${_a.hasLink},
1686
1686
  ${_a.tabbable}`.replace(/\s/g, '');
1687
- /**
1688
- * CSS-selector for submenu buttons
1687
+ /**
1688
+ * CSS-selector for submenu buttons
1689
1689
  */
1690
1690
  MintSelectors.subMenuButtons = `button${_a.hasControls}`;
1691
- /**
1692
- * CSS-selector for submenus
1691
+ /**
1692
+ * CSS-selector for submenus
1693
1693
  */
1694
1694
  MintSelectors.subMenu = `${_a.subMenuButtons} + ul${_a.hasId}`;
1695
1695
  ;
@@ -1710,14 +1710,14 @@ Object.defineProperty(exports, "__esModule", ({
1710
1710
  value: true
1711
1711
  }));
1712
1712
  exports.MintSettings = void 0;
1713
- /**
1714
- * Settings management
1715
- * @public
1713
+ /**
1714
+ * Settings management
1715
+ * @public
1716
1716
  */
1717
1717
  class MintSettings {
1718
- /**
1719
- * Update the provided settings variables
1720
- * @param settings - Object of settings variables to update
1718
+ /**
1719
+ * Update the provided settings variables
1720
+ * @param settings - Object of settings variables to update
1721
1721
  */
1722
1722
  static set(settings) {
1723
1723
  let newDelay = false;
@@ -1743,8 +1743,8 @@ class MintSettings {
1743
1743
  }
1744
1744
  }
1745
1745
  }
1746
- /**
1747
- * Updates the delay variables based on `this.delayBase` and `this.delayStep`
1746
+ /**
1747
+ * Updates the delay variables based on `this.delayBase` and `this.delayStep`
1748
1748
  */
1749
1749
  static setDelay() {
1750
1750
  this.delay = {
@@ -1759,16 +1759,16 @@ class MintSettings {
1759
1759
  }
1760
1760
  exports.MintSettings = MintSettings;
1761
1761
  _a = MintSettings;
1762
- /**
1763
- * Value added to all delay variables
1762
+ /**
1763
+ * Value added to all delay variables
1764
1764
  */
1765
1765
  MintSettings.delayBase = 0;
1766
- /**
1767
- * Value multiplied by delay variable index
1766
+ /**
1767
+ * Value multiplied by delay variable index
1768
1768
  */
1769
1769
  MintSettings.delayStep = 100;
1770
- /**
1771
- * Delay variables
1770
+ /**
1771
+ * Delay variables
1772
1772
  */
1773
1773
  MintSettings.delay = {
1774
1774
  instant: _a.delayBase + _a.delayStep * 0,
@@ -1778,8 +1778,8 @@ MintSettings.delay = {
1778
1778
  medSlow: _a.delayBase + _a.delayStep * 4,
1779
1779
  slow: _a.delayBase + _a.delayStep * 5
1780
1780
  };
1781
- /**
1782
- * Breakpoint variables
1781
+ /**
1782
+ * Breakpoint variables
1783
1783
  */
1784
1784
  MintSettings.break = {
1785
1785
  z: 0,
@@ -1806,23 +1806,23 @@ Object.defineProperty(exports, "__esModule", ({
1806
1806
  value: true
1807
1807
  }));
1808
1808
  exports.MintText = void 0;
1809
- /**
1810
- * Functions for analyzing and manipulating text.
1809
+ /**
1810
+ * Functions for analyzing and manipulating text.
1811
1811
  */
1812
1812
  class MintText {
1813
- /**
1814
- * Generate a slug from a string
1815
- * @param text - The string to slugify
1816
- * @returns The slugified string
1813
+ /**
1814
+ * Generate a slug from a string
1815
+ * @param text - The string to slugify
1816
+ * @returns The slugified string
1817
1817
  */
1818
1818
  static slug(text) {
1819
1819
  var _a;
1820
1820
  return (_a = text === null || text === void 0 ? void 0 : text.toLowerCase().replace(/\W+/g, '-').replace(/^-+|-+$/g, '')) !== null && _a !== void 0 ? _a : '';
1821
1821
  }
1822
- /**
1823
- * Format a phone number
1824
- * @param phone - The phone number to format
1825
- * @returns The formatted phone number
1822
+ /**
1823
+ * Format a phone number
1824
+ * @param phone - The phone number to format
1825
+ * @returns The formatted phone number
1826
1826
  */
1827
1827
  static phone(phone) {
1828
1828
  var _a, _b;
@@ -1864,8 +1864,8 @@ class MintText {
1864
1864
  }
1865
1865
  return formatted;
1866
1866
  }
1867
- /**
1868
- * Pluralize the given word
1867
+ /**
1868
+ * Pluralize the given word
1869
1869
  */
1870
1870
  static pluralize(word) {
1871
1871
  if (word.endsWith('ies') || word.endsWith('es') || word.endsWith('s') && !word.endsWith('us') && !word.endsWith('is') && !word.endsWith('ss')) {
@@ -1879,16 +1879,16 @@ class MintText {
1879
1879
  }
1880
1880
  return word + 's';
1881
1881
  }
1882
- /**
1883
- * Capitalize the first letter of the given word
1882
+ /**
1883
+ * Capitalize the first letter of the given word
1884
1884
  */
1885
1885
  static titleCase(text) {
1886
1886
  return text.toLowerCase().replace(/(?:^|\s)\S/g, a => a.toUpperCase());
1887
1887
  }
1888
- /**
1889
- * Copies the provided text to the clipboard
1890
- * @param text - the text to copy
1891
- * @returns - true if the text was successfully copied to the clipboard; else false
1888
+ /**
1889
+ * Copies the provided text to the clipboard
1890
+ * @param text - the text to copy
1891
+ * @returns - true if the text was successfully copied to the clipboard; else false
1892
1892
  */
1893
1893
  static copyText(text) {
1894
1894
  let textArea = document.createElement('textarea');
@@ -1911,11 +1911,11 @@ class MintText {
1911
1911
  document.body.removeChild(textArea);
1912
1912
  return true;
1913
1913
  }
1914
- /**
1915
- * Tests the validity of an email address
1916
- * @see {@link https://stackoverflow.com/questions/201323/how-can-i-validate-an-email-address-using-a-regular-expression}
1917
- * @param text - the string to test
1918
- * @returns - true if the given string is an email address; false if not
1914
+ /**
1915
+ * Tests the validity of an email address
1916
+ * @see {@link https://stackoverflow.com/questions/201323/how-can-i-validate-an-email-address-using-a-regular-expression}
1917
+ * @param text - the string to test
1918
+ * @returns - true if the given string is an email address; false if not
1919
1919
  */
1920
1920
  static isEmail(text) {
1921
1921
  return null !== text.match(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/);
@@ -1939,13 +1939,13 @@ Object.defineProperty(exports, "__esModule", ({
1939
1939
  value: true
1940
1940
  }));
1941
1941
  exports.MintWindow = void 0;
1942
- /**
1943
- * Functions related to the browser window.
1942
+ /**
1943
+ * Functions related to the browser window.
1944
1944
  */
1945
1945
  class MintWindow {
1946
- /**
1947
- * Returns the width of the window, including fractional pixels
1948
- * @returns the width of the window
1946
+ /**
1947
+ * Returns the width of the window, including fractional pixels
1948
+ * @returns the width of the window
1949
1949
  */
1950
1950
  static width() {
1951
1951
  const decimal = document.body.getBoundingClientRect().width % 1;
@@ -1966,10 +1966,10 @@ exports["default"] = MintWindow;
1966
1966
 
1967
1967
 
1968
1968
 
1969
- /**
1970
- * A library for building responsive web applications.
1971
- *
1972
- * @packageDocumentation
1969
+ /**
1970
+ * A library for building responsive web applications.
1971
+ *
1972
+ * @packageDocumentation
1973
1973
  */
1974
1974
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
1975
1975
  if (k2 === undefined) k2 = k;
@@ -1993,8 +1993,8 @@ var __exportStar = this && this.__exportStar || function (m, exports) {
1993
1993
  Object.defineProperty(exports, "__esModule", ({
1994
1994
  value: true
1995
1995
  }));
1996
- /**
1997
- * Exports
1996
+ /**
1997
+ * Exports
1998
1998
  */
1999
1999
  __exportStar(__webpack_require__(/*! ./imports */ "./src/ts/imports/index.ts"), exports);
2000
2000