linear-react-components-ui 1.1.20-beta.38 → 1.1.20-beta.40
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.
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
margin-bottom: 20px;
|
|
21
21
|
border-bottom: 2px solid $component-border-color;
|
|
22
22
|
gap: 10px;
|
|
23
|
-
overflow: hidden;
|
|
24
23
|
> .title {
|
|
25
24
|
font-size: 16px;
|
|
26
25
|
font-weight: 600;
|
|
@@ -205,6 +204,9 @@
|
|
|
205
204
|
}
|
|
206
205
|
}
|
|
207
206
|
}
|
|
207
|
+
.wizard-body {
|
|
208
|
+
overflow: auto;
|
|
209
|
+
}
|
|
208
210
|
}
|
|
209
211
|
}
|
|
210
212
|
}
|
package/lib/dialog/types.d.ts
CHANGED
|
@@ -81,6 +81,8 @@ interface WizardComponentProps extends Omit<IFormProps, 'content'> {
|
|
|
81
81
|
title?: string;
|
|
82
82
|
handlerClose?: () => void;
|
|
83
83
|
controls: WizardControls;
|
|
84
|
+
customStyleForProgressBar?: CSSProperties;
|
|
85
|
+
customStyleForBody?: CSSProperties;
|
|
84
86
|
progressBarPosition?: 'top' | 'left';
|
|
85
87
|
}
|
|
86
88
|
interface WizardStepComponentProps {
|
|
@@ -8,6 +8,6 @@ import '../../icons/helper.js';
|
|
|
8
8
|
|
|
9
9
|
declare const WizardContext: React__default.Context<WizardControls | null>;
|
|
10
10
|
declare const useWizardContext: () => WizardControls | null;
|
|
11
|
-
declare function Wizard({ children, controls, showProgressbar, progressBarPosition, ...dialogProps }: Readonly<WizardComponentProps>): JSX.Element;
|
|
11
|
+
declare function Wizard({ children, controls, showProgressbar, customStyleForProgressBar, customStyleForBody, progressBarPosition, ...dialogProps }: Readonly<WizardComponentProps>): JSX.Element;
|
|
12
12
|
|
|
13
13
|
export { Wizard as Container, WizardContext, Wizard as default, useWizardContext };
|
|
@@ -25,7 +25,7 @@ var _progressbar = require("./progressbar");
|
|
|
25
25
|
require("../../assets/styles/wizard.scss");
|
|
26
26
|
var _step = require("./step");
|
|
27
27
|
var _useWizard = require("./useWizard");
|
|
28
|
-
const _excluded = ["children", "controls", "showProgressbar", "progressBarPosition"];
|
|
28
|
+
const _excluded = ["children", "controls", "showProgressbar", "customStyleForProgressBar", "customStyleForBody", "progressBarPosition"];
|
|
29
29
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
30
30
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
31
31
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -40,6 +40,8 @@ function Wizard(_ref) {
|
|
|
40
40
|
children,
|
|
41
41
|
controls,
|
|
42
42
|
showProgressbar = true,
|
|
43
|
+
customStyleForProgressBar,
|
|
44
|
+
customStyleForBody,
|
|
43
45
|
progressBarPosition = 'top'
|
|
44
46
|
} = _ref,
|
|
45
47
|
dialogProps = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -68,9 +70,11 @@ function Wizard(_ref) {
|
|
|
68
70
|
contentClassName: "wizard-content"
|
|
69
71
|
}, dialogProps), showProgressbar && /*#__PURE__*/_react.default.createElement(_progressbar.Progressbar, {
|
|
70
72
|
stepsTitle: stepsTitle,
|
|
73
|
+
customStyle: customStyleForProgressBar,
|
|
71
74
|
position: progressBarPosition
|
|
72
75
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
73
|
-
className: "wizard-body"
|
|
76
|
+
className: "wizard-body",
|
|
77
|
+
style: customStyleForBody
|
|
74
78
|
}, currentStepElement)));
|
|
75
79
|
}
|
|
76
80
|
var _default = exports.default = Wizard;
|