@indico-data/design-system 1.0.57 → 1.0.58
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/lib/index.esm.js
CHANGED
|
@@ -25712,12 +25712,13 @@ function Wizard(props) {
|
|
|
25712
25712
|
}
|
|
25713
25713
|
|
|
25714
25714
|
const StyledWizardWithSidebar = styled.div `
|
|
25715
|
-
|
|
25715
|
+
height: 750px;
|
|
25716
|
+
display: flex;
|
|
25717
|
+
/* display: flex;
|
|
25716
25718
|
/* min-height: 455px; */
|
|
25717
25719
|
background-color: ${(props) => (props.backgroundcolor ? props.backgroundcolor : 'currentColor')};
|
|
25718
25720
|
color: ${(props) => (props.color ? props.color : 'inherit')};
|
|
25719
25721
|
border-radius: 4px;
|
|
25720
|
-
|
|
25721
25722
|
h2 {
|
|
25722
25723
|
font-size: ${typography.fontSize.subheadLarge};
|
|
25723
25724
|
margin-bottom: ${spacings.md};
|
|
@@ -25765,18 +25766,32 @@ const StyledWizardWithSidebar = styled.div `
|
|
|
25765
25766
|
}
|
|
25766
25767
|
}
|
|
25767
25768
|
|
|
25769
|
+
.wizard-content__wrapper {
|
|
25770
|
+
display: flex;
|
|
25771
|
+
justify-content: space-between;
|
|
25772
|
+
flex-wrap: wrap;
|
|
25773
|
+
flex-direction: column;
|
|
25774
|
+
height: 100%;
|
|
25775
|
+
}
|
|
25768
25776
|
.wizard-content {
|
|
25769
|
-
|
|
25777
|
+
width: 100%;
|
|
25770
25778
|
padding: 30px;
|
|
25771
25779
|
|
|
25772
25780
|
.wizard-content__header {
|
|
25773
|
-
|
|
25781
|
+
flex: 0 0 100%;
|
|
25774
25782
|
}
|
|
25775
25783
|
.wizard-content__body {
|
|
25776
|
-
|
|
25784
|
+
flex: 0 0 100%;
|
|
25777
25785
|
}
|
|
25778
25786
|
}
|
|
25779
25787
|
|
|
25788
|
+
.wizard-actions {
|
|
25789
|
+
width: 100%;
|
|
25790
|
+
display: flex;
|
|
25791
|
+
align-items: center;
|
|
25792
|
+
justify-content: end;
|
|
25793
|
+
}
|
|
25794
|
+
|
|
25780
25795
|
nav {
|
|
25781
25796
|
display: flex;
|
|
25782
25797
|
align-items: center;
|
|
@@ -25786,18 +25801,21 @@ const StyledWizardWithSidebar = styled.div `
|
|
|
25786
25801
|
padding-right: 0 !important;
|
|
25787
25802
|
margin-top: ${spacings.md};
|
|
25788
25803
|
}
|
|
25789
|
-
|
|
25790
25804
|
.wizard-buttons {
|
|
25791
25805
|
display: flex;
|
|
25792
25806
|
align-items: center;
|
|
25793
25807
|
font-size: ${typography.fontSize.subheadSmall};
|
|
25794
25808
|
|
|
25795
25809
|
button {
|
|
25810
|
+
width: 200px;
|
|
25811
|
+
text-align: center;
|
|
25812
|
+
display: flex;
|
|
25813
|
+
justify-content: center;
|
|
25796
25814
|
${(props) => props.buttoncolor &&
|
|
25797
25815
|
css `
|
|
25798
25816
|
background-color: ${props.buttoncolor};
|
|
25799
25817
|
color: ${props.backgroundcolor || 'inherit'};
|
|
25800
|
-
`}
|
|
25818
|
+
`};
|
|
25801
25819
|
}
|
|
25802
25820
|
|
|
25803
25821
|
button.outline {
|
|
@@ -25813,6 +25831,7 @@ const StyledWizardWithSidebar = styled.div `
|
|
|
25813
25831
|
font-size: inherit;
|
|
25814
25832
|
margin-right: 1em;
|
|
25815
25833
|
background-color: inherit;
|
|
25834
|
+
width: auto;
|
|
25816
25835
|
${(props) => props.buttoncolor &&
|
|
25817
25836
|
css `
|
|
25818
25837
|
color: ${props.buttoncolor};
|
|
@@ -25882,7 +25901,7 @@ function WizardWithSidebar(props) {
|
|
|
25882
25901
|
}), children: [(Object.keys(validationErrors ? validationErrors : []).some((error) => stepSchema[step].inputsRequiringValidation.includes(error)) ||
|
|
25883
25902
|
index > steps.indexOf(currentStep)) && (jsx("div", { className: "sidebar-step__number-icon", children: index + 1 })), !Object.keys(validationErrors ? validationErrors : []).some((error) => stepSchema[step].inputsRequiringValidation.includes(error)) &&
|
|
25884
25903
|
index <= steps.indexOf(currentStep) && (jsx(Icon, { name: "fa-check-circle", className: "sidebar-step__check-icon" })), step] }, step));
|
|
25885
|
-
})] }),
|
|
25904
|
+
})] }), jsx("div", { className: "wizard-content", children: jsxs("div", { className: "wizard-content__wrapper", children: [jsxs("div", { className: "wizard-content__items", children: [jsx("div", { className: "wizard-content__header", children: jsx("h2", { children: currentStep }) }), jsx("div", { className: "wizard-content__body", children: children })] }), jsx("nav", { className: "wizard-actions", children: jsxs("div", { className: "wizard-buttons", children: [jsx(Button$1, { onClick: () => setOpenCancelConfirm(true), variant: "link-style", children: "Cancel" }), steps.indexOf(currentStep) !== 0 && (jsx(IconButton, { variant: "outline", iconName: "fa-arrow-left", label: "Previous Step", onPress: prevStep, isDisabled: disablePrevStep })), onLastStep ? (jsx(IconButton, { variant: "primary", iconName: "check", busy: isBusy, label: isBusy ? submitProcessing : submitButtonLabel, onPress: handleNextPress, isDisabled: disableSubmit })) : (jsx(IconButton, Object.assign({ variant: "primary", iconSide: "end", iconName: "fa-arrow-right", label: "Next Step", onPress: handleNextPress, isDisabled: disableNextStep }, nextButtonProps)))] }) })] }) }), jsx(ConfirmModal, { title: confirmCancel.title, message: confirmCancel.message, confirmText: confirmCancel.confirmText, rejectText: confirmCancel.rejectText, open: openCancelConfirm, clickOutsideHandler: () => setOpenCancelConfirm(false), responseHandler: handleCancelRequest, width: 430 })] }));
|
|
25886
25905
|
}
|
|
25887
25906
|
|
|
25888
25907
|
const fullViewportHeightMinusOffset = 'calc(100% - 42px)';
|