@smart-react-components/ui 2.1.0-alpha-13 → 2.1.0-alpha-15

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.
@@ -13,7 +13,7 @@ const wave_effect_1 = require("../util/wave-effect");
13
13
  const BreadcrumbLink = (props) => {
14
14
  const theme = (0, styled_components_1.useTheme)();
15
15
  const waveEffectPalette = react_1.default.useMemo(() => (0, wave_effect_1.getWaveEffectPalette)(props, theme.$.vars.isDarkMode), [props.palette, props.isOutline, props.isSoft, props.waveEffectPalette, theme.$.vars.isDarkMode]);
16
- const { children, handleOnClick, isActive } = (0, useLink_1.default)({
16
+ const { children, handleOnClick, isActive, to } = (0, useLink_1.default)({
17
17
  children: props.children,
18
18
  isDisabled: props.isDisabled,
19
19
  isExact: props.isExact,
@@ -21,7 +21,7 @@ const BreadcrumbLink = (props) => {
21
21
  path: props.path,
22
22
  to: props.to,
23
23
  });
24
- const AnchorEl = (react_1.default.createElement(A_1.default, Object.assign({}, props.elementProps, { href: props.to, onClick: handleOnClick }), children));
24
+ const AnchorEl = (react_1.default.createElement(A_1.default, Object.assign({}, props.elementProps, { href: to, onClick: handleOnClick }), children));
25
25
  const El = props.hasWaveEffect ? react_1.default.createElement(WaveEffect_1.default, { palette: waveEffectPalette }, AnchorEl) : AnchorEl;
26
26
  return (react_1.default.createElement(BreadcrumbItemElement_1.default, { isActive: isActive, isDisabled: props.isDisabled, isOutline: props.isOutline, isSoft: props.isSoft, palette: props.palette, separator: props.separator, shape: props.shape }, El));
27
27
  };
@@ -7,12 +7,12 @@ const useLink_1 = __importDefault(require("@smart-react-components/router/hooks/
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const _1 = __importDefault(require("./"));
9
9
  const ButtonLink = react_1.default.forwardRef((props, forwardRef) => {
10
- const { children, handleOnClick } = (0, useLink_1.default)({
10
+ const { children, handleOnClick, to } = (0, useLink_1.default)({
11
11
  children: props.children,
12
12
  isDisabled: props.isDisabled,
13
13
  to: props.to,
14
14
  });
15
- return (react_1.default.createElement(_1.default, Object.assign({}, props, { as: "a", elementProps: Object.assign(Object.assign({}, props.elementProps), { href: props.to, textDecoration: 'none' }), onClick: handleOnClick }), children));
15
+ return (react_1.default.createElement(_1.default, Object.assign({}, props, { as: "a", elementProps: Object.assign(Object.assign({}, props.elementProps), { href: to, textDecoration: 'none' }), onClick: handleOnClick }), children));
16
16
  });
17
17
  ButtonLink.defaultProps = {
18
18
  elementProps: {},
@@ -10,7 +10,7 @@ const WaveEffect_1 = __importDefault(require("../WaveEffect"));
10
10
  const PaginationItemElement_1 = __importDefault(require("../components/Pagination/PaginationItemElement"));
11
11
  const PaginationLink = (props) => {
12
12
  var _a;
13
- const { children, handleOnClick, isActive } = (0, useLink_1.default)({
13
+ const { children, handleOnClick, isActive, to } = (0, useLink_1.default)({
14
14
  children: props.children,
15
15
  isDisabled: props.isDisabled,
16
16
  isExact: props.isExact,
@@ -18,7 +18,7 @@ const PaginationLink = (props) => {
18
18
  path: props.path,
19
19
  to: props.to,
20
20
  });
21
- const AnchorEl = (react_1.default.createElement(A_1.default, Object.assign({}, props.elementProps, { href: props.to, onClick: handleOnClick }), children));
21
+ const AnchorEl = (react_1.default.createElement(A_1.default, Object.assign({}, props.elementProps, { href: to, onClick: handleOnClick }), children));
22
22
  const El = props.hasWaveEffect ? react_1.default.createElement(WaveEffect_1.default, { palette: props.waveEffectPalette }, AnchorEl) : AnchorEl;
23
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));
24
24
  };
@@ -41,6 +41,7 @@ exports.default = (0, styled_components_1.default)(Div_1.default).attrs(({ isBlo
41
41
  fill: currentcolor;
42
42
  flex-direction: column;
43
43
  max-height: 100%;
44
+ min-width: 1px;
44
45
 
45
46
  ${(isBlock || isFullScreen)
46
47
  ? `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-react-components/ui",
3
- "version": "2.1.0-alpha-13",
3
+ "version": "2.1.0-alpha-15",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "description": "SRC UI includes React and Styled components.",
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "devDependencies": {
67
67
  "@smart-react-components/core": "2.1.0-alpha-16",
68
- "@smart-react-components/router": "2.1.0-alpha-9",
68
+ "@smart-react-components/router": "2.1.0-alpha-10",
69
69
  "@smart-react-components/transition": "2.1.0-alpha-9",
70
70
  "@testing-library/react": "13.4.0",
71
71
  "@types/jest": "29.0.1",
@@ -84,7 +84,7 @@
84
84
  },
85
85
  "peerDependencies": {
86
86
  "@smart-react-components/core": "^2.1.0-alpha-16",
87
- "@smart-react-components/router": "^2.1.0-alpha-9",
87
+ "@smart-react-components/router": "^2.1.0-alpha-10",
88
88
  "@smart-react-components/transition": "^2.1.0-alpha-9",
89
89
  "react": "^18.2.0",
90
90
  "react-dom": "^18.2.0",