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.
- checksums.yaml +5 -5
- data/.gitignore +2 -2
- data/.ruby-version +1 -1
- data/.travis.yml +17 -4
- data/Appraisals +19 -0
- data/Gemfile +5 -2
- data/Gemfile.lock +210 -0
- data/LICENSE.txt +1 -1
- data/README.md +64 -28
- data/Rakefile +30 -0
- data/app/views/foundation/rails/styleguide/show.html.erb +10 -13
- data/bower.json +3 -2
- data/foundation-rails.gemspec +12 -7
- data/gemfiles/rails_4.1.gemfile +10 -0
- data/gemfiles/rails_4.1.gemfile.lock +181 -0
- data/gemfiles/rails_4.2.gemfile +10 -0
- data/gemfiles/rails_4.2.gemfile.lock +181 -0
- data/gemfiles/rails_5.0.gemfile +10 -0
- data/gemfiles/rails_5.0.gemfile.lock +196 -0
- data/gemfiles/rails_5.1.gemfile +10 -0
- data/gemfiles/rails_5.1.gemfile.lock +196 -0
- data/gemfiles/rails_5.2.gemfile +10 -0
- data/gemfiles/rails_5.2.gemfile.lock +196 -0
- data/lib/foundation/rails/engine.rb +2 -3
- data/lib/foundation/rails/version.rb +1 -1
- data/lib/foundation-rails.rb +1 -0
- data/lib/generators/foundation/install_generator.rb +39 -27
- data/lib/generators/foundation/templates/_settings.scss +895 -0
- data/lib/generators/foundation/templates/application.html.erb +1 -2
- data/lib/generators/foundation/templates/application.html.haml +2 -4
- data/lib/generators/foundation/templates/application.html.slim +1 -3
- data/lib/generators/foundation/templates/browserslist +4 -0
- data/lib/generators/foundation/templates/foundation_and_overrides.scss +56 -0
- data/spec/features/generator_spec.rb +1 -1
- data/spec/support/helpers.rb +8 -2
- data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
- data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
- data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
- data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
- data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
- data/vendor/assets/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
- data/vendor/assets/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
- data/vendor/assets/js/foundation.cjs.js +12529 -0
- data/vendor/assets/js/foundation.cjs.js.map +1 -0
- data/vendor/assets/js/foundation.es6.js +11006 -0
- data/vendor/assets/js/foundation.es6.js.map +1 -0
- data/vendor/assets/js/foundation.esm.js +12490 -0
- data/vendor/assets/js/foundation.esm.js.map +1 -0
- data/vendor/assets/js/foundation.js +13897 -0
- data/vendor/assets/js/foundation.js.map +1 -0
- data/vendor/assets/js/foundation.min.js +2 -0
- data/vendor/assets/js/foundation.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.abide.js +1142 -0
- data/vendor/assets/js/plugins/foundation.abide.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.abide.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.abide.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.accordion.js +661 -0
- data/vendor/assets/js/plugins/foundation.accordion.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.accordion.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.accordion.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.accordionMenu.js +616 -0
- data/vendor/assets/js/plugins/foundation.accordionMenu.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.accordionMenu.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.accordionMenu.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.core.js +1180 -0
- data/vendor/assets/js/plugins/foundation.core.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.core.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.core.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.drilldown.js +968 -0
- data/vendor/assets/js/plugins/foundation.drilldown.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.drilldown.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.drilldown.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.dropdown.js +1328 -0
- data/vendor/assets/js/plugins/foundation.dropdown.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.dropdown.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.dropdown.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.dropdownMenu.js +799 -0
- data/vendor/assets/js/plugins/foundation.dropdownMenu.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.equalizer.js +614 -0
- data/vendor/assets/js/plugins/foundation.equalizer.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.equalizer.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.equalizer.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.interchange.js +796 -0
- data/vendor/assets/js/plugins/foundation.interchange.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.interchange.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.interchange.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.magellan.js +850 -0
- data/vendor/assets/js/plugins/foundation.magellan.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.magellan.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.magellan.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.offcanvas.js +1318 -0
- data/vendor/assets/js/plugins/foundation.offcanvas.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.offcanvas.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.offcanvas.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.orbit.js +886 -0
- data/vendor/assets/js/plugins/foundation.orbit.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.orbit.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.orbit.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js +585 -0
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.responsiveMenu.js +413 -0
- data/vendor/assets/js/plugins/foundation.responsiveMenu.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.responsiveToggle.js +394 -0
- data/vendor/assets/js/plugins/foundation.responsiveToggle.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.reveal.js +1275 -0
- data/vendor/assets/js/plugins/foundation.reveal.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.reveal.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.reveal.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.slider.js +1346 -0
- data/vendor/assets/js/plugins/foundation.slider.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.slider.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.slider.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.smoothScroll.js +359 -0
- data/vendor/assets/js/plugins/foundation.smoothScroll.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.smoothScroll.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.smoothScroll.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.sticky.js +1105 -0
- data/vendor/assets/js/plugins/foundation.sticky.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.sticky.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.sticky.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.tabs.js +792 -0
- data/vendor/assets/js/plugins/foundation.tabs.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.tabs.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.tabs.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.toggler.js +704 -0
- data/vendor/assets/js/plugins/foundation.toggler.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.toggler.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.toggler.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.tooltip.js +1333 -0
- data/vendor/assets/js/plugins/foundation.tooltip.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.tooltip.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.tooltip.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.box.js +354 -0
- data/vendor/assets/js/plugins/foundation.util.box.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.box.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.box.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.imageLoader.js +218 -0
- data/vendor/assets/js/plugins/foundation.util.imageLoader.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.keyboard.js +341 -0
- data/vendor/assets/js/plugins/foundation.util.keyboard.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.keyboard.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.keyboard.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.js +509 -0
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.motion.js +274 -0
- data/vendor/assets/js/plugins/foundation.util.motion.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.motion.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.motion.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.nest.js +240 -0
- data/vendor/assets/js/plugins/foundation.util.nest.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.nest.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.nest.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.timer.js +226 -0
- data/vendor/assets/js/plugins/foundation.util.timer.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.timer.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.timer.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.touch.js +365 -0
- data/vendor/assets/js/plugins/foundation.util.touch.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.touch.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.touch.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.triggers.js +470 -0
- data/vendor/assets/js/plugins/foundation.util.triggers.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.triggers.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.triggers.min.js.map +1 -0
- data/vendor/assets/scss/_global.scss +244 -0
- data/vendor/assets/scss/components/_accordion-menu.scss +174 -0
- data/vendor/assets/scss/components/_accordion.scss +164 -0
- data/vendor/assets/scss/components/_badge.scss +63 -0
- data/vendor/assets/scss/components/_breadcrumbs.scss +119 -0
- data/vendor/assets/scss/components/_button-group.scss +304 -0
- data/vendor/assets/scss/components/_button.scss +428 -0
- data/vendor/assets/scss/components/_callout.scss +108 -0
- data/vendor/assets/scss/components/_card.scss +129 -0
- data/vendor/assets/scss/components/_close-button.scss +127 -0
- data/vendor/assets/scss/components/_drilldown.scss +140 -0
- data/vendor/assets/scss/components/_dropdown-menu.scss +279 -0
- data/vendor/assets/scss/components/_dropdown.scss +82 -0
- data/vendor/assets/scss/components/_flex-video.scss +1 -0
- data/vendor/assets/scss/components/_flex.scss +119 -0
- data/vendor/assets/scss/components/_float.scss +27 -0
- data/vendor/assets/scss/components/_label.scss +64 -0
- data/vendor/assets/scss/components/_media-object.scss +114 -0
- data/vendor/assets/scss/components/_menu-icon.scss +9 -0
- data/vendor/assets/scss/components/_menu.scss +495 -0
- data/vendor/assets/scss/components/_off-canvas.scss +511 -0
- data/vendor/assets/scss/components/_orbit.scss +197 -0
- data/vendor/assets/scss/components/_pagination.scss +201 -0
- data/vendor/assets/scss/components/_progress-bar.scss +63 -0
- data/vendor/assets/scss/components/_responsive-embed.scss +57 -0
- data/vendor/assets/scss/components/_reveal.scss +185 -0
- data/vendor/assets/scss/components/_slider.scss +137 -0
- data/vendor/assets/scss/components/_sticky.scss +39 -0
- data/vendor/assets/scss/components/_switch.scss +261 -0
- data/vendor/assets/scss/components/_table.scss +328 -0
- data/vendor/assets/scss/components/_tabs.scss +193 -0
- data/vendor/assets/scss/components/_thumbnail.scss +67 -0
- data/vendor/assets/scss/components/_title-bar.scss +84 -0
- data/vendor/assets/scss/components/_tooltip.scss +160 -0
- data/vendor/assets/scss/components/_top-bar.scss +175 -0
- data/vendor/assets/scss/components/_visibility.scss +135 -0
- data/vendor/assets/scss/forms/_checkbox.scss +41 -0
- data/vendor/assets/scss/forms/_error.scss +89 -0
- data/vendor/assets/scss/forms/_fieldset.scss +53 -0
- data/vendor/assets/scss/forms/_forms.scss +34 -0
- data/vendor/assets/scss/forms/_help-text.scss +30 -0
- data/vendor/assets/scss/forms/_input-group.scss +142 -0
- data/vendor/assets/scss/forms/_label.scss +50 -0
- data/vendor/assets/scss/forms/_meter.scss +116 -0
- data/vendor/assets/scss/forms/_progress.scss +94 -0
- data/vendor/assets/scss/forms/_range.scss +149 -0
- data/vendor/assets/scss/forms/_select.scss +90 -0
- data/vendor/assets/scss/forms/_text.scss +179 -0
- data/vendor/assets/scss/foundation.scss +155 -0
- data/vendor/assets/scss/grid/_classes.scss +189 -0
- data/vendor/assets/scss/grid/_column.scss +78 -0
- data/vendor/assets/scss/grid/_flex-grid.scss +260 -0
- data/vendor/assets/scss/grid/_grid.scss +48 -0
- data/vendor/assets/scss/grid/_gutter.scss +67 -0
- data/vendor/assets/scss/grid/_layout.scss +76 -0
- data/vendor/assets/scss/grid/_position.scss +100 -0
- data/vendor/assets/scss/grid/_row.scss +99 -0
- data/vendor/assets/scss/grid/_size.scss +24 -0
- data/vendor/assets/scss/motion-ui/_classes.scss +109 -0
- data/vendor/assets/scss/motion-ui/_settings.scss +62 -0
- data/vendor/assets/scss/motion-ui/effects/_fade.scss +29 -0
- data/vendor/assets/scss/motion-ui/effects/_hinge.scss +66 -0
- data/vendor/assets/scss/motion-ui/effects/_shake.scss +15 -0
- data/vendor/assets/scss/motion-ui/effects/_slide.scss +42 -0
- data/vendor/assets/scss/motion-ui/effects/_spin.scss +29 -0
- data/vendor/assets/scss/motion-ui/effects/_wiggle.scss +13 -0
- data/vendor/assets/scss/motion-ui/effects/_zoom.scss +15 -0
- data/vendor/assets/scss/motion-ui/motion-ui.scss +31 -0
- data/vendor/assets/scss/motion-ui/transitions/_fade.scss +30 -0
- data/vendor/assets/scss/motion-ui/transitions/_hinge.scss +44 -0
- data/vendor/assets/scss/motion-ui/transitions/_slide.scss +43 -0
- data/vendor/assets/scss/motion-ui/transitions/_spin.scss +40 -0
- data/vendor/assets/scss/motion-ui/transitions/_zoom.scss +41 -0
- data/vendor/assets/scss/motion-ui/util/_animation.scss +7 -0
- data/vendor/assets/scss/motion-ui/util/_args.scss +15 -0
- data/vendor/assets/scss/motion-ui/util/_function.scss +94 -0
- data/vendor/assets/scss/motion-ui/util/_keyframe.scss +136 -0
- data/vendor/assets/scss/motion-ui/util/_selector.scss +23 -0
- data/vendor/assets/scss/motion-ui/util/_series.scss +57 -0
- data/vendor/assets/scss/motion-ui/util/_string.scss +36 -0
- data/vendor/assets/scss/motion-ui/util/_transition.scss +45 -0
- data/vendor/assets/scss/motion-ui/util/_unit.scss +7 -0
- data/vendor/assets/scss/prototype/_arrow.scss +36 -0
- data/vendor/assets/scss/prototype/_border-box.scss +35 -0
- data/vendor/assets/scss/prototype/_border-none.scss +35 -0
- data/vendor/assets/scss/prototype/_bordered.scss +54 -0
- data/vendor/assets/scss/prototype/_box.scss +23 -0
- data/vendor/assets/scss/prototype/_display.scss +50 -0
- data/vendor/assets/scss/prototype/_font-styling.scss +95 -0
- data/vendor/assets/scss/prototype/_list-style-type.scss +95 -0
- data/vendor/assets/scss/prototype/_overflow.scss +72 -0
- data/vendor/assets/scss/prototype/_position.scss +114 -0
- data/vendor/assets/scss/prototype/_prototype.scss +87 -0
- data/vendor/assets/scss/prototype/_relation.scss +157 -0
- data/vendor/assets/scss/prototype/_rotate.scss +31 -0
- data/vendor/assets/scss/prototype/_rounded.scss +61 -0
- data/vendor/assets/scss/prototype/_separator.scss +96 -0
- data/vendor/assets/scss/prototype/_shadow.scss +43 -0
- data/vendor/assets/scss/prototype/_sizing.scss +73 -0
- data/vendor/assets/scss/prototype/_spacing.scss +179 -0
- data/vendor/assets/scss/prototype/_text-decoration.scss +48 -0
- data/vendor/assets/scss/prototype/_text-transformation.scss +48 -0
- data/vendor/assets/scss/prototype/_text-utilities.scss +88 -0
- data/vendor/assets/scss/settings/_settings.scss +895 -0
- data/vendor/assets/scss/typography/_alignment.scss +22 -0
- data/vendor/assets/scss/typography/_base.scss +474 -0
- data/vendor/assets/scss/typography/_helpers.scss +180 -0
- data/vendor/assets/scss/typography/_print.scss +96 -0
- data/vendor/assets/scss/typography/_typography.scss +26 -0
- data/vendor/assets/scss/util/_breakpoint.scss +435 -0
- data/vendor/assets/scss/util/_color.scss +139 -0
- data/vendor/assets/scss/util/_direction.scss +31 -0
- data/vendor/assets/scss/util/_flex.scss +90 -0
- data/vendor/assets/scss/util/_math.scss +147 -0
- data/vendor/assets/scss/util/_mixins.scss +373 -0
- data/vendor/assets/scss/util/_selector.scss +41 -0
- data/vendor/assets/scss/util/_typography.scss +26 -0
- data/vendor/assets/scss/util/_unit.scss +152 -0
- data/vendor/assets/scss/util/_util.scss +14 -0
- data/vendor/assets/scss/util/_value.scss +200 -0
- data/vendor/assets/scss/vendor/normalize.scss +281 -0
- data/vendor/assets/scss/xy-grid/_cell.scss +272 -0
- data/vendor/assets/scss/xy-grid/_classes.scss +493 -0
- data/vendor/assets/scss/xy-grid/_collapse.scss +75 -0
- data/vendor/assets/scss/xy-grid/_frame.scss +86 -0
- data/vendor/assets/scss/xy-grid/_grid.scss +37 -0
- data/vendor/assets/scss/xy-grid/_gutters.scss +45 -0
- data/vendor/assets/scss/xy-grid/_layout.scss +36 -0
- data/vendor/assets/scss/xy-grid/_position.scss +55 -0
- data/vendor/assets/scss/xy-grid/_xy-grid.scss +51 -0
- metadata +342 -83
- data/update-gem.sh +0 -20
- data/vendor/assets/javascripts/foundation/foundation.abide.js +0 -426
- data/vendor/assets/javascripts/foundation/foundation.accordion.js +0 -125
- data/vendor/assets/javascripts/foundation/foundation.alert.js +0 -43
- data/vendor/assets/javascripts/foundation/foundation.clearing.js +0 -586
- data/vendor/assets/javascripts/foundation/foundation.dropdown.js +0 -468
- data/vendor/assets/javascripts/foundation/foundation.equalizer.js +0 -104
- data/vendor/assets/javascripts/foundation/foundation.interchange.js +0 -360
- data/vendor/assets/javascripts/foundation/foundation.joyride.js +0 -935
- data/vendor/assets/javascripts/foundation/foundation.js +0 -732
- data/vendor/assets/javascripts/foundation/foundation.magellan.js +0 -214
- data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +0 -225
- data/vendor/assets/javascripts/foundation/foundation.orbit.js +0 -476
- data/vendor/assets/javascripts/foundation/foundation.reveal.js +0 -522
- data/vendor/assets/javascripts/foundation/foundation.slider.js +0 -296
- data/vendor/assets/javascripts/foundation/foundation.tab.js +0 -247
- data/vendor/assets/javascripts/foundation/foundation.tooltip.js +0 -348
- data/vendor/assets/javascripts/foundation/foundation.topbar.js +0 -458
- data/vendor/assets/javascripts/foundation.js +0 -17
- data/vendor/assets/javascripts/vendor/modernizr.js +0 -1406
- data/vendor/assets/stylesheets/foundation/_functions.scss +0 -156
- data/vendor/assets/stylesheets/foundation/_settings.scss +0 -1489
- data/vendor/assets/stylesheets/foundation/components/_accordion.scss +0 -161
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +0 -128
- data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +0 -133
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +0 -132
- data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +0 -208
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +0 -261
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +0 -260
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +0 -130
- data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +0 -269
- data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +0 -51
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +0 -607
- data/vendor/assets/stylesheets/foundation/components/_global.scss +0 -566
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +0 -292
- data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +0 -460
- data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +0 -58
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +0 -220
- data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +0 -60
- data/vendor/assets/stylesheets/foundation/components/_labels.scss +0 -106
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +0 -34
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +0 -606
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +0 -388
- data/vendor/assets/stylesheets/foundation/components/_pagination.scss +0 -163
- data/vendor/assets/stylesheets/foundation/components/_panels.scss +0 -107
- data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +0 -150
- data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +0 -85
- data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +0 -177
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +0 -212
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +0 -120
- data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +0 -203
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +0 -125
- data/vendor/assets/stylesheets/foundation/components/_switches.scss +0 -241
- data/vendor/assets/stylesheets/foundation/components/_tables.scss +0 -135
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +0 -142
- data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +0 -66
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +0 -142
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +0 -745
- data/vendor/assets/stylesheets/foundation/components/_type.scss +0 -525
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +0 -425
- data/vendor/assets/stylesheets/foundation.scss +0 -42
- data/vendor/assets/stylesheets/normalize.scss +0 -424
@@ -0,0 +1,661 @@
|
|
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("jquery"));
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
5
|
+
define(["./foundation.core", "./foundation.util.keyboard", "jquery"], factory);
|
6
|
+
else if(typeof exports === 'object')
|
7
|
+
exports["foundation.accordion"] = factory(require("./foundation.core"), require("./foundation.util.keyboard"), require("jquery"));
|
8
|
+
else
|
9
|
+
root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.accordion"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"], root["jQuery"]);
|
10
|
+
})(window, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __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 = 1);
|
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
|
+
/***/ "./js/entries/plugins/foundation.accordion.js":
|
122
|
+
/*!****************************************************!*\
|
123
|
+
!*** ./js/entries/plugins/foundation.accordion.js ***!
|
124
|
+
\****************************************************/
|
125
|
+
/*! exports provided: Foundation, Accordion */
|
126
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
127
|
+
|
128
|
+
"use strict";
|
129
|
+
__webpack_require__.r(__webpack_exports__);
|
130
|
+
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
|
131
|
+
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
|
132
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]; });
|
133
|
+
|
134
|
+
/* harmony import */ var _foundation_accordion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.accordion */ "./js/foundation.accordion.js");
|
135
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Accordion", function() { return _foundation_accordion__WEBPACK_IMPORTED_MODULE_1__["Accordion"]; });
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_accordion__WEBPACK_IMPORTED_MODULE_1__["Accordion"], 'Accordion');
|
140
|
+
|
141
|
+
|
142
|
+
/***/ }),
|
143
|
+
|
144
|
+
/***/ "./js/foundation.accordion.js":
|
145
|
+
/*!************************************!*\
|
146
|
+
!*** ./js/foundation.accordion.js ***!
|
147
|
+
\************************************/
|
148
|
+
/*! exports provided: Accordion */
|
149
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
150
|
+
|
151
|
+
"use strict";
|
152
|
+
__webpack_require__.r(__webpack_exports__);
|
153
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Accordion", function() { return Accordion; });
|
154
|
+
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
|
155
|
+
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
|
156
|
+
/* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.plugin */ "./foundation.core");
|
157
|
+
/* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__);
|
158
|
+
/* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.keyboard */ "./foundation.util.keyboard");
|
159
|
+
/* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__);
|
160
|
+
|
161
|
+
|
162
|
+
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); }
|
163
|
+
|
164
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
165
|
+
|
166
|
+
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); } }
|
167
|
+
|
168
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
169
|
+
|
170
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
171
|
+
|
172
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
173
|
+
|
174
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
175
|
+
|
176
|
+
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); }
|
177
|
+
|
178
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
/**
|
185
|
+
* Accordion module.
|
186
|
+
* @module foundation.accordion
|
187
|
+
* @requires foundation.util.keyboard
|
188
|
+
*/
|
189
|
+
|
190
|
+
var Accordion =
|
191
|
+
/*#__PURE__*/
|
192
|
+
function (_Plugin) {
|
193
|
+
_inherits(Accordion, _Plugin);
|
194
|
+
|
195
|
+
function Accordion() {
|
196
|
+
_classCallCheck(this, Accordion);
|
197
|
+
|
198
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(Accordion).apply(this, arguments));
|
199
|
+
}
|
200
|
+
|
201
|
+
_createClass(Accordion, [{
|
202
|
+
key: "_setup",
|
203
|
+
|
204
|
+
/**
|
205
|
+
* Creates a new instance of an accordion.
|
206
|
+
* @class
|
207
|
+
* @name Accordion
|
208
|
+
* @fires Accordion#init
|
209
|
+
* @param {jQuery} element - jQuery object to make into an accordion.
|
210
|
+
* @param {Object} options - a plain object with settings to override the default options.
|
211
|
+
*/
|
212
|
+
value: function _setup(element, options) {
|
213
|
+
this.$element = element;
|
214
|
+
this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({}, Accordion.defaults, this.$element.data(), options);
|
215
|
+
this.className = 'Accordion'; // ie9 back compat
|
216
|
+
|
217
|
+
this._init();
|
218
|
+
|
219
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].register('Accordion', {
|
220
|
+
'ENTER': 'toggle',
|
221
|
+
'SPACE': 'toggle',
|
222
|
+
'ARROW_DOWN': 'next',
|
223
|
+
'ARROW_UP': 'previous'
|
224
|
+
});
|
225
|
+
}
|
226
|
+
/**
|
227
|
+
* Initializes the accordion by animating the preset active pane(s).
|
228
|
+
* @private
|
229
|
+
*/
|
230
|
+
|
231
|
+
}, {
|
232
|
+
key: "_init",
|
233
|
+
value: function _init() {
|
234
|
+
var _this2 = this;
|
235
|
+
|
236
|
+
this._isInitializing = true;
|
237
|
+
this.$element.attr('role', 'tablist');
|
238
|
+
this.$tabs = this.$element.children('[data-accordion-item]');
|
239
|
+
this.$tabs.attr({
|
240
|
+
'role': 'presentation'
|
241
|
+
});
|
242
|
+
this.$tabs.each(function (idx, el) {
|
243
|
+
var $el = jquery__WEBPACK_IMPORTED_MODULE_0___default()(el),
|
244
|
+
$content = $el.children('[data-tab-content]'),
|
245
|
+
id = $content[0].id || Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["GetYoDigits"])(6, 'accordion'),
|
246
|
+
linkId = el.id ? "".concat(el.id, "-label") : "".concat(id, "-label");
|
247
|
+
$el.find('a:first').attr({
|
248
|
+
'aria-controls': id,
|
249
|
+
'role': 'tab',
|
250
|
+
'id': linkId,
|
251
|
+
'aria-expanded': false,
|
252
|
+
'aria-selected': false
|
253
|
+
});
|
254
|
+
$content.attr({
|
255
|
+
'role': 'tabpanel',
|
256
|
+
'aria-labelledby': linkId,
|
257
|
+
'aria-hidden': true,
|
258
|
+
'id': id
|
259
|
+
});
|
260
|
+
});
|
261
|
+
var $initActive = this.$element.find('.is-active').children('[data-tab-content]');
|
262
|
+
|
263
|
+
if ($initActive.length) {
|
264
|
+
// Save up the initial hash to return to it later when going back in history
|
265
|
+
this._initialAnchor = $initActive.prev('a').attr('href');
|
266
|
+
|
267
|
+
this._openSingleTab($initActive);
|
268
|
+
}
|
269
|
+
|
270
|
+
this._checkDeepLink = function () {
|
271
|
+
var anchor = window.location.hash;
|
272
|
+
|
273
|
+
if (!anchor.length) {
|
274
|
+
// If we are still initializing and there is no anchor, then there is nothing to do
|
275
|
+
if (_this2._isInitializing) return; // Otherwise, move to the initial anchor
|
276
|
+
|
277
|
+
if (_this2._initialAnchor) anchor = _this2._initialAnchor;
|
278
|
+
}
|
279
|
+
|
280
|
+
var $anchor = anchor && jquery__WEBPACK_IMPORTED_MODULE_0___default()(anchor);
|
281
|
+
|
282
|
+
var $link = anchor && _this2.$element.find("[href$=\"".concat(anchor, "\"]")); // Whether the anchor element that has been found is part of this element
|
283
|
+
|
284
|
+
|
285
|
+
var isOwnAnchor = !!($anchor.length && $link.length);
|
286
|
+
|
287
|
+
if (isOwnAnchor) {
|
288
|
+
// If there is an anchor for the hash, open it (if not already active)
|
289
|
+
if ($anchor && $link && $link.length) {
|
290
|
+
if (!$link.parent('[data-accordion-item]').hasClass('is-active')) {
|
291
|
+
_this2._openSingleTab($anchor);
|
292
|
+
}
|
293
|
+
} // Otherwise, close everything
|
294
|
+
else {
|
295
|
+
_this2._closeAllTabs();
|
296
|
+
} // Roll up a little to show the titles
|
297
|
+
|
298
|
+
|
299
|
+
if (_this2.options.deepLinkSmudge) {
|
300
|
+
Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["onLoad"])(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
|
301
|
+
var offset = _this2.$element.offset();
|
302
|
+
|
303
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').animate({
|
304
|
+
scrollTop: offset.top - _this2.options.deepLinkSmudgeOffset
|
305
|
+
}, _this2.options.deepLinkSmudgeDelay);
|
306
|
+
});
|
307
|
+
}
|
308
|
+
/**
|
309
|
+
* Fires when the plugin has deeplinked at pageload
|
310
|
+
* @event Accordion#deeplink
|
311
|
+
*/
|
312
|
+
|
313
|
+
|
314
|
+
_this2.$element.trigger('deeplink.zf.accordion', [$link, $anchor]);
|
315
|
+
}
|
316
|
+
}; //use browser to open a tab, if it exists in this tabset
|
317
|
+
|
318
|
+
|
319
|
+
if (this.options.deepLink) {
|
320
|
+
this._checkDeepLink();
|
321
|
+
}
|
322
|
+
|
323
|
+
this._events();
|
324
|
+
|
325
|
+
this._isInitializing = false;
|
326
|
+
}
|
327
|
+
/**
|
328
|
+
* Adds event handlers for items within the accordion.
|
329
|
+
* @private
|
330
|
+
*/
|
331
|
+
|
332
|
+
}, {
|
333
|
+
key: "_events",
|
334
|
+
value: function _events() {
|
335
|
+
var _this = this;
|
336
|
+
|
337
|
+
this.$tabs.each(function () {
|
338
|
+
var $elem = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
|
339
|
+
var $tabContent = $elem.children('[data-tab-content]');
|
340
|
+
|
341
|
+
if ($tabContent.length) {
|
342
|
+
$elem.children('a').off('click.zf.accordion keydown.zf.accordion').on('click.zf.accordion', function (e) {
|
343
|
+
e.preventDefault();
|
344
|
+
|
345
|
+
_this.toggle($tabContent);
|
346
|
+
}).on('keydown.zf.accordion', function (e) {
|
347
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].handleKey(e, 'Accordion', {
|
348
|
+
toggle: function toggle() {
|
349
|
+
_this.toggle($tabContent);
|
350
|
+
},
|
351
|
+
next: function next() {
|
352
|
+
var $a = $elem.next().find('a').focus();
|
353
|
+
|
354
|
+
if (!_this.options.multiExpand) {
|
355
|
+
$a.trigger('click.zf.accordion');
|
356
|
+
}
|
357
|
+
},
|
358
|
+
previous: function previous() {
|
359
|
+
var $a = $elem.prev().find('a').focus();
|
360
|
+
|
361
|
+
if (!_this.options.multiExpand) {
|
362
|
+
$a.trigger('click.zf.accordion');
|
363
|
+
}
|
364
|
+
},
|
365
|
+
handled: function handled() {
|
366
|
+
e.preventDefault();
|
367
|
+
}
|
368
|
+
});
|
369
|
+
});
|
370
|
+
}
|
371
|
+
});
|
372
|
+
|
373
|
+
if (this.options.deepLink) {
|
374
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('hashchange', this._checkDeepLink);
|
375
|
+
}
|
376
|
+
}
|
377
|
+
/**
|
378
|
+
* Toggles the selected content pane's open/close state.
|
379
|
+
* @param {jQuery} $target - jQuery object of the pane to toggle (`.accordion-content`).
|
380
|
+
* @function
|
381
|
+
*/
|
382
|
+
|
383
|
+
}, {
|
384
|
+
key: "toggle",
|
385
|
+
value: function toggle($target) {
|
386
|
+
if ($target.closest('[data-accordion]').is('[disabled]')) {
|
387
|
+
console.info('Cannot toggle an accordion that is disabled.');
|
388
|
+
return;
|
389
|
+
}
|
390
|
+
|
391
|
+
if ($target.parent().hasClass('is-active')) {
|
392
|
+
this.up($target);
|
393
|
+
} else {
|
394
|
+
this.down($target);
|
395
|
+
} //either replace or update browser history
|
396
|
+
|
397
|
+
|
398
|
+
if (this.options.deepLink) {
|
399
|
+
var anchor = $target.prev('a').attr('href');
|
400
|
+
|
401
|
+
if (this.options.updateHistory) {
|
402
|
+
history.pushState({}, '', anchor);
|
403
|
+
} else {
|
404
|
+
history.replaceState({}, '', anchor);
|
405
|
+
}
|
406
|
+
}
|
407
|
+
}
|
408
|
+
/**
|
409
|
+
* Opens the accordion tab defined by `$target`.
|
410
|
+
* @param {jQuery} $target - Accordion pane to open (`.accordion-content`).
|
411
|
+
* @fires Accordion#down
|
412
|
+
* @function
|
413
|
+
*/
|
414
|
+
|
415
|
+
}, {
|
416
|
+
key: "down",
|
417
|
+
value: function down($target) {
|
418
|
+
if ($target.closest('[data-accordion]').is('[disabled]')) {
|
419
|
+
console.info('Cannot call down on an accordion that is disabled.');
|
420
|
+
return;
|
421
|
+
}
|
422
|
+
|
423
|
+
if (this.options.multiExpand) this._openTab($target);else this._openSingleTab($target);
|
424
|
+
}
|
425
|
+
/**
|
426
|
+
* Closes the tab defined by `$target`.
|
427
|
+
* It may be ignored if the Accordion options don't allow it.
|
428
|
+
*
|
429
|
+
* @param {jQuery} $target - Accordion tab to close (`.accordion-content`).
|
430
|
+
* @fires Accordion#up
|
431
|
+
* @function
|
432
|
+
*/
|
433
|
+
|
434
|
+
}, {
|
435
|
+
key: "up",
|
436
|
+
value: function up($target) {
|
437
|
+
if (this.$element.is('[disabled]')) {
|
438
|
+
console.info('Cannot call up on an accordion that is disabled.');
|
439
|
+
return;
|
440
|
+
} // Don't close the item if it is already closed
|
441
|
+
|
442
|
+
|
443
|
+
var $targetItem = $target.parent();
|
444
|
+
if (!$targetItem.hasClass('is-active')) return; // Don't close the item if there is no other active item (unless with `allowAllClosed`)
|
445
|
+
|
446
|
+
var $othersItems = $targetItem.siblings();
|
447
|
+
if (!this.options.allowAllClosed && !$othersItems.hasClass('is-active')) return;
|
448
|
+
|
449
|
+
this._closeTab($target);
|
450
|
+
}
|
451
|
+
/**
|
452
|
+
* Make the tab defined by `$target` the only opened tab, closing all others tabs.
|
453
|
+
* @param {jQuery} $target - Accordion tab to open (`.accordion-content`).
|
454
|
+
* @function
|
455
|
+
* @private
|
456
|
+
*/
|
457
|
+
|
458
|
+
}, {
|
459
|
+
key: "_openSingleTab",
|
460
|
+
value: function _openSingleTab($target) {
|
461
|
+
// Close all the others active tabs.
|
462
|
+
var $activeContents = this.$element.children('.is-active').children('[data-tab-content]');
|
463
|
+
|
464
|
+
if ($activeContents.length) {
|
465
|
+
this._closeTab($activeContents.not($target));
|
466
|
+
} // Then open the target.
|
467
|
+
|
468
|
+
|
469
|
+
this._openTab($target);
|
470
|
+
}
|
471
|
+
/**
|
472
|
+
* Opens the tab defined by `$target`.
|
473
|
+
* @param {jQuery} $target - Accordion tab to open (`.accordion-content`).
|
474
|
+
* @fires Accordion#down
|
475
|
+
* @function
|
476
|
+
* @private
|
477
|
+
*/
|
478
|
+
|
479
|
+
}, {
|
480
|
+
key: "_openTab",
|
481
|
+
value: function _openTab($target) {
|
482
|
+
var _this3 = this;
|
483
|
+
|
484
|
+
var $targetItem = $target.parent();
|
485
|
+
var targetContentId = $target.attr('aria-labelledby');
|
486
|
+
$target.attr('aria-hidden', false);
|
487
|
+
$targetItem.addClass('is-active');
|
488
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(targetContentId)).attr({
|
489
|
+
'aria-expanded': true,
|
490
|
+
'aria-selected': true
|
491
|
+
});
|
492
|
+
$target.stop().slideDown(this.options.slideSpeed, function () {
|
493
|
+
/**
|
494
|
+
* Fires when the tab is done opening.
|
495
|
+
* @event Accordion#down
|
496
|
+
*/
|
497
|
+
_this3.$element.trigger('down.zf.accordion', [$target]);
|
498
|
+
});
|
499
|
+
}
|
500
|
+
/**
|
501
|
+
* Closes the tab defined by `$target`.
|
502
|
+
* @param {jQuery} $target - Accordion tab to close (`.accordion-content`).
|
503
|
+
* @fires Accordion#up
|
504
|
+
* @function
|
505
|
+
* @private
|
506
|
+
*/
|
507
|
+
|
508
|
+
}, {
|
509
|
+
key: "_closeTab",
|
510
|
+
value: function _closeTab($target) {
|
511
|
+
var _this4 = this;
|
512
|
+
|
513
|
+
var $targetItem = $target.parent();
|
514
|
+
var targetContentId = $target.attr('aria-labelledby');
|
515
|
+
$target.attr('aria-hidden', true);
|
516
|
+
$targetItem.removeClass('is-active');
|
517
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(targetContentId)).attr({
|
518
|
+
'aria-expanded': false,
|
519
|
+
'aria-selected': false
|
520
|
+
});
|
521
|
+
$target.stop().slideUp(this.options.slideSpeed, function () {
|
522
|
+
/**
|
523
|
+
* Fires when the tab is done collapsing up.
|
524
|
+
* @event Accordion#up
|
525
|
+
*/
|
526
|
+
_this4.$element.trigger('up.zf.accordion', [$target]);
|
527
|
+
});
|
528
|
+
}
|
529
|
+
/**
|
530
|
+
* Closes all active tabs
|
531
|
+
* @fires Accordion#up
|
532
|
+
* @function
|
533
|
+
* @private
|
534
|
+
*/
|
535
|
+
|
536
|
+
}, {
|
537
|
+
key: "_closeAllTabs",
|
538
|
+
value: function _closeAllTabs() {
|
539
|
+
var $activeTabs = this.$element.children('.is-active').children('[data-tab-content]');
|
540
|
+
|
541
|
+
if ($activeTabs.length) {
|
542
|
+
this._closeTab($activeTabs);
|
543
|
+
}
|
544
|
+
}
|
545
|
+
/**
|
546
|
+
* Destroys an instance of an accordion.
|
547
|
+
* @fires Accordion#destroyed
|
548
|
+
* @function
|
549
|
+
*/
|
550
|
+
|
551
|
+
}, {
|
552
|
+
key: "_destroy",
|
553
|
+
value: function _destroy() {
|
554
|
+
this.$element.find('[data-tab-content]').stop(true).slideUp(0).css('display', '');
|
555
|
+
this.$element.find('a').off('.zf.accordion');
|
556
|
+
|
557
|
+
if (this.options.deepLink) {
|
558
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('hashchange', this._checkDeepLink);
|
559
|
+
}
|
560
|
+
}
|
561
|
+
}]);
|
562
|
+
|
563
|
+
return Accordion;
|
564
|
+
}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
|
565
|
+
|
566
|
+
Accordion.defaults = {
|
567
|
+
/**
|
568
|
+
* Amount of time to animate the opening of an accordion pane.
|
569
|
+
* @option
|
570
|
+
* @type {number}
|
571
|
+
* @default 250
|
572
|
+
*/
|
573
|
+
slideSpeed: 250,
|
574
|
+
|
575
|
+
/**
|
576
|
+
* Allow the accordion to have multiple open panes.
|
577
|
+
* @option
|
578
|
+
* @type {boolean}
|
579
|
+
* @default false
|
580
|
+
*/
|
581
|
+
multiExpand: false,
|
582
|
+
|
583
|
+
/**
|
584
|
+
* Allow the accordion to close all panes.
|
585
|
+
* @option
|
586
|
+
* @type {boolean}
|
587
|
+
* @default false
|
588
|
+
*/
|
589
|
+
allowAllClosed: false,
|
590
|
+
|
591
|
+
/**
|
592
|
+
* Link the location hash to the open pane.
|
593
|
+
* Set the location hash when the opened pane changes, and open and scroll to the corresponding pane when the location changes.
|
594
|
+
* @option
|
595
|
+
* @type {boolean}
|
596
|
+
* @default false
|
597
|
+
*/
|
598
|
+
deepLink: false,
|
599
|
+
|
600
|
+
/**
|
601
|
+
* If `deepLink` is enabled, adjust the deep link scroll to make sure the top of the accordion panel is visible
|
602
|
+
* @option
|
603
|
+
* @type {boolean}
|
604
|
+
* @default false
|
605
|
+
*/
|
606
|
+
deepLinkSmudge: false,
|
607
|
+
|
608
|
+
/**
|
609
|
+
* If `deepLinkSmudge` is enabled, animation time (ms) for the deep link adjustment
|
610
|
+
* @option
|
611
|
+
* @type {number}
|
612
|
+
* @default 300
|
613
|
+
*/
|
614
|
+
deepLinkSmudgeDelay: 300,
|
615
|
+
|
616
|
+
/**
|
617
|
+
* If `deepLinkSmudge` is enabled, the offset for scrollToTtop to prevent overlap by a sticky element at the top of the page
|
618
|
+
* @option
|
619
|
+
* @type {number}
|
620
|
+
* @default 0
|
621
|
+
*/
|
622
|
+
deepLinkSmudgeOffset: 0,
|
623
|
+
|
624
|
+
/**
|
625
|
+
* If `deepLink` is enabled, update the browser history with the open accordion
|
626
|
+
* @option
|
627
|
+
* @type {boolean}
|
628
|
+
* @default false
|
629
|
+
*/
|
630
|
+
updateHistory: false
|
631
|
+
};
|
632
|
+
|
633
|
+
|
634
|
+
/***/ }),
|
635
|
+
|
636
|
+
/***/ 1:
|
637
|
+
/*!**********************************************************!*\
|
638
|
+
!*** multi ./js/entries/plugins/foundation.accordion.js ***!
|
639
|
+
\**********************************************************/
|
640
|
+
/*! no static exports found */
|
641
|
+
/***/ (function(module, exports, __webpack_require__) {
|
642
|
+
|
643
|
+
module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundation-sites/js/entries/plugins/foundation.accordion.js */"./js/entries/plugins/foundation.accordion.js");
|
644
|
+
|
645
|
+
|
646
|
+
/***/ }),
|
647
|
+
|
648
|
+
/***/ "jquery":
|
649
|
+
/*!********************************************************************************************!*\
|
650
|
+
!*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
|
651
|
+
\********************************************************************************************/
|
652
|
+
/*! no static exports found */
|
653
|
+
/***/ (function(module, exports) {
|
654
|
+
|
655
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
|
656
|
+
|
657
|
+
/***/ })
|
658
|
+
|
659
|
+
/******/ });
|
660
|
+
});
|
661
|
+
//# sourceMappingURL=foundation.accordion.js.map
|