index.js 1.25 KB
Newer Older
1
2
3
4
5
import Alert from './alert'
import Button from './button'
import Carousel from './carousel'
import Collapse from './collapse'
import Dropdown from './dropdown'
6
import EventHandler from './dom/eventHandler'
7
import Modal from './modal'
8
import Polyfill from './dom/polyfill'
9
import Popover from './popover'
10
import ScrollSpy from './scrollspy'
11
import Tab from './tab'
12
import Toast from './toast'
13
14
15
16
17
import Tooltip from './tooltip'
import Util from './util'

/**
 * --------------------------------------------------------------------------
XhmikosR's avatar
XhmikosR committed
18
 * Bootstrap (v4.3.1): index.js
19
20
21
22
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * --------------------------------------------------------------------------
 */

23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* istanbul ignore next */
// focusin and focusout polyfill
if (Polyfill.focusIn) {
  (() => {
    function listenerFocus(event) {
      EventHandler.trigger(event.target, 'focusin')
    }
    function listenerBlur(event) {
      EventHandler.trigger(event.target, 'focusout')
    }
    EventHandler.on(document, 'focus', 'input', listenerFocus)
    EventHandler.on(document, 'blur', 'input', listenerBlur)
  })()
}

38
39
40
41
42
43
44
45
46
export {
  Util,
  Alert,
  Button,
  Carousel,
  Collapse,
  Dropdown,
  Modal,
  Popover,
47
  ScrollSpy,
48
  Tab,
49
  Toast,
50
51
  Tooltip
}