@synerise/ds-stepper 0.4.52 → 0.5.1
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 +19 -0
- package/dist/Stepper.d.ts +5 -2
- package/dist/Stepper.js +3 -3
- package/dist/Stepper.types.d.ts +2 -1
- package/dist/modules.d.js +1 -1
- package/package.json +7 -7
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.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-stepper@0.5.0...@synerise/ds-stepper@0.5.1) (2025-02-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-stepper
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [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)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* antd@4.24 react@18 ([d97a667](https://github.com/Synerise/synerise-design/commit/d97a667b1f33aed3177e1851de3b6f60be2d46a6))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [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)
|
|
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
|
|
3
|
-
declare const Stepper:
|
|
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 &&
|
|
17
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
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));
|
package/dist/Stepper.types.d.ts
CHANGED
|
@@ -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
|
|
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.
|
|
3
|
+
"version": "0.5.1",
|
|
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.
|
|
38
|
-
"@synerise/ds-tooltip": "^0.
|
|
39
|
-
"@synerise/ds-utils": "^0.
|
|
37
|
+
"@synerise/ds-icon": "^0.71.1",
|
|
38
|
+
"@synerise/ds-tooltip": "^0.15.1",
|
|
39
|
+
"@synerise/ds-utils": "^0.32.1",
|
|
40
40
|
"react-animate-height": "^2.0.23"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@synerise/ds-core": "*",
|
|
44
|
-
"react": ">=16.9.0 <=
|
|
45
|
-
"styled-components": "5.
|
|
44
|
+
"react": ">=16.9.0 <= 18.3.1",
|
|
45
|
+
"styled-components": "^5.3.3"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "38cb22e1c46d175306dd87e10649410eb93a4e44"
|
|
48
48
|
}
|