@chaoswise/ui 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/lib/AbreastLayout/CollapsedIcon.js +1 -1
  2. package/lib/AbreastLayout/index.js +9 -9
  3. package/lib/Ace/ace.js +12 -13
  4. package/lib/Ace/diff.js +13 -14
  5. package/lib/Ace/split.js +12 -13
  6. package/lib/AdaptiveLayout/index.js +11 -11
  7. package/lib/Alert/index.js +3 -3
  8. package/lib/AlgorithmChart/index.js +3 -3
  9. package/lib/Antd/Drawer.js +9 -9
  10. package/lib/Antd4Form/FieldList.js +4 -4
  11. package/lib/Antd4Form/Form.js +7 -7
  12. package/lib/Antd4Form/FormItem.js +5 -5
  13. package/lib/Antd4Form/FormItemChildren.js +13 -14
  14. package/lib/Antd4Form/useForm.js +6 -6
  15. package/lib/Badge/index.js +1 -1
  16. package/lib/BasicLayout/Breadcrumb.js +5 -5
  17. package/lib/BasicLayout/Footer.js +3 -3
  18. package/lib/BasicLayout/Sider.js +5 -5
  19. package/lib/BasicLayout/index.js +7 -7
  20. package/lib/Button/index.js +3 -3
  21. package/lib/CWCascader/Cascader/index.js +10 -10
  22. package/lib/CWCascader/index.js +1 -1
  23. package/lib/CWCascader/rc-cascader/Cascader.js +10 -10
  24. package/lib/CWCascader/rc-cascader/OptionList/Checkbox.js +2 -2
  25. package/lib/CWCascader/rc-cascader/OptionList/Column.js +12 -12
  26. package/lib/CWCascader/rc-cascader/OptionList/index.js +10 -10
  27. package/lib/CWCascader/rc-cascader/OptionList/useActive.js +4 -4
  28. package/lib/CWCascader/rc-cascader/OptionList/useKeyboard.js +7 -7
  29. package/lib/CWCascader/rc-cascader/hooks/useDisplayValues.js +5 -5
  30. package/lib/CWCascader/rc-cascader/hooks/useEntities.js +2 -2
  31. package/lib/CWCascader/rc-cascader/hooks/useSearchConfig.js +2 -2
  32. package/lib/CWCascader/rc-cascader/hooks/useSearchOptions.js +7 -7
  33. package/lib/CWMessage/MessageContent/TabList/index.js +5 -5
  34. package/lib/CWMessage/MessageContent/index.js +10 -10
  35. package/lib/CWMessage/index.js +21 -18
  36. package/lib/CWRadioTabs/index.js +7 -7
  37. package/lib/CWRangePicker/DropdownMenu/index.js +11 -11
  38. package/lib/CWRangePicker/Refresh/index.js +8 -8
  39. package/lib/CWRangePicker/assets/Calendar.js +1 -1
  40. package/lib/CWRangePicker/assets/Calendar2.js +1 -1
  41. package/lib/CWRangePicker/assets/Recover.js +1 -1
  42. package/lib/CWRangePicker/assets/Refresh1.js +1 -1
  43. package/lib/CWRangePicker/assets/Refresh2.js +1 -1
  44. package/lib/CWRangePicker/assets/Refresh3.js +1 -1
  45. package/lib/CWRangePicker/assets/live.js +1 -1
  46. package/lib/CWRangePicker/assets/more.js +1 -1
  47. package/lib/CWRangePicker/index.js +12 -12
  48. package/lib/CWRangePicker/utils/index.js +6 -6
  49. package/lib/CWSelect/DragTag/index.js +4 -4
  50. package/lib/CWSelect/antd-select.js +17 -18
  51. package/lib/CWSelect/index.js +12 -12
  52. package/lib/CWTable/CWTable.js +16 -16
  53. package/lib/CWTable/EditLine.js +12 -12
  54. package/lib/CWTable/Filter.js +4 -4
  55. package/lib/CWTable/FormTable.js +2 -2
  56. package/lib/CWTable/header.js +7 -7
  57. package/lib/CWTable/icon/DownGraySvg.js +1 -1
  58. package/lib/CWTable/icon/DownLightSvg.js +1 -1
  59. package/lib/CWTable/icon/SortSvg.js +1 -1
  60. package/lib/CWTable/icon/SortingSvg.js +1 -1
  61. package/lib/CWTable/icon/UpGraySvg.js +1 -1
  62. package/lib/CWTable/icon/UpLightSvg.js +1 -1
  63. package/lib/CWTable/index.js +1 -1
  64. package/lib/CWTree/assets/Drag.js +1 -1
  65. package/lib/CWTree/index.js +9 -9
  66. package/lib/CWTree/utils/index.js +2 -2
  67. package/lib/CWUpload/index.js +1 -1
  68. package/lib/CWUpload/upload/DragList.js +6 -6
  69. package/lib/CWUpload/upload/Upload.js +19 -20
  70. package/lib/CWUpload/upload/UploadList.js +12 -13
  71. package/lib/CardSelect/index.js +7 -7
  72. package/lib/Cascader/index.js +1 -1
  73. package/lib/ChangeIcon/index.js +4 -4
  74. package/lib/Checkbox/Checkbox.js +20 -21
  75. package/lib/Checkbox/Group.js +27 -28
  76. package/lib/Checkbox/assets/duigou1.js +1 -1
  77. package/lib/Checkbox/assets/duigou2.js +1 -1
  78. package/lib/CitySelect/index.js +1 -1
  79. package/lib/Collapse/index.js +3 -3
  80. package/lib/ColorPicker/SketchPicker/components/common/Alpha.js +16 -17
  81. package/lib/ColorPicker/SketchPicker/components/common/Checkboard.js +2 -2
  82. package/lib/ColorPicker/SketchPicker/components/common/ColorWrap.js +15 -16
  83. package/lib/ColorPicker/SketchPicker/components/common/EditableInput.js +19 -20
  84. package/lib/ColorPicker/SketchPicker/components/common/Hue.js +15 -16
  85. package/lib/ColorPicker/SketchPicker/components/common/Saturation.js +15 -16
  86. package/lib/ColorPicker/SketchPicker/components/common/Swatch.js +3 -3
  87. package/lib/ColorPicker/SketchPicker/components/sketch/SketchPresetColors.js +1 -1
  88. package/lib/ColorPicker/SketchPicker/components/sketch/index.js +2 -2
  89. package/lib/ColorPicker/SketchPicker/helpers/interaction.js +16 -17
  90. package/lib/ColorPicker/index.js +7 -7
  91. package/lib/ConfigProvider/ConfigProvider.js +9 -9
  92. package/lib/CustomNotification/PurePanel.js +126 -0
  93. package/lib/CustomNotification/index.js +210 -0
  94. package/lib/CustomNotification/index.less +102 -0
  95. package/lib/CustomNotification/useNotification.js +195 -0
  96. package/lib/CustomNotification/util.js +58 -0
  97. package/lib/CustomScrollBar/index.js +5 -5
  98. package/lib/DatePicker/DatePicker.js +1 -1
  99. package/lib/DatePicker/MonthPicker.js +1 -1
  100. package/lib/DatePicker/QuarterPicker.js +1 -1
  101. package/lib/DatePicker/RangePicker.js +1 -1
  102. package/lib/DatePicker/TimePicker.js +1 -1
  103. package/lib/DatePicker/WeekPicker.js +1 -1
  104. package/lib/DatePicker/YearPicker.js +1 -1
  105. package/lib/DateRangePicker/RangeDatePicker.js +7 -7
  106. package/lib/DateRangePicker/RangeDateTimePicker.js +10 -10
  107. package/lib/DateRangePicker/components/ExtraTimeFooter.js +3 -3
  108. package/lib/DateRangePicker/index.js +3 -3
  109. package/lib/Documentation/Tocify.js +5 -6
  110. package/lib/Documentation/index.js +6 -6
  111. package/lib/Drawer/index.js +9 -9
  112. package/lib/DropdownDatePicker/DropdownMenu/index.js +4 -4
  113. package/lib/DropdownDatePicker/assets/Calendar2.js +1 -1
  114. package/lib/DropdownDatePicker/assets/Recover.js +1 -1
  115. package/lib/DropdownDatePicker/assets/live.js +1 -1
  116. package/lib/DropdownDatePicker/assets/more.js +1 -1
  117. package/lib/DropdownDatePicker/index.js +9 -9
  118. package/lib/DropdownDatePicker/utils/index.js +6 -6
  119. package/lib/EchartsArea/index.js +5 -5
  120. package/lib/EchartsBar/index.js +5 -5
  121. package/lib/EchartsBarRow/index.js +3 -3
  122. package/lib/EchartsBase/index.js +5 -5
  123. package/lib/EchartsLine/index.js +5 -5
  124. package/lib/EchartsPie/index.js +3 -3
  125. package/lib/EchartsRing/index.js +3 -3
  126. package/lib/EditableText/index.js +6 -6
  127. package/lib/Empty/index.js +3 -3
  128. package/lib/ErrorBoundary/history.js +6 -8
  129. package/lib/ErrorBoundary/index.js +15 -16
  130. package/lib/FilterDropDown/DragList.js +7 -7
  131. package/lib/FilterDropDown/assets/ShowSvgIcon.js +1 -1
  132. package/lib/FilterDropDown/index.js +7 -7
  133. package/lib/Flow/BasicLayout/Chain.js +5 -5
  134. package/lib/Flow/Flow.js +4 -4
  135. package/lib/Flow/components/PluginWrapper.js +2 -2
  136. package/lib/Flow/layouts/callChain.js +2 -2
  137. package/lib/Flow/plugins/CommandLifeCycle.js +5 -6
  138. package/lib/Flow/plugins/InitSideBarPlugin.js +5 -6
  139. package/lib/Flow/plugins/InitToolBarPlugin.js +5 -6
  140. package/lib/Footer/index.js +2 -2
  141. package/lib/Form/FormItem.js +5 -5
  142. package/lib/Form4/index.js +1 -1
  143. package/lib/FormItemWrapper/index.js +5 -5
  144. package/lib/Formily/FieldList/index.js +4 -4
  145. package/lib/Formily/FormItem/index.js +5 -5
  146. package/lib/Formily/FormItem/items/formItemWrapper.js +2 -2
  147. package/lib/Formily/MegaLayout/index.js +3 -3
  148. package/lib/Formily/formily/index.js +4 -4
  149. package/lib/Formily/subscribeFields/index.js +8 -8
  150. package/lib/GlobalTabs/TabPane.js +2 -2
  151. package/lib/GlobalTabs/index.js +5 -5
  152. package/lib/Header/CommonDropMenu.js +7 -7
  153. package/lib/Header/CommonIcon.js +2 -2
  154. package/lib/Header/LocaleSwitcher.js +3 -3
  155. package/lib/Header/Message/index.js +2 -2
  156. package/lib/Header/UserSetting/TenantList.js +1 -1
  157. package/lib/Header/UserSetting/TenantTree.js +1 -1
  158. package/lib/Header/UserSetting/index.js +4 -4
  159. package/lib/Header/UserSetting/utils.js +2 -2
  160. package/lib/Header/index.js +4 -4
  161. package/lib/IconSelect/components/SearchIcon/index.js +4 -4
  162. package/lib/IconSelect/index.js +4 -4
  163. package/lib/ImagePreview/index.js +3 -3
  164. package/lib/Input/InputComponent.js +9 -9
  165. package/lib/Input/index.js +2 -2
  166. package/lib/InputNumber/index.js +3 -3
  167. package/lib/IntersectionInput/index.js +9 -9
  168. package/lib/Joyride/index.js +9 -9
  169. package/lib/LayoutBreadcrumb/index.js +5 -5
  170. package/lib/LayoutWrapper/Footer.js +3 -3
  171. package/lib/LayoutWrapper/Header.js +3 -3
  172. package/lib/LayoutWrapper/LeftArrow.js +1 -1
  173. package/lib/LayoutWrapper/index.js +5 -5
  174. package/lib/LazyLoadingTreeSelect/index.js +12 -12
  175. package/lib/Menu/index.js +1 -1
  176. package/lib/Menu/menu/MenuItem.js +11 -12
  177. package/lib/Menu/menu/SubMenu.js +11 -12
  178. package/lib/Menu/menu/index.js +14 -16
  179. package/lib/Modal/Modal.js +19 -20
  180. package/lib/Modal/assets/Close.js +1 -1
  181. package/lib/Modal/custom-backup/entiretyDrag.js +3 -3
  182. package/lib/Modal/index.js +5 -5
  183. package/lib/ModuleFederation/ErrorBoundary/index.js +11 -12
  184. package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +12 -12
  185. package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +3 -3
  186. package/lib/ModuleTitle/index.js +3 -3
  187. package/lib/OutlineNumber/index.js +3 -3
  188. package/lib/Pagination/index.js +9 -9
  189. package/lib/PolymerizationSearch/index.js +8 -8
  190. package/lib/Popconfirm/index.js +3 -3
  191. package/lib/Progress/index.js +3 -3
  192. package/lib/QuickRangePicker/index.js +9 -9
  193. package/lib/QuickTransfer/Drag.js +5 -5
  194. package/lib/QuickTransfer/DragList.js +7 -7
  195. package/lib/QuickTransfer/assets/DragSvg.js +1 -1
  196. package/lib/QuickTransfer/assets/LockSvg.js +1 -1
  197. package/lib/QuickTransfer/index.js +12 -12
  198. package/lib/QuickTransfer/utils.js +7 -7
  199. package/lib/Radio/Group.js +16 -17
  200. package/lib/Radio/Radio.js +21 -22
  201. package/lib/RangePicker/components/ExtraTimeFooter.js +3 -3
  202. package/lib/RangePicker/index.js +10 -10
  203. package/lib/RangePicker/utils/index.js +5 -5
  204. package/lib/ReactSelect/CustomControl.js +2 -2
  205. package/lib/ReactSelect/CustomMultiValueLabel.js +2 -2
  206. package/lib/ReactSelect/CustomOption.js +2 -2
  207. package/lib/ReactSelect/CustomSingleValue.js +2 -2
  208. package/lib/ReactSelect/customStyles.js +2 -2
  209. package/lib/ReactSelect/index.js +9 -9
  210. package/lib/ScrollLoad/index.js +7 -7
  211. package/lib/SearchBar/index.js +12 -12
  212. package/lib/SelectBackup/index.js +9 -9
  213. package/lib/SiderMenu/Item.js +14 -15
  214. package/lib/SiderMenu/index.js +5 -5
  215. package/lib/SiderMenu/sub-menu.js +3 -3
  216. package/lib/SimpleCard/index.js +3 -3
  217. package/lib/SimplePagination/index.js +6 -6
  218. package/lib/SingleSpa/hooks/useErrorHandle.js +6 -6
  219. package/lib/SingleSpa/hooks/useModel.js +4 -4
  220. package/lib/SingleSpa/import-html/process-tpl.js +4 -4
  221. package/lib/SingleSpa/import-html/utils.js +4 -4
  222. package/lib/SingleSpa/index.js +8 -8
  223. package/lib/SingleSpa/singleSpa/single-spa.dev.js +2 -2
  224. package/lib/Table/index.js +1 -1
  225. package/lib/Tabs/index.js +5 -5
  226. package/lib/Tag/CheckableTag.js +3 -3
  227. package/lib/Tag/assets/LeftBottomCorner.js +1 -1
  228. package/lib/Tag/assets/LeftTopCorner.js +1 -1
  229. package/lib/Tag/assets/RightBottomCorner.js +1 -1
  230. package/lib/Tag/assets/RightTopCorner.js +1 -1
  231. package/lib/Tag/index.js +3 -3
  232. package/lib/ThemeProvider/main.js +9 -9
  233. package/lib/ThemeProvider/utils.js +4 -4
  234. package/lib/TimeRangeSlider/Refresh/index.js +8 -8
  235. package/lib/TimeRangeSlider/TimeRangeSliderCmp/assets/Limit.js +1 -1
  236. package/lib/TimeRangeSlider/TimeRangeSliderCmp/assets/LimitAreaSvg.js +1 -1
  237. package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/BottomPlaceholder.js +4 -4
  238. package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/TopPlaceholder.js +4 -4
  239. package/lib/TimeRangeSlider/TimeRangeSliderCmp/hooks/useHover.js +4 -4
  240. package/lib/TimeRangeSlider/TimeRangeSliderCmp/hooks/useMouse.js +6 -6
  241. package/lib/TimeRangeSlider/TimeRangeSliderCmp/utils/index.js +2 -2
  242. package/lib/TimeRangeSlider/assets/Calendar.js +1 -1
  243. package/lib/TimeRangeSlider/assets/Calendar2.js +1 -1
  244. package/lib/TimeRangeSlider/assets/Recover.js +1 -1
  245. package/lib/TimeRangeSlider/assets/Refresh1.js +1 -1
  246. package/lib/TimeRangeSlider/assets/Refresh2.js +1 -1
  247. package/lib/TimeRangeSlider/assets/Refresh3.js +1 -1
  248. package/lib/TimeRangeSlider/assets/live.js +1 -1
  249. package/lib/TimeRangeSlider/assets/more.js +1 -1
  250. package/lib/TimeRangeSlider/index.js +9 -9
  251. package/lib/TimeRangeSlider/utils/index.js +6 -6
  252. package/lib/Tooltip/index.js +3 -3
  253. package/lib/TooltipText/ResizeObserverManager.js +3 -3
  254. package/lib/TooltipText/index.js +7 -7
  255. package/lib/TreeList/index.js +6 -6
  256. package/lib/TreeSelect111/index.js +9 -9
  257. package/lib/TreeSelect111/utils/index.js +5 -5
  258. package/lib/Upload-back/index.js +7 -7
  259. package/lib/VerticalLayout/index.js +2 -2
  260. package/lib/WangEditor/editor4.js +2 -2
  261. package/lib/WangEditor/index.js +2 -2
  262. package/lib/WangEditor/usePreview.js +4 -4
  263. package/lib/Watermark/index.js +7 -7
  264. package/lib/Watermark/useClips.js +4 -4
  265. package/lib/Watermark/useWatermark.js +4 -4
  266. package/lib/configConsumer/index.js +1 -1
  267. package/lib/configHoc/index.js +3 -3
  268. package/lib/message/assets/Close.js +1 -1
  269. package/lib/message/index.js +2 -2
  270. package/lib/noticeManager/globalState.js +6 -7
  271. package/lib/portalNoticeManager/usePortalDispatchNotice.js +6 -6
  272. package/lib/portalNoticeManager/withPortalDispatchNotice.js +1 -1
  273. package/lib/useLocale/index.js +4 -4
  274. package/lib/usePreview/index.js +4 -4
  275. package/package.json +2 -1
