@synerise/ds-wizard 1.0.21 → 1.0.23

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
+ ## [1.0.23](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@1.0.22...@synerise/ds-wizard@1.0.23) (2025-07-24)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-wizard
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.22](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@1.0.21...@synerise/ds-wizard@1.0.22) (2025-07-17)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **wizard:** pass modal footer props to wizard on modal ([2be7c31](https://github.com/Synerise/synerise-design/commit/2be7c31cbd827f8baaa0d85f5b2958cc5add585a))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [1.0.21](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@1.0.20...@synerise/ds-wizard@1.0.21) (2025-07-15)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-wizard
@@ -1,20 +1,23 @@
1
1
  export declare const WizardWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  export declare const WizardHeader: import("styled-components").StyledComponent<"div", any, {
3
- withHeaderAction?: boolean | undefined;
3
+ withHeaderAction?: boolean;
4
4
  }, never>;
5
5
  export declare const WizardStepper: import("styled-components").StyledComponent<"div", any, {}, never>;
6
6
  export declare const WizardHeaderAction: import("styled-components").StyledComponent<"div", any, {}, never>;
7
7
  export declare const WizardContainer: import("styled-components").StyledComponent<"div", any, {
8
- contentWidth?: string | undefined;
8
+ contentWidth?: string;
9
9
  withFooter: boolean;
10
10
  }, never>;
11
11
  export declare const WizardButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
12
12
  export declare const WizardContent: import("styled-components").StyledComponent<"div", any, {
13
- contentWidth?: string | undefined;
13
+ contentWidth?: string;
14
14
  }, never>;
15
15
  export declare const ModalWizardContent: import("styled-components").StyledComponent<"div", any, {}, never>;
16
16
  export declare const ButtonPlaceholder: import("styled-components").StyledComponent<"span", any, {}, never>;
17
17
  export declare const ModalWizardButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
18
+ export declare const ModalWizardButtonsInfix: import("styled-components").StyledComponent<"div", any, {}, never>;
19
+ export declare const ModalWizardButtonsSuffix: import("styled-components").StyledComponent<"div", any, {}, never>;
20
+ export declare const ModalWizardButtonsPrefix: import("styled-components").StyledComponent<"div", any, {}, never>;
18
21
  export declare const FooterLeftSide: import("styled-components").StyledComponent<"div", any, {}, never>;
19
22
  export declare const FooterRightSide: import("styled-components").StyledComponent<"div", any, {}, never>;
20
23
  export declare const WizardFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -51,17 +51,29 @@ export var ModalWizardButtons = styled.div.withConfig({
51
51
  displayName: "Wizardstyles__ModalWizardButtons",
52
52
  componentId: "sc-1lvfph4-9"
53
53
  })(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;"]);
54
+ export var ModalWizardButtonsInfix = styled.div.withConfig({
55
+ displayName: "Wizardstyles__ModalWizardButtonsInfix",
56
+ componentId: "sc-1lvfph4-10"
57
+ })(["align-self:center;display:flex;"]);
58
+ export var ModalWizardButtonsSuffix = styled.div.withConfig({
59
+ displayName: "Wizardstyles__ModalWizardButtonsSuffix",
60
+ componentId: "sc-1lvfph4-11"
61
+ })(["align-self:flex-end;display:flex;"]);
62
+ export var ModalWizardButtonsPrefix = styled.div.withConfig({
63
+ displayName: "Wizardstyles__ModalWizardButtonsPrefix",
64
+ componentId: "sc-1lvfph4-12"
65
+ })(["align-self:flex-start;display:flex;"]);
54
66
  export var FooterLeftSide = styled.div.withConfig({
55
67
  displayName: "Wizardstyles__FooterLeftSide",
56
- componentId: "sc-1lvfph4-10"
68
+ componentId: "sc-1lvfph4-13"
57
69
  })(["display:flex;justify-content:flex-start;"]);
58
70
  export var FooterRightSide = styled.div.withConfig({
59
71
  displayName: "Wizardstyles__FooterRightSide",
60
- componentId: "sc-1lvfph4-11"
72
+ componentId: "sc-1lvfph4-14"
61
73
  })(["display:flex;justify-content:flex-end;align-items:center;gap:16px;", "{display:none;}"], ButtonPlaceholder);
62
74
  export var WizardFooter = styled.div.withConfig({
63
75
  displayName: "Wizardstyles__WizardFooter",
64
- componentId: "sc-1lvfph4-12"
76
+ componentId: "sc-1lvfph4-15"
65
77
  })(["display:flex;justify-content:space-between;width:calc(100% - 48px);padding:15px 0;margin:0 24px;background-color:", ";border-top:1px solid ", ";position:fixed;bottom:0;left:0;& > *{margin-right:8px;}", ":empty,", ":empty{display:none;}"], function (props) {
66
78
  return props.theme.palette.white;
67
79
  }, function (props) {
@@ -69,7 +81,7 @@ export var WizardFooter = styled.div.withConfig({
69
81
  }, FooterLeftSide, FooterRightSide);
70
82
  export var HeaderActions = styled.div.withConfig({
71
83
  displayName: "Wizardstyles__HeaderActions",
72
- componentId: "sc-1lvfph4-13"
84
+ componentId: "sc-1lvfph4-16"
73
85
  })(["display:flex;flex-direction:row;align-items:center;justify-content:flex-end;margin-right:16px;padding-right:24px;position:relative;.ds-stepper{margin-right:24px;}&:after{content:'';display:flex;height:40px;width:1px;background-color:", ";position:absolute;right:0;top:-4px;}"], function (props) {
74
86
  return props.theme.palette['grey-200'];
75
87
  });
@@ -31,19 +31,19 @@ var WizardOnModal = function WizardOnModal(_ref) {
31
31
  title: title
32
32
  }, modalProps, {
33
33
  headerActions: /*#__PURE__*/React.createElement(S.HeaderActions, null, stepper, " ", headerAction),
34
- footer: /*#__PURE__*/React.createElement(S.ModalWizardButtons, null, onPrevStep ? /*#__PURE__*/React.createElement(Button, _extends({}, prevButtonProps, {
34
+ footer: /*#__PURE__*/React.createElement(S.ModalWizardButtons, null, modalProps != null && modalProps.prefix || onPrevStep ? /*#__PURE__*/React.createElement(S.ModalWizardButtonsPrefix, null, modalProps.prefix, onPrevStep && /*#__PURE__*/React.createElement(Button, _extends({}, prevButtonProps, {
35
35
  onClick: onPrevStep
36
36
  }), /*#__PURE__*/React.createElement(Icon, {
37
37
  component: /*#__PURE__*/React.createElement(ArrowLeftCircleM, null)
38
38
  }), ' ', (texts == null ? void 0 : texts.prevButtonLabel) || intl.formatMessage({
39
39
  id: 'DS.WIZARD.PREV-BUTTON',
40
40
  defaultMessage: 'Back'
41
- })) : /*#__PURE__*/React.createElement(S.ButtonPlaceholder, null), onNextStep && /*#__PURE__*/React.createElement(Button, _extends({}, nextButtonProps, {
41
+ }))) : /*#__PURE__*/React.createElement(S.ButtonPlaceholder, null), (modalProps == null ? void 0 : modalProps.infix) && /*#__PURE__*/React.createElement(S.ModalWizardButtonsInfix, null, modalProps.infix), ((modalProps == null ? void 0 : modalProps.suffix) || onNextStep) && /*#__PURE__*/React.createElement(S.ModalWizardButtonsSuffix, null, onNextStep && /*#__PURE__*/React.createElement(Button, _extends({}, nextButtonProps, {
42
42
  onClick: onNextStep
43
43
  }), (texts == null ? void 0 : texts.nextButtonLabel) || intl.formatMessage({
44
44
  id: 'DS.WIZARD.NEXT-BUTTON',
45
45
  defaultMessage: 'Next step'
46
- })))
46
+ })), modalProps.suffix))
47
47
  }), /*#__PURE__*/React.createElement(S.ModalWizardContent, null, children));
48
48
  };
49
49
  export default WizardOnModal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-wizard",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "Wizard UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,12 +34,12 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-button": "^1.4.4",
38
- "@synerise/ds-icon": "^1.6.0",
39
- "@synerise/ds-layout": "^1.0.14",
40
- "@synerise/ds-modal": "^1.2.4",
41
- "@synerise/ds-page-header": "^1.0.20",
42
- "@synerise/ds-utils": "^1.3.1",
37
+ "@synerise/ds-button": "^1.4.6",
38
+ "@synerise/ds-icon": "^1.6.2",
39
+ "@synerise/ds-layout": "^1.0.16",
40
+ "@synerise/ds-modal": "^1.2.6",
41
+ "@synerise/ds-page-header": "^1.0.22",
42
+ "@synerise/ds-utils": "^1.4.0",
43
43
  "classnames": "^2.5.1"
44
44
  },
45
45
  "peerDependencies": {
@@ -48,5 +48,5 @@
48
48
  "react-intl": ">=3.12.0 <= 6.8",
49
49
  "styled-components": "^5.3.3"
50
50
  },
51
- "gitHead": "f7c362a4f370d86b51df9aba9e91ac8f7fe4ed8f"
51
+ "gitHead": "b35b1875727156fe9f5b3bad55aed5ca447c8c8d"
52
52
  }