foundation-rails 5.5.3.2 → 6.6.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (369) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +2 -2
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +17 -4
  5. data/Appraisals +19 -0
  6. data/Gemfile +5 -2
  7. data/Gemfile.lock +210 -0
  8. data/LICENSE.txt +1 -1
  9. data/README.md +64 -28
  10. data/Rakefile +30 -0
  11. data/app/views/foundation/rails/styleguide/show.html.erb +10 -13
  12. data/bower.json +3 -2
  13. data/foundation-rails.gemspec +12 -7
  14. data/gemfiles/rails_4.1.gemfile +10 -0
  15. data/gemfiles/rails_4.1.gemfile.lock +181 -0
  16. data/gemfiles/rails_4.2.gemfile +10 -0
  17. data/gemfiles/rails_4.2.gemfile.lock +181 -0
  18. data/gemfiles/rails_5.0.gemfile +10 -0
  19. data/gemfiles/rails_5.0.gemfile.lock +196 -0
  20. data/gemfiles/rails_5.1.gemfile +10 -0
  21. data/gemfiles/rails_5.1.gemfile.lock +196 -0
  22. data/gemfiles/rails_5.2.gemfile +10 -0
  23. data/gemfiles/rails_5.2.gemfile.lock +196 -0
  24. data/lib/foundation/rails/engine.rb +2 -3
  25. data/lib/foundation/rails/version.rb +1 -1
  26. data/lib/foundation-rails.rb +1 -0
  27. data/lib/generators/foundation/install_generator.rb +39 -27
  28. data/lib/generators/foundation/templates/_settings.scss +895 -0
  29. data/lib/generators/foundation/templates/application.html.erb +1 -2
  30. data/lib/generators/foundation/templates/application.html.haml +2 -4
  31. data/lib/generators/foundation/templates/application.html.slim +1 -3
  32. data/lib/generators/foundation/templates/browserslist +4 -0
  33. data/lib/generators/foundation/templates/foundation_and_overrides.scss +56 -0
  34. data/spec/features/generator_spec.rb +1 -1
  35. data/spec/support/helpers.rb +8 -2
  36. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
  37. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  38. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  39. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  40. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  41. data/vendor/assets/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  42. data/vendor/assets/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  43. data/vendor/assets/js/foundation.cjs.js +12529 -0
  44. data/vendor/assets/js/foundation.cjs.js.map +1 -0
  45. data/vendor/assets/js/foundation.es6.js +11006 -0
  46. data/vendor/assets/js/foundation.es6.js.map +1 -0
  47. data/vendor/assets/js/foundation.esm.js +12490 -0
  48. data/vendor/assets/js/foundation.esm.js.map +1 -0
  49. data/vendor/assets/js/foundation.js +13897 -0
  50. data/vendor/assets/js/foundation.js.map +1 -0
  51. data/vendor/assets/js/foundation.min.js +2 -0
  52. data/vendor/assets/js/foundation.min.js.map +1 -0
  53. data/vendor/assets/js/plugins/foundation.abide.js +1142 -0
  54. data/vendor/assets/js/plugins/foundation.abide.js.map +1 -0
  55. data/vendor/assets/js/plugins/foundation.abide.min.js +2 -0
  56. data/vendor/assets/js/plugins/foundation.abide.min.js.map +1 -0
  57. data/vendor/assets/js/plugins/foundation.accordion.js +661 -0
  58. data/vendor/assets/js/plugins/foundation.accordion.js.map +1 -0
  59. data/vendor/assets/js/plugins/foundation.accordion.min.js +2 -0
  60. data/vendor/assets/js/plugins/foundation.accordion.min.js.map +1 -0
  61. data/vendor/assets/js/plugins/foundation.accordionMenu.js +616 -0
  62. data/vendor/assets/js/plugins/foundation.accordionMenu.js.map +1 -0
  63. data/vendor/assets/js/plugins/foundation.accordionMenu.min.js +2 -0
  64. data/vendor/assets/js/plugins/foundation.accordionMenu.min.js.map +1 -0
  65. data/vendor/assets/js/plugins/foundation.core.js +1180 -0
  66. data/vendor/assets/js/plugins/foundation.core.js.map +1 -0
  67. data/vendor/assets/js/plugins/foundation.core.min.js +2 -0
  68. data/vendor/assets/js/plugins/foundation.core.min.js.map +1 -0
  69. data/vendor/assets/js/plugins/foundation.drilldown.js +968 -0
  70. data/vendor/assets/js/plugins/foundation.drilldown.js.map +1 -0
  71. data/vendor/assets/js/plugins/foundation.drilldown.min.js +2 -0
  72. data/vendor/assets/js/plugins/foundation.drilldown.min.js.map +1 -0
  73. data/vendor/assets/js/plugins/foundation.dropdown.js +1328 -0
  74. data/vendor/assets/js/plugins/foundation.dropdown.js.map +1 -0
  75. data/vendor/assets/js/plugins/foundation.dropdown.min.js +2 -0
  76. data/vendor/assets/js/plugins/foundation.dropdown.min.js.map +1 -0
  77. data/vendor/assets/js/plugins/foundation.dropdownMenu.js +799 -0
  78. data/vendor/assets/js/plugins/foundation.dropdownMenu.js.map +1 -0
  79. data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js +2 -0
  80. data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js.map +1 -0
  81. data/vendor/assets/js/plugins/foundation.equalizer.js +614 -0
  82. data/vendor/assets/js/plugins/foundation.equalizer.js.map +1 -0
  83. data/vendor/assets/js/plugins/foundation.equalizer.min.js +2 -0
  84. data/vendor/assets/js/plugins/foundation.equalizer.min.js.map +1 -0
  85. data/vendor/assets/js/plugins/foundation.interchange.js +796 -0
  86. data/vendor/assets/js/plugins/foundation.interchange.js.map +1 -0
  87. data/vendor/assets/js/plugins/foundation.interchange.min.js +2 -0
  88. data/vendor/assets/js/plugins/foundation.interchange.min.js.map +1 -0
  89. data/vendor/assets/js/plugins/foundation.magellan.js +850 -0
  90. data/vendor/assets/js/plugins/foundation.magellan.js.map +1 -0
  91. data/vendor/assets/js/plugins/foundation.magellan.min.js +2 -0
  92. data/vendor/assets/js/plugins/foundation.magellan.min.js.map +1 -0
  93. data/vendor/assets/js/plugins/foundation.offcanvas.js +1318 -0
  94. data/vendor/assets/js/plugins/foundation.offcanvas.js.map +1 -0
  95. data/vendor/assets/js/plugins/foundation.offcanvas.min.js +2 -0
  96. data/vendor/assets/js/plugins/foundation.offcanvas.min.js.map +1 -0
  97. data/vendor/assets/js/plugins/foundation.orbit.js +886 -0
  98. data/vendor/assets/js/plugins/foundation.orbit.js.map +1 -0
  99. data/vendor/assets/js/plugins/foundation.orbit.min.js +2 -0
  100. data/vendor/assets/js/plugins/foundation.orbit.min.js.map +1 -0
  101. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js +585 -0
  102. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js.map +1 -0
  103. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js +2 -0
  104. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js.map +1 -0
  105. data/vendor/assets/js/plugins/foundation.responsiveMenu.js +413 -0
  106. data/vendor/assets/js/plugins/foundation.responsiveMenu.js.map +1 -0
  107. data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js +2 -0
  108. data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js.map +1 -0
  109. data/vendor/assets/js/plugins/foundation.responsiveToggle.js +394 -0
  110. data/vendor/assets/js/plugins/foundation.responsiveToggle.js.map +1 -0
  111. data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js +2 -0
  112. data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js.map +1 -0
  113. data/vendor/assets/js/plugins/foundation.reveal.js +1275 -0
  114. data/vendor/assets/js/plugins/foundation.reveal.js.map +1 -0
  115. data/vendor/assets/js/plugins/foundation.reveal.min.js +2 -0
  116. data/vendor/assets/js/plugins/foundation.reveal.min.js.map +1 -0
  117. data/vendor/assets/js/plugins/foundation.slider.js +1346 -0
  118. data/vendor/assets/js/plugins/foundation.slider.js.map +1 -0
  119. data/vendor/assets/js/plugins/foundation.slider.min.js +2 -0
  120. data/vendor/assets/js/plugins/foundation.slider.min.js.map +1 -0
  121. data/vendor/assets/js/plugins/foundation.smoothScroll.js +359 -0
  122. data/vendor/assets/js/plugins/foundation.smoothScroll.js.map +1 -0
  123. data/vendor/assets/js/plugins/foundation.smoothScroll.min.js +2 -0
  124. data/vendor/assets/js/plugins/foundation.smoothScroll.min.js.map +1 -0
  125. data/vendor/assets/js/plugins/foundation.sticky.js +1105 -0
  126. data/vendor/assets/js/plugins/foundation.sticky.js.map +1 -0
  127. data/vendor/assets/js/plugins/foundation.sticky.min.js +2 -0
  128. data/vendor/assets/js/plugins/foundation.sticky.min.js.map +1 -0
  129. data/vendor/assets/js/plugins/foundation.tabs.js +792 -0
  130. data/vendor/assets/js/plugins/foundation.tabs.js.map +1 -0
  131. data/vendor/assets/js/plugins/foundation.tabs.min.js +2 -0
  132. data/vendor/assets/js/plugins/foundation.tabs.min.js.map +1 -0
  133. data/vendor/assets/js/plugins/foundation.toggler.js +704 -0
  134. data/vendor/assets/js/plugins/foundation.toggler.js.map +1 -0
  135. data/vendor/assets/js/plugins/foundation.toggler.min.js +2 -0
  136. data/vendor/assets/js/plugins/foundation.toggler.min.js.map +1 -0
  137. data/vendor/assets/js/plugins/foundation.tooltip.js +1333 -0
  138. data/vendor/assets/js/plugins/foundation.tooltip.js.map +1 -0
  139. data/vendor/assets/js/plugins/foundation.tooltip.min.js +2 -0
  140. data/vendor/assets/js/plugins/foundation.tooltip.min.js.map +1 -0
  141. data/vendor/assets/js/plugins/foundation.util.box.js +354 -0
  142. data/vendor/assets/js/plugins/foundation.util.box.js.map +1 -0
  143. data/vendor/assets/js/plugins/foundation.util.box.min.js +2 -0
  144. data/vendor/assets/js/plugins/foundation.util.box.min.js.map +1 -0
  145. data/vendor/assets/js/plugins/foundation.util.imageLoader.js +218 -0
  146. data/vendor/assets/js/plugins/foundation.util.imageLoader.js.map +1 -0
  147. data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js +2 -0
  148. data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js.map +1 -0
  149. data/vendor/assets/js/plugins/foundation.util.keyboard.js +341 -0
  150. data/vendor/assets/js/plugins/foundation.util.keyboard.js.map +1 -0
  151. data/vendor/assets/js/plugins/foundation.util.keyboard.min.js +2 -0
  152. data/vendor/assets/js/plugins/foundation.util.keyboard.min.js.map +1 -0
  153. data/vendor/assets/js/plugins/foundation.util.mediaQuery.js +509 -0
  154. data/vendor/assets/js/plugins/foundation.util.mediaQuery.js.map +1 -0
  155. data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js +2 -0
  156. data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js.map +1 -0
  157. data/vendor/assets/js/plugins/foundation.util.motion.js +274 -0
  158. data/vendor/assets/js/plugins/foundation.util.motion.js.map +1 -0
  159. data/vendor/assets/js/plugins/foundation.util.motion.min.js +2 -0
  160. data/vendor/assets/js/plugins/foundation.util.motion.min.js.map +1 -0
  161. data/vendor/assets/js/plugins/foundation.util.nest.js +240 -0
  162. data/vendor/assets/js/plugins/foundation.util.nest.js.map +1 -0
  163. data/vendor/assets/js/plugins/foundation.util.nest.min.js +2 -0
  164. data/vendor/assets/js/plugins/foundation.util.nest.min.js.map +1 -0
  165. data/vendor/assets/js/plugins/foundation.util.timer.js +226 -0
  166. data/vendor/assets/js/plugins/foundation.util.timer.js.map +1 -0
  167. data/vendor/assets/js/plugins/foundation.util.timer.min.js +2 -0
  168. data/vendor/assets/js/plugins/foundation.util.timer.min.js.map +1 -0
  169. data/vendor/assets/js/plugins/foundation.util.touch.js +365 -0
  170. data/vendor/assets/js/plugins/foundation.util.touch.js.map +1 -0
  171. data/vendor/assets/js/plugins/foundation.util.touch.min.js +2 -0
  172. data/vendor/assets/js/plugins/foundation.util.touch.min.js.map +1 -0
  173. data/vendor/assets/js/plugins/foundation.util.triggers.js +470 -0
  174. data/vendor/assets/js/plugins/foundation.util.triggers.js.map +1 -0
  175. data/vendor/assets/js/plugins/foundation.util.triggers.min.js +2 -0
  176. data/vendor/assets/js/plugins/foundation.util.triggers.min.js.map +1 -0
  177. data/vendor/assets/scss/_global.scss +244 -0
  178. data/vendor/assets/scss/components/_accordion-menu.scss +174 -0
  179. data/vendor/assets/scss/components/_accordion.scss +164 -0
  180. data/vendor/assets/scss/components/_badge.scss +63 -0
  181. data/vendor/assets/scss/components/_breadcrumbs.scss +119 -0
  182. data/vendor/assets/scss/components/_button-group.scss +304 -0
  183. data/vendor/assets/scss/components/_button.scss +428 -0
  184. data/vendor/assets/scss/components/_callout.scss +108 -0
  185. data/vendor/assets/scss/components/_card.scss +129 -0
  186. data/vendor/assets/scss/components/_close-button.scss +127 -0
  187. data/vendor/assets/scss/components/_drilldown.scss +140 -0
  188. data/vendor/assets/scss/components/_dropdown-menu.scss +279 -0
  189. data/vendor/assets/scss/components/_dropdown.scss +82 -0
  190. data/vendor/assets/scss/components/_flex-video.scss +1 -0
  191. data/vendor/assets/scss/components/_flex.scss +119 -0
  192. data/vendor/assets/scss/components/_float.scss +27 -0
  193. data/vendor/assets/scss/components/_label.scss +64 -0
  194. data/vendor/assets/scss/components/_media-object.scss +114 -0
  195. data/vendor/assets/scss/components/_menu-icon.scss +9 -0
  196. data/vendor/assets/scss/components/_menu.scss +495 -0
  197. data/vendor/assets/scss/components/_off-canvas.scss +511 -0
  198. data/vendor/assets/scss/components/_orbit.scss +197 -0
  199. data/vendor/assets/scss/components/_pagination.scss +201 -0
  200. data/vendor/assets/scss/components/_progress-bar.scss +63 -0
  201. data/vendor/assets/scss/components/_responsive-embed.scss +57 -0
  202. data/vendor/assets/scss/components/_reveal.scss +185 -0
  203. data/vendor/assets/scss/components/_slider.scss +137 -0
  204. data/vendor/assets/scss/components/_sticky.scss +39 -0
  205. data/vendor/assets/scss/components/_switch.scss +261 -0
  206. data/vendor/assets/scss/components/_table.scss +328 -0
  207. data/vendor/assets/scss/components/_tabs.scss +193 -0
  208. data/vendor/assets/scss/components/_thumbnail.scss +67 -0
  209. data/vendor/assets/scss/components/_title-bar.scss +84 -0
  210. data/vendor/assets/scss/components/_tooltip.scss +160 -0
  211. data/vendor/assets/scss/components/_top-bar.scss +175 -0
  212. data/vendor/assets/scss/components/_visibility.scss +135 -0
  213. data/vendor/assets/scss/forms/_checkbox.scss +41 -0
  214. data/vendor/assets/scss/forms/_error.scss +89 -0
  215. data/vendor/assets/scss/forms/_fieldset.scss +53 -0
  216. data/vendor/assets/scss/forms/_forms.scss +34 -0
  217. data/vendor/assets/scss/forms/_help-text.scss +30 -0
  218. data/vendor/assets/scss/forms/_input-group.scss +142 -0
  219. data/vendor/assets/scss/forms/_label.scss +50 -0
  220. data/vendor/assets/scss/forms/_meter.scss +116 -0
  221. data/vendor/assets/scss/forms/_progress.scss +94 -0
  222. data/vendor/assets/scss/forms/_range.scss +149 -0
  223. data/vendor/assets/scss/forms/_select.scss +90 -0
  224. data/vendor/assets/scss/forms/_text.scss +179 -0
  225. data/vendor/assets/scss/foundation.scss +155 -0
  226. data/vendor/assets/scss/grid/_classes.scss +189 -0
  227. data/vendor/assets/scss/grid/_column.scss +78 -0
  228. data/vendor/assets/scss/grid/_flex-grid.scss +260 -0
  229. data/vendor/assets/scss/grid/_grid.scss +48 -0
  230. data/vendor/assets/scss/grid/_gutter.scss +67 -0
  231. data/vendor/assets/scss/grid/_layout.scss +76 -0
  232. data/vendor/assets/scss/grid/_position.scss +100 -0
  233. data/vendor/assets/scss/grid/_row.scss +99 -0
  234. data/vendor/assets/scss/grid/_size.scss +24 -0
  235. data/vendor/assets/scss/motion-ui/_classes.scss +109 -0
  236. data/vendor/assets/scss/motion-ui/_settings.scss +62 -0
  237. data/vendor/assets/scss/motion-ui/effects/_fade.scss +29 -0
  238. data/vendor/assets/scss/motion-ui/effects/_hinge.scss +66 -0
  239. data/vendor/assets/scss/motion-ui/effects/_shake.scss +15 -0
  240. data/vendor/assets/scss/motion-ui/effects/_slide.scss +42 -0
  241. data/vendor/assets/scss/motion-ui/effects/_spin.scss +29 -0
  242. data/vendor/assets/scss/motion-ui/effects/_wiggle.scss +13 -0
  243. data/vendor/assets/scss/motion-ui/effects/_zoom.scss +15 -0
  244. data/vendor/assets/scss/motion-ui/motion-ui.scss +31 -0
  245. data/vendor/assets/scss/motion-ui/transitions/_fade.scss +30 -0
  246. data/vendor/assets/scss/motion-ui/transitions/_hinge.scss +44 -0
  247. data/vendor/assets/scss/motion-ui/transitions/_slide.scss +43 -0
  248. data/vendor/assets/scss/motion-ui/transitions/_spin.scss +40 -0
  249. data/vendor/assets/scss/motion-ui/transitions/_zoom.scss +41 -0
  250. data/vendor/assets/scss/motion-ui/util/_animation.scss +7 -0
  251. data/vendor/assets/scss/motion-ui/util/_args.scss +15 -0
  252. data/vendor/assets/scss/motion-ui/util/_function.scss +94 -0
  253. data/vendor/assets/scss/motion-ui/util/_keyframe.scss +136 -0
  254. data/vendor/assets/scss/motion-ui/util/_selector.scss +23 -0
  255. data/vendor/assets/scss/motion-ui/util/_series.scss +57 -0
  256. data/vendor/assets/scss/motion-ui/util/_string.scss +36 -0
  257. data/vendor/assets/scss/motion-ui/util/_transition.scss +45 -0
  258. data/vendor/assets/scss/motion-ui/util/_unit.scss +7 -0
  259. data/vendor/assets/scss/prototype/_arrow.scss +36 -0
  260. data/vendor/assets/scss/prototype/_border-box.scss +35 -0
  261. data/vendor/assets/scss/prototype/_border-none.scss +35 -0
  262. data/vendor/assets/scss/prototype/_bordered.scss +54 -0
  263. data/vendor/assets/scss/prototype/_box.scss +23 -0
  264. data/vendor/assets/scss/prototype/_display.scss +50 -0
  265. data/vendor/assets/scss/prototype/_font-styling.scss +95 -0
  266. data/vendor/assets/scss/prototype/_list-style-type.scss +95 -0
  267. data/vendor/assets/scss/prototype/_overflow.scss +72 -0
  268. data/vendor/assets/scss/prototype/_position.scss +114 -0
  269. data/vendor/assets/scss/prototype/_prototype.scss +87 -0
  270. data/vendor/assets/scss/prototype/_relation.scss +157 -0
  271. data/vendor/assets/scss/prototype/_rotate.scss +31 -0
  272. data/vendor/assets/scss/prototype/_rounded.scss +61 -0
  273. data/vendor/assets/scss/prototype/_separator.scss +96 -0
  274. data/vendor/assets/scss/prototype/_shadow.scss +43 -0
  275. data/vendor/assets/scss/prototype/_sizing.scss +73 -0
  276. data/vendor/assets/scss/prototype/_spacing.scss +179 -0
  277. data/vendor/assets/scss/prototype/_text-decoration.scss +48 -0
  278. data/vendor/assets/scss/prototype/_text-transformation.scss +48 -0
  279. data/vendor/assets/scss/prototype/_text-utilities.scss +88 -0
  280. data/vendor/assets/scss/settings/_settings.scss +895 -0
  281. data/vendor/assets/scss/typography/_alignment.scss +22 -0
  282. data/vendor/assets/scss/typography/_base.scss +474 -0
  283. data/vendor/assets/scss/typography/_helpers.scss +180 -0
  284. data/vendor/assets/scss/typography/_print.scss +96 -0
  285. data/vendor/assets/scss/typography/_typography.scss +26 -0
  286. data/vendor/assets/scss/util/_breakpoint.scss +435 -0
  287. data/vendor/assets/scss/util/_color.scss +139 -0
  288. data/vendor/assets/scss/util/_direction.scss +31 -0
  289. data/vendor/assets/scss/util/_flex.scss +90 -0
  290. data/vendor/assets/scss/util/_math.scss +147 -0
  291. data/vendor/assets/scss/util/_mixins.scss +373 -0
  292. data/vendor/assets/scss/util/_selector.scss +41 -0
  293. data/vendor/assets/scss/util/_typography.scss +26 -0
  294. data/vendor/assets/scss/util/_unit.scss +152 -0
  295. data/vendor/assets/scss/util/_util.scss +14 -0
  296. data/vendor/assets/scss/util/_value.scss +200 -0
  297. data/vendor/assets/scss/vendor/normalize.scss +281 -0
  298. data/vendor/assets/scss/xy-grid/_cell.scss +272 -0
  299. data/vendor/assets/scss/xy-grid/_classes.scss +493 -0
  300. data/vendor/assets/scss/xy-grid/_collapse.scss +75 -0
  301. data/vendor/assets/scss/xy-grid/_frame.scss +86 -0
  302. data/vendor/assets/scss/xy-grid/_grid.scss +37 -0
  303. data/vendor/assets/scss/xy-grid/_gutters.scss +45 -0
  304. data/vendor/assets/scss/xy-grid/_layout.scss +36 -0
  305. data/vendor/assets/scss/xy-grid/_position.scss +55 -0
  306. data/vendor/assets/scss/xy-grid/_xy-grid.scss +51 -0
  307. metadata +342 -83
  308. data/update-gem.sh +0 -20
  309. data/vendor/assets/javascripts/foundation/foundation.abide.js +0 -426
  310. data/vendor/assets/javascripts/foundation/foundation.accordion.js +0 -125
  311. data/vendor/assets/javascripts/foundation/foundation.alert.js +0 -43
  312. data/vendor/assets/javascripts/foundation/foundation.clearing.js +0 -586
  313. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +0 -468
  314. data/vendor/assets/javascripts/foundation/foundation.equalizer.js +0 -104
  315. data/vendor/assets/javascripts/foundation/foundation.interchange.js +0 -360
  316. data/vendor/assets/javascripts/foundation/foundation.joyride.js +0 -935
  317. data/vendor/assets/javascripts/foundation/foundation.js +0 -732
  318. data/vendor/assets/javascripts/foundation/foundation.magellan.js +0 -214
  319. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +0 -225
  320. data/vendor/assets/javascripts/foundation/foundation.orbit.js +0 -476
  321. data/vendor/assets/javascripts/foundation/foundation.reveal.js +0 -522
  322. data/vendor/assets/javascripts/foundation/foundation.slider.js +0 -296
  323. data/vendor/assets/javascripts/foundation/foundation.tab.js +0 -247
  324. data/vendor/assets/javascripts/foundation/foundation.tooltip.js +0 -348
  325. data/vendor/assets/javascripts/foundation/foundation.topbar.js +0 -458
  326. data/vendor/assets/javascripts/foundation.js +0 -17
  327. data/vendor/assets/javascripts/vendor/modernizr.js +0 -1406
  328. data/vendor/assets/stylesheets/foundation/_functions.scss +0 -156
  329. data/vendor/assets/stylesheets/foundation/_settings.scss +0 -1489
  330. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +0 -161
  331. data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +0 -128
  332. data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +0 -133
  333. data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +0 -132
  334. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +0 -208
  335. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +0 -261
  336. data/vendor/assets/stylesheets/foundation/components/_clearing.scss +0 -260
  337. data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +0 -130
  338. data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +0 -269
  339. data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +0 -51
  340. data/vendor/assets/stylesheets/foundation/components/_forms.scss +0 -607
  341. data/vendor/assets/stylesheets/foundation/components/_global.scss +0 -566
  342. data/vendor/assets/stylesheets/foundation/components/_grid.scss +0 -292
  343. data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +0 -460
  344. data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +0 -58
  345. data/vendor/assets/stylesheets/foundation/components/_joyride.scss +0 -220
  346. data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +0 -60
  347. data/vendor/assets/stylesheets/foundation/components/_labels.scss +0 -106
  348. data/vendor/assets/stylesheets/foundation/components/_magellan.scss +0 -34
  349. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +0 -606
  350. data/vendor/assets/stylesheets/foundation/components/_orbit.scss +0 -388
  351. data/vendor/assets/stylesheets/foundation/components/_pagination.scss +0 -163
  352. data/vendor/assets/stylesheets/foundation/components/_panels.scss +0 -107
  353. data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +0 -150
  354. data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +0 -85
  355. data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +0 -177
  356. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +0 -212
  357. data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +0 -120
  358. data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +0 -203
  359. data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +0 -125
  360. data/vendor/assets/stylesheets/foundation/components/_switches.scss +0 -241
  361. data/vendor/assets/stylesheets/foundation/components/_tables.scss +0 -135
  362. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +0 -142
  363. data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +0 -66
  364. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +0 -142
  365. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +0 -745
  366. data/vendor/assets/stylesheets/foundation/components/_type.scss +0 -525
  367. data/vendor/assets/stylesheets/foundation/components/_visibility.scss +0 -425
  368. data/vendor/assets/stylesheets/foundation.scss +0 -42
  369. data/vendor/assets/stylesheets/normalize.scss +0 -424
