@synerise/ds-wizard 2.0.10 → 2.1.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,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
+ # [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@2.0.10...@synerise/ds-wizard@2.1.0) (2026-10-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * drop vitest peer dependency and bump vulnerable runtime deps ([2467d36](https://github.com/Synerise/synerise-design/commit/2467d3606aa97141a3a2d80c3ef396e78bee285c))
12
+
13
+
14
+ ### Features
15
+
16
+ * 24px gutter around fullscreen modal, code-area and wizard ([3931816](https://github.com/Synerise/synerise-design/commit/3931816398831f9a647b6ea2dbd26cb415af926c))
17
+
18
+
19
+
20
+
21
+
6
22
  ## [2.0.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@2.0.9...@synerise/ds-wizard@2.0.10) (2026-10-22)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-wizard
package/CLAUDE.md CHANGED
@@ -113,9 +113,9 @@ import Wizard from '@synerise/ds-wizard';
113
113
 
114
114
  All styles are in `Wizard.styles.ts` and shared between `Wizard` and `WizardOnModal`. Uses `@synerise/ds-core` theme palette tokens throughout. Key layout values:
115
115
 
116
- - Wizard wrapper: `position: fixed; z-index: 1500; width: 100vw; height: 100vh`
116
+ - Wizard wrapper: `position: fixed; z-index: 1500`, inset 24px from every viewport edge over a `WizardMask` backdrop
117
117
  - Content area: `padding-top: 122px`, `padding-bottom: 100px` when footer is present
118
- - Footer: `position: fixed; bottom: 0; padding: 24px`
118
+ - Footer: `position: absolute; bottom: 0; padding: 24px` — rendered as a direct child of the wrapper, outside `Layout`, so it stays pinned to the bottom of the wizard frame instead of scrolling with Layout's scroll container
119
119
 
120
120
  ## Key dependencies
121
121
 
package/dist/Wizard.js CHANGED
@@ -6,7 +6,7 @@ import Icon, { ArrowLeftCircleM } from "@synerise/ds-icon";
6
6
  import Layout from "@synerise/ds-layout";
7
7
  import PageHeader from "@synerise/ds-page-header";
8
8
  import WizardOnModal from "./onModal/onModal.js";
9
- import { ButtonPlaceholder, WizardWrapper, WizardContainer, WizardContent, WizardButtons, WizardFooter, FooterLeftSide, FooterRightSide, WizardHeader, WizardStepper, WizardHeaderAction } from "./Wizard.styles.js";
9
+ import { ButtonPlaceholder, WizardMask, WizardWrapper, WizardContainer, WizardContent, WizardButtons, WizardHeader, WizardStepper, WizardHeaderAction, WizardFooter, FooterLeftSide, FooterRightSide } from "./Wizard.styles.js";
10
10
  const Wizard = ({
11
11
  stepper,
12
12
  contentWidth,
@@ -52,23 +52,26 @@ const Wizard = ({
52
52
  ] });
53
53
  const hasFooter = Boolean(footer || footerLeft || navigationInFooter && navButtons || footerAction);
54
54
  const editableTitle = headerInlineEdit !== void 0;
55
- return visible ? /* @__PURE__ */ jsx(WizardWrapper, { className: classnames(className, "ds-wizard"), children: /* @__PURE__ */ jsxs(Layout, { fullPage: true, header: /* @__PURE__ */ jsx(PageHeader, { inlineEdit: headerInlineEdit, avatar: editableTitle && headerAvatar, title: !editableTitle && title, onClose, rightSide: /* @__PURE__ */ jsxs(WizardHeader, { withHeaderAction: !!headerAction, children: [
56
- stepper && /* @__PURE__ */ jsx(WizardStepper, { children: stepper }),
57
- headerAction && /* @__PURE__ */ jsx(WizardHeaderAction, { children: headerAction })
58
- ] }) }), children: [
59
- /* @__PURE__ */ jsx(WizardContainer, { withFooter: hasFooter, children: /* @__PURE__ */ jsxs(WizardContent, { contentWidth, children: [
60
- children,
61
- !navigationInFooter && navButtons && /* @__PURE__ */ jsx(WizardButtons, { children: navButtons })
62
- ] }) }),
63
- hasFooter && /* @__PURE__ */ jsxs(WizardFooter, { children: [
64
- (footerLeft || footer) && /* @__PURE__ */ jsx(FooterLeftSide, { children: footerLeft || footer }),
65
- (footerAction || navigationInFooter && navButtons) && /* @__PURE__ */ jsxs(FooterRightSide, { children: [
66
- footerAction,
67
- " ",
68
- navigationInFooter && navButtons
55
+ return visible ? /* @__PURE__ */ jsxs(Fragment, { children: [
56
+ /* @__PURE__ */ jsx(WizardMask, {}),
57
+ /* @__PURE__ */ jsxs(WizardWrapper, { className: classnames(className, "ds-wizard"), children: [
58
+ /* @__PURE__ */ jsx(Layout, { fullPage: true, header: /* @__PURE__ */ jsx(PageHeader, { inlineEdit: headerInlineEdit, avatar: editableTitle && headerAvatar, title: !editableTitle && title, onClose, rightSide: /* @__PURE__ */ jsxs(WizardHeader, { withHeaderAction: !!headerAction, children: [
59
+ stepper && /* @__PURE__ */ jsx(WizardStepper, { children: stepper }),
60
+ headerAction && /* @__PURE__ */ jsx(WizardHeaderAction, { children: headerAction })
61
+ ] }) }), children: /* @__PURE__ */ jsx(WizardContainer, { withFooter: hasFooter, children: /* @__PURE__ */ jsxs(WizardContent, { contentWidth, children: [
62
+ children,
63
+ !navigationInFooter && navButtons && /* @__PURE__ */ jsx(WizardButtons, { children: navButtons })
64
+ ] }) }) }),
65
+ hasFooter && /* @__PURE__ */ jsxs(WizardFooter, { children: [
66
+ (footerLeft || footer) && /* @__PURE__ */ jsx(FooterLeftSide, { children: footerLeft || footer }),
67
+ (footerAction || navigationInFooter && navButtons) && /* @__PURE__ */ jsxs(FooterRightSide, { children: [
68
+ footerAction,
69
+ " ",
70
+ navigationInFooter && navButtons
71
+ ] })
69
72
  ] })
70
73
  ] })
71
- ] }) }) : null;
74
+ ] }) : null;
72
75
  };
73
76
  Wizard.OnModal = WizardOnModal;
74
77
  export {
@@ -1,3 +1,4 @@
1
+ export declare const WizardMask: import('styled-components').StyledComponent<"div", any, {}, never>;
1
2
  export declare const WizardWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
2
3
  export declare const WizardHeader: import('styled-components').StyledComponent<"div", any, {
3
4
  withHeaderAction?: boolean;
@@ -1,71 +1,75 @@
1
1
  import styled from "styled-components";
2
+ const WizardMask = /* @__PURE__ */ styled.div.withConfig({
3
+ displayName: "Wizardstyles__WizardMask",
4
+ componentId: "sc-1lvfph4-0"
5
+ })(["position:fixed;top:0;left:0;right:0;bottom:0;z-index:1500;background:", ";opacity:0.2;"], (props) => props.theme.palette["grey-800"]);
2
6
  const WizardWrapper = /* @__PURE__ */ styled.div.withConfig({
3
7
  displayName: "Wizardstyles__WizardWrapper",
4
- componentId: "sc-1lvfph4-0"
5
- })(["position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1500;background-color:", ";&& .ds-layout__header{overflow:visible;}"], (props) => props.theme.palette.white);
8
+ componentId: "sc-1lvfph4-1"
9
+ })(["position:fixed;top:24px;left:24px;right:24px;bottom:24px;z-index:1500;overflow:hidden;border-radius:3px;box-shadow:", ";background-color:", ";&& .ds-layout__header{overflow:visible;}"], (props) => props.theme.variables["box-shadow-2"], (props) => props.theme.palette.white);
6
10
  const WizardHeader = /* @__PURE__ */ styled.div.withConfig({
7
11
  displayName: "Wizardstyles__WizardHeader",
8
- componentId: "sc-1lvfph4-1"
12
+ componentId: "sc-1lvfph4-2"
9
13
  })(["display:flex;flex-direction:row;align-items:center;justify-content:flex-end;position:relative;margin-right:16px;&:after{content:'';display:flex;height:40px;width:1px;background-color:", ";position:absolute;right:0;top:", ";}"], (props) => props.theme.palette["grey-200"], (props) => props.withHeaderAction ? "-4px" : "-8px");
10
14
  const WizardStepper = /* @__PURE__ */ styled.div.withConfig({
11
15
  displayName: "Wizardstyles__WizardStepper",
12
- componentId: "sc-1lvfph4-2"
16
+ componentId: "sc-1lvfph4-3"
13
17
  })(["margin-right:24px;"]);
14
18
  const WizardHeaderAction = /* @__PURE__ */ styled.div.withConfig({
15
19
  displayName: "Wizardstyles__WizardHeaderAction",
16
- componentId: "sc-1lvfph4-3"
20
+ componentId: "sc-1lvfph4-4"
17
21
  })(["margin-right:24px;"]);
18
22
  const WizardContainer = /* @__PURE__ */ styled.div.withConfig({
19
23
  displayName: "Wizardstyles__WizardContainer",
20
- componentId: "sc-1lvfph4-4"
24
+ componentId: "sc-1lvfph4-5"
21
25
  })(["background-color:", ";width:100%;height:100%;position:relative;display:flex;align-items:flex-start;justify-content:center;padding-top:122px;padding-bottom:", ";"], (props) => props.theme.palette.white, (props) => props.withFooter ? "100px" : "0");
22
26
  const WizardButtons = /* @__PURE__ */ styled.div.withConfig({
23
27
  displayName: "Wizardstyles__WizardButtons",
24
- componentId: "sc-1lvfph4-5"
28
+ componentId: "sc-1lvfph4-6"
25
29
  })(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;margin:48px 0 0;"]);
26
30
  const WizardContent = /* @__PURE__ */ styled.div.withConfig({
27
31
  displayName: "Wizardstyles__WizardContent",
28
- componentId: "sc-1lvfph4-6"
32
+ componentId: "sc-1lvfph4-7"
29
33
  })(["width:", ";max-width:calc(100% - 48px);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;"], (props) => props.contentWidth ? props.contentWidth : "100%");
30
34
  const ModalWizardContent = /* @__PURE__ */ styled.div.withConfig({
31
35
  displayName: "Wizardstyles__ModalWizardContent",
32
- componentId: "sc-1lvfph4-7"
36
+ componentId: "sc-1lvfph4-8"
33
37
  })(["width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;"]);
34
38
  const ButtonPlaceholder = /* @__PURE__ */ styled.span.withConfig({
35
39
  displayName: "Wizardstyles__ButtonPlaceholder",
36
- componentId: "sc-1lvfph4-8"
40
+ componentId: "sc-1lvfph4-9"
37
41
  })([""]);
38
42
  const ModalWizardButtons = /* @__PURE__ */ styled.div.withConfig({
39
43
  displayName: "Wizardstyles__ModalWizardButtons",
40
- componentId: "sc-1lvfph4-9"
44
+ componentId: "sc-1lvfph4-10"
41
45
  })(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;"]);
42
46
  const ModalWizardButtonsInfix = /* @__PURE__ */ styled.div.withConfig({
43
47
  displayName: "Wizardstyles__ModalWizardButtonsInfix",
44
- componentId: "sc-1lvfph4-10"
48
+ componentId: "sc-1lvfph4-11"
45
49
  })(["align-self:center;display:flex;"]);
46
50
  const ModalWizardButtonsSuffix = /* @__PURE__ */ styled.div.withConfig({
47
51
  displayName: "Wizardstyles__ModalWizardButtonsSuffix",
48
- componentId: "sc-1lvfph4-11"
52
+ componentId: "sc-1lvfph4-12"
49
53
  })(["align-self:flex-end;display:flex;gap:8px;"]);
50
54
  const ModalWizardButtonsPrefix = /* @__PURE__ */ styled.div.withConfig({
51
55
  displayName: "Wizardstyles__ModalWizardButtonsPrefix",
52
- componentId: "sc-1lvfph4-12"
56
+ componentId: "sc-1lvfph4-13"
53
57
  })(["align-self:flex-start;display:flex;gap:8px;"]);
54
58
  const FooterLeftSide = /* @__PURE__ */ styled.div.withConfig({
55
59
  displayName: "Wizardstyles__FooterLeftSide",
56
- componentId: "sc-1lvfph4-13"
60
+ componentId: "sc-1lvfph4-14"
57
61
  })(["display:flex;justify-content:flex-start;"]);
58
62
  const FooterRightSide = /* @__PURE__ */ styled.div.withConfig({
59
63
  displayName: "Wizardstyles__FooterRightSide",
60
- componentId: "sc-1lvfph4-14"
64
+ componentId: "sc-1lvfph4-15"
61
65
  })(["display:flex;justify-content:flex-end;align-items:center;gap:16px;", "{display:none;}"], ButtonPlaceholder);
62
66
  const WizardFooter = /* @__PURE__ */ styled.div.withConfig({
63
67
  displayName: "Wizardstyles__WizardFooter",
64
- componentId: "sc-1lvfph4-15"
65
- })(["display:flex;justify-content:space-between;width:100%;padding:24px;background-color:", ";border-top:1px solid ", ";position:fixed;bottom:0;left:0;& > *{margin-right:8px;}", ":empty,", ":empty{display:none;}"], (props) => props.theme.palette.white, (props) => props.theme.palette["grey-200"], FooterLeftSide, FooterRightSide);
68
+ componentId: "sc-1lvfph4-16"
69
+ })(["display:flex;justify-content:space-between;width:100%;padding:24px;background-color:", ";border-top:1px solid ", ";position:absolute;bottom:0;left:0;& > *{margin-right:8px;}", ":empty,", ":empty{display:none;}"], (props) => props.theme.palette.white, (props) => props.theme.palette["grey-200"], FooterLeftSide, FooterRightSide);
66
70
  const HeaderActions = /* @__PURE__ */ styled.div.withConfig({
67
71
  displayName: "Wizardstyles__HeaderActions",
68
- componentId: "sc-1lvfph4-16"
72
+ componentId: "sc-1lvfph4-17"
69
73
  })(["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;}"], (props) => props.theme.palette["grey-200"]);
70
74
  export {
71
75
  ButtonPlaceholder,
@@ -83,6 +87,7 @@ export {
83
87
  WizardFooter,
84
88
  WizardHeader,
85
89
  WizardHeaderAction,
90
+ WizardMask,
86
91
  WizardStepper,
87
92
  WizardWrapper
88
93
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-wizard",
3
- "version": "2.0.10",
3
+ "version": "2.1.0",
4
4
  "description": "Wizard UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -42,22 +42,22 @@
42
42
  ],
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
- "@synerise/ds-button": "^2.1.4",
46
- "@synerise/ds-icon": "^2.2.2",
47
- "@synerise/ds-layout": "^2.0.8",
48
- "@synerise/ds-modal": "^2.0.10",
49
- "@synerise/ds-page-header": "^2.0.10",
45
+ "@synerise/ds-button": "^2.1.5",
46
+ "@synerise/ds-icon": "^2.2.3",
47
+ "@synerise/ds-layout": "^2.0.9",
48
+ "@synerise/ds-modal": "^2.1.0",
49
+ "@synerise/ds-page-header": "^2.0.11",
50
50
  "classnames": "^2.5.1"
51
51
  },
52
52
  "devDependencies": {
53
- "@testing-library/react": "14.3.1"
53
+ "@testing-library/react": "14.3.1",
54
+ "vitest": "4"
54
55
  },
55
56
  "peerDependencies": {
56
57
  "@synerise/ds-core": "*",
57
58
  "react": ">=16.9.0 <= 18.3.1",
58
59
  "react-intl": ">=3.12.0 <= 6.8",
59
- "styled-components": "^5.3.3",
60
- "vitest": "4"
60
+ "styled-components": "^5.3.3"
61
61
  },
62
- "gitHead": "953d50843fbcbec956b6252a6185def119652282"
62
+ "gitHead": "5ac0f7dcb7c3995b402c86c087d8f32770f80a1d"
63
63
  }