@awell-health/ui-library 0.1.143 → 0.1.145
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 +4 -4
- package/dist/index.js +11 -5
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -8258,12 +8258,12 @@ html {
|
|
|
8258
8258
|
margin: 0 auto;
|
|
8259
8259
|
}
|
|
8260
8260
|
|
|
8261
|
-
.awell__form_traditional_form {
|
|
8262
|
-
padding-bottom: calc(var(--awell-mobile-footer-height) + var(--awell-spacing-
|
|
8261
|
+
main.awell__form_traditional_form {
|
|
8262
|
+
padding-bottom: calc(var(--awell-mobile-footer-height) + var(--awell-spacing-28));
|
|
8263
8263
|
}
|
|
8264
8264
|
@media (min-width: 640px) {
|
|
8265
|
-
.awell__form_traditional_form {
|
|
8266
|
-
padding-bottom: calc(var(--awell-footer-height) + var(--awell-spacing-
|
|
8265
|
+
main.awell__form_traditional_form {
|
|
8266
|
+
padding-bottom: calc(var(--awell-footer-height) + var(--awell-spacing-28));
|
|
8267
8267
|
}
|
|
8268
8268
|
}
|
|
8269
8269
|
|
package/dist/index.js
CHANGED
|
@@ -34859,10 +34859,16 @@ Check the top-level render call using <` + t + ">.");
|
|
|
34859
34859
|
var containerRect = container.getBoundingClientRect();
|
|
34860
34860
|
var dropdownRect = dropdownElement.getBoundingClientRect();
|
|
34861
34861
|
var selectRect = selectWrapperRef.current.getBoundingClientRect();
|
|
34862
|
+
var fixedFooter = Array.from(document.querySelectorAll('footer')).find(function (footer) {
|
|
34863
|
+
var footerStyles = window.getComputedStyle(footer);
|
|
34864
|
+
return footerStyles.position === 'fixed' && footerStyles.bottom === '0px';
|
|
34865
|
+
});
|
|
34866
|
+
var visibleContainerBottom = fixedFooter ?
|
|
34867
|
+
Math.min(containerRect.bottom, fixedFooter.getBoundingClientRect().top) :
|
|
34868
|
+
containerRect.bottom;
|
|
34862
34869
|
var dropdownBottom = selectRect.bottom + dropdownRect.height;
|
|
34863
|
-
|
|
34864
|
-
|
|
34865
|
-
var scrollAmount = dropdownBottom - containerBottom + 20;
|
|
34870
|
+
if (dropdownBottom > visibleContainerBottom) {
|
|
34871
|
+
var scrollAmount = dropdownBottom - visibleContainerBottom + 20;
|
|
34866
34872
|
container.scrollTo({
|
|
34867
34873
|
top: container.scrollTop + scrollAmount,
|
|
34868
34874
|
behavior: 'smooth' });
|
|
@@ -51575,7 +51581,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51575
51581
|
if (value !== mapped) {
|
|
51576
51582
|
notifyAnswerChange(mapped);
|
|
51577
51583
|
}
|
|
51578
|
-
}, isMulti: true, options: optionsToSelectItems((_c = question.options) !== null && _c !== void 0 ? _c : []), required: config === null || config === void 0 ? void 0 : config.mandatory, isSearchable: true });
|
|
51584
|
+
}, isMulti: true, options: optionsToSelectItems((_c = question.options) !== null && _c !== void 0 ? _c : []), required: config === null || config === void 0 ? void 0 : config.mandatory, isSearchable: true, menuPosition: "fixed" });
|
|
51579
51585
|
}
|
|
51580
51586
|
return jsxRuntime.exports.jsx(MultipleChoiceQuestion, { label: question.title, options: (_d = question.options) !== null && _d !== void 0 ? _d : [], onChange: function (data) {
|
|
51581
51587
|
onChange(data);
|
|
@@ -51593,7 +51599,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51593
51599
|
var mapped = selectValueToSingleValue(selected);
|
|
51594
51600
|
onChange(mapped);
|
|
51595
51601
|
notifyAnswerChange(mapped);
|
|
51596
|
-
}, options: optionsToSelectItems((_d = question.options) !== null && _d !== void 0 ? _d : []), required: config === null || config === void 0 ? void 0 : config.mandatory, isSearchable: true });
|
|
51602
|
+
}, options: optionsToSelectItems((_d = question.options) !== null && _d !== void 0 ? _d : []), required: config === null || config === void 0 ? void 0 : config.mandatory, isSearchable: true, menuPosition: "fixed" });
|
|
51597
51603
|
}
|
|
51598
51604
|
return jsxRuntime.exports.jsx(SingleChoiceQuestion, { label: question.title, options: question.options || [], onChange: function (data) {
|
|
51599
51605
|
onChange(data);
|