@ncds/ui-admin 0.0.36 → 0.0.37

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.
@@ -77,7 +77,7 @@ var RangeDatePicker = exports.RangeDatePicker = /*#__PURE__*/(0, _react.forwardR
77
77
  };
78
78
  (0, _react.useEffect)(function () {
79
79
  var _a;
80
- var needResetDate = validateDateType(startDateOptions.currentDate) && !(0, _lodash.isNil)((_a = validationOption === null || validationOption === void 0 ? void 0 : validationOption.initDate) === null || _a === void 0 ? void 0 : _a.startDate) && (0, _moment.default)(startDateOptions.currentDate).isAfter(endDateOptions.currentDate);
80
+ var needResetDate = validateDateType(startDateOptions.currentDate) && !(0, _lodash.isNil)((_a = validationOption === null || validationOption === void 0 ? void 0 : validationOption.initDate) === null || _a === void 0 ? void 0 : _a.startDate);
81
81
  if (needResetDate) {
82
82
  resetDateAndAlert('start');
83
83
  return;
@@ -100,7 +100,7 @@ var RangeDatePicker = exports.RangeDatePicker = /*#__PURE__*/(0, _react.forwardR
100
100
  }, [startDateOptions.currentDate]);
101
101
  (0, _react.useEffect)(function () {
102
102
  var _a;
103
- var needResetDate = validateDateType(endDateOptions.currentDate) && !(0, _lodash.isNil)((_a = validationOption === null || validationOption === void 0 ? void 0 : validationOption.initDate) === null || _a === void 0 ? void 0 : _a.endDate) && (0, _moment.default)(endDateOptions.currentDate).isBefore(startDateOptions.currentDate);
103
+ var needResetDate = validateDateType(endDateOptions.currentDate) && !(0, _lodash.isNil)((_a = validationOption === null || validationOption === void 0 ? void 0 : validationOption.initDate) === null || _a === void 0 ? void 0 : _a.endDate);
104
104
  if (needResetDate) {
105
105
  resetDateAndAlert('end');
106
106
  return;
@@ -70,7 +70,7 @@ export var RangeDatePicker = /*#__PURE__*/forwardRef(function (_a, ref) {
70
70
  };
71
71
  useEffect(function () {
72
72
  var _a;
73
- var needResetDate = validateDateType(startDateOptions.currentDate) && !isNil((_a = validationOption === null || validationOption === void 0 ? void 0 : validationOption.initDate) === null || _a === void 0 ? void 0 : _a.startDate) && moment(startDateOptions.currentDate).isAfter(endDateOptions.currentDate);
73
+ var needResetDate = validateDateType(startDateOptions.currentDate) && !isNil((_a = validationOption === null || validationOption === void 0 ? void 0 : validationOption.initDate) === null || _a === void 0 ? void 0 : _a.startDate);
74
74
  if (needResetDate) {
75
75
  resetDateAndAlert('start');
76
76
  return;
@@ -93,7 +93,7 @@ export var RangeDatePicker = /*#__PURE__*/forwardRef(function (_a, ref) {
93
93
  }, [startDateOptions.currentDate]);
94
94
  useEffect(function () {
95
95
  var _a;
96
- var needResetDate = validateDateType(endDateOptions.currentDate) && !isNil((_a = validationOption === null || validationOption === void 0 ? void 0 : validationOption.initDate) === null || _a === void 0 ? void 0 : _a.endDate) && moment(endDateOptions.currentDate).isBefore(startDateOptions.currentDate);
96
+ var needResetDate = validateDateType(endDateOptions.currentDate) && !isNil((_a = validationOption === null || validationOption === void 0 ? void 0 : validationOption.initDate) === null || _a === void 0 ? void 0 : _a.endDate);
97
97
  if (needResetDate) {
98
98
  resetDateAndAlert('end');
99
99
  return;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { unitOfTime } from 'moment';
2
3
  import { DatePickerProps } from './DatePicker';
3
4
  export type RangeDatePickerProps = {
@@ -20,5 +21,5 @@ export type RangeDatePickerProps = {
20
21
  currentDate: string;
21
22
  }) => void;
22
23
  };
23
- export declare const RangeDatePicker: import("react").ForwardRefExoticComponent<RangeDatePickerProps & import("react").RefAttributes<HTMLDivElement>>;
24
+ export declare const RangeDatePicker: React.ForwardRefExoticComponent<RangeDatePickerProps & React.RefAttributes<HTMLDivElement>>;
24
25
  //# sourceMappingURL=RangeDatePicker.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ncds/ui-admin",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "nhn-commerce의 어드민 디자인 시스템입니다.",
5
5
  "scripts": {
6
6
  "barrel": "node barrel.js",