bootstrap 4.5.0 → 4.6.1

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 (61) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/assets/javascripts/bootstrap/alert.js +35 -41
  4. data/assets/javascripts/bootstrap/button.js +42 -44
  5. data/assets/javascripts/bootstrap/carousel.js +126 -155
  6. data/assets/javascripts/bootstrap/collapse.js +88 -125
  7. data/assets/javascripts/bootstrap/dropdown.js +93 -133
  8. data/assets/javascripts/bootstrap/modal.js +163 -183
  9. data/assets/javascripts/bootstrap/popover.js +57 -82
  10. data/assets/javascripts/bootstrap/scrollspy.js +63 -100
  11. data/assets/javascripts/bootstrap/tab.js +58 -58
  12. data/assets/javascripts/bootstrap/toast.js +66 -95
  13. data/assets/javascripts/bootstrap/tooltip.js +136 -166
  14. data/assets/javascripts/bootstrap/util.js +22 -25
  15. data/assets/javascripts/bootstrap-sprockets.js +6 -6
  16. data/assets/javascripts/bootstrap.js +884 -947
  17. data/assets/javascripts/bootstrap.min.js +4 -4
  18. data/assets/stylesheets/_bootstrap-grid.scss +5 -4
  19. data/assets/stylesheets/_bootstrap-reboot.scss +4 -4
  20. data/assets/stylesheets/_bootstrap.scss +4 -4
  21. data/assets/stylesheets/bootstrap/_alert.scss +1 -0
  22. data/assets/stylesheets/bootstrap/_breadcrumb.scss +1 -3
  23. data/assets/stylesheets/bootstrap/_card.scss +19 -15
  24. data/assets/stylesheets/bootstrap/_carousel.scss +6 -3
  25. data/assets/stylesheets/bootstrap/_custom-forms.scss +20 -16
  26. data/assets/stylesheets/bootstrap/_dropdown.scss +2 -2
  27. data/assets/stylesheets/bootstrap/_forms.scss +10 -10
  28. data/assets/stylesheets/bootstrap/_functions.scss +50 -1
  29. data/assets/stylesheets/bootstrap/_grid.scss +1 -5
  30. data/assets/stylesheets/bootstrap/_images.scss +1 -1
  31. data/assets/stylesheets/bootstrap/_input-group.scss +22 -3
  32. data/assets/stylesheets/bootstrap/_jumbotron.scss +1 -1
  33. data/assets/stylesheets/bootstrap/_list-group.scss +1 -1
  34. data/assets/stylesheets/bootstrap/_modal.scss +2 -3
  35. data/assets/stylesheets/bootstrap/_nav.scss +3 -4
  36. data/assets/stylesheets/bootstrap/_navbar.scss +10 -2
  37. data/assets/stylesheets/bootstrap/_pagination.scss +2 -2
  38. data/assets/stylesheets/bootstrap/_popover.scss +9 -9
  39. data/assets/stylesheets/bootstrap/_print.scss +0 -9
  40. data/assets/stylesheets/bootstrap/_progress.scss +1 -1
  41. data/assets/stylesheets/bootstrap/_reboot.scss +17 -13
  42. data/assets/stylesheets/bootstrap/_root.scss +0 -1
  43. data/assets/stylesheets/bootstrap/_spinners.scss +15 -6
  44. data/assets/stylesheets/bootstrap/_toasts.scss +4 -2
  45. data/assets/stylesheets/bootstrap/_tooltip.scss +4 -4
  46. data/assets/stylesheets/bootstrap/_type.scss +1 -1
  47. data/assets/stylesheets/bootstrap/_variables.scss +30 -29
  48. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +1 -1
  49. data/assets/stylesheets/bootstrap/mixins/_forms.scss +21 -3
  50. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +2 -3
  51. data/assets/stylesheets/bootstrap/mixins/_grid.scss +17 -17
  52. data/assets/stylesheets/bootstrap/mixins/_image.scss +1 -1
  53. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +2 -2
  54. data/assets/stylesheets/bootstrap/mixins/_transition.scss +1 -1
  55. data/assets/stylesheets/bootstrap/utilities/_borders.scss +1 -1
  56. data/assets/stylesheets/bootstrap/utilities/_embed.scss +1 -1
  57. data/assets/stylesheets/bootstrap/utilities/_spacing.scss +1 -1
  58. data/assets/stylesheets/bootstrap/utilities/_text.scss +2 -1
  59. data/assets/stylesheets/bootstrap/vendor/_rfs.scss +126 -102
  60. data/lib/bootstrap/version.rb +2 -2
  61. metadata +2 -2
@@ -1,26 +1,26 @@
1
1
  /*!
2
- * Bootstrap util.js v4.5.0 (https://getbootstrap.com/)
3
- * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2
+ * Bootstrap util.js v4.6.1 (https://getbootstrap.com/)
3
+ * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
5
  */
