@awell-health/ui-library 0.1.47 → 0.1.49
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/dist/index.css +8 -0
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -7015,6 +7015,14 @@ html {
|
|
|
7015
7015
|
display: flex;
|
|
7016
7016
|
flex-direction: column;
|
|
7017
7017
|
}
|
|
7018
|
+
.awell__hostedPageLayout_layout_container.awell__hostedPageLayout_withoutLogo {
|
|
7019
|
+
padding-top: var(--awell-spacing-4);
|
|
7020
|
+
}
|
|
7021
|
+
@media (min-width: 640px) {
|
|
7022
|
+
.awell__hostedPageLayout_layout_container.awell__hostedPageLayout_withoutLogo {
|
|
7023
|
+
padding-top: var(--awell-spacing-8);
|
|
7024
|
+
}
|
|
7025
|
+
}
|
|
7018
7026
|
.awell__hostedPageLayout_layout_container.awell__hostedPageLayout_fullViewportHeight {
|
|
7019
7027
|
height: 100%;
|
|
7020
7028
|
overflow: hidden;
|
package/dist/index.js
CHANGED
|
@@ -37115,7 +37115,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
37115
37115
|
|
|
37116
37116
|
var classes$5 = {"container":"awell__checklist_container","awell_checklist":"awell__checklist_awell_checklist","title":"awell__checklist_title","checklist":"awell__checklist_checklist","checkboxListFormControl":"awell__checklist_checkboxListFormControl","button_wrapper":"awell__checklist_button_wrapper"};
|
|
37117
37117
|
|
|
37118
|
-
var classes$4 = {"layout_container":"awell__hostedPageLayout_layout_container","fullViewportHeight":"awell__hostedPageLayout_fullViewportHeight","flexible":"awell__hostedPageLayout_flexible","main_content":"awell__hostedPageLayout_main_content"};
|
|
37118
|
+
var classes$4 = {"layout_container":"awell__hostedPageLayout_layout_container","withoutLogo":"awell__hostedPageLayout_withoutLogo","fullViewportHeight":"awell__hostedPageLayout_fullViewportHeight","flexible":"awell__hostedPageLayout_flexible","main_content":"awell__hostedPageLayout_main_content"};
|
|
37119
37119
|
|
|
37120
37120
|
var Checklist = function (_a) {
|
|
37121
37121
|
var title = _a.title,items = _a.items,onSubmit = _a.onSubmit,_b = _a.readOnly,readOnly = _b === void 0 ? false : _b,_c = _a.disabled,disabled = _c === void 0 ? false : _c,submitLabel = _a.submitLabel;
|
|
@@ -37644,7 +37644,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
37644
37644
|
}
|
|
37645
37645
|
return false;
|
|
37646
37646
|
};
|
|
37647
|
-
var hideProgressIndicator = isEvaluatingQuestionVisibility && percentageCompleted === 100
|
|
37647
|
+
var hideProgressIndicator = isEvaluatingQuestionVisibility && percentageCompleted === 100 ||
|
|
37648
|
+
form.questions.length === 1;
|
|
37648
37649
|
return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, { children: [jsxRuntime.exports.jsx("main", __assign({ id: "ahp_main_content_with_scroll_hint", className: classes$4.main_content }, { children: jsxRuntime.exports.jsxs("div", __assign({ className: "".concat(classes$2.awell_wizard_form, " ").concat(classes$2.container) }, { children: [!hideProgressIndicator && jsxRuntime.exports.jsx("div", __assign({ className: classes$2.form_progress }, { children: jsxRuntime.exports.jsx(ProgressIndicator, { percentageCompleted: percentageCompleted }) })), isEvaluatingQuestionVisibility ||
|
|
37649
37650
|
(currentQuestion === null || currentQuestion === void 0 ? void 0 : currentQuestion.id) === undefined ? jsxRuntime.exports.jsx("div", __assign({ className: classes$2.loadingContainer }, { children: jsxRuntime.exports.jsx(HorizontalSpinner, {}) })) : jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, { children: jsxRuntime.exports.jsxs("div", __assign({ className: classes$2.wizard_form }, { children: [jsxRuntime.exports.jsx(Question, { question: currentQuestion, control: control, getValues: getValues, errors: errors, labels: questionLabels, submitAndMoveToNextQuestion: submitAndMoveToNextQuestion, inputAutoFocus: true, shouldAutoProgress: shouldAutoProgress }, currentQuestion.id), (form === null || form === void 0 ? void 0 : form.trademark) && jsxRuntime.exports.jsx("div", __assign({ className: "".concat(classes$2.trademark, " ").concat(classes$2.conversational) }, { children: form.trademark }))] })) })] })) })), jsxRuntime.exports.jsx(HostedPageFooter, __assign({ showScrollHint: showScrollHint }, { children: !isEvaluatingQuestionVisibility && jsxRuntime.exports.jsxs("div", __assign({ className: "".concat(classes$2.conversational_button_wrapper, " ").concat(classes$2.container) }, { children: [jsxRuntime.exports.jsx("div", { children: !isFirstQuestion && jsxRuntime.exports.jsx(Button, __assign({ variant: "tertiary", onClick: handleGoToPrevQuestion, "data-cy": "navigateToPrevQuestionButton" }, { children: buttonLabels.prev })) }), isLastQuestion ? jsxRuntime.exports.jsx(Button, __assign({ onClick: submitForm, type: "submit", "data-cy": "submitFormButton", disabled: isSubmittingForm }, { children: buttonLabels.submit })) : jsxRuntime.exports.jsx(Button, __assign({ variant: "secondary", onClick: handleGoToNextQuestion, "data-cy": "navigateToNextQuestionButton" }, { children: buttonLabels.next }))] })) }))] });
|
|
37650
37651
|
};
|
|
@@ -51391,7 +51392,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
51391
51392
|
var HostedPageLayout = function (_a) {
|
|
51392
51393
|
var children = _a.children,onCloseHostedPage = _a.onCloseHostedPage,logo = _a.logo,_b = _a.hideCloseButton,hideCloseButton = _b === void 0 ? false : _b;
|
|
51393
51394
|
var layoutMode = useTheme().layoutMode;
|
|
51394
|
-
return jsxRuntime.exports.jsxs("div", __assign({ className: "".concat(classes$4.layout_container, " ").concat(classes$4[layoutMode]) }, { children: [!hideCloseButton && jsxRuntime.exports.jsx(CloseButton, { onClose: onCloseHostedPage }), jsxRuntime.exports.jsx("header", { children: jsxRuntime.exports.jsx(Navbar, { logo: logo }) }), children] }));
|
|
51395
|
+
return jsxRuntime.exports.jsxs("div", __assign({ className: "".concat(classes$4.layout_container, " ").concat(classes$4[layoutMode], " ").concat(logo ? '' : classes$4.withoutLogo) }, { children: [!hideCloseButton && jsxRuntime.exports.jsx(CloseButton, { onClose: onCloseHostedPage }), logo && jsxRuntime.exports.jsx("header", { children: jsxRuntime.exports.jsx(Navbar, { logo: logo }) }), children] }));
|
|
51395
51396
|
};
|
|
51396
51397
|
|
|
51397
51398
|
exports.AttachmentList = AttachmentList;
|