foundation-rails 6.6.2.0 → 6.9.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +2 -0
  4. data/Appraisals +4 -0
  5. data/Gemfile +1 -1
  6. data/Gemfile.lock +198 -145
  7. data/bower.json +3 -3
  8. data/foundation-rails.gemspec +4 -4
  9. data/gemfiles/rails_7.1.gemfile +10 -0
  10. data/gemfiles/rails_7.1.gemfile.lock +261 -0
  11. data/lib/foundation/rails/version.rb +1 -1
  12. data/lib/generators/foundation/templates/_settings.scss +32 -28
  13. data/vendor/assets/js/foundation.cjs.js +1996 -3162
  14. data/vendor/assets/js/foundation.cjs.js.map +1 -1
  15. data/vendor/assets/js/foundation.es6.js +385 -292
  16. data/vendor/assets/js/foundation.es6.js.map +1 -1
  17. data/vendor/assets/js/foundation.esm.js +1663 -2832
  18. data/vendor/assets/js/foundation.esm.js.map +1 -1
  19. data/vendor/assets/js/foundation.js +2440 -3870
  20. data/vendor/assets/js/foundation.js.map +1 -1
  21. data/vendor/assets/js/foundation.min.js +1 -1
  22. data/vendor/assets/js/foundation.min.js.map +1 -1
  23. data/vendor/assets/js/plugins/foundation.abide.js +238 -344
  24. data/vendor/assets/js/plugins/foundation.abide.js.map +1 -1
  25. data/vendor/assets/js/plugins/foundation.abide.min.js +1 -1
  26. data/vendor/assets/js/plugins/foundation.abide.min.js.map +1 -1
  27. data/vendor/assets/js/plugins/foundation.accordion.js +197 -275
  28. data/vendor/assets/js/plugins/foundation.accordion.js.map +1 -1
  29. data/vendor/assets/js/plugins/foundation.accordion.min.js +1 -1
  30. data/vendor/assets/js/plugins/foundation.accordion.min.js.map +1 -1
  31. data/vendor/assets/js/plugins/foundation.accordionMenu.js +174 -260
  32. data/vendor/assets/js/plugins/foundation.accordionMenu.js.map +1 -1
  33. data/vendor/assets/js/plugins/foundation.accordionMenu.min.js +1 -1
  34. data/vendor/assets/js/plugins/foundation.accordionMenu.min.js.map +1 -1
  35. data/vendor/assets/js/plugins/foundation.core.js +308 -447
  36. data/vendor/assets/js/plugins/foundation.core.js.map +1 -1
  37. data/vendor/assets/js/plugins/foundation.core.min.js +1 -1
  38. data/vendor/assets/js/plugins/foundation.core.min.js.map +1 -1
  39. data/vendor/assets/js/plugins/foundation.drilldown.js +258 -358
  40. data/vendor/assets/js/plugins/foundation.drilldown.js.map +1 -1
  41. data/vendor/assets/js/plugins/foundation.drilldown.min.js +1 -1
  42. data/vendor/assets/js/plugins/foundation.drilldown.min.js.map +1 -1
  43. data/vendor/assets/js/plugins/foundation.dropdown.js +289 -457
  44. data/vendor/assets/js/plugins/foundation.dropdown.js.map +1 -1
  45. data/vendor/assets/js/plugins/foundation.dropdown.min.js +1 -1
  46. data/vendor/assets/js/plugins/foundation.dropdown.min.js.map +1 -1
  47. data/vendor/assets/js/plugins/foundation.dropdownMenu.js +246 -346
  48. data/vendor/assets/js/plugins/foundation.dropdownMenu.js.map +1 -1
  49. data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js +1 -1
  50. data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js.map +1 -1
  51. data/vendor/assets/js/plugins/foundation.equalizer.js +178 -261
  52. data/vendor/assets/js/plugins/foundation.equalizer.js.map +1 -1
  53. data/vendor/assets/js/plugins/foundation.equalizer.min.js +1 -1
  54. data/vendor/assets/js/plugins/foundation.equalizer.min.js.map +1 -1
  55. data/vendor/assets/js/plugins/foundation.interchange.js +227 -326
  56. data/vendor/assets/js/plugins/foundation.interchange.js.map +1 -1
  57. data/vendor/assets/js/plugins/foundation.interchange.min.js +1 -1
  58. data/vendor/assets/js/plugins/foundation.interchange.min.js.map +1 -1
  59. data/vendor/assets/js/plugins/foundation.magellan.js +225 -336
  60. data/vendor/assets/js/plugins/foundation.magellan.js.map +1 -1
  61. data/vendor/assets/js/plugins/foundation.magellan.min.js +1 -1
  62. data/vendor/assets/js/plugins/foundation.magellan.min.js.map +1 -1
  63. data/vendor/assets/js/plugins/foundation.offcanvas.js +326 -471
  64. data/vendor/assets/js/plugins/foundation.offcanvas.js.map +1 -1
  65. data/vendor/assets/js/plugins/foundation.offcanvas.min.js +1 -1
  66. data/vendor/assets/js/plugins/foundation.offcanvas.min.js.map +1 -1
  67. data/vendor/assets/js/plugins/foundation.orbit.js +244 -347
  68. data/vendor/assets/js/plugins/foundation.orbit.js.map +1 -1
  69. data/vendor/assets/js/plugins/foundation.orbit.min.js +1 -1
  70. data/vendor/assets/js/plugins/foundation.orbit.min.js.map +1 -1
  71. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js +203 -278
  72. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js.map +1 -1
  73. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js +1 -1
  74. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js.map +1 -1
  75. data/vendor/assets/js/plugins/foundation.responsiveMenu.js +205 -255
  76. data/vendor/assets/js/plugins/foundation.responsiveMenu.js.map +1 -1
  77. data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js +1 -1
  78. data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js.map +1 -1
  79. data/vendor/assets/js/plugins/foundation.responsiveToggle.js +170 -226
  80. data/vendor/assets/js/plugins/foundation.responsiveToggle.js.map +1 -1
  81. data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js +1 -1
  82. data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js.map +1 -1
  83. data/vendor/assets/js/plugins/foundation.reveal.js +284 -444
  84. data/vendor/assets/js/plugins/foundation.reveal.js.map +1 -1
  85. data/vendor/assets/js/plugins/foundation.reveal.min.js +1 -1
  86. data/vendor/assets/js/plugins/foundation.reveal.min.js.map +1 -1
  87. data/vendor/assets/js/plugins/foundation.slider.js +322 -483
  88. data/vendor/assets/js/plugins/foundation.slider.js.map +1 -1
  89. data/vendor/assets/js/plugins/foundation.slider.min.js +1 -1
  90. data/vendor/assets/js/plugins/foundation.slider.min.js.map +1 -1
  91. data/vendor/assets/js/plugins/foundation.smoothScroll.js +138 -188
  92. data/vendor/assets/js/plugins/foundation.smoothScroll.js.map +1 -1
  93. data/vendor/assets/js/plugins/foundation.smoothScroll.min.js +1 -1
  94. data/vendor/assets/js/plugins/foundation.smoothScroll.min.js.map +1 -1
  95. data/vendor/assets/js/plugins/foundation.sticky.js +253 -394
  96. data/vendor/assets/js/plugins/foundation.sticky.js.map +1 -1
  97. data/vendor/assets/js/plugins/foundation.sticky.min.js +1 -1
  98. data/vendor/assets/js/plugins/foundation.sticky.min.js.map +1 -1
  99. data/vendor/assets/js/plugins/foundation.tabs.js +228 -317
  100. data/vendor/assets/js/plugins/foundation.tabs.js.map +1 -1
  101. data/vendor/assets/js/plugins/foundation.tabs.min.js +1 -1
  102. data/vendor/assets/js/plugins/foundation.tabs.min.js.map +1 -1
  103. data/vendor/assets/js/plugins/foundation.toggler.js +207 -294
  104. data/vendor/assets/js/plugins/foundation.toggler.js.map +1 -1
  105. data/vendor/assets/js/plugins/foundation.toggler.min.js +1 -1
  106. data/vendor/assets/js/plugins/foundation.toggler.min.js.map +1 -1
  107. data/vendor/assets/js/plugins/foundation.tooltip.js +275 -434
  108. data/vendor/assets/js/plugins/foundation.tooltip.js.map +1 -1
  109. data/vendor/assets/js/plugins/foundation.tooltip.min.js +1 -1
  110. data/vendor/assets/js/plugins/foundation.tooltip.min.js.map +1 -1
  111. data/vendor/assets/js/plugins/foundation.util.box.js +130 -186
  112. data/vendor/assets/js/plugins/foundation.util.box.js.map +1 -1
  113. data/vendor/assets/js/plugins/foundation.util.box.min.js +1 -1
  114. data/vendor/assets/js/plugins/foundation.util.box.min.js.map +1 -1
  115. data/vendor/assets/js/plugins/foundation.util.imageLoader.js +110 -150
  116. data/vendor/assets/js/plugins/foundation.util.imageLoader.js.map +1 -1
  117. data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js +1 -1
  118. data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js.map +1 -1
  119. data/vendor/assets/js/plugins/foundation.util.keyboard.js +157 -172
  120. data/vendor/assets/js/plugins/foundation.util.keyboard.js.map +1 -1
  121. data/vendor/assets/js/plugins/foundation.util.keyboard.min.js +1 -1
  122. data/vendor/assets/js/plugins/foundation.util.keyboard.min.js.map +1 -1
  123. data/vendor/assets/js/plugins/foundation.util.mediaQuery.js +167 -233
  124. data/vendor/assets/js/plugins/foundation.util.mediaQuery.js.map +1 -1
  125. data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js +1 -1
  126. data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js.map +1 -1
  127. data/vendor/assets/js/plugins/foundation.util.motion.js +123 -161
  128. data/vendor/assets/js/plugins/foundation.util.motion.js.map +1 -1
  129. data/vendor/assets/js/plugins/foundation.util.motion.min.js +1 -1
  130. data/vendor/assets/js/plugins/foundation.util.motion.min.js.map +1 -1
  131. data/vendor/assets/js/plugins/foundation.util.nest.js +123 -160
  132. data/vendor/assets/js/plugins/foundation.util.nest.js.map +1 -1
  133. data/vendor/assets/js/plugins/foundation.util.nest.min.js +1 -1
  134. data/vendor/assets/js/plugins/foundation.util.nest.min.js.map +1 -1
  135. data/vendor/assets/js/plugins/foundation.util.timer.js +116 -171
  136. data/vendor/assets/js/plugins/foundation.util.timer.js.map +1 -1
  137. data/vendor/assets/js/plugins/foundation.util.timer.min.js +1 -1
  138. data/vendor/assets/js/plugins/foundation.util.timer.min.js.map +1 -1
  139. data/vendor/assets/js/plugins/foundation.util.touch.js +172 -228
  140. data/vendor/assets/js/plugins/foundation.util.touch.js.map +1 -1
  141. data/vendor/assets/js/plugins/foundation.util.touch.min.js +1 -1
  142. data/vendor/assets/js/plugins/foundation.util.touch.min.js.map +1 -1
  143. data/vendor/assets/js/plugins/foundation.util.triggers.js +158 -222
  144. data/vendor/assets/js/plugins/foundation.util.triggers.js.map +1 -1
  145. data/vendor/assets/js/plugins/foundation.util.triggers.min.js +1 -1
  146. data/vendor/assets/js/plugins/foundation.util.triggers.min.js.map +1 -1
  147. data/vendor/assets/scss/_global.scss +18 -5
  148. data/vendor/assets/scss/components/_accordion-menu.scss +2 -2
  149. data/vendor/assets/scss/components/_badge.scss +1 -1
  150. data/vendor/assets/scss/components/_breadcrumbs.scss +2 -1
  151. data/vendor/assets/scss/components/_button-group.scss +13 -8
  152. data/vendor/assets/scss/components/_button.scss +13 -13
  153. data/vendor/assets/scss/components/_callout.scss +2 -2
  154. data/vendor/assets/scss/components/_close-button.scss +5 -4
  155. data/vendor/assets/scss/components/_dropdown-menu.scss +1 -1
  156. data/vendor/assets/scss/components/_label.scss +1 -1
  157. data/vendor/assets/scss/components/_menu.scss +54 -19
  158. data/vendor/assets/scss/components/_off-canvas.scss +18 -16
  159. data/vendor/assets/scss/components/_orbit.scss +3 -3
  160. data/vendor/assets/scss/components/_pagination.scss +1 -1
  161. data/vendor/assets/scss/components/_progress-bar.scss +1 -1
  162. data/vendor/assets/scss/components/_responsive-embed.scss +1 -1
  163. data/vendor/assets/scss/components/_reveal.scss +8 -3
  164. data/vendor/assets/scss/components/_slider.scss +5 -2
  165. data/vendor/assets/scss/components/_switch.scss +25 -2
  166. data/vendor/assets/scss/components/_table.scss +8 -7
  167. data/vendor/assets/scss/components/_tabs.scss +2 -2
  168. data/vendor/assets/scss/components/_top-bar.scss +7 -5
  169. data/vendor/assets/scss/components/_visibility.scss +45 -2
  170. data/vendor/assets/scss/forms/_label.scss +2 -1
  171. data/vendor/assets/scss/forms/_progress.scss +1 -1
  172. data/vendor/assets/scss/forms/_range.scss +1 -1
  173. data/vendor/assets/scss/forms/_select.scss +5 -4
  174. data/vendor/assets/scss/forms/_text.scss +2 -2
  175. data/vendor/assets/scss/foundation.scss +1 -1
  176. data/vendor/assets/scss/grid/_classes.scss +1 -1
  177. data/vendor/assets/scss/grid/_column.scss +3 -2
  178. data/vendor/assets/scss/grid/_flex-grid.scss +7 -6
  179. data/vendor/assets/scss/grid/_gutter.scss +1 -1
  180. data/vendor/assets/scss/grid/_layout.scss +5 -5
  181. data/vendor/assets/scss/grid/_position.scss +4 -4
  182. data/vendor/assets/scss/grid/_row.scss +1 -1
  183. data/vendor/assets/scss/motion-ui/util/_animation.scss +1 -1
  184. data/vendor/assets/scss/motion-ui/util/_series.scss +1 -1
  185. data/vendor/assets/scss/motion-ui/util/_unit.scss +54 -1
  186. data/vendor/assets/scss/prototype/_border-none.scss +1 -1
  187. data/vendor/assets/scss/prototype/_font-styling.scss +2 -2
  188. data/vendor/assets/scss/prototype/_overflow.scss +9 -0
  189. data/vendor/assets/scss/prototype/_rotate.scss +7 -5
  190. data/vendor/assets/scss/prototype/_separator.scss +5 -5
  191. data/vendor/assets/scss/prototype/_shadow.scss +1 -2
  192. data/vendor/assets/scss/prototype/_spacing.scss +33 -33
  193. data/vendor/assets/scss/prototype/_text-transformation.scss +3 -3
  194. data/vendor/assets/scss/settings/_settings.scss +32 -28
  195. data/vendor/assets/scss/typography/_base.scss +6 -6
  196. data/vendor/assets/scss/typography/_helpers.scss +10 -2
  197. data/vendor/assets/scss/typography/_print.scss +2 -2
  198. data/vendor/assets/scss/util/_breakpoint.scss +21 -18
  199. data/vendor/assets/scss/util/_color.scss +20 -8
  200. data/vendor/assets/scss/util/_direction.scss +1 -1
  201. data/vendor/assets/scss/util/_flex.scss +1 -1
  202. data/vendor/assets/scss/util/_math.scss +61 -9
  203. data/vendor/assets/scss/util/_mixins.scss +18 -14
  204. data/vendor/assets/scss/util/_selector.scss +1 -15
  205. data/vendor/assets/scss/util/_typography.scss +6 -6
  206. data/vendor/assets/scss/util/_unit.scss +14 -8
  207. data/vendor/assets/scss/util/_value.scss +3 -18
  208. data/vendor/assets/scss/vendor/normalize.scss +19 -2
  209. data/vendor/assets/scss/xy-grid/_cell.scss +16 -5
  210. data/vendor/assets/scss/xy-grid/_classes.scss +8 -8
  211. data/vendor/assets/scss/xy-grid/_frame.scss +12 -0
  212. data/vendor/assets/scss/xy-grid/_grid.scss +2 -2
  213. data/vendor/assets/scss/xy-grid/_gutters.scss +2 -2
  214. data/vendor/assets/scss/xy-grid/_layout.scss +1 -1
  215. data/vendor/assets/scss/xy-grid/_position.scss +12 -7
  216. data/vendor/assets/scss/xy-grid/_xy-grid.scss +2 -2
  217. metadata +21 -19