@@ -1,25 +1,24 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
- 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, _toPropertyKey(descriptor.key), descriptor); } }
6
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
5
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
6
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
7
7
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
8
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
9
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
9
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
- 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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
13
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
14
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
11
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
12
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
13
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
16
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
17
17
  import React, { Component, PureComponent } from 'react';
18
18
  import reactCSS from 'reactcss';
19
19
  import * as alpha from '../../helpers/alpha';
20
20
  import Checkboard from './Checkboard';
21
21
  export var Alpha = /*#__PURE__*/function (_ref) {
22
- _inherits(Alpha, _ref);
23
22
  function Alpha() {
24
23
  var _this;
25
24
  _classCallCheck(this, Alpha);
@@ -27,25 +26,26 @@ export var Alpha = /*#__PURE__*/function (_ref) {
27
26
  args[_key] = arguments[_key];
28
27
  }
29
28
  _this = _callSuper(this, Alpha, [].concat(args));
30
- _defineProperty(_assertThisInitialized(_this), "handleChange", function (e) {
29
+ _defineProperty(_this, "handleChange", function (e) {
31
30
  var change = alpha.calculateChange(e, _this.props.hsl, _this.props.direction, _this.props.a, _this.container);
32
31
  change && typeof _this.props.onChange === 'function' && _this.props.onChange(change, e);
33
32
  });
34
- _defineProperty(_assertThisInitialized(_this), "handleMouseDown", function (e) {
33
+ _defineProperty(_this, "handleMouseDown", function (e) {
35
34
  _this.handleChange(e);
36
35
  window.addEventListener('mousemove', _this.handleChange);
37
36
  window.addEventListener('mouseup', _this.handleMouseUp);
38
37
  });
39
- _defineProperty(_assertThisInitialized(_this), "handleMouseUp", function () {
38
+ _defineProperty(_this, "handleMouseUp", function () {
40
39
  _this.unbindEventListeners();
41
40
  });
42
- _defineProperty(_assertThisInitialized(_this), "unbindEventListeners", function () {
41
+ _defineProperty(_this, "unbindEventListeners", function () {
43
42
  window.removeEventListener('mousemove', _this.handleChange);
44
43
  window.removeEventListener('mouseup', _this.handleMouseUp);
45
44
  });
46
45
  return _this;
47
46
  }
48
- _createClass(Alpha, [{
47
+ _inherits(Alpha, _ref);
48
+ return _createClass(Alpha, [{
49
49
  key: "componentWillUnmount",
50
50
  value: function componentWillUnmount() {
51
51
  this.unbindEventListeners();
@@ -128,6 +128,5 @@ export var Alpha = /*#__PURE__*/function (_ref) {
128
128
  }))));
129
129
  }
130
130
  }]);
131
- return Alpha;
132
131
  }(PureComponent || Component);
133
132
  export default Alpha;
@@ -1,8 +1,8 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import React, { isValidElement } from 'react';
8
8
  import reactCSS from 'reactcss';
@@ -1,26 +1,25 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
- 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, _toPropertyKey(descriptor.key), descriptor); } }
7
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
6
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
7
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
8
8
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
9
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
10
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
10
11
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
13
- 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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
14
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
15
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
13
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
14
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
15
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
18
18
  import React, { Component, PureComponent } from 'react';
19
19
  import debounce from 'lodash/debounce';
20
20
  import * as color from '../../helpers/color';
21
21
  export var ColorWrap = function ColorWrap(Picker) {
22
22
  var ColorPicker = /*#__PURE__*/function (_ref) {
23
- _inherits(ColorPicker, _ref);
24
23
  function ColorPicker(props) {
25
24
  var _this;
26
25
  _classCallCheck(this, ColorPicker);
@@ -30,7 +29,7 @@ export var ColorWrap = function ColorWrap(Picker) {
30
29
  // ...color.toState(nextProps.color, state.oldHue),
31
30
  // }
32
31
  // }
33
- _defineProperty(_assertThisInitialized(_this), "handleChange", function (data, event) {
32
+ _defineProperty(_this, "handleChange", function (data, event) {
34
33
  var isValidColor = color.simpleCheckForValidColor(data);
35
34
  if (isValidColor) {
36
35
  var colors = color.toState(data, data.h || _this.state.oldHue);
@@ -39,7 +38,7 @@ export var ColorWrap = function ColorWrap(Picker) {
39
38
  _this.props.onChange && _this.props.onChange(colors, event);
40
39
  }
41
40
  });
42
- _defineProperty(_assertThisInitialized(_this), "handleSwatchHover", function (data, event) {
41
+ _defineProperty(_this, "handleSwatchHover", function (data, event) {
43
42
  var isValidColor = color.simpleCheckForValidColor(data);
44
43
  if (isValidColor) {
45
44
  var colors = color.toState(data, data.h || _this.state.oldHue);
@@ -52,7 +51,8 @@ export var ColorWrap = function ColorWrap(Picker) {
52
51
  }, 100);
53
52
  return _this;
54
53
  }
55
- _createClass(ColorPicker, [{
54
+ _inherits(ColorPicker, _ref);
55
+ return _createClass(ColorPicker, [{
56
56
  key: "render",
57
57
  value: function render() {
58
58
  var optionalEvents = {};
@@ -64,7 +64,6 @@ export var ColorWrap = function ColorWrap(Picker) {
64
64
  }, optionalEvents));
65
65
  }
66
66
  }]);
67
- return ColorPicker;
68
67
  }(PureComponent || Component);
69
68
  ColorPicker.propTypes = _objectSpread({}, Picker.propTypes);
70
69
  ColorPicker.defaultProps = _objectSpread(_objectSpread({}, Picker.defaultProps), {}, {
@@ -1,16 +1,16 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
- 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, _toPropertyKey(descriptor.key), descriptor); } }
4
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
2
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
3
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
4
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
5
5
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
6
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
6
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
7
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
7
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
- 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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
10
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
11
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
12
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
13
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
15
  import React, { Component, PureComponent } from 'react';
16
16
  import reactCSS from 'reactcss';
@@ -26,12 +26,11 @@ var getNumberValue = function getNumberValue(value) {
26
26
  };
27
27
  var idCounter = 1;
28
28
  export var EditableInput = /*#__PURE__*/function (_ref) {
29
- _inherits(EditableInput, _ref);
30
29
  function EditableInput(props) {
31
30
  var _this;
32
31
  _classCallCheck(this, EditableInput);
33
32
  _this = _callSuper(this, EditableInput);
34
- _defineProperty(_assertThisInitialized(_this), "handleBlur", function () {
33
+ _defineProperty(_this, "handleBlur", function () {
35
34
  if (_this.state.blurValue) {
36
35
  _this.setState({
37
36
  value: _this.state.blurValue,
@@ -39,10 +38,10 @@ export var EditableInput = /*#__PURE__*/function (_ref) {
39
38
  });
40
39
  }
41
40
  });
42
- _defineProperty(_assertThisInitialized(_this), "handleChange", function (e) {
41
+ _defineProperty(_this, "handleChange", function (e) {
43
42
  _this.setUpdatedValue(e.target.value, e);
44
43
  });
45
- _defineProperty(_assertThisInitialized(_this), "handleKeyDown", function (e) {
44
+ _defineProperty(_this, "handleKeyDown", function (e) {
46
45
  // In case `e.target.value` is a percentage remove the `%` character
47
46
  // and update accordingly with a percentage
48
47
  // https://github.com/casesandberg/react-color/issues/383
@@ -53,7 +52,7 @@ export var EditableInput = /*#__PURE__*/function (_ref) {
53
52
  _this.setUpdatedValue(updatedValue, e);
54
53
  }
55
54
  });
56
- _defineProperty(_assertThisInitialized(_this), "handleDrag", function (e) {
55
+ _defineProperty(_this, "handleDrag", function (e) {
57
56
  if (_this.props.dragLabel) {
58
57
  var newValue = Math.round(_this.props.value + e.movementX);
59
58
  if (newValue >= 0 && newValue <= _this.props.dragMax) {
@@ -61,7 +60,7 @@ export var EditableInput = /*#__PURE__*/function (_ref) {
61
60
  }
62
61
  }
63
62
  });
64
- _defineProperty(_assertThisInitialized(_this), "handleMouseDown", function (e) {
63
+ _defineProperty(_this, "handleMouseDown", function (e) {
65
64
  if (_this.props.dragLabel) {
66
65
  e.preventDefault();
67
66
  _this.handleDrag(e);
@@ -69,10 +68,10 @@ export var EditableInput = /*#__PURE__*/function (_ref) {
69
68
  window.addEventListener('mouseup', _this.handleMouseUp);
70
69
  }
71
70
  });
72
- _defineProperty(_assertThisInitialized(_this), "handleMouseUp", function () {
71
+ _defineProperty(_this, "handleMouseUp", function () {
73
72
  _this.unbindEventListeners();
74
73
  });
75
- _defineProperty(_assertThisInitialized(_this), "unbindEventListeners", function () {
74
+ _defineProperty(_this, "unbindEventListeners", function () {
76
75
  window.removeEventListener('mousemove', _this.handleDrag);
77
76
  window.removeEventListener('mouseup', _this.handleMouseUp);
78
77
  });
@@ -83,7 +82,8 @@ export var EditableInput = /*#__PURE__*/function (_ref) {
83
82
  _this.inputId = "rc-editable-input-".concat(idCounter++);
84
83
  return _this;
85
84
  }
86
- _createClass(EditableInput, [{
85
+ _inherits(EditableInput, _ref);
86
+ return _createClass(EditableInput, [{
87
87
  key: "componentDidUpdate",
88
88
  value: function componentDidUpdate(prevProps, prevState) {
89
89
  if (this.props.value !== this.state.value && (prevProps.value !== this.props.value || prevState.value !== this.state.value)) {
@@ -167,6 +167,5 @@ export var EditableInput = /*#__PURE__*/function (_ref) {
167
167
  }, this.props.label) : null);
168
168
  }
169
169
  }]);
170
- return EditableInput;
171
170
  }(PureComponent || Component);
172
171
  export default EditableInput;
@@ -1,23 +1,22 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
- 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, _toPropertyKey(descriptor.key), descriptor); } }
4
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
2
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
3
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
4
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
5
5
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
6
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
6
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
7
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
7
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
- 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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
10
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
11
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
12
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
13
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
15
  import React, { Component, PureComponent } from "react";
16
16
  import reactCSS from "reactcss";
17
17
  import * as hue from "../../helpers/hue";
18
18
  import { floor, round } from "@chaoswise/utils";
19
19
  export var Hue = /*#__PURE__*/function (_ref) {
20
- _inherits(Hue, _ref);
21
20
  function Hue() {
22
21
  var _this;
23
22
  _classCallCheck(this, Hue);
@@ -25,21 +24,22 @@ export var Hue = /*#__PURE__*/function (_ref) {
25
24
  args[_key] = arguments[_key];
26
25
  }
27
26
  _this = _callSuper(this, Hue, [].concat(args));
28
- _defineProperty(_assertThisInitialized(_this), "handleChange", function (e) {
27
+ _defineProperty(_this, "handleChange", function (e) {
29
28
  var change = hue.calculateChange(e, _this.props.direction, _this.props.hsl, _this.container);
30
29
  change && typeof _this.props.onChange === "function" && _this.props.onChange(change, e);
31
30
  });
32
- _defineProperty(_assertThisInitialized(_this), "handleMouseDown", function (e) {
31
+ _defineProperty(_this, "handleMouseDown", function (e) {
33
32
  _this.handleChange(e);
34
33
  window.addEventListener("mousemove", _this.handleChange);
35
34
  window.addEventListener("mouseup", _this.handleMouseUp);
36
35
  });
37
- _defineProperty(_assertThisInitialized(_this), "handleMouseUp", function () {
36
+ _defineProperty(_this, "handleMouseUp", function () {
38
37
  _this.unbindEventListeners();
39
38
  });
40
39
  return _this;
41
40
  }
42
- _createClass(Hue, [{
41
+ _inherits(Hue, _ref);
42
+ return _createClass(Hue, [{
43
43
  key: "componentWillUnmount",
44
44
  value: function componentWillUnmount() {
45
45
  this.unbindEventListeners();
@@ -113,6 +113,5 @@ export var Hue = /*#__PURE__*/function (_ref) {
113
113
  }))));
114
114
  }
115
115
  }]);
116
- return Hue;
117
116
  }(PureComponent || Component);
118
117
  export default Hue;
@@ -1,37 +1,36 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
- 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, _toPropertyKey(descriptor.key), descriptor); } }
4
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
2
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
3
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
4
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
5
5
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
6
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
6
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
7
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
7
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
- 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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
10
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
11
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
12
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
13
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
15
  import React, { Component, PureComponent } from 'react';
16
16
  import reactCSS from 'reactcss';
17
17
  import throttle from 'lodash/throttle';
18
18
  import * as saturation from '../../helpers/saturation';
19
19
  export var Saturation = /*#__PURE__*/function (_ref) {
20
- _inherits(Saturation, _ref);
21
20
  function Saturation(props) {
22
21
  var _this;
23
22
  _classCallCheck(this, Saturation);
24
23
  _this = _callSuper(this, Saturation, [props]);
25
- _defineProperty(_assertThisInitialized(_this), "handleChange", function (e) {
24
+ _defineProperty(_this, "handleChange", function (e) {
26
25
  typeof _this.props.onChange === 'function' && _this.throttle(_this.props.onChange, saturation.calculateChange(e, _this.props.hsl, _this.container), e);
27
26
  });
28
- _defineProperty(_assertThisInitialized(_this), "handleMouseDown", function (e) {
27
+ _defineProperty(_this, "handleMouseDown", function (e) {
29
28
  _this.handleChange(e);
30
29
  var renderWindow = _this.getContainerRenderWindow();
31
30
  renderWindow.addEventListener('mousemove', _this.handleChange);
32
31
  renderWindow.addEventListener('mouseup', _this.handleMouseUp);
33
32
  });
34
- _defineProperty(_assertThisInitialized(_this), "handleMouseUp", function () {
33
+ _defineProperty(_this, "handleMouseUp", function () {
35
34
  _this.unbindEventListeners();
36
35
  });
37
36
  _this.throttle = throttle(function (fn, data, e) {
@@ -39,7 +38,8 @@ export var Saturation = /*#__PURE__*/function (_ref) {
39
38
  }, 50);
40
39
  return _this;
41
40
  }
42
- _createClass(Saturation, [{
41
+ _inherits(Saturation, _ref);
42
+ return _createClass(Saturation, [{
43
43
  key: "componentWillUnmount",
44
44
  value: function componentWillUnmount() {
45
45
  this.throttle.cancel();
@@ -134,6 +134,5 @@ export var Saturation = /*#__PURE__*/function (_ref) {
134
134
  }))));
135
135
  }
136
136
  }]);
137
- return Saturation;
138
137
  }(PureComponent || Component);
139
138
  export default Saturation;
@@ -1,9 +1,9 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
8
  import React from 'react';
9
9
  import reactCSS from 'reactcss';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import reactCSS from 'reactcss';
@@ -1,8 +1,8 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
@@ -1,24 +1,23 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
- 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, _toPropertyKey(descriptor.key), descriptor); } }
5
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
4
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
5
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
6
6
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
7
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
7
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
8
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
8
9
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11
- 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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
12
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
13
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
10
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
11
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
12
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
16
16
  /* eslint-disable no-invalid-this */
17
17
  import React from 'react';
18
18
  export var handleFocus = function handleFocus(Component) {
19
19
  var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';
20
20
  return /*#__PURE__*/function (_React$Component) {
21
- _inherits(Focus, _React$Component);
22
21
  function Focus() {
23
22
  var _this;
24
23
  _classCallCheck(this, Focus);
@@ -26,22 +25,23 @@ export var handleFocus = function handleFocus(Component) {
26
25
  args[_key] = arguments[_key];
27
26
  }
28
27
  _this = _callSuper(this, Focus, [].concat(args));
29
- _defineProperty(_assertThisInitialized(_this), "state", {
28
+ _defineProperty(_this, "state", {
30
29
  focus: false
31
30
  });
32
- _defineProperty(_assertThisInitialized(_this), "handleFocus", function () {
31
+ _defineProperty(_this, "handleFocus", function () {
33
32
  return _this.setState({
34
33
  focus: true
35
34
  });
36
35
  });
37
- _defineProperty(_assertThisInitialized(_this), "handleBlur", function () {
36
+ _defineProperty(_this, "handleBlur", function () {
38
37
  return _this.setState({
39
38
  focus: false
40
39
  });
41
40
  });
42
41
  return _this;
43
42
  }
44
- _createClass(Focus, [{
43
+ _inherits(Focus, _React$Component);
44
+ return _createClass(Focus, [{
45
45
  key: "render",
46
46
  value: function render() {
47
47
  return /*#__PURE__*/React.createElement(Span, {
@@ -50,6 +50,5 @@ export var handleFocus = function handleFocus(Component) {
50
50
  }, /*#__PURE__*/React.createElement(Component, _extends({}, this.props, this.state)));
51
51
  }
52
52
  }]);
53
- return Focus;
54
53
  }(React.Component);
55
54
  };