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.cjs +14 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +16 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +12 -8
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +16 -14
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield.css +4 -0
- package/src/site/site.js +2 -0
- package/src/widgets/login/LoginBox.css +13 -0
- package/src/widgets/login/LoginBox.js +3 -3
- package/src/widgets/login/LoginBox.test.js +1 -1
package/dist/index.cjs
CHANGED
@@ -5,6 +5,8 @@ var moment$1 = require('moment');
|
|
5
5
|
var momentRange = require('moment-range');
|
6
6
|
require('moment/locale/es');
|
7
7
|
var ResumableJS = require('resumablejs');
|
8
|
+
var reactNotificationsComponent = require('react-notifications-component');
|
9
|
+
require('react-notifications-component/dist/theme.css');
|
8
10
|
var axios = require('axios');
|
9
11
|
var equal = require('deep-equal');
|
10
12
|
|
@@ -2510,7 +2512,7 @@ var LoginBox = function LoginBox(_ref) {
|
|
2510
2512
|
loginLabel = _ref$loginLabel === void 0 ? "Log In" : _ref$loginLabel,
|
2511
2513
|
onOK = _ref.onOK,
|
2512
2514
|
_ref$forgotLabel = _ref.forgotLabel,
|
2513
|
-
forgotLabel = _ref$forgotLabel === void 0 ? "Forgot Password
|
2515
|
+
forgotLabel = _ref$forgotLabel === void 0 ? "Forgot Password?" : _ref$forgotLabel,
|
2514
2516
|
onForgot = _ref.onForgot,
|
2515
2517
|
message = _ref.message,
|
2516
2518
|
loading = _ref.loading;
|
@@ -2560,11 +2562,7 @@ var LoginBox = function LoginBox(_ref) {
|
|
2560
2562
|
onEnter: ok,
|
2561
2563
|
type: "password",
|
2562
2564
|
outlined: true
|
2563
|
-
})), /*#__PURE__*/React__default["default"].createElement("footer", null,
|
2564
|
-
label: tx(forgotLabel),
|
2565
|
-
action: forgot,
|
2566
|
-
disabled: !canForgot()
|
2567
|
-
}) : null, loading ? /*#__PURE__*/React__default["default"].createElement("div", {
|
2565
|
+
})), /*#__PURE__*/React__default["default"].createElement("footer", null, loading ? /*#__PURE__*/React__default["default"].createElement("div", {
|
2568
2566
|
className: "load-box"
|
2569
2567
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
2570
2568
|
icon: "refresh"
|
@@ -2572,8 +2570,14 @@ var LoginBox = function LoginBox(_ref) {
|
|
2572
2570
|
label: tx(loginLabel),
|
2573
2571
|
action: ok,
|
2574
2572
|
disabled: !canOK(),
|
2575
|
-
raised: true
|
2576
|
-
|
2573
|
+
raised: true,
|
2574
|
+
className: "login-button"
|
2575
|
+
}), onForgot ? /*#__PURE__*/React__default["default"].createElement(Button, {
|
2576
|
+
label: tx(forgotLabel),
|
2577
|
+
action: forgot,
|
2578
|
+
disabled: !canForgot(),
|
2579
|
+
className: "forgot-button"
|
2580
|
+
}) : null, message ? /*#__PURE__*/React__default["default"].createElement("div", {
|
2577
2581
|
className: "message"
|
2578
2582
|
}, /*#__PURE__*/React__default["default"].createElement(Text, null, message)) : null));
|
2579
2583
|
};
|
@@ -3771,7 +3775,7 @@ var SiteProvider = function SiteProvider(_ref) {
|
|
3771
3775
|
_ref2$duration = _ref2.duration,
|
3772
3776
|
duration = _ref2$duration === void 0 ? 3000 : _ref2$duration,
|
3773
3777
|
onRemoval = _ref2.onRemoval;
|
3774
|
-
Store.addNotification({
|
3778
|
+
reactNotificationsComponent.Store.addNotification({
|
3775
3779
|
title: title,
|
3776
3780
|
message: body,
|
3777
3781
|
type: type,
|
@@ -3825,7 +3829,7 @@ var Site = function Site(_ref3) {
|
|
3825
3829
|
}, "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)));
|
3826
3830
|
};
|
3827
3831
|
var SiteNotifications = function SiteNotifications() {
|
3828
|
-
return /*#__PURE__*/React__default["default"].createElement(ReactNotifications, null);
|
3832
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNotificationsComponent.ReactNotifications, null);
|
3829
3833
|
};
|
3830
3834
|
|
3831
3835
|
/**
|