indicator-ui 0.0.91 → 0.0.93

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
@@ -3274,7 +3274,7 @@ __webpack_require__.r(__webpack_exports__);
3274
3274
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
3275
3275
  /* harmony export */ });
3276
3276
  // extracted by mini-css-extract-plugin
3277
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"pageSwitcher":"PageSwitcher-module__pageSwitcher___PGQPI","arrowButtons":"PageSwitcher-module__arrowButtons___Ly4oS","buttonsList":"PageSwitcher-module__buttonsList___dxvZB","plug":"PageSwitcher-module__plug___vUKSL","numberButton":"PageSwitcher-module__numberButton___TgDNV","active":"PageSwitcher-module__active___Mx_1z"});
3277
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"pageSwitcher":"PageSwitcher-module__pageSwitcher___PGQPI","arrowButtons":"PageSwitcher-module__arrowButtons___Ly4oS","buttonsList":"PageSwitcher-module__buttonsList___dxvZB","plug":"PageSwitcher-module__plug___vUKSL","numberButton":"PageSwitcher-module__numberButton___TgDNV","active":"PageSwitcher-module__active___Mx_1z","smallVersion":"PageSwitcher-module__smallVersion___YJr68"});
3278
3278
 
3279
3279
  /***/ }),
3280
3280
 
@@ -7054,7 +7054,7 @@ function Button({ children, text, iconLeft, iconRight, hierarchy = 'primary', wa
7054
7054
  return warning ? className?.warning : '';
7055
7055
  };
7056
7056
  const getMainContent = () => {
7057
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [iconLeft && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: className?.icon, children: iconLeft }), children || text && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: className?.text, children: text || children }), iconRight && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: className?.icon, children: iconRight })] }));
7057
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [iconLeft && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: className?.icon, children: iconLeft }), (children || text) && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: className?.text, children: text || children }), iconRight && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: className?.icon, children: iconRight })] }));
7058
7058
  };
7059
7059
  const getClassName = () => {
7060
7060
  return (0,clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(className?.button, getHierarchyClassName(), getSizeClassName(), getWidthClassName(), getHeightClassName(), additionStyles, getWarningStyles(), { [_styles__WEBPACK_IMPORTED_MODULE_3__.ButtonsStyle.disabled]: disabled });
@@ -10398,7 +10398,7 @@ function PageSwitcher({ curPage = 1, numPage, next, prev, onChange, smallVersion
10398
10398
  [_styles__WEBPACK_IMPORTED_MODULE_4__.PageSwitcherStyle.active]: item === curPage
10399
10399
  }), children: item }, idx));
10400
10400
  };
10401
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: _styles__WEBPACK_IMPORTED_MODULE_4__.PageSwitcherStyle.pageSwitcher, children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_2__.Button, { onClick: prev, width: 'hug', iconLeft: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_3__.ArrowLeftSVG, {}), hierarchy: 'link-gray', size: 'small', disabled: curPage === 1, children: smallVersion ? undefined : 'Предыдущая' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: _styles__WEBPACK_IMPORTED_MODULE_4__.PageSwitcherStyle.buttonsList, children: (smallVersion ? getNumberListSmall() : getNumberList()).map((item, idx) => getNumberButton(item, idx)) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_2__.Button, { onClick: next, width: 'hug', iconRight: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_3__.ArrowRightSVG, {}), hierarchy: 'link-gray', size: 'small', disabled: curPage === numPage, children: smallVersion ? undefined : 'Следующая' })] }));
10401
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(_styles__WEBPACK_IMPORTED_MODULE_4__.PageSwitcherStyle.pageSwitcher, { [_styles__WEBPACK_IMPORTED_MODULE_4__.PageSwitcherStyle.smallVersion]: smallVersion }), children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_2__.Button, { onClick: prev, width: 'hug', iconLeft: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_3__.ArrowLeftSVG, {}), hierarchy: 'link-gray', size: 'small', disabled: curPage === 1, children: smallVersion ? undefined : 'Предыдущая' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: _styles__WEBPACK_IMPORTED_MODULE_4__.PageSwitcherStyle.buttonsList, children: (smallVersion ? getNumberListSmall() : getNumberList()).map((item, idx) => getNumberButton(item, idx)) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_2__.Button, { onClick: next, width: 'hug', iconRight: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_3__.ArrowRightSVG, {}), hierarchy: 'link-gray', size: 'small', disabled: curPage === numPage, children: smallVersion ? undefined : 'Следующая' })] }));
10402
10402
  }
10403
10403
 
10404
10404