UNPKG

@coreui/coreui-pro

Version:

UI Kit built on top of Bootstrap 4

48 lines (38 loc) 1.38 kB
import $ from 'jquery' import AjaxLoad from './ajax-load' import AsideMenu from './aside-menu' import Sidebar from './sidebar' /** * -------------------------------------------------------------------------- * CoreUI (v2.1.14): index.js * Licensed under MIT (https://coreui.io/license) * -------------------------------------------------------------------------- */ (($) => { if (typeof $ === 'undefined') { throw new TypeError('CoreUI\'s JavaScript requires jQuery. jQuery must be included before CoreUI\'s JavaScript.') } const version = $.fn.jquery.split(' ')[0].split('.') const minMajor = 1 const ltMajor = 2 const minMinor = 9 const minPatch = 1 const maxMajor = 4 if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) { throw new Error('CoreUI\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0') } })($) export { AjaxLoad, AsideMenu, Sidebar } // Global functions import getStyle from './utilities/get-style' window.getStyle = getStyle import hexToRgb from './utilities/hex-to-rgb' window.hexToRgb = hexToRgb import hexToRgba from './utilities/hex-to-rgba' window.hexToRgba = hexToRgba import rgbToHex from './utilities/rgb-to-hex' window.rgbToHex = rgbToHex