Skip to content

Commit e536ab9

Browse files
committed
fix bower import issue
1 parent b34d9d5 commit e536ab9

File tree

5 files changed

+61
-100
lines changed

5 files changed

+61
-100
lines changed

dist/design-system-react.js

Lines changed: 48 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ return /******/ (function(modules) { // webpackBootstrap
581581
/* 4 */
582582
/***/ function(module, exports, __webpack_require__) {
583583

584-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! tether-drop 1.4.0 */
584+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! tether-drop 1.2.2 */
585585

586586
(function(root, factory) {
587587
if (true) {
@@ -594,6 +594,7 @@ return /******/ (function(modules) { // webpackBootstrap
594594
}(this, function(Tether) {
595595

596596
/* global Tether */
597+
597598
'use strict';
598599

599600
var _bind = Function.prototype.bind;
@@ -602,11 +603,11 @@ return /******/ (function(modules) { // webpackBootstrap
602603

603604
var _createClass = (function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
604605

605-
var _get = function get(_x2, _x3, _x4) { var _again = true; _function: while (_again) { var object = _x2, property = _x3, receiver = _x4; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x2 = parent; _x3 = property; _x4 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };
606+
var _get = function get(_x2, _x3, _x4) { var _again = true; _function: while (_again) { var object = _x2, property = _x3, receiver = _x4; desc = parent = getter = undefined; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x2 = parent; _x3 = property; _x4 = receiver; _again = true; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };
606607

607608
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
608609

609-
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
610+
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
610611

611612
var _Tether$Utils = Tether.Utils;
612613
var extend = _Tether$Utils.extend;
@@ -677,7 +678,7 @@ return /******/ (function(modules) { // webpackBootstrap
677678
// copy of drop which won't interact with other copies on the page (beyond calling the document events).
678679

679680
function createContext() {
680-
var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
681+
var options = arguments[0] === undefined ? {} : arguments[0];
681682

682683
var drop = function drop() {
683684
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
@@ -703,13 +704,6 @@ return /******/ (function(modules) { // webpackBootstrap
703704
constrainToWindow: true,
704705
classes: '',
705706
remove: false,
706-
openDelay: 0,
707-
closeDelay: 50,
708-
// inherited from openDelay and closeDelay if not explicitly defined
709-
focusDelay: null,
710-
blurDelay: null,
711-
hoverOpenDelay: null,
712-
hoverCloseDelay: null,
713707
tetherOptions: {}
714708
}
715709
};
@@ -743,8 +737,6 @@ return /******/ (function(modules) { // webpackBootstrap
743737
};
744738

745739
var DropInstance = (function (_Evented) {
746-
_inherits(DropInstance, _Evented);
747-
748740
function DropInstance(opts) {
749741
_classCallCheck(this, DropInstance);
750742

@@ -756,22 +748,6 @@ return /******/ (function(modules) { // webpackBootstrap
756748
throw new Error('Drop Error: You must provide a target.');
757749
}
758750

759-
var dataPrefix = 'data-' + drop.classPrefix;
760-
761-
var contentAttr = this.target.getAttribute(dataPrefix);
762-
if (contentAttr) {
763-
this.options.content = contentAttr;
764-
}
765-
766-
var attrsOverride = ['position', 'openOn'];
767-
for (var i = 0; i < attrsOverride.length; ++i) {
768-
769-
var override = this.target.getAttribute(dataPrefix + '-' + attrsOverride[i]);
770-
if (override) {
771-
this.options[attrsOverride[i]] = override;
772-
}
773-
}
774-
775751
if (this.options.classes && this.options.addTargetClasses !== false) {
776752
addClass(this.target, this.options.classes);
777753
}
@@ -786,6 +762,8 @@ return /******/ (function(modules) { // webpackBootstrap
786762
this.setupTether();
787763
}
788764

765+
_inherits(DropInstance, _Evented);
766+
789767
_createClass(DropInstance, [{
790768
key: '_on',
791769
value: function _on(element, event, handler) {
@@ -938,43 +916,36 @@ return /******/ (function(modules) { // webpackBootstrap
938916
}
939917
}
940918

941-
var inTimeout = null;
942-
var outTimeout = null;
919+
if (events.indexOf('hover') >= 0) {
920+
(function () {
921+
var onUs = false;
943922

944-
var inHandler = function inHandler(event) {
945-
if (outTimeout !== null) {
946-
clearTimeout(outTimeout);
947-
} else {
948-
inTimeout = setTimeout(function () {
923+
var over = function over(event) {
924+
onUs = true;
949925
_this2.open(event);
950-
inTimeout = null;
951-
}, (event.type === 'focus' ? _this2.options.focusDelay : _this2.options.hoverOpenDelay) || _this2.options.openDelay);
952-
}
953-
};
926+
};
954927

955-
var outHandler = function outHandler(event) {
956-
if (inTimeout !== null) {
957-
clearTimeout(inTimeout);
958-
} else {
959-
outTimeout = setTimeout(function () {
960-
_this2.close(event);
961-
outTimeout = null;
962-
}, (event.type === 'blur' ? _this2.options.blurDelay : _this2.options.hoverCloseDelay) || _this2.options.closeDelay);
963-
}
964-
};
928+
var outTimeout = null;
929+
var out = function out(event) {
930+
onUs = false;
965931

966-
if (events.indexOf('hover') >= 0) {
967-
this._on(this.target, 'mouseover', inHandler);
968-
this._on(this.drop, 'mouseover', inHandler);
969-
this._on(this.target, 'mouseout', outHandler);
970-
this._on(this.drop, 'mouseout', outHandler);
971-
}
932+
if (typeof outTimeout !== 'undefined') {
933+
clearTimeout(outTimeout);
934+
}
935+
936+
outTimeout = setTimeout(function () {
937+
if (!onUs) {
938+
_this2.close(event);
939+
}
940+
outTimeout = null;
941+
}, 50);
942+
};
972943

973-
if (events.indexOf('focus') >= 0) {
974-
this._on(this.target, 'focus', inHandler);
975-
this._on(this.drop, 'focus', inHandler);
976-
this._on(this.target, 'blur', outHandler);
977-
this._on(this.drop, 'blur', outHandler);
944+
_this2._on(_this2.target, 'mouseover', over);
945+
_this2._on(_this2.drop, 'mouseover', over);
946+
_this2._on(_this2.target, 'mouseout', out);
947+
_this2._on(_this2.drop, 'mouseout', out);
948+
})();
978949
}
979950
}
980951
}, {
@@ -998,7 +969,6 @@ return /******/ (function(modules) { // webpackBootstrap
998969
value: function open(event) {
999970
var _this3 = this;
1000971

1001-
/* eslint no-unused-vars: 0 */
1002972
if (this.isOpened()) {
1003973
return;
1004974
}
@@ -1190,10 +1160,9 @@ return /******/ (function(modules) { // webpackBootstrap
11901160
return parent;
11911161
}
11921162

1193-
var _style = style;
1194-
var overflow = _style.overflow;
1195-
var overflowX = _style.overflowX;
1196-
var overflowY = _style.overflowY;
1163+
var overflow = style.overflow;
1164+
var overflowX = style.overflowX;
1165+
var overflowY = style.overflowY;
11971166

11981167
if (/(auto|scroll)/.test(overflow + overflowY + overflowX)) {
11991168
if (position !== 'absolute' || ['relative', 'absolute', 'fixed'].indexOf(style.position) >= 0) {
@@ -1475,11 +1444,6 @@ return /******/ (function(modules) { // webpackBootstrap
14751444
value: function trigger(event) {
14761445
if (typeof this.bindings !== 'undefined' && this.bindings[event]) {
14771446
var i = 0;
1478-
1479-
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1480-
args[_key - 1] = arguments[_key];
1481-
}
1482-
14831447
while (i < this.bindings[event].length) {
14841448
var _bindings$event$i = this.bindings[event][i];
14851449
var handler = _bindings$event$i.handler;
@@ -1491,6 +1455,10 @@ return /******/ (function(modules) { // webpackBootstrap
14911455
context = this;
14921456
}
14931457

1458+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1459+
args[_key - 1] = arguments[_key];
1460+
}
1461+
14941462
handler.apply(context, args);
14951463

14961464
if (once) {
@@ -1554,9 +1522,6 @@ return /******/ (function(modules) { // webpackBootstrap
15541522
}
15551523

15561524
var transformKey = (function () {
1557-
if (typeof document === 'undefined') {
1558-
return '';
1559-
}
15601525
var el = document.createElement('div');
15611526

15621527
var transforms = ['transform', 'webkitTransform', 'OTransform', 'MozTransform', 'msTransform'];
@@ -1614,11 +1579,9 @@ return /******/ (function(modules) { // webpackBootstrap
16141579
lastDuration = now() - lastCall;
16151580
};
16161581

1617-
if (typeof window !== 'undefined') {
1618-
['resize', 'scroll', 'touchmove'].forEach(function (event) {
1619-
window.addEventListener(event, tick);
1620-
});
1621-
}
1582+
['resize', 'scroll', 'touchmove'].forEach(function (event) {
1583+
window.addEventListener(event, tick);
1584+
});
16221585
})();
16231586

16241587
var MIRROR_LR = {
@@ -2213,10 +2176,10 @@ return /******/ (function(modules) { // webpackBootstrap
22132176

22142177
return true;
22152178
}
2216-
2217-
// THE ISSUE
22182179
}, {
22192180
key: 'move',
2181+
2182+
// THE ISSUE
22202183
value: function move(pos) {
22212184
var _this6 = this;
22222185

@@ -2275,7 +2238,7 @@ return /******/ (function(modules) { // webpackBootstrap
22752238
if (transformKey !== 'msTransform') {
22762239
// The Z transform will keep this in the GPU (faster, and prevents artifacts),
22772240
// but IE9 doesn't support 3d transforms and will choke.
2278-
css[transformKey] += " translateZ(0)";
2241+
css[transformKey] += ' translateZ(0)';
22792242
}
22802243
} else {
22812244
if (_same.top) {
@@ -2839,12 +2802,10 @@ return /******/ (function(modules) { // webpackBootstrap
28392802
shift = shift.split(' ');
28402803
shift[1] = shift[1] || shift[0];
28412804

2842-
var _shift = shift;
2843-
2844-
var _shift2 = _slicedToArray(_shift, 2);
2805+
var _shift = _slicedToArray(shift, 2);
28452806

2846-
shiftTop = _shift2[0];
2847-
shiftLeft = _shift2[1];
2807+
shiftTop = _shift[0];
2808+
shiftLeft = _shift[1];
28482809

28492810
shiftTop = parseFloat(shiftTop, 10);
28502811
shiftLeft = parseFloat(shiftLeft, 10);

dist/design-system-react.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)