@@ -1,195 +1,48 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("./foundation.core"), require("./foundation.util.imageLoader"), require("./foundation.util.keyboard"), require("jquery"));
3
+ module.exports = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.keyboard"), require("./foundation.util.imageLoader"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["./foundation.core", "./foundation.util.imageLoader", "./foundation.util.keyboard", "jquery"], factory);
5
+ define(["./foundation.core", "jquery", "./foundation.util.keyboard", "./foundation.util.imageLoader"], factory);
6
6
  else if(typeof exports === 'object')
7
- exports["foundation.tabs"] = factory(require("./foundation.core"), require("./foundation.util.imageLoader"), require("./foundation.util.keyboard"), require("jquery"));
7
+ exports["__FOUNDATION_EXTERNAL__"] = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.keyboard"), require("./foundation.util.imageLoader"));
8
8
  else
9
- root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.tabs"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.imageLoader"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"], root["jQuery"]);
10
- })(window, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE__foundation_util_imageLoader__, __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__, __WEBPACK_EXTERNAL_MODULE_jquery__) {
11
- return /******/ (function(modules) { // webpackBootstrap
12
- /******/ // The module cache
13
- /******/ var installedModules = {};
14
- /******/
15
- /******/ // The require function
16
- /******/ function __webpack_require__(moduleId) {
17
- /******/
18
- /******/ // Check if module is in cache
19
- /******/ if(installedModules[moduleId]) {
20
- /******/ return installedModules[moduleId].exports;
21
- /******/ }
22
- /******/ // Create a new module (and put it into the cache)
23
- /******/ var module = installedModules[moduleId] = {
24
- /******/ i: moduleId,
25
- /******/ l: false,
26
- /******/ exports: {}
27
- /******/ };
28
- /******/
29
- /******/ // Execute the module function
30
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
- /******/
32
- /******/ // Flag the module as loaded
33
- /******/ module.l = true;
34
- /******/
35
- /******/ // Return the exports of the module
36
- /******/ return module.exports;
37
- /******/ }
38
- /******/
39
- /******/
40
- /******/ // expose the modules object (__webpack_modules__)
41
- /******/ __webpack_require__.m = modules;
42
- /******/
43
- /******/ // expose the module cache
44
- /******/ __webpack_require__.c = installedModules;
45
- /******/
46
- /******/ // define getter function for harmony exports
47
- /******/ __webpack_require__.d = function(exports, name, getter) {
48
- /******/ if(!__webpack_require__.o(exports, name)) {
49
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50
- /******/ }
51
- /******/ };
52
- /******/
53
- /******/ // define __esModule on exports
54
- /******/ __webpack_require__.r = function(exports) {
55
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57
- /******/ }
58
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
59
- /******/ };
60
- /******/
61
- /******/ // create a fake namespace object
62
- /******/ // mode & 1: value is a module id, require it
63
- /******/ // mode & 2: merge all properties of value into the ns
64
- /******/ // mode & 4: return value when already ns object
65
- /******/ // mode & 8|1: behave like require
66
- /******/ __webpack_require__.t = function(value, mode) {
67
- /******/ if(mode & 1) value = __webpack_require__(value);
68
- /******/ if(mode & 8) return value;
69
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70
- /******/ var ns = Object.create(null);
71
- /******/ __webpack_require__.r(ns);
72
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74
- /******/ return ns;
75
- /******/ };
76
- /******/
77
- /******/ // getDefaultExport function for compatibility with non-harmony modules
78
- /******/ __webpack_require__.n = function(module) {
79
- /******/ var getter = module && module.__esModule ?
80
- /******/ function getDefault() { return module['default']; } :
81
- /******/ function getModuleExports() { return module; };
82
- /******/ __webpack_require__.d(getter, 'a', getter);
83
- /******/ return getter;
84
- /******/ };
85
- /******/
86
- /******/ // Object.prototype.hasOwnProperty.call
87
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88
- /******/
89
- /******/ // __webpack_public_path__
90
- /******/ __webpack_require__.p = "";
91
- /******/
92
- /******/
93
- /******/ // Load entry module and return exports
94
- /******/ return __webpack_require__(__webpack_require__.s = 18);
95
- /******/ })
96
- /************************************************************************/
97
- /******/ ({
98
-
99
- /***/ "./foundation.core":
100
- /*!****************************************************************************************************************************************************************!*\
101
- !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
102
- \****************************************************************************************************************************************************************/
103
- /*! no static exports found */
104
- /***/ (function(module, exports) {
105
-
106
- module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
107
-
108
- /***/ }),
109
-
110
- /***/ "./foundation.util.imageLoader":
111
- /*!****************************************************************************************************************************************************************************************************************!*\
112
- !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.imageLoader"],"amd":"./foundation.util.imageLoader","commonjs":"./foundation.util.imageLoader","commonjs2":"./foundation.util.imageLoader"} ***!
113
- \****************************************************************************************************************************************************************************************************************/
114
- /*! no static exports found */
115
- /***/ (function(module, exports) {
116
-
117
- module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_imageLoader__;
118
-
119
- /***/ }),
120
-
121
- /***/ "./foundation.util.keyboard":
122
- /*!****************************************************************************************************************************************************************************************************!*\
123
- !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.keyboard"],"amd":"./foundation.util.keyboard","commonjs":"./foundation.util.keyboard","commonjs2":"./foundation.util.keyboard"} ***!
124
- \****************************************************************************************************************************************************************************************************/
125
- /*! no static exports found */
126
- /***/ (function(module, exports) {
127
-
128
- module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
129
-
130
- /***/ }),
131
-
132
- /***/ "./js/entries/plugins/foundation.tabs.js":
133
- /*!***********************************************!*\
134
- !*** ./js/entries/plugins/foundation.tabs.js ***!
135
- \***********************************************/
136
- /*! exports provided: Foundation, Tabs */
137
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
138
-
139
- "use strict";
140
- __webpack_require__.r(__webpack_exports__);
141
- /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
142
- /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
143
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]; });
144
-
145
- /* harmony import */ var _foundation_tabs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.tabs */ "./js/foundation.tabs.js");
146
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tabs", function() { return _foundation_tabs__WEBPACK_IMPORTED_MODULE_1__["Tabs"]; });
147
-
148
-
149
-
150
- _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_tabs__WEBPACK_IMPORTED_MODULE_1__["Tabs"], 'Tabs');
151
-
152
-
153
- /***/ }),
9
+ root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.tabs"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["jQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.imageLoader"]);
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE_jquery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__, __WEBPACK_EXTERNAL_MODULE__foundation_util_imageLoader__) {
11
+ return /******/ (function() { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
154
14
 
155
15
  /***/ "./js/foundation.tabs.js":
156
16
  /*!*******************************!*\
157
17
  !*** ./js/foundation.tabs.js ***!
158
18
  \*******************************/
159
- /*! exports provided: Tabs */
160
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
19
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
161
20
 
162
- "use strict";
163
21
  __webpack_require__.r(__webpack_exports__);
164
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tabs", function() { return Tabs; });
22
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
+ /* harmony export */ Tabs: function() { return /* binding */ Tabs; }
24
+ /* harmony export */ });
165
25
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
166
26
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
167
- /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.plugin */ "./foundation.core");
27
+ /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
168
28
  /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__);
