@synerise/ds-stepper 0.4.46 → 0.4.48

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.4.48](https://github.com/Synerise/synerise-design/compare/@synerise/ds-stepper@0.4.47...@synerise/ds-stepper@0.4.48) (2024-11-29)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-stepper
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.4.47](https://github.com/Synerise/synerise-design/compare/@synerise/ds-stepper@0.4.46...@synerise/ds-stepper@0.4.47) (2024-11-28)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-stepper
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.4.46](https://github.com/Synerise/synerise-design/compare/@synerise/ds-stepper@0.4.45...@synerise/ds-stepper@0.4.46) (2024-11-21)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-stepper
package/dist/Step/Step.js CHANGED
@@ -5,26 +5,23 @@ import { theme } from '@synerise/ds-core';
5
5
  import Tooltip from '@synerise/ds-tooltip';
6
6
  import * as S from './Step.styles';
7
7
  import { ORIENTATIONS } from '../Stepper.types';
8
-
9
8
  var Step = function Step(_ref) {
10
9
  var stepNumber = _ref.stepNumber,
11
- label = _ref.label,
12
- active = _ref.active,
13
- done = _ref.done,
14
- warning = _ref.warning,
15
- validated = _ref.validated,
16
- tooltip = _ref.tooltip,
17
- onClick = _ref.onClick,
18
- children = _ref.children,
19
- _ref$size = _ref.size,
20
- size = _ref$size === void 0 ? 'default' : _ref$size,
21
- _ref$orientation = _ref.orientation,
22
- orientation = _ref$orientation === void 0 ? ORIENTATIONS.HORIZONTAL : _ref$orientation;
23
-
10
+ label = _ref.label,
11
+ active = _ref.active,
12
+ done = _ref.done,
13
+ warning = _ref.warning,
14
+ validated = _ref.validated,
15
+ tooltip = _ref.tooltip,
16
+ onClick = _ref.onClick,
17
+ children = _ref.children,
18
+ _ref$size = _ref.size,
19
+ size = _ref$size === void 0 ? 'default' : _ref$size,
20
+ _ref$orientation = _ref.orientation,
21
+ orientation = _ref$orientation === void 0 ? ORIENTATIONS.HORIZONTAL : _ref$orientation;
24
22
  var _useState = useState(Boolean(active)),
25
- wasActive = _useState[0],
26
- setWasActive = _useState[1];
27
-
23
+ wasActive = _useState[0],
24
+ setWasActive = _useState[1];
28
25
  var handleClick = useCallback(function () {
29
26
  onClick && onClick();
30
27
  }, [onClick]);
@@ -32,7 +29,6 @@ var Step = function Step(_ref) {
32
29
  if (!active && wasActive) {
33
30
  setWasActive(false);
34
31
  }
35
-
36
32
  if (active) {
37
33
  setWasActive(true);
38
34
  }
@@ -72,5 +68,4 @@ var Step = function Step(_ref) {
72
68
  height: active ? 'auto' : 0
73
69
  }, children)));
74
70
  };
75
-
76
71
  export default Step;
@@ -41,23 +41,19 @@ export var Step = styled.div.withConfig({
41
41
  if (props.wasActive) {
42
42
  return css(["", "{transition-delay:0s;}"], StepName);
43
43
  }
44
-
45
44
  if (props.active && !props.wasActive) {
46
45
  return css(["", "{transition-delay:0.3s;}"], StepName);
47
46
  }
48
-
49
47
  return false;
50
48
  }, function (props) {
51
49
  if (props.size === 'small' && props.orientation === ORIENTATIONS.HORIZONTAL) {
52
50
  return css(["", "{margin-right:0;}", "{max-width:0;opacity:0;}"], StepPrefix, StepName);
53
51
  }
54
-
55
52
  return false;
56
53
  }, function (props) {
57
54
  if (props.active && props.size === 'small' && props.orientation === ORIENTATIONS.HORIZONTAL) {
58
55
  return css(["", "{margin-right:8px;}", "{max-width:100px;opacity:1;}"], StepPrefix, StepName);
59
56
  }
60
-
61
57
  if (props.active) return css(["", "{padding:", " 0 ", " 20px;}"], StepContent, props.hasChildren ? '16px' : '0', props.hasChildren ? '16px' : '0');
62
58
  return false;
63
59
  }, function (props) {
package/dist/Stepper.js CHANGED
@@ -2,14 +2,13 @@ import React from 'react';
2
2
  import * as S from './Stepper.styles';
3
3
  import { ORIENTATIONS } from './Stepper.types';
4
4
  import Step from './Step/Step';
5
-
6
5
  var Stepper = function Stepper(_ref) {
7
6
  var _ref$orientation = _ref.orientation,
8
- orientation = _ref$orientation === void 0 ? ORIENTATIONS.HORIZONTAL : _ref$orientation,
9
- style = _ref.style,
10
- children = _ref.children,
11
- _ref$size = _ref.size,
12
- size = _ref$size === void 0 ? 'default' : _ref$size;
7
+ orientation = _ref$orientation === void 0 ? ORIENTATIONS.HORIZONTAL : _ref$orientation,
8
+ style = _ref.style,
9
+ children = _ref.children,
10
+ _ref$size = _ref.size,
11
+ size = _ref$size === void 0 ? 'default' : _ref$size;
13
12
  return /*#__PURE__*/React.createElement(S.StepperWrapper, {
14
13
  className: "ds-stepper",
15
14
  orientation: orientation,
@@ -21,6 +20,5 @@ var Stepper = function Stepper(_ref) {
21
20
  }) : Child, orientation === ORIENTATIONS.HORIZONTAL && index < children.length - 1 && /*#__PURE__*/React.createElement(S.StepDivider, null));
22
21
  }));
23
22
  };
24
-
25
23
  Stepper.Step = Step;
26
24
  export default Stepper;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-stepper",
3
- "version": "0.4.46",
3
+ "version": "0.4.48",
4
4
  "description": "Stepper UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,8 +34,8 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-icon": "^0.67.0",
38
- "@synerise/ds-tooltip": "^0.14.49",
37
+ "@synerise/ds-icon": "^0.68.0",
38
+ "@synerise/ds-tooltip": "^0.14.51",
39
39
  "@synerise/ds-utils": "^0.31.2",
40
40
  "react-animate-height": "^2.0.23"
41
41
  },
@@ -44,5 +44,5 @@
44
44
  "react": ">=16.9.0 <= 17.0.2",
45
45
  "styled-components": "5.0.1"
46
46
  },
47
- "gitHead": "05f083c767e2cec3c2f91c9475aee89852a77d6c"
47
+ "gitHead": "9ebd107163650754a5f55680d62d30812d740084"
48
48
  }