@smart-react-components/ui 2.0.0-alpha-126 → 2.0.0-alpha-128

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.
@@ -1,6 +1,7 @@
1
1
  import { LinkProps } from '@smart-react-components/router/hooks/useLink';
2
2
  import React from 'react';
3
3
  export interface Props extends LinkProps {
4
+ isActive?: boolean;
4
5
  }
5
6
  declare const PaginationLink: React.FC<Props>;
6
7
  export default PaginationLink;
@@ -9,6 +9,7 @@ const react_1 = __importDefault(require("react"));
9
9
  const WaveEffect_1 = __importDefault(require("../WaveEffect"));
10
10
  const PaginationItemElement_1 = __importDefault(require("../components/Pagination/PaginationItemElement"));
11
11
  const PaginationLink = (props) => {
12
+ var _a;
12
13
  const { children, handleOnClick, isActive } = (0, useLink_1.default)({
13
14
  children: props.children,
14
15
  isDisabled: props.isDisabled,
@@ -19,7 +20,7 @@ const PaginationLink = (props) => {
19
20
  });
20
21
  const AnchorEl = (react_1.default.createElement(A_1.default, Object.assign({}, props.elementProps, { href: props.to, onClick: handleOnClick }), children));
21
22
  const El = props.hasWaveEffect ? react_1.default.createElement(WaveEffect_1.default, { palette: props.waveEffectPalette }, AnchorEl) : AnchorEl;
22
- return (react_1.default.createElement(PaginationItemElement_1.default, { isActive: isActive, isDisabled: props.isDisabled, isFixedSize: props.isFixedSize, isOutline: props.isOutline, isSoft: props.isSoft, palette: props.palette, shape: props.shape }, El));
23
+ return (react_1.default.createElement(PaginationItemElement_1.default, { isActive: (_a = props.isActive) !== null && _a !== void 0 ? _a : isActive, isDisabled: props.isDisabled, isFixedSize: props.isFixedSize, isOutline: props.isOutline, isSoft: props.isSoft, palette: props.palette, shape: props.shape }, El));
23
24
  };
24
25
  PaginationLink.defaultProps = {
25
26
  isExact: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-react-components/ui",
3
- "version": "2.0.0-alpha-126",
3
+ "version": "2.0.0-alpha-128",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "description": "SRC UI includes React and Styled components.",