ywana-core8 0.0.271 → 0.0.272
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 +26 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +26 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +28 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/html/text.js +2 -2
- package/src/site/site.js +18 -12
- package/src/site/site.test.js +23 -5
- package/src/widgets/kanban/Kanban.test.js +11 -10
- package/src/widgets/upload/Upload.test.js +35 -0
- package/src/widgets/upload/UploadArea.js +56 -0
- package/src/widgets/upload/UploadDialog.js +41 -0
- package/src/widgets/upload/UploadFile.js +24 -0
- package/src/widgets/upload/UploadProgress.js +21 -0
- package/src/widgets/upload/Uploader.css +77 -0
- package/src/widgets/upload/Uploader.js +73 -0
- package/src/widgets/upload/index.js +4 -0
package/dist/index.modern.js
CHANGED
@@ -3,7 +3,8 @@ import React, { useContext, useState, useEffect, Fragment, useRef, useMemo, Chil
|
|
3
3
|
import RSwitch from 'react-switch';
|
4
4
|
import moment from 'moment';
|
5
5
|
import { extendMoment } from 'moment-range';
|
6
|
-
import 'react-notifications
|
6
|
+
import { ReactNotifications, Store } from 'react-notifications-component';
|
7
|
+
import 'react-notifications-component/dist/theme.css';
|
7
8
|
import equal from 'deep-equal';
|
8
9
|
import ResumableJS from 'resumablejs';
|
9
10
|
|
@@ -219,7 +220,8 @@ var TEXTFORMATS = {
|
|
219
220
|
|
220
221
|
var Text$1 = function Text(_ref) {
|
221
222
|
var format = _ref.format,
|
222
|
-
children = _ref.children
|
223
|
+
children = _ref.children,
|
224
|
+
className = _ref.className;
|
223
225
|
var site = useContext(SiteContext);
|
224
226
|
var value = children;
|
225
227
|
|
@@ -240,7 +242,9 @@ var Text$1 = function Text(_ref) {
|
|
240
242
|
break;
|
241
243
|
}
|
242
244
|
|
243
|
-
return children ? /*#__PURE__*/React.createElement("span",
|
245
|
+
return children ? /*#__PURE__*/React.createElement("span", {
|
246
|
+
className: className
|
247
|
+
}, value) : '';
|
244
248
|
};
|
245
249
|
|
246
250
|
/**
|
@@ -2796,7 +2800,24 @@ var SiteProvider = function SiteProvider(_ref) {
|
|
2796
2800
|
confirm: function confirm(message) {
|
2797
2801
|
return window.confirm(message);
|
2798
2802
|
},
|
2799
|
-
notify: function notify(_ref2) {
|
2803
|
+
notify: function notify(_ref2) {
|
2804
|
+
var title = _ref2.title,
|
2805
|
+
body = _ref2.body,
|
2806
|
+
_ref2$type = _ref2.type,
|
2807
|
+
type = _ref2$type === void 0 ? "success" : _ref2$type;
|
2808
|
+
Store.addNotification({
|
2809
|
+
title: title,
|
2810
|
+
message: body,
|
2811
|
+
type: type,
|
2812
|
+
insert: "top",
|
2813
|
+
container: "top-right",
|
2814
|
+
animationIn: ["animate__animated", "animate__fadeIn"],
|
2815
|
+
animationOut: ["animate__animated", "animate__fadeOut"],
|
2816
|
+
dismiss: {
|
2817
|
+
duration: 3000,
|
2818
|
+
onScreen: true
|
2819
|
+
}
|
2820
|
+
});
|
2800
2821
|
}
|
2801
2822
|
};
|
2802
2823
|
return /*#__PURE__*/React.createElement(SiteContext.Provider, {
|
@@ -2837,7 +2858,7 @@ var Site = function Site(_ref3) {
|
|
2837
2858
|
};
|
2838
2859
|
|
2839
2860
|
var SiteNotifications = function SiteNotifications() {
|
2840
|
-
return /*#__PURE__*/React.createElement(
|
2861
|
+
return /*#__PURE__*/React.createElement(ReactNotifications, null);
|
2841
2862
|
};
|
2842
2863
|
/**
|
2843
2864
|
* Site Header
|