@synerise/ds-stepper 0.4.51 → 0.5.0

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,25 @@
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.5.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-stepper@0.4.52...@synerise/ds-stepper@0.5.0) (2025-01-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * antd@4.24 react@18 ([d97a667](https://github.com/Synerise/synerise-design/commit/d97a667b1f33aed3177e1851de3b6f60be2d46a6))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.4.52](https://github.com/Synerise/synerise-design/compare/@synerise/ds-stepper@0.4.51...@synerise/ds-stepper@0.4.52) (2025-01-21)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-stepper
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.4.51](https://github.com/Synerise/synerise-design/compare/@synerise/ds-stepper@0.4.50...@synerise/ds-stepper@0.4.51) (2025-01-15)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-stepper
package/dist/Stepper.d.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
- import { StepperProps, StepperSubComponents } from './Stepper.types';
3
- declare const Stepper: React.FC<StepperProps> & StepperSubComponents;
2
+ import { StepperProps } from './Stepper.types';
3
+ declare const Stepper: {
4
+ ({ orientation, style, children, size }: StepperProps): React.JSX.Element;
5
+ Step: ({ stepNumber, label, active, done, warning, validated, tooltip, onClick, children, size, orientation, }: import("./Step/Step.types").StepProps) => React.JSX.Element;
6
+ };
4
7
  export default Stepper;
package/dist/Stepper.js CHANGED
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { Children, cloneElement, isValidElement } from 'react';
2
2
  import * as S from './Stepper.styles';
3
3
  import { ORIENTATIONS } from './Stepper.types';
4
4
  import Step from './Step/Step';
@@ -13,8 +13,8 @@ var Stepper = function Stepper(_ref) {
13
13
  className: "ds-stepper",
14
14
  orientation: orientation,
15
15
  style: style
16
- }, children && React.Children.map(children, function (Child, index) {
17
- return /*#__PURE__*/React.createElement(React.Fragment, null, React.isValidElement(Child) ? React.cloneElement(Child, {
16
+ }, children && Children.map(children, function (Child, index) {
17
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isValidElement(Child) ? cloneElement(Child, {
18
18
  size: size,
19
19
  orientation: orientation
20
20
  }) : Child, orientation === ORIENTATIONS.HORIZONTAL && index < children.length - 1 && /*#__PURE__*/React.createElement(S.StepDivider, null));
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import type { CSSProperties, ReactNode } from 'react';
2
2
  import Step from './Step/Step';
3
3
  export type StepperOrientation = 'vertical' | 'horizontal' | string;
4
4
  export type StepperSize = 'small' | 'default' | string;
@@ -10,6 +10,7 @@ export type StepperProps = {
10
10
  orientation?: StepperOrientation;
11
11
  style?: CSSProperties;
12
12
  size?: StepperSize;
13
+ children?: ReactNode;
13
14
  };
14
15
  export type StepperSubComponents = {
15
16
  Step: typeof Step;
package/dist/modules.d.js CHANGED
@@ -1 +1 @@
1
- import '@testing-library/jest-dom/extend-expect';
1
+ import '@testing-library/jest-dom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-stepper",
3
- "version": "0.4.51",
3
+ "version": "0.5.0",
4
4
  "description": "Stepper UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,15 +34,15 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-icon": "^0.69.1",
38
- "@synerise/ds-tooltip": "^0.14.54",
39
- "@synerise/ds-utils": "^0.31.2",
37
+ "@synerise/ds-icon": "^0.71.0",
38
+ "@synerise/ds-tooltip": "^0.15.0",
39
+ "@synerise/ds-utils": "^0.32.0",
40
40
  "react-animate-height": "^2.0.23"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@synerise/ds-core": "*",
44
- "react": ">=16.9.0 <= 17.0.2",
45
- "styled-components": "5.0.1"
44
+ "react": ">=16.9.0 <= 18.3.1",
45
+ "styled-components": "^5.3.3"
46
46
  },
47
- "gitHead": "f591d14d24d6a14aab76edcb60f04aaadec8336d"
47
+ "gitHead": "fbde34e126b492edaf148e469ab96247a891d6df"
48
48
  }