@synerise/ds-wizard 0.5.8 → 0.5.9
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/Wizard.d.ts +5 -3
- package/dist/Wizard.js +1 -2
- package/dist/Wizard.types.d.ts +1 -5
- package/dist/onModal/onModal.d.ts +0 -1
- package/dist/onModal/onModal.types.d.ts +1 -1
- package/package.json +8 -8
- package/dist/WizardPortal/WizardPortal.d.ts +0 -10
- package/dist/WizardPortal/WizardPortal.js +0 -58
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.5.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@0.5.8...@synerise/ds-wizard@0.5.9) (2023-10-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **wizard:** removed obsolete code ([6232674](https://github.com/Synerise/synerise-design/commit/6232674ee20d27d47574fbeabc8782817e35fbb6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.5.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@0.5.7...@synerise/ds-wizard@0.5.8) (2023-09-26)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-wizard
|
package/dist/Wizard.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { WizardProps } from './Wizard.types';
|
|
2
|
+
declare const Wizard: {
|
|
3
|
+
({ stepper, contentWidth, headerAction, footer, title, onClose, children, onPrevStep, onNextStep, stepButtonProps, texts, visible, }: WizardProps): JSX.Element | null;
|
|
4
|
+
OnModal: ({ visible, stepper, headerAction, title, onClose, children, onPrevStep, onNextStep, texts, modalProps, stepButtonProps, }: import("./onModal/onModal.types").OnModalProps) => JSX.Element;
|
|
5
|
+
};
|
|
4
6
|
export default Wizard;
|
package/dist/Wizard.js
CHANGED
|
@@ -7,8 +7,7 @@ import Button from '@synerise/ds-button';
|
|
|
7
7
|
import Icon, { ArrowLeftCircleM } from '@synerise/ds-icon';
|
|
8
8
|
import { useIntl } from 'react-intl';
|
|
9
9
|
import * as S from './Wizard.styles';
|
|
10
|
-
import WizardOnModal from './onModal/onModal';
|
|
11
|
-
// import WizardPortal from './WizardPortal/WizardPortal';
|
|
10
|
+
import WizardOnModal from './onModal/onModal';
|
|
12
11
|
|
|
13
12
|
var Wizard = function Wizard(_ref) {
|
|
14
13
|
var stepper = _ref.stepper,
|
package/dist/Wizard.types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps } from '@synerise/ds-button';
|
|
3
|
-
|
|
4
|
-
export declare type WizardProps = {
|
|
3
|
+
export type WizardProps = {
|
|
5
4
|
stepper?: ReactNode;
|
|
6
5
|
footer?: ReactNode;
|
|
7
6
|
children?: ReactNode;
|
|
@@ -21,6 +20,3 @@ export declare type WizardProps = {
|
|
|
21
20
|
nextButtonProps?: Partial<Omit<ButtonProps, 'onClick'>>;
|
|
22
21
|
};
|
|
23
22
|
};
|
|
24
|
-
export declare type WizardSubComponent = {
|
|
25
|
-
OnModal: typeof WizardOnModal;
|
|
26
|
-
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { OnModalProps } from './onModal.types';
|
|
3
2
|
declare const WizardOnModal: ({ visible, stepper, headerAction, title, onClose, children, onPrevStep, onNextStep, texts, modalProps, stepButtonProps, }: OnModalProps) => JSX.Element;
|
|
4
3
|
export default WizardOnModal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModalProps } from '@synerise/ds-modal/src/Modal.types';
|
|
2
2
|
import { WizardProps } from '../Wizard.types';
|
|
3
|
-
export
|
|
3
|
+
export type OnModalProps = Omit<WizardProps, 'footer' | 'contentWidth'> & {
|
|
4
4
|
modalProps: ModalProps;
|
|
5
5
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-wizard",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"description": "Wizard UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-button": "^0.18.
|
|
36
|
-
"@synerise/ds-icon": "^0.58.
|
|
37
|
-
"@synerise/ds-layout": "^0.13.
|
|
38
|
-
"@synerise/ds-modal": "^0.17.
|
|
39
|
-
"@synerise/ds-page-header": "^0.14.
|
|
40
|
-
"@synerise/ds-utils": "^0.24.
|
|
35
|
+
"@synerise/ds-button": "^0.18.3",
|
|
36
|
+
"@synerise/ds-icon": "^0.58.3",
|
|
37
|
+
"@synerise/ds-layout": "^0.13.33",
|
|
38
|
+
"@synerise/ds-modal": "^0.17.6",
|
|
39
|
+
"@synerise/ds-page-header": "^0.14.81",
|
|
40
|
+
"@synerise/ds-utils": "^0.24.17",
|
|
41
41
|
"react-dom": "16.13.0",
|
|
42
42
|
"react-intl": "3.12.0"
|
|
43
43
|
},
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"@testing-library/react": "10.0.1",
|
|
52
52
|
"@testing-library/user-event": "^10.3.1"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "1c1adf344f447e404a1d6320ad1d3f8486f29f67"
|
|
55
55
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare class WizardPortal extends React.Component {
|
|
3
|
-
private modalRoot;
|
|
4
|
-
private readonly el;
|
|
5
|
-
constructor(props: Readonly<{}>);
|
|
6
|
-
componentDidMount(): void;
|
|
7
|
-
componentWillUnmount(): void;
|
|
8
|
-
render(): React.ReactPortal;
|
|
9
|
-
}
|
|
10
|
-
export default WizardPortal;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2
|
-
|
|
3
|
-
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
|
4
|
-
|
|
5
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
|
|
7
|
-
import * as React from 'react';
|
|
8
|
-
import * as ReactDOM from 'react-dom';
|
|
9
|
-
|
|
10
|
-
var getPortalRoot = function getPortalRoot() {
|
|
11
|
-
var target = document.getElementById('ds-portal-root');
|
|
12
|
-
|
|
13
|
-
if (!target) {
|
|
14
|
-
var newTarget = document.createElement('div');
|
|
15
|
-
newTarget.id = 'ds-portal-root';
|
|
16
|
-
document.body.appendChild(newTarget);
|
|
17
|
-
return newTarget;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return target;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
var WizardPortal = /*#__PURE__*/function (_React$Component) {
|
|
24
|
-
_inheritsLoose(WizardPortal, _React$Component);
|
|
25
|
-
|
|
26
|
-
function WizardPortal(props) {
|
|
27
|
-
var _this;
|
|
28
|
-
|
|
29
|
-
_this = _React$Component.call(this, props) || this;
|
|
30
|
-
|
|
31
|
-
_defineProperty(_assertThisInitialized(_this), "modalRoot", void 0);
|
|
32
|
-
|
|
33
|
-
_defineProperty(_assertThisInitialized(_this), "el", void 0);
|
|
34
|
-
|
|
35
|
-
_this.modalRoot = getPortalRoot();
|
|
36
|
-
_this.el = document.createElement('div');
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
var _proto = WizardPortal.prototype;
|
|
41
|
-
|
|
42
|
-
_proto.componentDidMount = function componentDidMount() {
|
|
43
|
-
this.modalRoot.appendChild(this.el);
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
47
|
-
this.modalRoot.removeChild(this.el);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
_proto.render = function render() {
|
|
51
|
-
var children = this.props.children;
|
|
52
|
-
return ReactDOM.createPortal(children, this.el);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
return WizardPortal;
|
|
56
|
-
}(React.Component);
|
|
57
|
-
|
|
58
|
-
export default WizardPortal;
|