@zohodesk/i18n 1.0.0-beta.2 → 1.0.0-beta.21
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/README.md +80 -0
- package/es/I18NContext.js +1 -2
- package/es/components/DateTimeDiffFormat.js +192 -184
- package/es/components/FormatText.js +4 -25
- package/es/components/HOCI18N.js +33 -45
- package/es/components/I18N.js +46 -63
- package/es/components/I18NProvider.js +54 -84
- package/es/components/PluralFormat.js +29 -48
- package/es/components/UserTimeDiffFormat.js +65 -70
- package/es/components/__tests__/DateTimeDiffFormat.spec.js +868 -657
- package/es/components/__tests__/FormatText.spec.js +20 -17
- package/es/components/__tests__/HOCI18N.spec.js +18 -22
- package/es/components/__tests__/I18N.spec.js +20 -19
- package/es/components/__tests__/I18NProvider.spec.js +36 -45
- package/es/components/__tests__/PluralFormat.spec.js +20 -17
- package/es/components/__tests__/UserTimeDiffFormat.spec.js +1343 -1095
- package/es/index.js +2 -6
- package/es/utils.js +250 -385
- package/lib/I18NContext.js +6 -6
- package/lib/components/DateTimeDiffFormat.js +167 -123
- package/lib/components/FormatText.js +32 -22
- package/lib/components/HOCI18N.js +47 -23
- package/lib/components/I18N.js +60 -36
- package/lib/components/I18NProvider.js +76 -69
- package/lib/components/PluralFormat.js +42 -32
- package/lib/components/UserTimeDiffFormat.js +81 -54
- package/lib/components/__tests__/DateTimeDiffFormat.spec.js +815 -629
- package/lib/components/__tests__/FormatText.spec.js +23 -25
- package/lib/components/__tests__/HOCI18N.spec.js +26 -34
- package/lib/components/__tests__/I18N.spec.js +21 -26
- package/lib/components/__tests__/I18NProvider.spec.js +43 -51
- package/lib/components/__tests__/PluralFormat.spec.js +24 -28
- package/lib/components/__tests__/UserTimeDiffFormat.spec.js +1256 -1039
- package/lib/index.js +73 -119
- package/lib/utils.js +222 -329
- package/package.json +2 -2
- package/src/I18NContext.js +3 -0
- package/src/components/DateTimeDiffFormat.js +256 -0
- package/src/components/FormatText.js +14 -0
- package/src/components/HOCI18N.js +37 -0
- package/src/components/I18N.js +72 -0
- package/src/components/I18NProvider.js +110 -0
- package/src/components/PluralFormat.js +37 -0
- package/src/components/UserTimeDiffFormat.js +97 -0
- package/src/components/__tests__/DateTimeDiffFormat.spec.js +618 -0
- package/src/components/__tests__/FormatText.spec.js +27 -0
- package/src/components/__tests__/HOCI18N.spec.js +33 -0
- package/src/components/__tests__/I18N.spec.js +30 -0
- package/src/components/__tests__/I18NProvider.spec.js +65 -0
- package/src/components/__tests__/PluralFormat.spec.js +28 -0
- package/src/components/__tests__/UserTimeDiffFormat.spec.js +1076 -0
- package/src/components/__tests__/__snapshots__/DateTimeDiffFormat.spec.js.snap +258 -0
- package/src/components/__tests__/__snapshots__/FormatText.spec.js.snap +17 -0
- package/src/components/__tests__/__snapshots__/HOCI18N.spec.js.snap +15 -0
- package/src/components/__tests__/__snapshots__/I18N.spec.js.snap +17 -0
- package/src/components/__tests__/__snapshots__/I18NProvider.spec.js.snap +13 -0
- package/src/components/__tests__/__snapshots__/PluralFormat.spec.js.snap +17 -0
- package/src/components/__tests__/__snapshots__/UserTimeDiffFormat.spec.js.snap +366 -0
- package/src/index.js +33 -0
- package/src/utils.js +527 -0
- package/.DS_Store +0 -0
- package/es/components/NewDateFormat.js +0 -50
- package/es/offset.js +0 -629
- package/es/timezones.js +0 -112
- package/lib/components/NewDateFormat.js +0 -68
- package/lib/offset.js +0 -634
- package/lib/timezones.js +0 -120
|
@@ -1,53 +1,64 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
4
|
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
8
|
+
exports["default"] = void 0;
|
|
6
9
|
|
|
7
|
-
var
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
11
|
|
|
9
|
-
var
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
13
|
|
|
11
|
-
var
|
|
14
|
+
var _FormatText = _interopRequireDefault(require("./FormatText"));
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
17
|
|
|
15
|
-
var
|
|
18
|
+
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); }
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18
21
|
|
|
19
|
-
var
|
|
22
|
+
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, descriptor.key, descriptor); } }
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
22
25
|
|
|
23
|
-
function
|
|
26
|
+
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); }
|
|
24
27
|
|
|
25
|
-
function
|
|
28
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
|
+
|
|
30
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
|
+
|
|
32
|
+
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); }
|
|
26
33
|
|
|
27
|
-
function
|
|
34
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
28
35
|
|
|
29
|
-
function
|
|
36
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
30
37
|
|
|
31
|
-
|
|
38
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
|
+
|
|
40
|
+
var PluralFormat = /*#__PURE__*/function (_React$Component) {
|
|
32
41
|
_inherits(PluralFormat, _React$Component);
|
|
33
42
|
|
|
43
|
+
var _super = _createSuper(PluralFormat);
|
|
44
|
+
|
|
34
45
|
function PluralFormat() {
|
|
35
46
|
_classCallCheck(this, PluralFormat);
|
|
36
47
|
|
|
37
|
-
return
|
|
48
|
+
return _super.apply(this, arguments);
|
|
38
49
|
}
|
|
39
50
|
|
|
40
51
|
_createClass(PluralFormat, [{
|
|
41
|
-
key:
|
|
52
|
+
key: "render",
|
|
42
53
|
value: function render() {
|
|
43
|
-
var
|
|
44
|
-
one =
|
|
45
|
-
many =
|
|
46
|
-
zero =
|
|
47
|
-
value =
|
|
48
|
-
|
|
54
|
+
var _this$props = this.props,
|
|
55
|
+
one = _this$props.one,
|
|
56
|
+
many = _this$props.many,
|
|
57
|
+
zero = _this$props.zero,
|
|
58
|
+
value = _this$props.value;
|
|
49
59
|
var key = '',
|
|
50
60
|
values = '';
|
|
61
|
+
|
|
51
62
|
if (value > 1) {
|
|
52
63
|
key = many;
|
|
53
64
|
} else if (value == 1) {
|
|
@@ -55,9 +66,9 @@ var PluralFormat = function (_React$Component) {
|
|
|
55
66
|
} else if (value == 0) {
|
|
56
67
|
key = zero;
|
|
57
68
|
}
|
|
58
|
-
values = '' + value;
|
|
59
69
|
|
|
60
|
-
|
|
70
|
+
values = "".concat(value);
|
|
71
|
+
return /*#__PURE__*/_react["default"].createElement(_FormatText["default"], _extends({}, this.props, {
|
|
61
72
|
i18NKey: key,
|
|
62
73
|
values: values,
|
|
63
74
|
one: null,
|
|
@@ -68,14 +79,13 @@ var PluralFormat = function (_React$Component) {
|
|
|
68
79
|
}]);
|
|
69
80
|
|
|
70
81
|
return PluralFormat;
|
|
71
|
-
}(
|
|
72
|
-
|
|
73
|
-
exports.default = PluralFormat;
|
|
82
|
+
}(_react["default"].Component);
|
|
74
83
|
|
|
84
|
+
exports["default"] = PluralFormat;
|
|
75
85
|
PluralFormat.propTypes = {
|
|
76
|
-
many:
|
|
77
|
-
one:
|
|
78
|
-
tag:
|
|
79
|
-
value:
|
|
80
|
-
zero:
|
|
86
|
+
many: _propTypes["default"].string,
|
|
87
|
+
one: _propTypes["default"].string,
|
|
88
|
+
tag: _propTypes["default"].string,
|
|
89
|
+
value: _propTypes["default"].number,
|
|
90
|
+
zero: _propTypes["default"].string
|
|
81
91
|
};
|
|
@@ -1,82 +1,104 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
4
|
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
8
|
+
exports["default"] = void 0;
|
|
6
9
|
|
|
7
|
-
var
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
11
|
|
|
9
|
-
var
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
13
|
|
|
11
|
-
var
|
|
14
|
+
var _DateTimeDiffFormat = _interopRequireDefault(require("./DateTimeDiffFormat"));
|
|
12
15
|
|
|
13
|
-
var
|
|
16
|
+
var _I18NContext = require("../I18NContext");
|
|
14
17
|
|
|
15
|
-
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
19
|
|
|
17
|
-
var
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
21
|
|
|
19
|
-
var
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22
25
|
|
|
23
|
-
function
|
|
26
|
+
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, descriptor.key, descriptor); } }
|
|
24
27
|
|
|
25
|
-
function
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
|
+
|
|
30
|
+
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); }
|
|
31
|
+
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
+
|
|
34
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
26
35
|
|
|
27
|
-
function _possibleConstructorReturn(self, call) { if (
|
|
36
|
+
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); }
|
|
28
37
|
|
|
29
|
-
function
|
|
38
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
30
39
|
|
|
31
|
-
|
|
40
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
|
+
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
+
|
|
44
|
+
var UserTimeDiffFormat = /*#__PURE__*/function (_Component) {
|
|
32
45
|
_inherits(UserTimeDiffFormat, _Component);
|
|
33
46
|
|
|
47
|
+
var _super = _createSuper(UserTimeDiffFormat);
|
|
48
|
+
|
|
34
49
|
function UserTimeDiffFormat() {
|
|
35
50
|
_classCallCheck(this, UserTimeDiffFormat);
|
|
36
51
|
|
|
37
|
-
return
|
|
52
|
+
return _super.apply(this, arguments);
|
|
38
53
|
}
|
|
39
54
|
|
|
40
55
|
_createClass(UserTimeDiffFormat, [{
|
|
41
|
-
key:
|
|
56
|
+
key: "render",
|
|
42
57
|
value: function render() {
|
|
43
58
|
var currentTime = new Date();
|
|
44
59
|
var currentTimeUTCString = currentTime.toISOString();
|
|
45
|
-
var
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
60
|
+
var _this$props = this.props,
|
|
61
|
+
type = _this$props.type,
|
|
62
|
+
page = _this$props.page,
|
|
63
|
+
isNeedTime = _this$props.isNeedTime,
|
|
64
|
+
to = _this$props.to,
|
|
65
|
+
today = _this$props.today,
|
|
66
|
+
yesterday = _this$props.yesterday,
|
|
67
|
+
tomorrow = _this$props.tomorrow,
|
|
68
|
+
others = _this$props.others,
|
|
69
|
+
ago = _this$props.ago,
|
|
70
|
+
later = _this$props.later,
|
|
71
|
+
format = _this$props.format,
|
|
72
|
+
title = _this$props.title,
|
|
73
|
+
className = _this$props.className,
|
|
74
|
+
displayType = _this$props.displayType,
|
|
75
|
+
dataId = _this$props.dataId,
|
|
76
|
+
isOverdue = _this$props.isOverdue,
|
|
77
|
+
isDateField = _this$props.isDateField;
|
|
58
78
|
|
|
59
79
|
var _ref = this.context || {},
|
|
60
80
|
tzData = _ref.tzData,
|
|
61
81
|
timeFormat = _ref.timeFormat,
|
|
62
82
|
datePattern = _ref.datePattern,
|
|
63
|
-
|
|
64
|
-
timeZone = _ref.timeZone;
|
|
83
|
+
isEnabledCurrentYear = _ref.isEnabledCurrentYear;
|
|
65
84
|
|
|
66
85
|
if (!format && !others) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
86
|
+
format = function format(_ref2) {
|
|
87
|
+
var dateTimeFormat = _ref2.dateTimeFormat,
|
|
88
|
+
dateFormat = _ref2.dateFormat,
|
|
89
|
+
timeFormat = _ref2.timeFormat;
|
|
90
|
+
displayType === 'dateTime' ? dateTimeFormat : displayType === 'date' ? dateFormat : timeFormat;
|
|
70
91
|
};
|
|
71
92
|
}
|
|
72
93
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
94
|
+
return /*#__PURE__*/_react["default"].createElement(_DateTimeDiffFormat["default"], {
|
|
95
|
+
type: type,
|
|
96
|
+
page: page,
|
|
97
|
+
isNeedTime: isNeedTime,
|
|
76
98
|
from: currentTimeUTCString,
|
|
77
|
-
fromTzData:
|
|
99
|
+
fromTzData: tzData,
|
|
78
100
|
to: to,
|
|
79
|
-
toTzData:
|
|
101
|
+
toTzData: tzData,
|
|
80
102
|
today: today,
|
|
81
103
|
yesterday: yesterday,
|
|
82
104
|
tomorrow: tomorrow,
|
|
@@ -86,7 +108,12 @@ var UserTimeDiffFormat = function (_Component) {
|
|
|
86
108
|
format: format,
|
|
87
109
|
title: title,
|
|
88
110
|
className: className,
|
|
89
|
-
dataId: dataId
|
|
111
|
+
dataId: dataId,
|
|
112
|
+
isOverdue: isOverdue,
|
|
113
|
+
timeFormat: timeFormat,
|
|
114
|
+
datePattern: datePattern,
|
|
115
|
+
isEnabledCurrentYear: isEnabledCurrentYear,
|
|
116
|
+
isDateField: isDateField
|
|
90
117
|
});
|
|
91
118
|
}
|
|
92
119
|
}]);
|
|
@@ -94,20 +121,20 @@ var UserTimeDiffFormat = function (_Component) {
|
|
|
94
121
|
return UserTimeDiffFormat;
|
|
95
122
|
}(_react.Component);
|
|
96
123
|
|
|
97
|
-
exports
|
|
98
|
-
|
|
124
|
+
exports["default"] = UserTimeDiffFormat;
|
|
99
125
|
UserTimeDiffFormat.propTypes = {
|
|
100
|
-
ago:
|
|
101
|
-
className:
|
|
102
|
-
dataId:
|
|
103
|
-
displayType:
|
|
104
|
-
format:
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
126
|
+
ago: _propTypes["default"].string,
|
|
127
|
+
className: _propTypes["default"].string,
|
|
128
|
+
dataId: _propTypes["default"].string,
|
|
129
|
+
displayType: _propTypes["default"].oneOf(['date', 'time', 'dateTime']),
|
|
130
|
+
format: _propTypes["default"].func,
|
|
131
|
+
isDateField: _propTypes["default"].bool,
|
|
132
|
+
later: _propTypes["default"].string,
|
|
133
|
+
others: _propTypes["default"].func,
|
|
134
|
+
title: _propTypes["default"].string,
|
|
135
|
+
to: _propTypes["default"].string,
|
|
136
|
+
today: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].object, _propTypes["default"].func]),
|
|
137
|
+
tomorrow: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].object, _propTypes["default"].func]),
|
|
138
|
+
yesterday: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].object, _propTypes["default"].func])
|
|
112
139
|
};
|
|
113
140
|
UserTimeDiffFormat.contextType = _I18NContext.I18NContext;
|