indicator-ui 0.1.89 → 0.1.91
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.css +7 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75454,7 +75454,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75454
75454
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
75455
75455
|
/* harmony export */ });
|
|
75456
75456
|
// extracted by mini-css-extract-plugin
|
|
75457
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"wrapper":"FormDateRange-module__wrapper___Ysixt","error":"FormDateRange-module__error___rtYwO"});
|
|
75457
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"wrapper":"FormDateRange-module__wrapper___Ysixt","empty":"FormDateRange-module__empty___HbKpO","error":"FormDateRange-module__error___rtYwO"});
|
|
75458
75458
|
|
|
75459
75459
|
/***/ }),
|
|
75460
75460
|
|
|
@@ -75604,6 +75604,11 @@ function FormDateRangeFieldBase(props) {
|
|
|
75604
75604
|
icon2 = props.icon2,
|
|
75605
75605
|
placeholder1 = props.placeholder1,
|
|
75606
75606
|
placeholder2 = props.placeholder2;
|
|
75607
|
+
var isEmptyValue = function isEmptyValue() {
|
|
75608
|
+
return value ? value.find(function (item) {
|
|
75609
|
+
return item;
|
|
75610
|
+
}) === undefined : true;
|
|
75611
|
+
};
|
|
75607
75612
|
var getDate = function getDate(curValue) {
|
|
75608
75613
|
var date = (0,date_fns__WEBPACK_IMPORTED_MODULE_6__.parse)(curValue || '', outFormat, new Date());
|
|
75609
75614
|
if ((0,date_fns__WEBPACK_IMPORTED_MODULE_7__.isValid)(date) && curValue === (0,date_fns__WEBPACK_IMPORTED_MODULE_8__.format)(date, outFormat)) {
|
|
@@ -75640,7 +75645,7 @@ function FormDateRangeFieldBase(props) {
|
|
|
75640
75645
|
};
|
|
75641
75646
|
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
|
|
75642
75647
|
onBlur: onBlur,
|
|
75643
|
-
className: (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(_styles__WEBPACK_IMPORTED_MODULE_5__.FormDateRangeStyle.wrapper, _defineProperty({}, _styles__WEBPACK_IMPORTED_MODULE_5__.FormDateRangeStyle.error, error)),
|
|
75648
|
+
className: (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(_styles__WEBPACK_IMPORTED_MODULE_5__.FormDateRangeStyle.wrapper, _defineProperty(_defineProperty({}, _styles__WEBPACK_IMPORTED_MODULE_5__.FormDateRangeStyle.error, error), _styles__WEBPACK_IMPORTED_MODULE_5__.FormDateRangeStyle.empty, isEmptyValue())),
|
|
75644
75649
|
tabIndex: -1,
|
|
75645
75650
|
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_Mask__WEBPACK_IMPORTED_MODULE_4__.Mask, {
|
|
75646
75651
|
value: getValue1(),
|