ywana-core8 0.0.845 → 0.0.847

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.
package/dist/index.umd.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('material-design-icons-iconfont/dist/material-design-icons.css'), require('react'), require('react-switch'), require('moment'), require('moment-range'), require('moment/locale/es'), require('resumablejs'), require('axios'), require('deep-equal')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'material-design-icons-iconfont/dist/material-design-icons.css', 'react', 'react-switch', 'moment', 'moment-range', 'moment/locale/es', 'resumablejs', 'axios', 'deep-equal'], factory) :
4
- (global = global || self, factory(global.ywanaCore8 = {}, null, global.react, global.reactSwitch, global.moment, global.momentRange, null, global.resumablejs, global.axios, global.deepEqual));
5
- })(this, (function (exports, materialDesignIcons_css, React, RSwitch, moment$1, momentRange, es, ResumableJS, axios, equal) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('material-design-icons-iconfont/dist/material-design-icons.css'), require('react'), require('react-switch'), require('moment'), require('moment-range'), require('moment/locale/es'), require('resumablejs'), require('react-notifications-component'), require('react-notifications-component/dist/theme.css'), require('axios'), require('deep-equal')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'material-design-icons-iconfont/dist/material-design-icons.css', 'react', 'react-switch', 'moment', 'moment-range', 'moment/locale/es', 'resumablejs', 'react-notifications-component', 'react-notifications-component/dist/theme.css', 'axios', 'deep-equal'], factory) :
4
+ (global = global || self, factory(global.ywanaCore8 = {}, null, global.react, global.reactSwitch, global.moment, global.momentRange, null, global.resumablejs, global.reactNotificationsComponent, null, global.axios, global.deepEqual));
5
+ })(this, (function (exports, materialDesignIcons_css, React, RSwitch, moment$1, momentRange, es, ResumableJS, reactNotificationsComponent, theme_css, axios, equal) {
6
6
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
7
 
8
8
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
@@ -2505,7 +2505,7 @@
2505
2505
  loginLabel = _ref$loginLabel === void 0 ? "Log In" : _ref$loginLabel,
2506
2506
  onOK = _ref.onOK,
2507
2507
  _ref$forgotLabel = _ref.forgotLabel,
2508
- forgotLabel = _ref$forgotLabel === void 0 ? "Forgot Password ?" : _ref$forgotLabel,
2508
+ forgotLabel = _ref$forgotLabel === void 0 ? "Forgot Password?" : _ref$forgotLabel,
2509
2509
  onForgot = _ref.onForgot,
2510
2510
  message = _ref.message,
2511
2511
  loading = _ref.loading;
@@ -2555,11 +2555,7 @@
2555
2555
  onEnter: ok,
2556
2556
  type: "password",
2557
2557
  outlined: true
2558
- })), /*#__PURE__*/React__default["default"].createElement("footer", null, onForgot ? /*#__PURE__*/React__default["default"].createElement(Button, {
2559
- label: tx(forgotLabel),
2560
- action: forgot,
2561
- disabled: !canForgot()
2562
- }) : null, loading ? /*#__PURE__*/React__default["default"].createElement("div", {
2558
+ })), /*#__PURE__*/React__default["default"].createElement("footer", null, loading ? /*#__PURE__*/React__default["default"].createElement("div", {
2563
2559
  className: "load-box"
2564
2560
  }, /*#__PURE__*/React__default["default"].createElement(Icon, {
2565
2561
  icon: "refresh"
@@ -2567,8 +2563,14 @@
2567
2563
  label: tx(loginLabel),
2568
2564
  action: ok,
2569
2565
  disabled: !canOK(),
2570
- raised: true
2571
- }), message ? /*#__PURE__*/React__default["default"].createElement("div", {
2566
+ raised: true,
2567
+ className: "login-button"
2568
+ }), onForgot ? /*#__PURE__*/React__default["default"].createElement(Button, {
2569
+ label: tx(forgotLabel),
2570
+ action: forgot,
2571
+ disabled: !canForgot(),
2572
+ className: "forgot-button"
2573
+ }) : null, message ? /*#__PURE__*/React__default["default"].createElement("div", {
2572
2574
  className: "message"
2573
2575
  }, /*#__PURE__*/React__default["default"].createElement(Text, null, message)) : null));
2574
2576
  };
@@ -3766,7 +3768,7 @@
3766
3768
  _ref2$duration = _ref2.duration,
3767
3769
  duration = _ref2$duration === void 0 ? 3000 : _ref2$duration,
3768
3770
  onRemoval = _ref2.onRemoval;
3769
- Store.addNotification({
3771
+ reactNotificationsComponent.Store.addNotification({
3770
3772
  title: title,
3771
3773
  message: body,
3772
3774
  type: type,
@@ -3820,7 +3822,7 @@
3820
3822
  }, "EMPTY")), /*#__PURE__*/React__default["default"].createElement(SiteAside, null), /*#__PURE__*/React__default["default"].createElement(SiteConsole, null), /*#__PURE__*/React__default["default"].createElement(SiteDialog, null), /*#__PURE__*/React__default["default"].createElement(SitePromptDialog, null), /*#__PURE__*/React__default["default"].createElement(SitePreview, null), /*#__PURE__*/React__default["default"].createElement(SiteNotifications, null), /*#__PURE__*/React__default["default"].createElement(SiteFooter, null, footer)));
3821
3823
  };
3822
3824
  var SiteNotifications = function SiteNotifications() {
3823
- return /*#__PURE__*/React__default["default"].createElement(ReactNotifications, null);
3825
+ return /*#__PURE__*/React__default["default"].createElement(reactNotificationsComponent.ReactNotifications, null);
3824
3826
  };
3825
3827
 
3826
3828
  /**