6
6
  (function (global, factory) {
7
7
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) :
8
8
  typeof define === 'function' && define.amd ? define(['jquery'], factory) :
9
- (global = global || self, global.Util = factory(global.jQuery));
10
- }(this, (function ($) { 'use strict';
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Util = factory(global.jQuery));
10
+ })(this, (function ($) { 'use strict';
11
11
 
12
- $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ var $__default = /*#__PURE__*/_interopDefaultLegacy($);
13
15
 
14
16
  /**
15
17
  * --------------------------------------------------------------------------
16
- * Bootstrap (v4.5.0): util.js
17
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
18
+ * Bootstrap (v4.6.1): util.js
19
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
18
20
  * --------------------------------------------------------------------------
19
21
  */
20
22
  /**
21
- * ------------------------------------------------------------------------
22
23
  * Private TransitionEnd Helpers
23
- * ------------------------------------------------------------------------
24
24
  */
25
25
 
26
26
  var TRANSITION_END = 'transitionend';
@@ -40,7 +40,7 @@
40
40
  bindType: TRANSITION_END,
41
41
  delegateType: TRANSITION_END,
42
42
  handle: function handle(event) {
43
- if ($(event.target).is(this)) {
43
+ if ($__default["default"](event.target).is(this)) {
44
44
  return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
45
45
  }
46
46
 
@@ -53,7 +53,7 @@
53
53
  var _this = this;
54
54
 
55
55
  var called = false;
56
- $(this).one(Util.TRANSITION_END, function () {
56
+ $__default["default"](this).one(Util.TRANSITION_END, function () {
57
57
  called = true;
58
58
  });
59
59
  setTimeout(function () {
@@ -65,13 +65,11 @@
65
65
  }
66
66
 
67
67
  function setTransitionEndSupport() {
68
- $.fn.emulateTransitionEnd = transitionEndEmulator;
69
- $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
68
+ $__default["default"].fn.emulateTransitionEnd = transitionEndEmulator;
69
+ $__default["default"].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
70
70
  }
71
71
  /**
72
- * --------------------------------------------------------------------------
73
- * Public Util Api
74
- * --------------------------------------------------------------------------
72
+ * Public Util API
75
73
  */
76
74
 
77
75
 
@@ -95,7 +93,7 @@
95
93
 
96
94
  try {
97
95
  return document.querySelector(selector) ? selector : null;
98
- } catch (err) {
96
+ } catch (_) {
99
97
  return null;
100
98
  }
101
99
  },
@@ -105,8 +103,8 @@
105
103
  } // Get transition-duration of the element
106
104
 
107
105
 
108
- var transitionDuration = $(element).css('transition-duration');
109
- var transitionDelay = $(element).css('transition-delay');
106
+ var transitionDuration = $__default["default"](element).css('transition-duration');
107
+ var transitionDelay = $__default["default"](element).css('transition-delay');
110
108
  var floatTransitionDuration = parseFloat(transitionDuration);
111
109
  var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
112
110
 
@@ -123,9 +121,8 @@
123
121
  return element.offsetHeight;
124
122
  },
125
123
  triggerTransitionEnd: function triggerTransitionEnd(element) {
126
- $(element).trigger(TRANSITION_END);
124
+ $__default["default"](element).trigger(TRANSITION_END);
127
125
  },
128
- // TODO: Remove in v5
129
126
  supportsTransitionEnd: function supportsTransitionEnd() {
130
127
  return Boolean(TRANSITION_END);
131
128
  },
@@ -168,11 +165,11 @@
168
165
  return Util.findShadowRoot(element.parentNode);
169
166
  },
170
167
  jQueryDetection: function jQueryDetection() {
171
- if (typeof $ === 'undefined') {
168
+ if (typeof $__default["default"] === 'undefined') {
172
169
  throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
173
170
  }
174
171
 
175
- var version = $.fn.jquery.split(' ')[0].split('.');
172
+ var version = $__default["default"].fn.jquery.split(' ')[0].split('.');
176
173
  var minMajor = 1;
177
174
  var ltMajor = 2;
178
175
  var minMinor = 9;
@@ -189,4 +186,4 @@
189
186
 
190
187
  return Util;
191
188
 
192
- })));
189
+ }));
@@ -1,12 +1,12 @@
1
- //= require ./bootstrap/button
2
1
  //= require ./bootstrap/util
3
2
  //= require ./bootstrap/tooltip
4
3
  //= require ./bootstrap/popover
4
+ //= require ./bootstrap/collapse
5
+ //= require ./bootstrap/scrollspy
6
+ //= require ./bootstrap/button
7
+ //= require ./bootstrap/modal
5
8
  //= require ./bootstrap/tab
6
- //= require ./bootstrap/alert
7
- //= require ./bootstrap/carousel
8
9
  //= require ./bootstrap/dropdown
9
- //= require ./bootstrap/modal
10
+ //= require ./bootstrap/carousel
11
+ //= require ./bootstrap/alert
10
12
  //= require ./bootstrap/toast
11
- //= require ./bootstrap/collapse
12
- //= require ./bootstrap/scrollspy