@synerise/ds-stepper 0.3.34 → 0.3.35
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 +11 -0
- package/dist/Step/Step.js +3 -3
- package/dist/Step/Step.styles.d.ts +2 -3
- package/dist/Step/Step.styles.js +6 -6
- package/package.json +11 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.3.35](https://github.com/Synerise/synerise-design/compare/@synerise/ds-stepper@0.3.34...@synerise/ds-stepper@0.3.35) (2023-09-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **stepper:** removes hover styles if no onclick prop ([edb9dd0](https://github.com/Synerise/synerise-design/commit/edb9dd0139bed7247d4051b87185bda095773d5f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.3.34](https://github.com/Synerise/synerise-design/compare/@synerise/ds-stepper@0.3.33...@synerise/ds-stepper@0.3.34) (2023-08-30)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-stepper
|
package/dist/Step/Step.js
CHANGED
|
@@ -46,10 +46,10 @@ var Step = function Step(_ref) {
|
|
|
46
46
|
validated: Boolean(validated),
|
|
47
47
|
hasChildren: Boolean(children),
|
|
48
48
|
size: size,
|
|
49
|
-
orientation: orientation
|
|
50
|
-
}, /*#__PURE__*/React.createElement(S.StepWrapper, {
|
|
51
|
-
onClick: handleClick,
|
|
49
|
+
orientation: orientation,
|
|
52
50
|
clickable: Boolean(onClick)
|
|
51
|
+
}, /*#__PURE__*/React.createElement(S.StepWrapper, {
|
|
52
|
+
onClick: handleClick
|
|
53
53
|
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
54
54
|
trigger: ['hover'],
|
|
55
55
|
title: label
|
|
@@ -5,9 +5,7 @@ export declare const StepPrefix: import("styled-components").StyledComponent<"di
|
|
|
5
5
|
export declare const StepNumber: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
6
6
|
export declare const StepName: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
7
|
export declare const StepLabel: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
8
|
-
export declare const StepWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
-
clickable: boolean;
|
|
10
|
-
}, never>;
|
|
8
|
+
export declare const StepWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
9
|
export declare const StepContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
10
|
export declare const Step: import("styled-components").StyledComponent<"div", any, {
|
|
13
11
|
active: boolean;
|
|
@@ -18,4 +16,5 @@ export declare const Step: import("styled-components").StyledComponent<"div", an
|
|
|
18
16
|
hasChildren: boolean;
|
|
19
17
|
size: StepperSize;
|
|
20
18
|
orientation: StepperOrientation;
|
|
19
|
+
clickable: boolean;
|
|
21
20
|
}, never>;
|
package/dist/Step/Step.styles.js
CHANGED
|
@@ -27,9 +27,7 @@ export var StepLabel = styled.span.withConfig({
|
|
|
27
27
|
export var StepWrapper = styled.div.withConfig({
|
|
28
28
|
displayName: "Stepstyles__StepWrapper",
|
|
29
29
|
componentId: "sc-1sayddf-4"
|
|
30
|
-
})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;
|
|
31
|
-
return props.clickable ? 'pointer' : 'default';
|
|
32
|
-
});
|
|
30
|
+
})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;"]);
|
|
33
31
|
export var StepContent = styled.div.withConfig({
|
|
34
32
|
displayName: "Stepstyles__StepContent",
|
|
35
33
|
componentId: "sc-1sayddf-5"
|
|
@@ -39,7 +37,7 @@ export var StepContent = styled.div.withConfig({
|
|
|
39
37
|
export var Step = styled.div.withConfig({
|
|
40
38
|
displayName: "Stepstyles__Step",
|
|
41
39
|
componentId: "sc-1sayddf-6"
|
|
42
|
-
})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;position:relative;", ";", ";", ";", ";&:last-of-type{", "{border-left:0;}}"], function (props) {
|
|
40
|
+
})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;position:relative;", ";", ";", ";", ";&:last-of-type{", "{border-left:0;}}", "{cursor:", ";}"], function (props) {
|
|
43
41
|
if (props.wasActive) {
|
|
44
42
|
return css(["", "{transition-delay:0s;}"], StepName);
|
|
45
43
|
}
|
|
@@ -67,5 +65,7 @@ export var Step = styled.div.withConfig({
|
|
|
67
65
|
if (props.warning) return css(["", "{border-color:", ";}", "", ",", "", "{color:", ";font-weight:400;}"], StepPrefix, props.theme.palette['yellow-600'], StepNumber, StepNumber, StepLabel, StepLabel, props.theme.palette['yellow-600']);
|
|
68
66
|
if (props.done) return css(["", "{border-color:", ";}", ",", "{color:", ";font-weight:400;}"], StepPrefix, props.theme.palette['green-600'], StepNumber, StepLabel, props.theme.palette['green-600']);
|
|
69
67
|
if (props.active) return css(["", "{border-color:", ";}", "{color:", ";font-weight:500;}", "{&::before{border-color:", ";color:", ";visibility:visible;}", "{visibility:hidden;}}"], StepPrefix, props.theme.palette['grey-700'], StepNumber, props.theme.palette['grey-700'], StepName, props.theme.palette['grey-700'], props.theme.palette['grey-700'], StepLabel);
|
|
70
|
-
return css(["&:hover{", "{border-color:", ";}", ",", "{color:", ";font-weight:400;}}"], StepPrefix, props.theme.palette['grey-700'], StepNumber, StepLabel, props.theme.palette['grey-700']);
|
|
71
|
-
}, StepContent)
|
|
68
|
+
return props.clickable && css(["&:hover{", "{border-color:", ";}", ",", "{color:", ";font-weight:400;}}"], StepPrefix, props.theme.palette['grey-700'], StepNumber, StepLabel, props.theme.palette['grey-700']);
|
|
69
|
+
}, StepContent, StepWrapper, function (props) {
|
|
70
|
+
return props.clickable ? 'pointer' : 'default';
|
|
71
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-stepper",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.35",
|
|
4
4
|
"description": "Stepper UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -32,14 +32,19 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-icon": "^0.58.
|
|
36
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
37
|
-
"@synerise/ds-utils": "^0.24.
|
|
35
|
+
"@synerise/ds-icon": "^0.58.1",
|
|
36
|
+
"@synerise/ds-tooltip": "^0.14.3",
|
|
37
|
+
"@synerise/ds-utils": "^0.24.15",
|
|
38
38
|
"react-animate-height": "^2.0.23"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@synerise/ds-core": "*",
|
|
42
|
-
"react": ">=16.9.0 < 17.0.0"
|
|
42
|
+
"react": ">=16.9.0 < 17.0.0",
|
|
43
|
+
"styled-components": "5.0.1"
|
|
43
44
|
},
|
|
44
|
-
"
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@testing-library/jest-dom": "5.1.1",
|
|
47
|
+
"@testing-library/user-event": "^10.3.1"
|
|
48
|
+
},
|
|
49
|
+
"gitHead": "a2b1a3a78d87edfdbe97ae2f66573f4736f30e8b"
|
|
45
50
|
}
|