@synerise/ds-wizard 0.5.22 → 0.6.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 CHANGED
@@ -3,6 +3,30 @@
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.6.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@0.6.0...@synerise/ds-wizard@0.6.1) (2024-02-15)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-wizard
9
+
10
+
11
+
12
+
13
+
14
+ # [0.6.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@0.5.22...@synerise/ds-wizard@0.6.0) (2024-02-06)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * fixed broken import paths ([ddc1908](https://github.com/Synerise/synerise-design/commit/ddc1908740a4ff0832b31ddfe18967db541660a8))
20
+
21
+
22
+ ### Features
23
+
24
+ * **wizard:** add className prop to allow custom styling ([28c751a](https://github.com/Synerise/synerise-design/commit/28c751adad3e8dcd9e953ffe593698c863b2e74c))
25
+
26
+
27
+
28
+
29
+
6
30
  ## [0.5.22](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@0.5.21...@synerise/ds-wizard@0.5.22) (2024-01-24)
7
31
 
8
32
  **Note:** Version bump only for package @synerise/ds-wizard
package/dist/Wizard.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { WizardProps } from './Wizard.types';
2
2
  declare const Wizard: {
3
- ({ stepper, contentWidth, headerAction, footer, title, onClose, children, onPrevStep, onNextStep, stepButtonProps, texts, visible, }: WizardProps): JSX.Element | null;
3
+ ({ stepper, contentWidth, headerAction, footer, title, onClose, children, onPrevStep, onNextStep, stepButtonProps, texts, visible, className, }: WizardProps): JSX.Element | null;
4
4
  OnModal: ({ visible, stepper, headerAction, title, onClose, children, onPrevStep, onNextStep, texts, modalProps, stepButtonProps, }: import("./onModal/onModal.types").OnModalProps) => JSX.Element;
5
5
  };
6
6
  export default Wizard;
package/dist/Wizard.js CHANGED
@@ -1,6 +1,7 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React from 'react';
4
+ import classnames from 'classnames';
4
5
  import Layout from '@synerise/ds-layout';
5
6
  import PageHeader from '@synerise/ds-page-header/dist/PageHeader';
6
7
  import Button from '@synerise/ds-button';
@@ -21,7 +22,8 @@ var Wizard = function Wizard(_ref) {
21
22
  onNextStep = _ref.onNextStep,
22
23
  stepButtonProps = _ref.stepButtonProps,
23
24
  texts = _ref.texts,
24
- visible = _ref.visible;
25
+ visible = _ref.visible,
26
+ className = _ref.className;
25
27
  var intl = useIntl();
26
28
  var prevButtonProps = stepButtonProps != null && stepButtonProps.prevButtonProps ? stepButtonProps.prevButtonProps : {
27
29
  type: 'ghost',
@@ -31,7 +33,7 @@ var Wizard = function Wizard(_ref) {
31
33
  type: 'primary'
32
34
  };
33
35
  return visible ? /*#__PURE__*/React.createElement(S.WizardWrapper, {
34
- className: "ds-wizard"
36
+ className: classnames(className, 'ds-wizard')
35
37
  }, /*#__PURE__*/React.createElement(Layout, {
36
38
  fullPage: true,
37
39
  header: /*#__PURE__*/React.createElement(PageHeader, {
@@ -4,16 +4,17 @@ export type WizardProps = {
4
4
  stepper?: ReactNode;
5
5
  footer?: ReactNode;
6
6
  children?: ReactNode;
7
- title: ReactNode | string;
7
+ title: ReactNode;
8
8
  headerAction?: ReactNode;
9
9
  onClose: () => void;
10
10
  visible: boolean;
11
11
  contentWidth?: string;
12
+ className?: string;
12
13
  onPrevStep?: () => void;
13
14
  onNextStep?: () => void;
14
15
  texts?: {
15
- prevButtonLabel: string | ReactNode;
16
- nextButtonLabel: string | ReactNode;
16
+ prevButtonLabel: ReactNode;
17
+ nextButtonLabel: ReactNode;
17
18
  };
18
19
  stepButtonProps?: {
19
20
  prevButtonProps?: Partial<Omit<ButtonProps, 'onClick'>>;
@@ -1,4 +1,4 @@
1
- import { ModalProps } from '@synerise/ds-modal/src/Modal.types';
1
+ import { ModalProps } from '@synerise/ds-modal/dist/Modal.types';
2
2
  import { WizardProps } from '../Wizard.types';
3
3
  export type OnModalProps = Omit<WizardProps, 'footer' | 'contentWidth'> & {
4
4
  modalProps: ModalProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-wizard",
3
- "version": "0.5.22",
3
+ "version": "0.6.1",
4
4
  "description": "Wizard UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -35,10 +35,11 @@
35
35
  "dependencies": {
36
36
  "@synerise/ds-button": "^0.19.0",
37
37
  "@synerise/ds-icon": "^0.60.0",
38
- "@synerise/ds-layout": "^0.13.44",
39
- "@synerise/ds-modal": "^0.17.17",
40
- "@synerise/ds-page-header": "^0.14.94",
38
+ "@synerise/ds-layout": "^0.13.45",
39
+ "@synerise/ds-modal": "^0.17.18",
40
+ "@synerise/ds-page-header": "^0.14.95",
41
41
  "@synerise/ds-utils": "^0.24.24",
42
+ "classnames": "2.3.2",
42
43
  "react-dom": "16.13.0",
43
44
  "react-intl": "3.12.0"
44
45
  },
@@ -52,5 +53,5 @@
52
53
  "@testing-library/react": "10.0.1",
53
54
  "@testing-library/user-event": "^10.3.1"
54
55
  },
55
- "gitHead": "9e7d97fc5f8a9fd938b38e9d1678e050e0478e0e"
56
+ "gitHead": "a61bf46e0ab1fdb9154808bbdd3c7163aa7b0576"
56
57
  }