169
29
  /* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.keyboard */ "./foundation.util.keyboard");
170
30
  /* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__);
171
31
  /* harmony import */ var _foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation.util.imageLoader */ "./foundation.util.imageLoader");
172
32
  /* harmony import */ var _foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_3__);
173
-
174
-
175
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
176
-
177
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
178
-
179
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
180
-
181
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
182
-
183
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
184
-
185
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
186
-
187
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
188
-
189
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
190
-
191
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
192
-
33
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
34
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
35
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
36
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
37
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
38
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
39
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
40
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
41
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
42
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
43
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
44
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
45
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
193
46
 
194
47
 
195
48
 
@@ -201,21 +54,15 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
201
54
  * @requires foundation.util.keyboard
202
55
  * @requires foundation.util.imageLoader if tabs contain images
203
56
  */
204
-
205
- var Tabs =
206
- /*#__PURE__*/
207
- function (_Plugin) {
208
- _inherits(Tabs, _Plugin);
209
-
57
+ var Tabs = /*#__PURE__*/function (_Plugin) {
210
58
  function Tabs() {
211
59
  _classCallCheck(this, Tabs);
212
-
213
- return _possibleConstructorReturn(this, _getPrototypeOf(Tabs).apply(this, arguments));
60
+ return _callSuper(this, Tabs, arguments);
214
61
  }
215
-
216
- _createClass(Tabs, [{
62
+ _inherits(Tabs, _Plugin);
63
+ return _createClass(Tabs, [{
217
64
  key: "_setup",
218
-
65
+ value:
219
66
  /**
220
67
  * Creates a new instance of tabs.
221
68
  * @class
@@ -224,36 +71,33 @@ function (_Plugin) {
224
71
  * @param {jQuery} element - jQuery object to make into tabs.
225
72
  * @param {Object} options - Overrides to the default plugin settings.
226
73
  */
227
- value: function _setup(element, options) {
74
+ function _setup(element, options) {
228
75
  this.$element = element;
229
- this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({}, Tabs.defaults, this.$element.data(), options);
76
+ this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({}, Tabs.defaults, this.$element.data(), options);
230
77
  this.className = 'Tabs'; // ie9 back compat
231
78
 
232
79
  this._init();
233
-
234
- _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].register('Tabs', {
80
+ _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__.Keyboard.register('Tabs', {
235
81
  'ENTER': 'open',
236
82
  'SPACE': 'open',
237
83
  'ARROW_RIGHT': 'next',
238
84
  'ARROW_UP': 'previous',
239
85
  'ARROW_DOWN': 'next',
240
- 'ARROW_LEFT': 'previous' // 'TAB': 'next',
86
+ 'ARROW_LEFT': 'previous'
87
+ // 'TAB': 'next',
241
88
  // 'SHIFT_TAB': 'previous'
242
-
243
89
  });
244
90
  }
91
+
245
92
  /**
246
93
  * Initializes the tabs by showing and focusing (if autoFocus=true) the preset active tab.
247
94
  * @private
248
95
  */
249
-
250
96
  }, {
251
97
  key: "_init",
252
98
  value: function _init() {
253
99
  var _this2 = this;
254
-
255
100
  var _this = this;
256
-
257
101
  this._isInitializing = true;
258
102
  this.$element.attr({
259
103
  'role': 'tablist'
@@ -262,11 +106,11 @@ function (_Plugin) {
262
106
  this.$tabContent = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-tabs-content=\"".concat(this.$element[0].id, "\"]"));
263
107
  this.$tabTitles.each(function () {
264
108
  var $elem = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
265
- $link = $elem.find('a'),
266
- isActive = $elem.hasClass("".concat(_this.options.linkActiveClass)),
267
- hash = $link.attr('data-tabs-target') || $link[0].hash.slice(1),
268
- linkId = $link[0].id ? $link[0].id : "".concat(hash, "-label"),
269
- $tabContent = jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(hash));
109
+ $link = $elem.find('a'),
110
+ isActive = $elem.hasClass("".concat(_this.options.linkActiveClass)),
111
+ hash = $link.attr('data-tabs-target') || $link[0].hash.slice(1),
112
+ linkId = $link[0].id ? $link[0].id : "".concat(hash, "-label"),
113
+ $tabContent = jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(hash));
270
114
  $elem.attr({
271
115
  'role': 'presentation'
272
116
  });
@@ -280,18 +124,17 @@ function (_Plugin) {
280
124
  $tabContent.attr({
281
125
  'role': 'tabpanel',
282
126
  'aria-labelledby': linkId
283
- }); // Save up the initial hash to return to it later when going back in history
127
+ });
284
128
 
129
+ // Save up the initial hash to return to it later when going back in history
285
130
  if (isActive) {
286
131
  _this._initialAnchor = "#".concat(hash);
287
132
  }
288
-
289
133
  if (!isActive) {
290
134
  $tabContent.attr('aria-hidden', 'true');
291
135
  }
292
-
293
136
  if (isActive && _this.options.autoFocus) {
294
- _this.onLoadListener = Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["onLoad"])(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
137
+ _this.onLoadListener = (0,_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
295
138
  jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').animate({
296
139
  scrollTop: $elem.offset().top
297
140
  }, _this.options.deepLinkSmudgeDelay, function () {
@@ -300,127 +143,110 @@ function (_Plugin) {
300
143
  });
301
144
  }
302
145
  });
303
-
304
146
  if (this.options.matchHeight) {
305
147
  var $images = this.$tabContent.find('img');
306
-
307
148
  if ($images.length) {
308
- Object(_foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_3__["onImagesLoaded"])($images, this._setHeight.bind(this));
149
+ (0,_foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_3__.onImagesLoaded)($images, this._setHeight.bind(this));
309
150
  } else {
310
151
  this._setHeight();
311
152
  }
312
- } // Current context-bound function to open tabs on page load or history hashchange
313
-
153
+ }
314
154
 
155
+ // Current context-bound function to open tabs on page load or history hashchange
315
156
  this._checkDeepLink = function () {
316
157
  var anchor = window.location.hash;
317
-
318
158
  if (!anchor.length) {
319
159
  // If we are still initializing and there is no anchor, then there is nothing to do
320
- if (_this2._isInitializing) return; // Otherwise, move to the initial anchor
321
-
160
+ if (_this2._isInitializing) return;
161
+ // Otherwise, move to the initial anchor
322
162
  if (_this2._initialAnchor) anchor = _this2._initialAnchor;
323
163
  }
324
-
325
164
  var anchorNoHash = anchor.indexOf('#') >= 0 ? anchor.slice(1) : anchor;
326
165
  var $anchor = anchorNoHash && jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(anchorNoHash));
327
-
328
- var $link = anchor && _this2.$element.find("[href$=\"".concat(anchor, "\"],[data-tabs-target=\"").concat(anchorNoHash, "\"]")).first(); // Whether the anchor element that has been found is part of this element
329
-
330
-
166
+ var $link = anchor && _this2.$element.find("[href$=\"".concat(anchor, "\"],[data-tabs-target=\"").concat(anchorNoHash, "\"]")).first();
167
+ // Whether the anchor element that has been found is part of this element
331
168
  var isOwnAnchor = !!($anchor.length && $link.length);
332
-
333
169
  if (isOwnAnchor) {
334
170
  // If there is an anchor for the hash, select it
335
171
  if ($anchor && $anchor.length && $link && $link.length) {
336
172
  _this2.selectTab($anchor, true);
337
- } // Otherwise, collapse everything
173
+ }
174
+ // Otherwise, collapse everything
338
175
  else {
339
- _this2._collapse();
340
- } // Roll up a little to show the titles
341
-
176
+ _this2._collapse();
177
+ }
342
178
 
179
+ // Roll up a little to show the titles
343
180
  if (_this2.options.deepLinkSmudge) {
344
181
  var offset = _this2.$element.offset();
345
-
346
182
  jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').animate({
347
- scrollTop: offset.top
183
+ scrollTop: offset.top - _this2.options.deepLinkSmudgeOffset
348
184
  }, _this2.options.deepLinkSmudgeDelay);
349
185
  }
186
+
350
187
  /**
351
188
  * Fires when the plugin has deeplinked at pageload
352
189
  * @event Tabs#deeplink
353
190
  */
354
-
355
-
356
191
  _this2.$element.trigger('deeplink.zf.tabs', [$link, $anchor]);
357
192
  }
358
- }; //use browser to open a tab, if it exists in this tabset
359
-
193
+ };
360
194
 
195
+ //use browser to open a tab, if it exists in this tabset
361
196
  if (this.options.deepLink) {
362
197
  this._checkDeepLink();
363
198
  }
364
-
365
199
  this._events();
366
-
367
200
  this._isInitializing = false;
368
201
  }
202
+
369
203
  /**
370
204
  * Adds event handlers for items within the tabs.
371
205
  * @private
372
206
  */
373
-
374
207
  }, {
375
208
  key: "_events",
376
209
  value: function _events() {
377
210
  this._addKeyHandler();
378
-
379
211
  this._addClickHandler();
380
-
381
212
  this._setHeightMqHandler = null;
382
-
383
213
  if (this.options.matchHeight) {
384
214
  this._setHeightMqHandler = this._setHeight.bind(this);
385
215
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('changed.zf.mediaquery', this._setHeightMqHandler);
386
216
  }
387
-
388
217
  if (this.options.deepLink) {
389
218
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('hashchange', this._checkDeepLink);
390
219
  }
391
220
  }
221
+
392
222
  /**
393
223
  * Adds click handlers for items within the tabs.
394
224
  * @private
395
225
  */
396
-
397
226
  }, {
398
227
  key: "_addClickHandler",
399
228
  value: function _addClickHandler() {
400
229
  var _this = this;
401
-
402
230
  this.$element.off('click.zf.tabs').on('click.zf.tabs', ".".concat(this.options.linkClass), function (e) {
403
231
  e.preventDefault();
404
-
405
232
  _this._handleTabChange(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this));
406
233
  });
407
234
  }
235
+
408
236
  /**
409
237
  * Adds keyboard event handlers for items within the tabs.
410
238
  * @private
411
239
  */
412
-
413
240
  }, {
414
241
  key: "_addKeyHandler",
415
242
  value: function _addKeyHandler() {
416
243
  var _this = this;
417
-
418
244
  this.$tabTitles.off('keydown.zf.tabs').on('keydown.zf.tabs', function (e) {
419
245
  if (e.which === 9) return;
420
246
  var $element = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
421
- $elements = $element.parent('ul').children('li'),
422
- $prevElement,
423
- $nextElement;
247
+ $elements = $element.parent('ul').children('li'),
248
+ $prevElement,
249
+ $nextElement;
424
250
  $elements.each(function (i) {
425
251
  if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is($element)) {
426
252
  if (_this.options.wrapOnKeys) {
@@ -430,25 +256,22 @@ function (_Plugin) {
430
256
  $prevElement = $elements.eq(Math.max(0, i - 1));
431
257
  $nextElement = $elements.eq(Math.min(i + 1, $elements.length - 1));
432
258
  }
433
-
434
259
  return;
435
260
  }
436
- }); // handle keyboard event with keyboard util
261
+ });
437
262
 
438
- _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].handleKey(e, 'Tabs', {
263
+ // handle keyboard event with keyboard util
264
+ _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__.Keyboard.handleKey(e, 'Tabs', {
439
265
  open: function open() {
440
266
  $element.find('[role="tab"]').focus();
441
-
442
267
  _this._handleTabChange($element);
443
268
  },
444
269
  previous: function previous() {
445
270
  $prevElement.find('[role="tab"]').focus();
446
-
447
271
  _this._handleTabChange($prevElement);
448
272
  },
449
273
  next: function next() {
450
274
  $nextElement.find('[role="tab"]').focus();
451
-
452
275
  _this._handleTabChange($nextElement);
453
276
  },
454
277
  handled: function handled() {
@@ -457,6 +280,7 @@ function (_Plugin) {
457
280
  });
458
281
  });
459
282
  }
283
+
460
284
  /**
461
285
  * Opens the tab `$targetContent` defined by `$target`. Collapses active tab.
462
286
  * @param {jQuery} $target - Tab to open.
@@ -464,7 +288,6 @@ function (_Plugin) {
464
288
  * @fires Tabs#change
465
289
  * @function
466
290
  */
467
-
468
291
  }, {
469
292
  key: "_handleTabChange",
470
293
  value: function _handleTabChange($target, historyHandled) {
@@ -473,51 +296,50 @@ function (_Plugin) {
473
296
  if (this.options.activeCollapse) {
474
297
  this._collapse();
475
298
  }
476
-
477
299
  return;
478
300
  }
479
-
480
301
  var $oldTab = this.$element.find(".".concat(this.options.linkClass, ".").concat(this.options.linkActiveClass)),
481
- $tabLink = $target.find('[role="tab"]'),
482
- target = $tabLink.attr('data-tabs-target'),
483
- anchor = target && target.length ? "#".concat(target) : $tabLink[0].hash,
484
- $targetContent = this.$tabContent.find(anchor); //close old tab
485
-
486
- this._collapseTab($oldTab); //open new tab
302
+ $tabLink = $target.find('[role="tab"]'),
303
+ target = $tabLink.attr('data-tabs-target'),
304
+ anchor = target && target.length ? "#".concat(target) : $tabLink[0].hash,
305
+ $targetContent = this.$tabContent.find(anchor);
487
306
 
307
+ //close old tab
308
+ this._collapseTab($oldTab);
488
309
 
489
- this._openTab($target); //either replace or update browser history
490
-
310
+ //open new tab
311
+ this._openTab($target);
491
312
 
313
+ //either replace or update browser history
492
314
  if (this.options.deepLink && !historyHandled) {
493
315
  if (this.options.updateHistory) {
494
- history.pushState({}, '', anchor);
316
+ history.pushState({}, '', location.pathname + location.search + anchor);
495
317
  } else {
496
- history.replaceState({}, '', anchor);
318
+ history.replaceState({}, '', location.pathname + location.search + anchor);
497
319
  }
498
320
  }
321
+
499
322
  /**
500
323
  * Fires when the plugin has successfully changed tabs.
501
324
  * @event Tabs#change
502
325
  */
326
+ this.$element.trigger('change.zf.tabs', [$target, $targetContent]);
503
327
 
504
-
505
- this.$element.trigger('change.zf.tabs', [$target, $targetContent]); //fire to children a mutation event
506
-
328
+ //fire to children a mutation event
507
329
  $targetContent.find("[data-mutate]").trigger("mutateme.zf.trigger");
508
330
  }
331
+
509
332
  /**
510
333
  * Opens the tab `$targetContent` defined by `$target`.
511
334
  * @param {jQuery} $target - Tab to open.
512
335
  * @function
513
336
  */
514
-
515
337
  }, {
516
338
  key: "_openTab",
517
339
  value: function _openTab($target) {
518
340
  var $tabLink = $target.find('[role="tab"]'),
519
- hash = $tabLink.attr('data-tabs-target') || $tabLink[0].hash.slice(1),
520
- $targetContent = this.$tabContent.find("#".concat(hash));
341
+ hash = $tabLink.attr('data-tabs-target') || $tabLink[0].hash.slice(1),
342
+ $targetContent = this.$tabContent.find("#".concat(hash));
521
343
  $target.addClass("".concat(this.options.linkActiveClass));
522
344
  $tabLink.attr({
523
345
  'aria-selected': 'true',
@@ -525,77 +347,71 @@ function (_Plugin) {
525
347
  });
526
348
  $targetContent.addClass("".concat(this.options.panelActiveClass)).removeAttr('aria-hidden');
527
349
  }
350
+
528
351
  /**
529
352
  * Collapses `$targetContent` defined by `$target`.
530
353
  * @param {jQuery} $target - Tab to collapse.
531
354
  * @function
532
355
  */
533
-
534
356
  }, {
535
357
  key: "_collapseTab",
536
358
  value: function _collapseTab($target) {
537
- var $target_anchor = $target.removeClass("".concat(this.options.linkActiveClass)).find('[role="tab"]').attr({
359
+ var $targetAnchor = $target.removeClass("".concat(this.options.linkActiveClass)).find('[role="tab"]').attr({
538
360
  'aria-selected': 'false',
539
361
  'tabindex': -1
540
362
  });
541
- jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat($target_anchor.attr('aria-controls'))).removeClass("".concat(this.options.panelActiveClass)).attr({
363
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat($targetAnchor.attr('aria-controls'))).removeClass("".concat(this.options.panelActiveClass)).attr({
542
364
  'aria-hidden': 'true'
543
365
  });
544
366
  }
367
+
545
368
  /**
546
369
  * Collapses the active Tab.
547
370
  * @fires Tabs#collapse
548
371
  * @function
549
372
  */
550
-
551
373
  }, {
552
374
  key: "_collapse",
553
375
  value: function _collapse() {
554
376
  var $activeTab = this.$element.find(".".concat(this.options.linkClass, ".").concat(this.options.linkActiveClass));
555
-
556
377
  if ($activeTab.length) {
557
378
  this._collapseTab($activeTab);
379
+
558
380
  /**
559
381
  * Fires when the plugin has successfully collapsed tabs.
560
382
  * @event Tabs#collapse
561
383
  */
562
-
563
-
564
384
  this.$element.trigger('collapse.zf.tabs', [$activeTab]);
565
385
  }
566
386
  }
387
+
567
388
  /**
568
389
  * Public method for selecting a content pane to display.
569
390
  * @param {jQuery | String} elem - jQuery object or string of the id of the pane to display.
570
391
  * @param {boolean} historyHandled - browser has already handled a history update
571
392
  * @function
572
393
  */
573
-
574
394
  }, {
575
395
  key: "selectTab",
576
396
  value: function selectTab(elem, historyHandled) {
577
397
  var idStr, hashIdStr;
578
-
579
398
  if (_typeof(elem) === 'object') {
580
399
  idStr = elem[0].id;
581
400
  } else {
582
401
  idStr = elem;
583
402
  }
584
-
585
403
  if (idStr.indexOf('#') < 0) {
586
404
  hashIdStr = "#".concat(idStr);
587
405
  } else {
588
406
  hashIdStr = idStr;
589
407
  idStr = idStr.slice(1);
590
408
  }
591
-
592
409
  var $target = this.$tabTitles.has("[href$=\"".concat(hashIdStr, "\"],[data-tabs-target=\"").concat(idStr, "\"]")).first();
593
-
594
410
  this._handleTabChange($target, historyHandled);
595
411
  }
596
412
  }, {
597
413
  key: "_setHeight",
598
-
414
+ value:
599
415
  /**
600
416
  * Sets the height of each panel to the height of the tallest panel.
601
417
  * If enabled in options, gets called on media query change.
@@ -604,14 +420,16 @@ function (_Plugin) {
604
420
  * @function
605
421
  * @private
606
422
  */
607
- value: function _setHeight() {
423
+ function _setHeight() {
608
424
  var max = 0,
609
- _this = this; // Lock down the `this` value for the root tabs object
425
+ _this = this; // Lock down the `this` value for the root tabs object
610
426
 
611
-
612
- this.$tabContent.find(".".concat(this.options.panelClass)).css('height', '').each(function () {
427
+ if (!this.$tabContent) {
428
+ return;
429
+ }
430
+ this.$tabContent.find(".".concat(this.options.panelClass)).css('min-height', '').each(function () {
613
431
  var panel = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
614
- isActive = panel.hasClass("".concat(_this.options.panelActiveClass)); // get the options from the parent instead of trying to get them from the child
432
+ isActive = panel.hasClass("".concat(_this.options.panelActiveClass)); // get the options from the parent instead of trying to get them from the child
615
433
 
616
434
  if (!isActive) {
617
435
  panel.css({
@@ -619,48 +437,39 @@ function (_Plugin) {
619
437
  'display': 'block'
620
438
  });
621
439
  }
622
-
623
440
  var temp = this.getBoundingClientRect().height;
624
-
625
441
  if (!isActive) {
626
442
  panel.css({
627
443
  'visibility': '',
628
444
  'display': ''
629
445
  });
630
446
  }
631
-
632
447
  max = temp > max ? temp : max;
633
- }).css('height', "".concat(max, "px"));
448
+ }).css('min-height', "".concat(max, "px"));
634
449
  }
450
+
635
451
  /**
636
452
  * Destroys an instance of tabs.
637
453
  * @fires Tabs#destroyed
638
454
  */
639
-
640
455
  }, {
641
456
  key: "_destroy",
642
457
  value: function _destroy() {
643
458
  this.$element.find(".".concat(this.options.linkClass)).off('.zf.tabs').hide().end().find(".".concat(this.options.panelClass)).hide();
644
-
645
459
  if (this.options.matchHeight) {
646
460
  if (this._setHeightMqHandler != null) {
647
461
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('changed.zf.mediaquery', this._setHeightMqHandler);
648
462
  }
649
463
  }
650
-
651
464
  if (this.options.deepLink) {
652
465
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('hashchange', this._checkDeepLink);
653
466
  }
654
-
655
467
  if (this.onLoadListener) {
656
468
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.onLoadListener);
657
469
  }
658
470
  }
659
471
  }]);
660
-
661
- return Tabs;
662
- }(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
663
-
472
+ }(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);
664
473
  Tabs.defaults = {
665
474
  /**
666
475
  * Link the location hash to the active pane.
@@ -670,7 +479,6 @@ Tabs.defaults = {
670
479
  * @default false
671
480
  */
672
481
  deepLink: false,
673
-
674
482
  /**
675
483
  * If `deepLink` is enabled, adjust the deep link scroll to make sure the top of the tab panel is visible
676
484
  * @option
@@ -678,7 +486,6 @@ Tabs.defaults = {
678
486
  * @default false
679
487
  */
680
488
  deepLinkSmudge: false,
681
-
682
489
  /**
683
490
  * If `deepLinkSmudge` is enabled, animation time (ms) for the deep link adjustment
684
491
  * @option
@@ -686,7 +493,13 @@ Tabs.defaults = {
686
493
  * @default 300
687
494
  */
688
495
  deepLinkSmudgeDelay: 300,
689
-
496
+ /**
497
+ * If `deepLinkSmudge` is enabled, animation offset from the top for the deep link adjustment
498
+ * @option
499
+ * @type {number}
500
+ * @default 0
501
+ */
502
+ deepLinkSmudgeOffset: 0,
690
503
  /**
691
504
  * If `deepLink` is enabled, update the browser history with the open tab
692
505
  * @option
@@ -694,7 +507,6 @@ Tabs.defaults = {
694
507
  * @default false
695
508
  */
696
509
  updateHistory: false,
697
-
698
510
  /**
699
511
  * Allows the window to scroll to content of active pane on load.
700
512
  * Not recommended if more than one tab panel per page.
@@ -703,7 +515,6 @@ Tabs.defaults = {
703
515
  * @default false
704
516
  */
705
517
  autoFocus: false,
706
-
707
518
  /**
708
519
  * Allows keyboard input to 'wrap' around the tab links.
709
520
  * @option
@@ -711,7 +522,6 @@ Tabs.defaults = {
711
522
  * @default true
712
523
  */
713
524
  wrapOnKeys: true,
714
-
715
525
  /**
716
526
  * Allows the tab content panes to match heights if set to true.
717
527
  * @option
@@ -719,7 +529,6 @@ Tabs.defaults = {
719
529
  * @default false
720
530
  */
721
531
  matchHeight: false,
722
-
723
532
  /**
724
533
  * Allows active tabs to collapse when clicked.
725
534
  * @option
@@ -727,7 +536,6 @@ Tabs.defaults = {
727
536
  * @default false
728
537
  */
729
538
  activeCollapse: false,
730
-
731
539
  /**
732
540
  * Class applied to `li`'s in tab link list.
733
541
  * @option
@@ -735,7 +543,6 @@ Tabs.defaults = {
735
543
  * @default 'tabs-title'
736
544
  */
737
545
  linkClass: 'tabs-title',
738
-
739
546
  /**
740
547
  * Class applied to the active `li` in tab link list.
741
548
  * @option
@@ -743,7 +550,6 @@ Tabs.defaults = {
743
550
  * @default 'is-active'
744
551
  */
745
552
  linkActiveClass: 'is-active',
746
-
747
553
  /**
748
554
  * Class applied to the content containers.
749
555
  * @option
@@ -751,7 +557,6 @@ Tabs.defaults = {
751
557
  * @default 'tabs-panel'
752
558
  */
753
559
  panelClass: 'tabs-panel',
754
-
755
560
  /**
756
561
  * Class applied to the active content container.
757
562
  * @option
@@ -764,15 +569,33 @@ Tabs.defaults = {
764
569
 
765
570
  /***/ }),
766
571
 
767
- /***/ 18:
768
- /*!*****************************************************!*\
769
- !*** multi ./js/entries/plugins/foundation.tabs.js ***!
770
- \*****************************************************/
771
- /*! no static exports found */
772
- /***/ (function(module, exports, __webpack_require__) {
572
+ /***/ "./foundation.core":
573
+ /*!****************************************************************************************************************************************************************!*\
574
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
575
+ \****************************************************************************************************************************************************************/
576
+ /***/ (function(module) {
773
577
 
774
- module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundation-sites/js/entries/plugins/foundation.tabs.js */"./js/entries/plugins/foundation.tabs.js");
578
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
775
579
 
580
+ /***/ }),
581
+
582
+ /***/ "./foundation.util.imageLoader":
583
+ /*!****************************************************************************************************************************************************************************************************************!*\
584
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.imageLoader"],"amd":"./foundation.util.imageLoader","commonjs":"./foundation.util.imageLoader","commonjs2":"./foundation.util.imageLoader"} ***!
585
+ \****************************************************************************************************************************************************************************************************************/
586
+ /***/ (function(module) {
587
+
588
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_imageLoader__;
589
+
590
+ /***/ }),
591
+
592
+ /***/ "./foundation.util.keyboard":
593
+ /*!****************************************************************************************************************************************************************************************************!*\
594
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.keyboard"],"amd":"./foundation.util.keyboard","commonjs":"./foundation.util.keyboard","commonjs2":"./foundation.util.keyboard"} ***!
595
+ \****************************************************************************************************************************************************************************************************/
596
+ /***/ (function(module) {
597
+
598
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
776
599
 
777
600
  /***/ }),
778
601
 
@@ -780,13 +603,101 @@ module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundatio
780
603
  /*!********************************************************************************************!*\
781
604
  !*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
782
605
  \********************************************************************************************/
783
- /*! no static exports found */
784
- /***/ (function(module, exports) {
606
+ /***/ (function(module) {
785
607
 
786
608
  module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
787
609
 
788
610
  /***/ })
789
611
 
790
- /******/ });
612
+ /******/ });
613
+ /************************************************************************/
614
+ /******/ // The module cache
615
+ /******/ var __webpack_module_cache__ = {};
616
+ /******/
617
+ /******/ // The require function
618
+ /******/ function __webpack_require__(moduleId) {
619
+ /******/ // Check if module is in cache
620
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
621
+ /******/ if (cachedModule !== undefined) {
622
+ /******/ return cachedModule.exports;
623
+ /******/ }
624
+ /******/ // Create a new module (and put it into the cache)
625
+ /******/ var module = __webpack_module_cache__[moduleId] = {
626
+ /******/ // no module.id needed
627
+ /******/ // no module.loaded needed
628
+ /******/ exports: {}
629
+ /******/ };
630
+ /******/
631
+ /******/ // Execute the module function
632
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
633
+ /******/
634
+ /******/ // Return the exports of the module
635
+ /******/ return module.exports;
636
+ /******/ }
637
+ /******/
638
+ /************************************************************************/
639
+ /******/ /* webpack/runtime/compat get default export */
640
+ /******/ !function() {
641
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
642
+ /******/ __webpack_require__.n = function(module) {
643
+ /******/ var getter = module && module.__esModule ?
644
+ /******/ function() { return module['default']; } :
645
+ /******/ function() { return module; };
646
+ /******/ __webpack_require__.d(getter, { a: getter });
647
+ /******/ return getter;
648
+ /******/ };
649
+ /******/ }();
650
+ /******/
651
+ /******/ /* webpack/runtime/define property getters */
652
+ /******/ !function() {
653
+ /******/ // define getter functions for harmony exports
654
+ /******/ __webpack_require__.d = function(exports, definition) {
655
+ /******/ for(var key in definition) {
656
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
657
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
658
+ /******/ }
659
+ /******/ }
660
+ /******/ };
661
+ /******/ }();
662
+ /******/
663
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
664
+ /******/ !function() {
665
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
666
+ /******/ }();
667
+ /******/
668
+ /******/ /* webpack/runtime/make namespace object */
669
+ /******/ !function() {
670
+ /******/ // define __esModule on exports
671
+ /******/ __webpack_require__.r = function(exports) {
672
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
673
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
674
+ /******/ }
675
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
676
+ /******/ };
677
+ /******/ }();
678
+ /******/
679
+ /************************************************************************/
680
+ var __webpack_exports__ = {};
681
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
682
+ !function() {
683
+ /*!***********************************************!*\
684
+ !*** ./js/entries/plugins/foundation.tabs.js ***!
685
+ \***********************************************/
686
+ __webpack_require__.r(__webpack_exports__);
687
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
688
+ /* harmony export */ Foundation: function() { return /* reexport safe */ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation; },
689
+ /* harmony export */ Tabs: function() { return /* reexport safe */ _foundation_tabs__WEBPACK_IMPORTED_MODULE_1__.Tabs; }
690
+ /* harmony export */ });
691
+ /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
692
+ /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
693
+ /* harmony import */ var _foundation_tabs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.tabs */ "./js/foundation.tabs.js");
694
+
695
+
696
+ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation.plugin(_foundation_tabs__WEBPACK_IMPORTED_MODULE_1__.Tabs, 'Tabs');
697
+
698
+ }();
699
+ /******/ return __webpack_exports__;
700
+ /******/ })()
701
+ ;
791
702
  });
792
703
  //# sourceMappingURL=foundation.tabs.js.map