@@ -0,0 +1,1318 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("./foundation.core"), require("./foundation.util.keyboard"), require("./foundation.util.mediaQuery"), require("./foundation.util.motion"), require("jquery"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["./foundation.core", "./foundation.util.keyboard", "./foundation.util.mediaQuery", "./foundation.util.motion", "jquery"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["foundation.offcanvas"] = factory(require("./foundation.core"), require("./foundation.util.keyboard"), require("./foundation.util.mediaQuery"), require("./foundation.util.motion"), require("jquery"));
8
+ else
9
+ root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.offcanvas"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.mediaQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"], root["jQuery"]);
10
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__, __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__, __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 = 9);
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.keyboard":
111
+ /*!****************************************************************************************************************************************************************************************************!*\
112
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.keyboard"],"amd":"./foundation.util.keyboard","commonjs":"./foundation.util.keyboard","commonjs2":"./foundation.util.keyboard"} ***!
113
+ \****************************************************************************************************************************************************************************************************/
114
+ /*! no static exports found */
115
+ /***/ (function(module, exports) {
116
+
117
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
118
+
119
+ /***/ }),
120
+
121
+ /***/ "./foundation.util.mediaQuery":
122
+ /*!************************************************************************************************************************************************************************************************************!*\
123
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.mediaQuery"],"amd":"./foundation.util.mediaQuery","commonjs":"./foundation.util.mediaQuery","commonjs2":"./foundation.util.mediaQuery"} ***!
124
+ \************************************************************************************************************************************************************************************************************/
125
+ /*! no static exports found */
126
+ /***/ (function(module, exports) {
127
+
128
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__;
129
+
130
+ /***/ }),
131
+
132
+ /***/ "./foundation.util.motion":
133
+ /*!********************************************************************************************************************************************************************************************!*\
134
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.motion"],"amd":"./foundation.util.motion","commonjs":"./foundation.util.motion","commonjs2":"./foundation.util.motion"} ***!
135
+ \********************************************************************************************************************************************************************************************/
136
+ /*! no static exports found */
137
+ /***/ (function(module, exports) {
138
+
139
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
140
+
141
+ /***/ }),
142
+
143
+ /***/ "./js/entries/plugins/foundation.offcanvas.js":
144
+ /*!****************************************************!*\
145
+ !*** ./js/entries/plugins/foundation.offcanvas.js ***!
146
+ \****************************************************/
147
+ /*! exports provided: Foundation, OffCanvas */
148
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
149
+
150
+ "use strict";
151
+ __webpack_require__.r(__webpack_exports__);
152
+ /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
153
+ /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
154
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]; });
155
+
156
+ /* harmony import */ var _foundation_offcanvas__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.offcanvas */ "./js/foundation.offcanvas.js");
157
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OffCanvas", function() { return _foundation_offcanvas__WEBPACK_IMPORTED_MODULE_1__["OffCanvas"]; });
158
+
159
+
160
+
161
+ _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_offcanvas__WEBPACK_IMPORTED_MODULE_1__["OffCanvas"], 'OffCanvas');
162
+
163
+
164
+ /***/ }),
165
+
166
+ /***/ "./js/foundation.offcanvas.js":
167
+ /*!************************************!*\
168
+ !*** ./js/foundation.offcanvas.js ***!
169
+ \************************************/
170
+ /*! exports provided: OffCanvas */
171
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
172
+
173
+ "use strict";
174
+ __webpack_require__.r(__webpack_exports__);
175
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OffCanvas", function() { return OffCanvas; });
176
+ /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
177
+ /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
178
+ /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.plugin */ "./foundation.core");
179
+ /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__);
180
+ /* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.keyboard */ "./foundation.util.keyboard");
181
+ /* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__);
182
+ /* harmony import */ var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation.util.mediaQuery */ "./foundation.util.mediaQuery");
183
+ /* harmony import */ var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__);
184
+ /* harmony import */ var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./foundation.util.triggers */ "./js/foundation.util.triggers.js");
185
+
186
+
187
+ 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); }
188
+
189
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
190
+
191
+ 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); } }
192
+
193
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
194
+
195
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
196
+
197
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
198
+
199
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
200
+
201
+ 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); }
202
+
203
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+ /**
212
+ * OffCanvas module.
213
+ * @module foundation.offCanvas
214
+ * @requires foundation.util.keyboard
215
+ * @requires foundation.util.mediaQuery
216
+ * @requires foundation.util.triggers
217
+ */
218
+
219
+ var OffCanvas =
220
+ /*#__PURE__*/
221
+ function (_Plugin) {
222
+ _inherits(OffCanvas, _Plugin);
223
+
224
+ function OffCanvas() {
225
+ _classCallCheck(this, OffCanvas);
226
+
227
+ return _possibleConstructorReturn(this, _getPrototypeOf(OffCanvas).apply(this, arguments));
228
+ }
229
+
230
+ _createClass(OffCanvas, [{
231
+ key: "_setup",
232
+
233
+ /**
234
+ * Creates a new instance of an off-canvas wrapper.
235
+ * @class
236
+ * @name OffCanvas
237
+ * @fires OffCanvas#init
238
+ * @param {Object} element - jQuery object to initialize.
239
+ * @param {Object} options - Overrides to the default plugin settings.
240
+ */
241
+ value: function _setup(element, options) {
242
+ var _this2 = this;
243
+
244
+ this.className = 'OffCanvas'; // ie9 back compat
245
+
246
+ this.$element = element;
247
+ this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({}, OffCanvas.defaults, this.$element.data(), options);
248
+ this.contentClasses = {
249
+ base: [],
250
+ reveal: []
251
+ };
252
+ this.$lastTrigger = jquery__WEBPACK_IMPORTED_MODULE_0___default()();
253
+ this.$triggers = jquery__WEBPACK_IMPORTED_MODULE_0___default()();
254
+ this.position = 'left';
255
+ this.$content = jquery__WEBPACK_IMPORTED_MODULE_0___default()();
256
+ this.nested = !!this.options.nested;
257
+ this.$sticky = jquery__WEBPACK_IMPORTED_MODULE_0___default()();
258
+ this.isInCanvas = false; // Defines the CSS transition/position classes of the off-canvas content container.
259
+
260
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(['push', 'overlap']).each(function (index, val) {
261
+ _this2.contentClasses.base.push('has-transition-' + val);
262
+ });
263
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(['left', 'right', 'top', 'bottom']).each(function (index, val) {
264
+ _this2.contentClasses.base.push('has-position-' + val);
265
+
266
+ _this2.contentClasses.reveal.push('has-reveal-' + val);
267
+ }); // Triggers init is idempotent, just need to make sure it is initialized
268
+
269
+ _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_4__["Triggers"].init(jquery__WEBPACK_IMPORTED_MODULE_0___default.a);
270
+
271
+ _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__["MediaQuery"]._init();
272
+
273
+ this._init();
274
+
275
+ this._events();
276
+
277
+ _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].register('OffCanvas', {
278
+ 'ESCAPE': 'close'
279
+ });
280
+ }
281
+ /**
282
+ * Initializes the off-canvas wrapper by adding the exit overlay (if needed).
283
+ * @function
284
+ * @private
285
+ */
286
+
287
+ }, {
288
+ key: "_init",
289
+ value: function _init() {
290
+ var id = this.$element.attr('id');
291
+ this.$element.attr('aria-hidden', 'true'); // Find off-canvas content, either by ID (if specified), by siblings or by closest selector (fallback)
292
+
293
+ if (this.options.contentId) {
294
+ this.$content = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + this.options.contentId);
295
+ } else if (this.$element.siblings('[data-off-canvas-content]').length) {
296
+ this.$content = this.$element.siblings('[data-off-canvas-content]').first();
297
+ } else {
298
+ this.$content = this.$element.closest('[data-off-canvas-content]').first();
299
+ }
300
+
301
+ if (!this.options.contentId) {
302
+ // Assume that the off-canvas element is nested if it isn't a sibling of the content
303
+ this.nested = this.$element.siblings('[data-off-canvas-content]').length === 0;
304
+ } else if (this.options.contentId && this.options.nested === null) {
305
+ // Warning if using content ID without setting the nested option
306
+ // Once the element is nested it is required to work properly in this case
307
+ console.warn('Remember to use the nested option if using the content ID option!');
308
+ }
309
+
310
+ if (this.nested === true) {
311
+ // Force transition overlap if nested
312
+ this.options.transition = 'overlap'; // Remove appropriate classes if already assigned in markup
313
+
314
+ this.$element.removeClass('is-transition-push');
315
+ }
316
+
317
+ this.$element.addClass("is-transition-".concat(this.options.transition, " is-closed")); // Find triggers that affect this element and add aria-expanded to them
318
+
319
+ this.$triggers = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).find('[data-open="' + id + '"], [data-close="' + id + '"], [data-toggle="' + id + '"]').attr('aria-expanded', 'false').attr('aria-controls', id); // Get position by checking for related CSS class
320
+
321
+ this.position = this.$element.is('.position-left, .position-top, .position-right, .position-bottom') ? this.$element.attr('class').match(/position\-(left|top|right|bottom)/)[1] : this.position; // Add an overlay over the content if necessary
322
+
323
+ if (this.options.contentOverlay === true) {
324
+ var overlay = document.createElement('div');
325
+ var overlayPosition = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.$element).css("position") === 'fixed' ? 'is-overlay-fixed' : 'is-overlay-absolute';
326
+ overlay.setAttribute('class', 'js-off-canvas-overlay ' + overlayPosition);
327
+ this.$overlay = jquery__WEBPACK_IMPORTED_MODULE_0___default()(overlay);
328
+
329
+ if (overlayPosition === 'is-overlay-fixed') {
330
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.$overlay).insertAfter(this.$element);
331
+ } else {
332
+ this.$content.append(this.$overlay);
333
+ }
334
+ } // Get the revealOn option from the class.
335
+
336
+
337
+ var revealOnRegExp = new RegExp(Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["RegExpEscape"])(this.options.revealClass) + '([^\\s]+)', 'g');
338
+ var revealOnClass = revealOnRegExp.exec(this.$element[0].className);
339
+
340
+ if (revealOnClass) {
341
+ this.options.isRevealed = true;
342
+ this.options.revealOn = this.options.revealOn || revealOnClass[1];
343
+ } // Ensure the `reveal-on-*` class is set.
344
+
345
+
346
+ if (this.options.isRevealed === true && this.options.revealOn) {
347
+ this.$element.first().addClass("".concat(this.options.revealClass).concat(this.options.revealOn));
348
+
349
+ this._setMQChecker();
350
+ }
351
+
352
+ if (this.options.transitionTime) {
353
+ this.$element.css('transition-duration', this.options.transitionTime);
354
+ } // Find fixed elements that should stay fixed while off-canvas is opened
355
+
356
+
357
+ this.$sticky = this.$content.find('[data-off-canvas-sticky]');
358
+
359
+ if (this.$sticky.length > 0 && this.options.transition === 'push') {
360
+ // If there's at least one match force contentScroll:false because the absolute top value doesn't get recalculated on scroll
361
+ // Limit to push transition since there's no transform scope for overlap
362
+ this.options.contentScroll = false;
363
+ }
364
+
365
+ var inCanvasFor = this.$element.attr('class').match(/\bin-canvas-for-(\w+)/);
366
+
367
+ if (inCanvasFor && inCanvasFor.length === 2) {
368
+ // Set `inCanvasOn` option if found in-canvas-for-[BREAKPONT] CSS class
369
+ this.options.inCanvasOn = inCanvasFor[1];
370
+ } else if (this.options.inCanvasOn) {
371
+ // Ensure the CSS class is set
372
+ this.$element.addClass("in-canvas-for-".concat(this.options.inCanvasOn));
373
+ }
374
+
375
+ if (this.options.inCanvasOn) {
376
+ this._checkInCanvas();
377
+ } // Initally remove all transition/position CSS classes from off-canvas content container.
378
+
379
+
380
+ this._removeContentClasses();
381
+ }
382
+ /**
383
+ * Adds event handlers to the off-canvas wrapper and the exit overlay.
384
+ * @function
385
+ * @private
386
+ */
387
+
388
+ }, {
389
+ key: "_events",
390
+ value: function _events() {
391
+ var _this3 = this;
392
+
393
+ this.$element.off('.zf.trigger .zf.offCanvas').on({
394
+ 'open.zf.trigger': this.open.bind(this),
395
+ 'close.zf.trigger': this.close.bind(this),
396
+ 'toggle.zf.trigger': this.toggle.bind(this),
397
+ 'keydown.zf.offCanvas': this._handleKeyboard.bind(this)
398
+ });
399
+
400
+ if (this.options.closeOnClick === true) {
401
+ var $target = this.options.contentOverlay ? this.$overlay : this.$content;
402
+ $target.on({
403
+ 'click.zf.offCanvas': this.close.bind(this)
404
+ });
405
+ }
406
+
407
+ if (this.options.inCanvasOn) {
408
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('changed.zf.mediaquery', function () {
409
+ _this3._checkInCanvas();
410
+ });
411
+ }
412
+ }
413
+ /**
414
+ * Applies event listener for elements that will reveal at certain breakpoints.
415
+ * @private
416
+ */
417
+
418
+ }, {
419
+ key: "_setMQChecker",
420
+ value: function _setMQChecker() {
421
+ var _this = this;
422
+
423
+ this.onLoadListener = Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["onLoad"])(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
424
+ if (_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__["MediaQuery"].atLeast(_this.options.revealOn)) {
425
+ _this.reveal(true);
426
+ }
427
+ });
428
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('changed.zf.mediaquery', function () {
429
+ if (_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__["MediaQuery"].atLeast(_this.options.revealOn)) {
430
+ _this.reveal(true);
431
+ } else {
432
+ _this.reveal(false);
433
+ }
434
+ });
435
+ }
436
+ /**
437
+ * Checks if InCanvas on current breakpoint and adjust off-canvas accordingly
438
+ * @private
439
+ */
440
+
441
+ }, {
442
+ key: "_checkInCanvas",
443
+ value: function _checkInCanvas() {
444
+ this.isInCanvas = _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__["MediaQuery"].atLeast(this.options.inCanvasOn);
445
+
446
+ if (this.isInCanvas === true) {
447
+ this.close();
448
+ }
449
+ }
450
+ /**
451
+ * Removes the CSS transition/position classes of the off-canvas content container.
452
+ * Removing the classes is important when another off-canvas gets opened that uses the same content container.
453
+ * @param {Boolean} hasReveal - true if related off-canvas element is revealed.
454
+ * @private
455
+ */
456
+
457
+ }, {
458
+ key: "_removeContentClasses",
459
+ value: function _removeContentClasses(hasReveal) {
460
+ if (typeof hasReveal !== 'boolean') {
461
+ this.$content.removeClass(this.contentClasses.base.join(' '));
462
+ } else if (hasReveal === false) {
463
+ this.$content.removeClass("has-reveal-".concat(this.position));
464
+ }
465
+ }
466
+ /**
467
+ * Adds the CSS transition/position classes of the off-canvas content container, based on the opening off-canvas element.
468
+ * Beforehand any transition/position class gets removed.
469
+ * @param {Boolean} hasReveal - true if related off-canvas element is revealed.
470
+ * @private
471
+ */
472
+
473
+ }, {
474
+ key: "_addContentClasses",
475
+ value: function _addContentClasses(hasReveal) {
476
+ this._removeContentClasses(hasReveal);
477
+
478
+ if (typeof hasReveal !== 'boolean') {
479
+ this.$content.addClass("has-transition-".concat(this.options.transition, " has-position-").concat(this.position));
480
+ } else if (hasReveal === true) {
481
+ this.$content.addClass("has-reveal-".concat(this.position));
482
+ }
483
+ }
484
+ /**
485
+ * Preserves the fixed behavior of sticky elements on opening an off-canvas with push transition.
486
+ * Since the off-canvas container has got a transform scope in such a case, it is done by calculating position absolute values.
487
+ * @private
488
+ */
489
+
490
+ }, {
491
+ key: "_fixStickyElements",
492
+ value: function _fixStickyElements() {
493
+ this.$sticky.each(function (_, el) {
494
+ var $el = jquery__WEBPACK_IMPORTED_MODULE_0___default()(el); // If sticky element is currently fixed, adjust its top value to match absolute position due to transform scope
495
+ // Limit to push transition because postion:fixed works without problems for overlap (no transform scope)
496
+
497
+ if ($el.css('position') === 'fixed') {
498
+ // Save current inline styling to restore it if undoing the absolute fixing
499
+ var topVal = parseInt($el.css('top'), 10);
500
+ $el.data('offCanvasSticky', {
501
+ top: topVal
502
+ });
503
+ var absoluteTopVal = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).scrollTop() + topVal;
504
+ $el.css({
505
+ top: "".concat(absoluteTopVal, "px"),
506
+ width: '100%',
507
+ transition: 'none'
508
+ });
509
+ }
510
+ });
511
+ }
512
+ /**
513
+ * Restores the original fixed styling of sticky elements after having closed an off-canvas that got pseudo fixed beforehand.
514
+ * This reverts the changes of _fixStickyElements()
515
+ * @private
516
+ */
517
+
518
+ }, {
519
+ key: "_unfixStickyElements",
520
+ value: function _unfixStickyElements() {
521
+ this.$sticky.each(function (_, el) {
522
+ var $el = jquery__WEBPACK_IMPORTED_MODULE_0___default()(el);
523
+ var stickyData = $el.data('offCanvasSticky'); // If sticky element has got data object with prior values (meaning it was originally fixed) restore these values once off-canvas is closed
524
+
525
+ if (_typeof(stickyData) === 'object') {
526
+ $el.css({
527
+ top: "".concat(stickyData.top, "px"),
528
+ width: '',
529
+ transition: ''
530
+ });
531
+ $el.data('offCanvasSticky', '');
532
+ }
533
+ });
534
+ }
535
+ /**
536
+ * Handles the revealing/hiding the off-canvas at breakpoints, not the same as open.
537
+ * @param {Boolean} isRevealed - true if element should be revealed.
538
+ * @function
539
+ */
540
+
541
+ }, {
542
+ key: "reveal",
543
+ value: function reveal(isRevealed) {
544
+ if (isRevealed) {
545
+ this.close();
546
+ this.isRevealed = true;
547
+ this.$element.attr('aria-hidden', 'false');
548
+ this.$element.off('open.zf.trigger toggle.zf.trigger');
549
+ this.$element.removeClass('is-closed');
550
+ } else {
551
+ this.isRevealed = false;
552
+ this.$element.attr('aria-hidden', 'true');
553
+ this.$element.off('open.zf.trigger toggle.zf.trigger').on({
554
+ 'open.zf.trigger': this.open.bind(this),
555
+ 'toggle.zf.trigger': this.toggle.bind(this)
556
+ });
557
+ this.$element.addClass('is-closed');
558
+ }
559
+
560
+ this._addContentClasses(isRevealed);
561
+ }
562
+ /**
563
+ * Stops scrolling of the body when OffCanvas is open on mobile Safari and other troublesome browsers.
564
+ * @function
565
+ * @private
566
+ */
567
+
568
+ }, {
569
+ key: "_stopScrolling",
570
+ value: function _stopScrolling(event) {
571
+ return false;
572
+ }
573
+ /**
574
+ * Tag the element given as context whether it can be scrolled up and down.
575
+ * Used to allow or prevent it to scroll. See `_stopScrollPropagation`.
576
+ *
577
+ * Taken and adapted from http://stackoverflow.com/questions/16889447/prevent-full-page-scrolling-ios
578
+ * Only really works for y, not sure how to extend to x or if we need to.
579
+ *
580
+ * @function
581
+ * @private
582
+ */
583
+
584
+ }, {
585
+ key: "_recordScrollable",
586
+ value: function _recordScrollable(event) {
587
+ var elem = this; // called from event handler context with this as elem
588
+ // If the element is scrollable (content overflows), then...
589
+
590
+ if (elem.scrollHeight !== elem.clientHeight) {
591
+ // If we're at the top, scroll down one pixel to allow scrolling up
592
+ if (elem.scrollTop === 0) {
593
+ elem.scrollTop = 1;
594
+ } // If we're at the bottom, scroll up one pixel to allow scrolling down
595
+
596
+
597
+ if (elem.scrollTop === elem.scrollHeight - elem.clientHeight) {
598
+ elem.scrollTop = elem.scrollHeight - elem.clientHeight - 1;
599
+ }
600
+ }
601
+
602
+ elem.allowUp = elem.scrollTop > 0;
603
+ elem.allowDown = elem.scrollTop < elem.scrollHeight - elem.clientHeight;
604
+ elem.lastY = event.originalEvent.pageY;
605
+ }
606
+ /**
607
+ * Prevent the given event propagation if the element given as context can scroll.
608
+ * Used to preserve the element scrolling on mobile (`touchmove`) when the document
609
+ * scrolling is prevented. See https://git.io/zf-9707.
610
+ * @function
611
+ * @private
612
+ */
613
+
614
+ }, {
615
+ key: "_stopScrollPropagation",
616
+ value: function _stopScrollPropagation(event) {
617
+ var elem = this; // called from event handler context with this as elem
618
+
619
+ var parent; // off-canvas elem if called from inner scrollbox
620
+
621
+ var up = event.pageY < elem.lastY;
622
+ var down = !up;
623
+ elem.lastY = event.pageY;
624
+
625
+ if (up && elem.allowUp || down && elem.allowDown) {
626
+ // It is not recommended to stop event propagation (the user cannot watch it),
627
+ // but in this case this is the only solution we have.
628
+ event.stopPropagation(); // If elem is inner scrollbox we are scrolling the outer off-canvas down/up once the box end has been reached
629
+ // This lets the user continue to touch move the off-canvas without the need to place the finger outside the scrollbox
630
+
631
+ if (elem.hasAttribute('data-off-canvas-scrollbox')) {
632
+ parent = elem.closest('[data-off-canvas], [data-off-canvas-scrollbox-outer]');
633
+
634
+ if (elem.scrollTop <= 1 && parent.scrollTop > 0) {
635
+ parent.scrollTop--;
636
+ } else if (elem.scrollTop >= elem.scrollHeight - elem.clientHeight - 1 && parent.scrollTop < parent.scrollHeight - parent.clientHeight) {
637
+ parent.scrollTop++;
638
+ }
639
+ }
640
+ } else {
641
+ event.preventDefault();
642
+ }
643
+ }
644
+ /**
645
+ * Opens the off-canvas menu.
646
+ * @function
647
+ * @param {Object} event - Event object passed from listener.
648
+ * @param {jQuery} trigger - element that triggered the off-canvas to open.
649
+ * @fires OffCanvas#opened
650
+ * @todo also trigger 'open' event?
651
+ */
652
+
653
+ }, {
654
+ key: "open",
655
+ value: function open(event, trigger) {
656
+ var _this4 = this;
657
+
658
+ if (this.$element.hasClass('is-open') || this.isRevealed || this.isInCanvas) {
659
+ return;
660
+ }
661
+
662
+ var _this = this;
663
+
664
+ if (trigger) {
665
+ this.$lastTrigger = trigger;
666
+ }
667
+
668
+ if (this.options.forceTo === 'top') {
669
+ window.scrollTo(0, 0);
670
+ } else if (this.options.forceTo === 'bottom') {
671
+ window.scrollTo(0, document.body.scrollHeight);
672
+ }
673
+
674
+ if (this.options.transitionTime && this.options.transition !== 'overlap') {
675
+ this.$element.siblings('[data-off-canvas-content]').css('transition-duration', this.options.transitionTime);
676
+ } else {
677
+ this.$element.siblings('[data-off-canvas-content]').css('transition-duration', '');
678
+ }
679
+
680
+ this.$element.addClass('is-open').removeClass('is-closed');
681
+ this.$triggers.attr('aria-expanded', 'true');
682
+ this.$element.attr('aria-hidden', 'false');
683
+ this.$content.addClass('is-open-' + this.position); // If `contentScroll` is set to false, add class and disable scrolling on touch devices.
684
+
685
+ if (this.options.contentScroll === false) {
686
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').addClass('is-off-canvas-open').on('touchmove', this._stopScrolling);
687
+ this.$element.on('touchstart', this._recordScrollable);
688
+ this.$element.on('touchmove', this._stopScrollPropagation);
689
+ this.$element.on('touchstart', '[data-off-canvas-scrollbox]', this._recordScrollable);
690
+ this.$element.on('touchmove', '[data-off-canvas-scrollbox]', this._stopScrollPropagation);
691
+ }
692
+
693
+ if (this.options.contentOverlay === true) {
694
+ this.$overlay.addClass('is-visible');
695
+ }
696
+
697
+ if (this.options.closeOnClick === true && this.options.contentOverlay === true) {
698
+ this.$overlay.addClass('is-closable');
699
+ }
700
+
701
+ if (this.options.autoFocus === true) {
702
+ this.$element.one(Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["transitionend"])(this.$element), function () {
703
+ if (!_this.$element.hasClass('is-open')) {
704
+ return; // exit if prematurely closed
705
+ }
706
+
707
+ var canvasFocus = _this.$element.find('[data-autofocus]');
708
+
709
+ if (canvasFocus.length) {
710
+ canvasFocus.eq(0).focus();
711
+ } else {
712
+ _this.$element.find('a, button').eq(0).focus();
713
+ }
714
+ });
715
+ }
716
+
717
+ if (this.options.trapFocus === true) {
718
+ this.$content.attr('tabindex', '-1');
719
+ _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].trapFocus(this.$element);
720
+ }
721
+
722
+ if (this.options.transition === 'push') {
723
+ this._fixStickyElements();
724
+ }
725
+
726
+ this._addContentClasses();
727
+ /**
728
+ * Fires when the off-canvas menu opens.
729
+ * @event OffCanvas#opened
730
+ */
731
+
732
+
733
+ this.$element.trigger('opened.zf.offCanvas');
734
+ /**
735
+ * Fires when the off-canvas menu open transition is done.
736
+ * @event OffCanvas#openedEnd
737
+ */
738
+
739
+ this.$element.one(Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["transitionend"])(this.$element), function () {
740
+ _this4.$element.trigger('openedEnd.zf.offCanvas');
741
+ });
742
+ }
743
+ /**
744
+ * Closes the off-canvas menu.
745
+ * @function
746
+ * @param {Function} cb - optional cb to fire after closure.
747
+ * @fires OffCanvas#close
748
+ * @fires OffCanvas#closed
749
+ */
750
+
751
+ }, {
752
+ key: "close",
753
+ value: function close(cb) {
754
+ var _this5 = this;
755
+
756
+ if (!this.$element.hasClass('is-open') || this.isRevealed) {
757
+ return;
758
+ }
759
+ /**
760
+ * Fires when the off-canvas menu closes.
761
+ * @event OffCanvas#close
762
+ */
763
+
764
+
765
+ this.$element.trigger('close.zf.offCanvas');
766
+
767
+ var _this = this;
768
+
769
+ this.$element.removeClass('is-open');
770
+ this.$element.attr('aria-hidden', 'true');
771
+ this.$content.removeClass('is-open-left is-open-top is-open-right is-open-bottom');
772
+
773
+ if (this.options.contentOverlay === true) {
774
+ this.$overlay.removeClass('is-visible');
775
+ }
776
+
777
+ if (this.options.closeOnClick === true && this.options.contentOverlay === true) {
778
+ this.$overlay.removeClass('is-closable');
779
+ }
780
+
781
+ this.$triggers.attr('aria-expanded', 'false'); // Listen to transitionEnd: add class, re-enable scrolling and release focus when done.
782
+
783
+ this.$element.one(Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["transitionend"])(this.$element), function (e) {
784
+ _this5.$element.addClass('is-closed');
785
+
786
+ _this5._removeContentClasses();
787
+
788
+ if (_this5.options.transition === 'push') {
789
+ _this5._unfixStickyElements();
790
+ } // If `contentScroll` is set to false, remove class and re-enable scrolling on touch devices.
791
+
792
+
793
+ if (_this5.options.contentScroll === false) {
794
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').removeClass('is-off-canvas-open').off('touchmove', _this5._stopScrolling);
795
+
796
+ _this5.$element.off('touchstart', _this5._recordScrollable);
797
+
798
+ _this5.$element.off('touchmove', _this5._stopScrollPropagation);
799
+
800
+ _this5.$element.off('touchstart', '[data-off-canvas-scrollbox]', _this5._recordScrollable);
801
+
802
+ _this5.$element.off('touchmove', '[data-off-canvas-scrollbox]', _this5._stopScrollPropagation);
803
+ }
804
+
805
+ if (_this5.options.trapFocus === true) {
806
+ _this5.$content.removeAttr('tabindex');
807
+
808
+ _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].releaseFocus(_this5.$element);
809
+ }
810
+ /**
811
+ * Fires when the off-canvas menu close transition is done.
812
+ * @event OffCanvas#closed
813
+ */
814
+
815
+
816
+ _this5.$element.trigger('closed.zf.offCanvas');
817
+ });
818
+ }
819
+ /**
820
+ * Toggles the off-canvas menu open or closed.
821
+ * @function
822
+ * @param {Object} event - Event object passed from listener.
823
+ * @param {jQuery} trigger - element that triggered the off-canvas to open.
824
+ */
825
+
826
+ }, {
827
+ key: "toggle",
828
+ value: function toggle(event, trigger) {
829
+ if (this.$element.hasClass('is-open')) {
830
+ this.close(event, trigger);
831
+ } else {
832
+ this.open(event, trigger);
833
+ }
834
+ }
835
+ /**
836
+ * Handles keyboard input when detected. When the escape key is pressed, the off-canvas menu closes, and focus is restored to the element that opened the menu.
837
+ * @function
838
+ * @private
839
+ */
840
+
841
+ }, {
842
+ key: "_handleKeyboard",
843
+ value: function _handleKeyboard(e) {
844
+ var _this6 = this;
845
+
846
+ _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].handleKey(e, 'OffCanvas', {
847
+ close: function close() {
848
+ _this6.close();
849
+
850
+ _this6.$lastTrigger.focus();
851
+
852
+ return true;
853
+ },
854
+ handled: function handled() {
855
+ e.preventDefault();
856
+ }
857
+ });
858
+ }
859
+ /**
860
+ * Destroys the OffCanvas plugin.
861
+ * @function
862
+ */
863
+
864
+ }, {
865
+ key: "_destroy",
866
+ value: function _destroy() {
867
+ this.close();
868
+ this.$element.off('.zf.trigger .zf.offCanvas');
869
+ this.$overlay.off('.zf.offCanvas');
870
+ if (this.onLoadListener) jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.onLoadListener);
871
+ }
872
+ }]);
873
+
874
+ return OffCanvas;
875
+ }(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
876
+
877
+ OffCanvas.defaults = {
878
+ /**
879
+ * Allow the user to click outside of the menu to close it.
880
+ * @option
881
+ * @type {boolean}
882
+ * @default true
883
+ */
884
+ closeOnClick: true,
885
+
886
+ /**
887
+ * Adds an overlay on top of `[data-off-canvas-content]`.
888
+ * @option
889
+ * @type {boolean}
890
+ * @default true
891
+ */
892
+ contentOverlay: true,
893
+
894
+ /**
895
+ * Target an off-canvas content container by ID that may be placed anywhere. If null the closest content container will be taken.
896
+ * @option
897
+ * @type {?string}
898
+ * @default null
899
+ */
900
+ contentId: null,
901
+
902
+ /**
903
+ * Define the off-canvas element is nested in an off-canvas content. This is required when using the contentId option for a nested element.
904
+ * @option
905
+ * @type {boolean}
906
+ * @default null
907
+ */
908
+ nested: null,
909
+
910
+ /**
911
+ * Enable/disable scrolling of the main content when an off canvas panel is open.
912
+ * @option
913
+ * @type {boolean}
914
+ * @default true
915
+ */
916
+ contentScroll: true,
917
+
918
+ /**
919
+ * Amount of time the open and close transition requires, including the appropriate milliseconds (`ms`) or seconds (`s`) unit (e.g. `500ms`, `.75s`) If none selected, pulls from body style.
920
+ * @option
921
+ * @type {string}
922
+ * @default null
923
+ */
924
+ transitionTime: null,
925
+
926
+ /**
927
+ * Type of transition for the OffCanvas menu. Options are 'push', 'detached' or 'slide'.
928
+ * @option
929
+ * @type {string}
930
+ * @default push
931
+ */
932
+ transition: 'push',
933
+
934
+ /**
935
+ * Force the page to scroll to top or bottom on open.
936
+ * @option
937
+ * @type {?string}
938
+ * @default null
939
+ */
940
+ forceTo: null,
941
+
942
+ /**
943
+ * Allow the OffCanvas to remain open for certain breakpoints.
944
+ * @option
945
+ * @type {boolean}
946
+ * @default false
947
+ */
948
+ isRevealed: false,
949
+
950
+ /**
951
+ * Breakpoint at which to reveal. JS will use a RegExp to target standard classes, if changing classnames, pass your class with the `revealClass` option.
952
+ * @option
953
+ * @type {?string}
954
+ * @default null
955
+ */
956
+ revealOn: null,
957
+
958
+ /**
959
+ * Breakpoint at which the off-canvas gets moved into canvas content and acts as regular page element.
960
+ * @option
961
+ * @type {?string}
962
+ * @default null
963
+ */
964
+ inCanvasOn: null,
965
+
966
+ /**
967
+ * Force focus to the offcanvas on open. If true, will focus the opening trigger on close.
968
+ * @option
969
+ * @type {boolean}
970
+ * @default true
971
+ */
972
+ autoFocus: true,
973
+
974
+ /**
975
+ * Class used to force an OffCanvas to remain open. Foundation defaults for this are `reveal-for-large` & `reveal-for-medium`.
976
+ * @option
977
+ * @type {string}
978
+ * @default reveal-for-
979
+ * @todo improve the regex testing for this.
980
+ */
981
+ revealClass: 'reveal-for-',
982
+
983
+ /**
984
+ * Triggers optional focus trapping when opening an OffCanvas. Sets tabindex of [data-off-canvas-content] to -1 for accessibility purposes.
985
+ * @option
986
+ * @type {boolean}
987
+ * @default false
988
+ */
989
+ trapFocus: false
990
+ };
991
+
992
+
993
+ /***/ }),
994
+
995
+ /***/ "./js/foundation.util.triggers.js":
996
+ /*!****************************************!*\
997
+ !*** ./js/foundation.util.triggers.js ***!
998
+ \****************************************/
999
+ /*! exports provided: Triggers */
1000
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1001
+
1002
+ "use strict";
1003
+ __webpack_require__.r(__webpack_exports__);
1004
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Triggers", function() { return Triggers; });
1005
+ /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
1006
+ /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
1007
+ /* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
1008
+ /* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
1009
+ /* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.motion */ "./foundation.util.motion");
1010
+ /* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
1011
+
1012
+
1013
+ 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); }
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+ var MutationObserver = function () {
1020
+ var prefixes = ['WebKit', 'Moz', 'O', 'Ms', ''];
1021
+
1022
+ for (var i = 0; i < prefixes.length; i++) {
1023
+ if ("".concat(prefixes[i], "MutationObserver") in window) {
1024
+ return window["".concat(prefixes[i], "MutationObserver")];
1025
+ }
1026
+ }
1027
+
1028
+ return false;
1029
+ }();
1030
+
1031
+ var triggers = function triggers(el, type) {
1032
+ el.data(type).split(' ').forEach(function (id) {
1033
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type === 'close' ? 'trigger' : 'triggerHandler']("".concat(type, ".zf.trigger"), [el]);
1034
+ });
1035
+ };
1036
+
1037
+ var Triggers = {
1038
+ Listeners: {
1039
+ Basic: {},
1040
+ Global: {}
1041
+ },
1042
+ Initializers: {}
1043
+ };
1044
+ Triggers.Listeners.Basic = {
1045
+ openListener: function openListener() {
1046
+ triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'open');
1047
+ },
1048
+ closeListener: function closeListener() {
1049
+ var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
1050
+
1051
+ if (id) {
1052
+ triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'close');
1053
+ } else {
1054
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('close.zf.trigger');
1055
+ }
1056
+ },
1057
+ toggleListener: function toggleListener() {
1058
+ var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
1059
+
1060
+ if (id) {
1061
+ triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'toggle');
1062
+ } else {
1063
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('toggle.zf.trigger');
1064
+ }
1065
+ },
1066
+ closeableListener: function closeableListener(e) {
1067
+ var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable'); // Only close the first closable element. See https://git.io/zf-7833
1068
+
1069
+ e.stopPropagation();
1070
+
1071
+ if (animation !== '') {
1072
+ _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__["Motion"].animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), animation, function () {
1073
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
1074
+ });
1075
+ } else {
1076
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).fadeOut().trigger('closed.zf');
1077
+ }
1078
+ },
1079
+ toggleFocusListener: function toggleFocusListener() {
1080
+ var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
1081
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger', [jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
1082
+ }
1083
+ }; // Elements with [data-open] will reveal a plugin that supports it when clicked.
1084
+
1085
+ Triggers.Initializers.addOpenListener = function ($elem) {
1086
+ $elem.off('click.zf.trigger', Triggers.Listeners.Basic.openListener);
1087
+ $elem.on('click.zf.trigger', '[data-open]', Triggers.Listeners.Basic.openListener);
1088
+ }; // Elements with [data-close] will close a plugin that supports it when clicked.
1089
+ // If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
1090
+
1091
+
1092
+ Triggers.Initializers.addCloseListener = function ($elem) {
1093
+ $elem.off('click.zf.trigger', Triggers.Listeners.Basic.closeListener);
1094
+ $elem.on('click.zf.trigger', '[data-close]', Triggers.Listeners.Basic.closeListener);
1095
+ }; // Elements with [data-toggle] will toggle a plugin that supports it when clicked.
1096
+
1097
+
1098
+ Triggers.Initializers.addToggleListener = function ($elem) {
1099
+ $elem.off('click.zf.trigger', Triggers.Listeners.Basic.toggleListener);
1100
+ $elem.on('click.zf.trigger', '[data-toggle]', Triggers.Listeners.Basic.toggleListener);
1101
+ }; // Elements with [data-closable] will respond to close.zf.trigger events.
1102
+
1103
+
1104
+ Triggers.Initializers.addCloseableListener = function ($elem) {
1105
+ $elem.off('close.zf.trigger', Triggers.Listeners.Basic.closeableListener);
1106
+ $elem.on('close.zf.trigger', '[data-closeable], [data-closable]', Triggers.Listeners.Basic.closeableListener);
1107
+ }; // Elements with [data-toggle-focus] will respond to coming in and out of focus
1108
+
1109
+
1110
+ Triggers.Initializers.addToggleFocusListener = function ($elem) {
1111
+ $elem.off('focus.zf.trigger blur.zf.trigger', Triggers.Listeners.Basic.toggleFocusListener);
1112
+ $elem.on('focus.zf.trigger blur.zf.trigger', '[data-toggle-focus]', Triggers.Listeners.Basic.toggleFocusListener);
1113
+ }; // More Global/complex listeners and triggers
1114
+
1115
+
1116
+ Triggers.Listeners.Global = {
1117
+ resizeListener: function resizeListener($nodes) {
1118
+ if (!MutationObserver) {
1119
+ //fallback for IE 9
1120
+ $nodes.each(function () {
1121
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
1122
+ });
1123
+ } //trigger all listening elements and signal a resize event
1124
+
1125
+
1126
+ $nodes.attr('data-events', "resize");
1127
+ },
1128
+ scrollListener: function scrollListener($nodes) {
1129
+ if (!MutationObserver) {
1130
+ //fallback for IE 9
1131
+ $nodes.each(function () {
1132
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
1133
+ });
1134
+ } //trigger all listening elements and signal a scroll event
1135
+
1136
+
1137
+ $nodes.attr('data-events', "scroll");
1138
+ },
1139
+ closeMeListener: function closeMeListener(e, pluginId) {
1140
+ var plugin = e.namespace.split('.')[0];
1141
+ var plugins = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin, "]")).not("[data-yeti-box=\"".concat(pluginId, "\"]"));
1142
+ plugins.each(function () {
1143
+ var _this = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
1144
+
1145
+ _this.triggerHandler('close.zf.trigger', [_this]);
1146
+ });
1147
+ } // Global, parses whole document.
1148
+
1149
+ };
1150
+
1151
+ Triggers.Initializers.addClosemeListener = function (pluginName) {
1152
+ var yetiBoxes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
1153
+ plugNames = ['dropdown', 'tooltip', 'reveal'];
1154
+
1155
+ if (pluginName) {
1156
+ if (typeof pluginName === 'string') {
1157
+ plugNames.push(pluginName);
1158
+ } else if (_typeof(pluginName) === 'object' && typeof pluginName[0] === 'string') {
1159
+ plugNames = plugNames.concat(pluginName);
1160
+ } else {
1161
+ console.error('Plugin names must be strings');
1162
+ }
1163
+ }
1164
+
1165
+ if (yetiBoxes.length) {
1166
+ var listeners = plugNames.map(function (name) {
1167
+ return "closeme.zf.".concat(name);
1168
+ }).join(' ');
1169
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners, Triggers.Listeners.Global.closeMeListener);
1170
+ }
1171
+ };
1172
+
1173
+ function debounceGlobalListener(debounce, trigger, listener) {
1174
+ var timer,
1175
+ args = Array.prototype.slice.call(arguments, 3);
1176
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(trigger).on(trigger, function (e) {
1177
+ if (timer) {
1178
+ clearTimeout(timer);
1179
+ }
1180
+
1181
+ timer = setTimeout(function () {
1182
+ listener.apply(null, args);
1183
+ }, debounce || 10); //default time to emit scroll event
1184
+ });
1185
+ }
1186
+
1187
+ Triggers.Initializers.addResizeListener = function (debounce) {
1188
+ var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
1189
+
1190
+ if ($nodes.length) {
1191
+ debounceGlobalListener(debounce, 'resize.zf.trigger', Triggers.Listeners.Global.resizeListener, $nodes);
1192
+ }
1193
+ };
1194
+
1195
+ Triggers.Initializers.addScrollListener = function (debounce) {
1196
+ var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
1197
+
1198
+ if ($nodes.length) {
1199
+ debounceGlobalListener(debounce, 'scroll.zf.trigger', Triggers.Listeners.Global.scrollListener, $nodes);
1200
+ }
1201
+ };
1202
+
1203
+ Triggers.Initializers.addMutationEventsListener = function ($elem) {
1204
+ if (!MutationObserver) {
1205
+ return false;
1206
+ }
1207
+
1208
+ var $nodes = $elem.find('[data-resize], [data-scroll], [data-mutate]'); //element callback
1209
+
1210
+ var listeningElementsMutation = function listeningElementsMutation(mutationRecordsList) {
1211
+ var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target); //trigger the event handler for the element depending on type
1212
+
1213
+ switch (mutationRecordsList[0].type) {
1214
+ case "attributes":
1215
+ if ($target.attr("data-events") === "scroll" && mutationRecordsList[0].attributeName === "data-events") {
1216
+ $target.triggerHandler('scrollme.zf.trigger', [$target, window.pageYOffset]);
1217
+ }
1218
+
1219
+ if ($target.attr("data-events") === "resize" && mutationRecordsList[0].attributeName === "data-events") {
1220
+ $target.triggerHandler('resizeme.zf.trigger', [$target]);
1221
+ }
1222
+
1223
+ if (mutationRecordsList[0].attributeName === "style") {
1224
+ $target.closest("[data-mutate]").attr("data-events", "mutate");
1225
+ $target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
1226
+ }
1227
+
1228
+ break;
1229
+
1230
+ case "childList":
1231
+ $target.closest("[data-mutate]").attr("data-events", "mutate");
1232
+ $target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
1233
+ break;
1234
+
1235
+ default:
1236
+ return false;
1237
+ //nothing
1238
+ }
1239
+ };
1240
+
1241
+ if ($nodes.length) {
1242
+ //for each element that needs to listen for resizing, scrolling, or mutation add a single observer
1243
+ for (var i = 0; i <= $nodes.length - 1; i++) {
1244
+ var elementObserver = new MutationObserver(listeningElementsMutation);
1245
+ elementObserver.observe($nodes[i], {
1246
+ attributes: true,
1247
+ childList: true,
1248
+ characterData: false,
1249
+ subtree: true,
1250
+ attributeFilter: ["data-events", "style"]
1251
+ });
1252
+ }
1253
+ }
1254
+ };
1255
+
1256
+ Triggers.Initializers.addSimpleListeners = function () {
1257
+ var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
1258
+ Triggers.Initializers.addOpenListener($document);
1259
+ Triggers.Initializers.addCloseListener($document);
1260
+ Triggers.Initializers.addToggleListener($document);
1261
+ Triggers.Initializers.addCloseableListener($document);
1262
+ Triggers.Initializers.addToggleFocusListener($document);
1263
+ };
1264
+
1265
+ Triggers.Initializers.addGlobalListeners = function () {
1266
+ var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
1267
+ Triggers.Initializers.addMutationEventsListener($document);
1268
+ Triggers.Initializers.addResizeListener();
1269
+ Triggers.Initializers.addScrollListener();
1270
+ Triggers.Initializers.addClosemeListener();
1271
+ };
1272
+
1273
+ Triggers.init = function ($, Foundation) {
1274
+ Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])($(window), function () {
1275
+ if ($.triggersInitialized !== true) {
1276
+ Triggers.Initializers.addSimpleListeners();
1277
+ Triggers.Initializers.addGlobalListeners();
1278
+ $.triggersInitialized = true;
1279
+ }
1280
+ });
1281
+
1282
+ if (Foundation) {
1283
+ Foundation.Triggers = Triggers; // Legacy included to be backwards compatible for now.
1284
+
1285
+ Foundation.IHearYou = Triggers.Initializers.addGlobalListeners;
1286
+ }
1287
+ };
1288
+
1289
+
1290
+
1291
+ /***/ }),
1292
+
1293
+ /***/ 9:
1294
+ /*!**********************************************************!*\
1295
+ !*** multi ./js/entries/plugins/foundation.offcanvas.js ***!
1296
+ \**********************************************************/
1297
+ /*! no static exports found */
1298
+ /***/ (function(module, exports, __webpack_require__) {
1299
+
1300
+ module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundation-sites/js/entries/plugins/foundation.offcanvas.js */"./js/entries/plugins/foundation.offcanvas.js");
1301
+
1302
+
1303
+ /***/ }),
1304
+
1305
+ /***/ "jquery":
1306
+ /*!********************************************************************************************!*\
1307
+ !*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
1308
+ \********************************************************************************************/
1309
+ /*! no static exports found */
1310
+ /***/ (function(module, exports) {
1311
+
1312
+ module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
1313
+
1314
+ /***/ })
1315
+
1316
+ /******/ });
1317
+ });
1318
+ //# sourceMappingURL=foundation.offcanvas.js.map