@ibot/ibot
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -6,3 +6,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
import Icon from '../icon'; | ||
import Util from '../util'; | ||
import { trimList } from '../util'; | ||
@@ -83,4 +83,2 @@ var classCallCheck = function classCallCheck(instance, Constructor) { | ||
var trimList = Util.trimList; | ||
var CLASS_MAP = { | ||
@@ -87,0 +85,0 @@ primary: 'PrimaryButton', |
@@ -6,3 +6,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
import PropTypes from 'prop-types'; | ||
import Util from '../util'; | ||
import { $, SVG, trimList } from '../util'; | ||
@@ -257,6 +257,2 @@ // Generated from: | ||
var trimList = Util.trimList; | ||
var $ = Util.$; | ||
var SVG = Util.SVG; | ||
var MENU_ROOT_ID = 'MB_DROPDOWN_MENU_ROOT'; | ||
@@ -468,3 +464,2 @@ var $menuRoot = document.getElementById(MENU_ROOT_ID) || Object.assign(document.createElement('div'), { id: MENU_ROOT_ID }); | ||
}; | ||
var DropdownMenu = function (_PureComponent2) { | ||
@@ -499,4 +494,3 @@ inherits(DropdownMenu, _PureComponent2); | ||
_this2.onScrollOutside = function (_ref4) { | ||
var target = _ref4.target; | ||
_this2.onScrollOutside = function () { | ||
var $menu = _this2.$menu; | ||
@@ -527,5 +521,5 @@ var _this2$props2 = _this2.props, | ||
key: 'componentWillReceiveProps', | ||
value: function componentWillReceiveProps(_ref5) { | ||
var willBeOpen = _ref5.isOpen, | ||
$opener = _ref5.$opener; | ||
value: function componentWillReceiveProps(_ref4) { | ||
var willBeOpen = _ref4.isOpen, | ||
$opener = _ref4.$opener; | ||
var $menu = this.$menu; | ||
@@ -614,15 +608,15 @@ var _props2 = this.props, | ||
function positionDropdown() { | ||
var _ref6 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, | ||
$opener = _ref6.$opener, | ||
$menu = _ref6.$menu, | ||
_ref6$position = _ref6.position, | ||
position = _ref6$position === undefined ? 'bottom' : _ref6$position, | ||
_ref6$inflexible = _ref6.inflexible, | ||
inflexible = _ref6$inflexible === undefined ? false : _ref6$inflexible, | ||
_ref6$shouldSetMinWid = _ref6.shouldSetMinWidth, | ||
shouldSetMinWidth = _ref6$shouldSetMinWid === undefined ? false : _ref6$shouldSetMinWid, | ||
_ref6$shouldSetMaxHei = _ref6.shouldSetMaxHeight, | ||
shouldSetMaxHeight = _ref6$shouldSetMaxHei === undefined ? false : _ref6$shouldSetMaxHei, | ||
_ref6$shouldAlignLeft = _ref6.shouldAlignLeft, | ||
shouldAlignLeft = _ref6$shouldAlignLeft === undefined ? false : _ref6$shouldAlignLeft; | ||
var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, | ||
$opener = _ref5.$opener, | ||
$menu = _ref5.$menu, | ||
_ref5$position = _ref5.position, | ||
position = _ref5$position === undefined ? 'bottom' : _ref5$position, | ||
_ref5$inflexible = _ref5.inflexible, | ||
inflexible = _ref5$inflexible === undefined ? false : _ref5$inflexible, | ||
_ref5$shouldSetMinWid = _ref5.shouldSetMinWidth, | ||
shouldSetMinWidth = _ref5$shouldSetMinWid === undefined ? false : _ref5$shouldSetMinWid, | ||
_ref5$shouldSetMaxHei = _ref5.shouldSetMaxHeight, | ||
shouldSetMaxHeight = _ref5$shouldSetMaxHei === undefined ? false : _ref5$shouldSetMaxHei, | ||
_ref5$shouldAlignLeft = _ref5.shouldAlignLeft, | ||
shouldAlignLeft = _ref5$shouldAlignLeft === undefined ? false : _ref5$shouldAlignLeft; | ||
@@ -694,4 +688,2 @@ if (!$opener || !$menu) return; | ||
var index = Object.assign(Dropdown, { positionDropdown: positionDropdown }); | ||
export default index; | ||
export { positionDropdown };export default Dropdown; |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import Util from '../util'; | ||
import { trimList } from '../util'; | ||
@@ -66,4 +66,2 @@ var duoList = [{ | ||
var trimList = Util.trimList; | ||
var ICON_SET_LIST = ['dora', 'mb', 'icon', 'fa', 'md', 'ci']; | ||
@@ -70,0 +68,0 @@ var LIGA_ICON_SET_LIST = ['dora', 'md']; |
@@ -9,2 +9,4 @@ import _Button from './button/index.js'; | ||
export { _Form as Form }; | ||
import _Guide from './guide/index.js'; | ||
export { _Guide as Guide }; | ||
import _Icon from './icon/index.js'; | ||
@@ -11,0 +13,0 @@ export { _Icon as Icon }; |
@@ -9,3 +9,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
import Icon from '../icon'; | ||
import Util from '../util'; | ||
import { $, trimList } from '../util'; | ||
@@ -246,5 +246,2 @@ // Generated from: | ||
var trimList = Util.trimList; | ||
var $ = Util.$; | ||
var OPEN_MODAL_STACK = []; | ||
@@ -251,0 +248,0 @@ var _window = window; |
@@ -6,3 +6,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
import Icon from '../icon'; | ||
import Util from '../util'; | ||
import { trimList } from '../util'; | ||
@@ -57,4 +57,2 @@ var classCallCheck = function classCallCheck(instance, Constructor) { | ||
var trimList = Util.trimList; | ||
var Switch = function (_PureComponent) { | ||
@@ -61,0 +59,0 @@ inherits(Switch, _PureComponent); |
@@ -82,6 +82,10 @@ /** | ||
var DROPDOWN_ARROW = "<svg width=\"8\" height=\"3\" viewBox=\"0 0 8 3\"><path d=\"M4.654.233L8 3H0L3.383.23c.37-.303.902-.302 1.27.003z\" /></svg>"; | ||
var GUIDE_ARROW = "<svg width=\"27\" height=\"8\"><path d=\"M15.069 6.66a3.27 3.27 0 0 1-3.13 0L0 0h27.008l-11.94 6.66z\" /></svg>"; | ||
var CLOSE_FILLED = "<svg width=\"16\" height=\"16\"><path d=\"M8 6.945L6.218 5.163a.688.688 0 0 0-.973.972l1.783 1.782L5.245 9.7a.688.688 0 0 0 .973.972L8 8.89l1.782 1.782a.688.688 0 0 0 .973-.972L8.972 7.917l1.783-1.782a.688.688 0 0 0-.973-.972L8 6.945zm-5.185 6.24a7.333 7.333 0 1 1 10.37-10.37 7.333 7.333 0 0 1-10.37 10.37z\"/></svg>"; | ||
var SVG = Object.freeze({ | ||
var svg = Object.freeze({ | ||
INPUT_ARROW: INPUT_ARROW, | ||
DROPDOWN_ARROW: DROPDOWN_ARROW | ||
DROPDOWN_ARROW: DROPDOWN_ARROW, | ||
GUIDE_ARROW: GUIDE_ARROW, | ||
CLOSE_FILLED: CLOSE_FILLED | ||
}); | ||
@@ -175,4 +179,2 @@ | ||
var index = { EMAIL_REGEX: EMAIL_REGEX, trimList: trimList, getOtherProps: getOtherProps, $: $, $$: $$, SVG: SVG }; | ||
export default index; | ||
export { EMAIL_REGEX, trimList, getOtherProps, $, $$, svg as SVG }; |
{ | ||
"name": "@ibot/ibot", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "module": "lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1421314
57
12067
5