indicator-ui 0.0.160 → 0.0.162

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.js CHANGED
@@ -9768,7 +9768,7 @@ __webpack_require__.r(__webpack_exports__);
9768
9768
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js");
9769
9769
  /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/ui */ "./src/ui/index.ts");
9770
9770
  /* harmony import */ var _assets__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets */ "./src/assets/index.ts");
9771
- /* harmony import */ var _ui_InputFields_DateTimeRangeField_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/ui/InputFields/DateTimeRangeField/styles */ "./src/ui/InputFields/DateTimeRangeField/styles/index.ts");
9771
+ /* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../styles */ "./src/ui/InputFields/DateTimeRangeField/styles/index.ts");
9772
9772
 
9773
9773
 
9774
9774
 
@@ -9781,7 +9781,7 @@ function DateTimeRangeField({ value, onChange, ...props }) {
9781
9781
  onChange(newValue);
9782
9782
  }
9783
9783
  };
9784
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: _ui_InputFields_DateTimeRangeField_styles__WEBPACK_IMPORTED_MODULE_3__.DateTimeRangeFieldStyle.DateTimeRangeField, children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: _ui_InputFields_DateTimeRangeField_styles__WEBPACK_IMPORTED_MODULE_3__.DateTimeRangeFieldStyle.icon, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_2__.CalendarSVG, {}) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: _ui_InputFields_DateTimeRangeField_styles__WEBPACK_IMPORTED_MODULE_3__.DateTimeRangeFieldStyle.item, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_1__.DateTimeField, { ...props, value: value?.[0], onChange: (data) => handleChange(data, 0) }) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: _ui_InputFields_DateTimeRangeField_styles__WEBPACK_IMPORTED_MODULE_3__.DateTimeRangeFieldStyle.item, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_1__.DateTimeField, { ...props, value: value?.[1], onChange: (data) => handleChange(data, 1) }) })] }));
9784
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: _styles__WEBPACK_IMPORTED_MODULE_3__.DateTimeRangeFieldStyle.DateTimeRangeField, children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: _styles__WEBPACK_IMPORTED_MODULE_3__.DateTimeRangeFieldStyle.icon, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_2__.CalendarSVG, {}) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: _styles__WEBPACK_IMPORTED_MODULE_3__.DateTimeRangeFieldStyle.item, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_1__.DateTimeField, { ...props, value: value?.[0], onChange: (data) => handleChange(data, 0) }) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: _styles__WEBPACK_IMPORTED_MODULE_3__.DateTimeRangeFieldStyle.item, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_1__.DateTimeField, { ...props, value: value?.[1], onChange: (data) => handleChange(data, 1) }) })] }));
9785
9785
  }
9786
9786
 
9787
9787
 
@@ -11391,6 +11391,8 @@ __webpack_require__.r(__webpack_exports__);
11391
11391
 
11392
11392
  function PageSwitcher({ curPage = 1, numPage, next, prev, onChange, smallVersion = false, }) {
11393
11393
  const getNumberList = () => {
11394
+ if (numPage === 0)
11395
+ return undefined;
11394
11396
  if (numPage <= 7) {
11395
11397
  return Array.from({ length: numPage }, (_, i) => i + 1);
11396
11398
  }
@@ -11406,6 +11408,8 @@ function PageSwitcher({ curPage = 1, numPage, next, prev, onChange, smallVersion
11406
11408
  return [1, '...', curPage - 1, curPage, curPage + 1, '...', numPage];
11407
11409
  };
11408
11410
  const getNumberListSmall = () => {
11411
+ if (numPage === 0)
11412
+ return undefined;
11409
11413
  if (numPage <= 5) {
11410
11414
  return Array.from({ length: numPage }, (_, i) => i + 1);
11411
11415
  }