@awell-health/ui-library 0.1.72 → 0.1.74
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
CHANGED
|
@@ -186,6 +186,8 @@ html {
|
|
|
186
186
|
/* 56px */
|
|
187
187
|
--spacing-16: 4rem;
|
|
188
188
|
/* 64px */
|
|
189
|
+
--spacing-18: 4.5rem;
|
|
190
|
+
/* 72px */
|
|
189
191
|
--spacing-20: 5rem;
|
|
190
192
|
/* 80px */
|
|
191
193
|
--spacing-24: 6rem;
|
|
@@ -640,6 +642,8 @@ html {
|
|
|
640
642
|
/* 56px */
|
|
641
643
|
--spacing-16: 4rem;
|
|
642
644
|
/* 64px */
|
|
645
|
+
--spacing-18: 4.5rem;
|
|
646
|
+
/* 72px */
|
|
643
647
|
--spacing-20: 5rem;
|
|
644
648
|
/* 80px */
|
|
645
649
|
--spacing-24: 6rem;
|
|
@@ -1372,6 +1376,8 @@ html {
|
|
|
1372
1376
|
/* 56px */
|
|
1373
1377
|
--spacing-16: 4rem;
|
|
1374
1378
|
/* 64px */
|
|
1379
|
+
--spacing-18: 4.5rem;
|
|
1380
|
+
/* 72px */
|
|
1375
1381
|
--spacing-20: 5rem;
|
|
1376
1382
|
/* 80px */
|
|
1377
1383
|
--spacing-24: 6rem;
|
|
@@ -1852,6 +1858,8 @@ html {
|
|
|
1852
1858
|
/* 56px */
|
|
1853
1859
|
--spacing-16: 4rem;
|
|
1854
1860
|
/* 64px */
|
|
1861
|
+
--spacing-18: 4.5rem;
|
|
1862
|
+
/* 72px */
|
|
1855
1863
|
--spacing-20: 5rem;
|
|
1856
1864
|
/* 80px */
|
|
1857
1865
|
--spacing-24: 6rem;
|
|
@@ -2400,6 +2408,8 @@ html {
|
|
|
2400
2408
|
/* 56px */
|
|
2401
2409
|
--spacing-16: 4rem;
|
|
2402
2410
|
/* 64px */
|
|
2411
|
+
--spacing-18: 4.5rem;
|
|
2412
|
+
/* 72px */
|
|
2403
2413
|
--spacing-20: 5rem;
|
|
2404
2414
|
/* 80px */
|
|
2405
2415
|
--spacing-24: 6rem;
|
|
@@ -2773,6 +2783,8 @@ html {
|
|
|
2773
2783
|
/* 56px */
|
|
2774
2784
|
--spacing-16: 4rem;
|
|
2775
2785
|
/* 64px */
|
|
2786
|
+
--spacing-18: 4.5rem;
|
|
2787
|
+
/* 72px */
|
|
2776
2788
|
--spacing-20: 5rem;
|
|
2777
2789
|
/* 80px */
|
|
2778
2790
|
--spacing-24: 6rem;
|
|
@@ -3158,6 +3170,8 @@ html {
|
|
|
3158
3170
|
/* 56px */
|
|
3159
3171
|
--spacing-16: 4rem;
|
|
3160
3172
|
/* 64px */
|
|
3173
|
+
--spacing-18: 4.5rem;
|
|
3174
|
+
/* 72px */
|
|
3161
3175
|
--spacing-20: 5rem;
|
|
3162
3176
|
/* 80px */
|
|
3163
3177
|
--spacing-24: 6rem;
|
|
@@ -3684,6 +3698,8 @@ html {
|
|
|
3684
3698
|
/* 56px */
|
|
3685
3699
|
--spacing-16: 4rem;
|
|
3686
3700
|
/* 64px */
|
|
3701
|
+
--spacing-18: 4.5rem;
|
|
3702
|
+
/* 72px */
|
|
3687
3703
|
--spacing-20: 5rem;
|
|
3688
3704
|
/* 80px */
|
|
3689
3705
|
--spacing-24: 6rem;
|
|
@@ -4042,6 +4058,8 @@ html {
|
|
|
4042
4058
|
/* 56px */
|
|
4043
4059
|
--spacing-16: 4rem;
|
|
4044
4060
|
/* 64px */
|
|
4061
|
+
--spacing-18: 4.5rem;
|
|
4062
|
+
/* 72px */
|
|
4045
4063
|
--spacing-20: 5rem;
|
|
4046
4064
|
/* 80px */
|
|
4047
4065
|
--spacing-24: 6rem;
|
|
@@ -4426,6 +4444,8 @@ html {
|
|
|
4426
4444
|
/* 56px */
|
|
4427
4445
|
--spacing-16: 4rem;
|
|
4428
4446
|
/* 64px */
|
|
4447
|
+
--spacing-18: 4.5rem;
|
|
4448
|
+
/* 72px */
|
|
4429
4449
|
--spacing-20: 5rem;
|
|
4430
4450
|
/* 80px */
|
|
4431
4451
|
--spacing-24: 6rem;
|
|
@@ -4977,6 +4997,8 @@ html {
|
|
|
4977
4997
|
/* 56px */
|
|
4978
4998
|
--spacing-16: 4rem;
|
|
4979
4999
|
/* 64px */
|
|
5000
|
+
--spacing-18: 4.5rem;
|
|
5001
|
+
/* 72px */
|
|
4980
5002
|
--spacing-20: 5rem;
|
|
4981
5003
|
/* 80px */
|
|
4982
5004
|
--spacing-24: 6rem;
|
|
@@ -5602,6 +5624,8 @@ html {
|
|
|
5602
5624
|
/* 56px */
|
|
5603
5625
|
--spacing-16: 4rem;
|
|
5604
5626
|
/* 64px */
|
|
5627
|
+
--spacing-18: 4.5rem;
|
|
5628
|
+
/* 72px */
|
|
5605
5629
|
--spacing-20: 5rem;
|
|
5606
5630
|
/* 80px */
|
|
5607
5631
|
--spacing-24: 6rem;
|
|
@@ -6103,6 +6127,8 @@ html {
|
|
|
6103
6127
|
/* 56px */
|
|
6104
6128
|
--spacing-16: 4rem;
|
|
6105
6129
|
/* 64px */
|
|
6130
|
+
--spacing-18: 4.5rem;
|
|
6131
|
+
/* 72px */
|
|
6106
6132
|
--spacing-20: 5rem;
|
|
6107
6133
|
/* 80px */
|
|
6108
6134
|
--spacing-24: 6rem;
|
|
@@ -6438,6 +6464,8 @@ html {
|
|
|
6438
6464
|
/* 56px */
|
|
6439
6465
|
--spacing-16: 4rem;
|
|
6440
6466
|
/* 64px */
|
|
6467
|
+
--spacing-18: 4.5rem;
|
|
6468
|
+
/* 72px */
|
|
6441
6469
|
--spacing-20: 5rem;
|
|
6442
6470
|
/* 80px */
|
|
6443
6471
|
--spacing-24: 6rem;
|
|
@@ -6594,6 +6622,11 @@ html {
|
|
|
6594
6622
|
height: var(--awell-footer-height);
|
|
6595
6623
|
}
|
|
6596
6624
|
}
|
|
6625
|
+
.awell__hostedPageFooter_footer.awell__hostedPageFooter_fixed {
|
|
6626
|
+
position: fixed;
|
|
6627
|
+
bottom: 0;
|
|
6628
|
+
left: 0;
|
|
6629
|
+
}
|
|
6597
6630
|
.awell__hostedPageFooter_footer .awell__hostedPageFooter_scrollHint {
|
|
6598
6631
|
position: absolute;
|
|
6599
6632
|
bottom: var(--awell-mobile-footer-height);
|
|
@@ -6810,6 +6843,8 @@ html {
|
|
|
6810
6843
|
/* 56px */
|
|
6811
6844
|
--spacing-16: 4rem;
|
|
6812
6845
|
/* 64px */
|
|
6846
|
+
--spacing-18: 4.5rem;
|
|
6847
|
+
/* 72px */
|
|
6813
6848
|
--spacing-20: 5rem;
|
|
6814
6849
|
/* 80px */
|
|
6815
6850
|
--spacing-24: 6rem;
|
|
@@ -7183,6 +7218,8 @@ html {
|
|
|
7183
7218
|
/* 56px */
|
|
7184
7219
|
--spacing-16: 4rem;
|
|
7185
7220
|
/* 64px */
|
|
7221
|
+
--spacing-18: 4.5rem;
|
|
7222
|
+
/* 72px */
|
|
7186
7223
|
--spacing-20: 5rem;
|
|
7187
7224
|
/* 80px */
|
|
7188
7225
|
--spacing-24: 6rem;
|
|
@@ -7552,6 +7589,8 @@ html {
|
|
|
7552
7589
|
/* 56px */
|
|
7553
7590
|
--spacing-16: 4rem;
|
|
7554
7591
|
/* 64px */
|
|
7592
|
+
--spacing-18: 4.5rem;
|
|
7593
|
+
/* 72px */
|
|
7555
7594
|
--spacing-20: 5rem;
|
|
7556
7595
|
/* 80px */
|
|
7557
7596
|
--spacing-24: 6rem;
|
|
@@ -7961,6 +8000,8 @@ html {
|
|
|
7961
8000
|
/* 56px */
|
|
7962
8001
|
--spacing-16: 4rem;
|
|
7963
8002
|
/* 64px */
|
|
8003
|
+
--spacing-18: 4.5rem;
|
|
8004
|
+
/* 72px */
|
|
7964
8005
|
--spacing-20: 5rem;
|
|
7965
8006
|
/* 80px */
|
|
7966
8007
|
--spacing-24: 6rem;
|
|
@@ -8190,7 +8231,7 @@ html {
|
|
|
8190
8231
|
}
|
|
8191
8232
|
}
|
|
8192
8233
|
.awell__form_trademark.awell__form_traditional {
|
|
8193
|
-
padding-bottom: var(--
|
|
8234
|
+
padding-bottom: var(--spacing-18);
|
|
8194
8235
|
}
|
|
8195
8236
|
.awell__form_trademark.awell__form_conversational {
|
|
8196
8237
|
padding-top: var(--awell-spacing-4);
|
|
@@ -8202,18 +8243,11 @@ html {
|
|
|
8202
8243
|
bottom: 50px;
|
|
8203
8244
|
left: 0;
|
|
8204
8245
|
width: 100%;
|
|
8205
|
-
height:
|
|
8206
|
-
background: linear-gradient(to bottom, transparent, var(--awell-neutralLight10)
|
|
8246
|
+
height: 50px;
|
|
8247
|
+
background: linear-gradient(to bottom, transparent, var(--awell-neutralLight10) 50%);
|
|
8207
8248
|
pointer-events: none; /* Prevent interaction */
|
|
8208
8249
|
transition: top 0.5s ease-in-out;
|
|
8209
8250
|
}
|
|
8210
|
-
|
|
8211
|
-
.awell__form_footer_for_traditional_form {
|
|
8212
|
-
width: 100%;
|
|
8213
|
-
position: fixed;
|
|
8214
|
-
bottom: 0;
|
|
8215
|
-
left: 0;
|
|
8216
|
-
}
|
|
8217
8251
|
@import 'https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap';
|
|
8218
8252
|
:root {
|
|
8219
8253
|
--awell-accent100: #fdb833;
|
|
@@ -8402,6 +8436,8 @@ html {
|
|
|
8402
8436
|
/* 56px */
|
|
8403
8437
|
--spacing-16: 4rem;
|
|
8404
8438
|
/* 64px */
|
|
8439
|
+
--spacing-18: 4.5rem;
|
|
8440
|
+
/* 72px */
|
|
8405
8441
|
--spacing-20: 5rem;
|
|
8406
8442
|
/* 80px */
|
|
8407
8443
|
--spacing-24: 6rem;
|
|
@@ -8757,6 +8793,8 @@ html {
|
|
|
8757
8793
|
/* 56px */
|
|
8758
8794
|
--spacing-16: 4rem;
|
|
8759
8795
|
/* 64px */
|
|
8796
|
+
--spacing-18: 4.5rem;
|
|
8797
|
+
/* 72px */
|
|
8760
8798
|
--spacing-20: 5rem;
|
|
8761
8799
|
/* 80px */
|
|
8762
8800
|
--spacing-24: 6rem;
|
|
@@ -9127,6 +9165,8 @@ html {
|
|
|
9127
9165
|
/* 56px */
|
|
9128
9166
|
--spacing-16: 4rem;
|
|
9129
9167
|
/* 64px */
|
|
9168
|
+
--spacing-18: 4.5rem;
|
|
9169
|
+
/* 72px */
|
|
9130
9170
|
--spacing-20: 5rem;
|
|
9131
9171
|
/* 80px */
|
|
9132
9172
|
--spacing-24: 6rem;
|
|
@@ -9482,6 +9522,8 @@ html {
|
|
|
9482
9522
|
/* 56px */
|
|
9483
9523
|
--spacing-16: 4rem;
|
|
9484
9524
|
/* 64px */
|
|
9525
|
+
--spacing-18: 4.5rem;
|
|
9526
|
+
/* 72px */
|
|
9485
9527
|
--spacing-20: 5rem;
|
|
9486
9528
|
/* 80px */
|
|
9487
9529
|
--spacing-24: 6rem;
|
|
@@ -9879,6 +9921,8 @@ html {
|
|
|
9879
9921
|
/* 56px */
|
|
9880
9922
|
--spacing-16: 4rem;
|
|
9881
9923
|
/* 64px */
|
|
9924
|
+
--spacing-18: 4.5rem;
|
|
9925
|
+
/* 72px */
|
|
9882
9926
|
--spacing-20: 5rem;
|
|
9883
9927
|
/* 80px */
|
|
9884
9928
|
--spacing-24: 6rem;
|
package/dist/index.js
CHANGED
|
@@ -37769,11 +37769,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
37769
37769
|
|
|
37770
37770
|
};
|
|
37771
37771
|
|
|
37772
|
-
var classes$7 = {"footer":"awell__hostedPageFooter_footer","scrollHint":"awell__hostedPageFooter_scrollHint","visible":"awell__hostedPageFooter_visible","hidden":"awell__hostedPageFooter_hidden"};
|
|
37772
|
+
var classes$7 = {"footer":"awell__hostedPageFooter_footer","fixed":"awell__hostedPageFooter_fixed","scrollHint":"awell__hostedPageFooter_scrollHint","visible":"awell__hostedPageFooter_visible","hidden":"awell__hostedPageFooter_hidden"};
|
|
37773
37773
|
|
|
37774
37774
|
var HostedPageFooter = function (_a) {
|
|
37775
|
-
var children = _a.children,_b = _a.showScrollHint,showScrollHint = _b === void 0 ? false : _b;
|
|
37776
|
-
|
|
37775
|
+
var children = _a.children,_b = _a.showScrollHint,showScrollHint = _b === void 0 ? false : _b,_c = _a.fixPosition,fixPosition = _c === void 0 ? false : _c;
|
|
37776
|
+
var footerClass = fixPosition ?
|
|
37777
|
+
"".concat(classes$7.footer, " ").concat(classes$7.fixed) :
|
|
37778
|
+
classes$7.footer;
|
|
37779
|
+
return jsxRuntime.exports.jsxs("footer", __assign({ className: footerClass }, { children: [jsxRuntime.exports.jsx("div", __assign({ className: "".concat(classes$7.scrollHint, " ").concat(showScrollHint ? classes$7.visible : classes$7.hidden), id: "awell__form_scrollhint" }, { children: jsxRuntime.exports.jsx(ScrollIndicator, {}) })), children] }));
|
|
37777
37780
|
};
|
|
37778
37781
|
|
|
37779
37782
|
var classes$6 = {"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"};
|
|
@@ -37804,7 +37807,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
37804
37807
|
return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, { children: [jsxRuntime.exports.jsx("main", __assign({ id: "ahp_main_content_with_scroll_hint", className: layoutClasses.main_content }, { children: jsxRuntime.exports.jsxs("article", __assign({ className: "".concat(classes$5.awell_message, " ").concat(classes$5.container) }, { children: [jsxRuntime.exports.jsx("div", __assign({ className: classes$5.message_title }, { children: subject })), jsxRuntime.exports.jsx("div", __assign({ className: classes$5.content }, { children: jsxRuntime.exports.jsx(RichTextViewer, { content: cleanContent }) })), jsxRuntime.exports.jsxs("div", __assign({ className: classes$5.attachmentList }, { children: [jsxRuntime.exports.jsx(AttachmentList, { attachments: attachments, icon: attachmentIcon, labels: attachmentLabels }), children] }))] })) })), jsxRuntime.exports.jsx(HostedPageFooter, __assign({ showScrollHint: showScrollHint }, { children: jsxRuntime.exports.jsx("div", __assign({ className: "".concat(classes$5.button_wrapper, " ").concat(classes$5.container) }, { children: jsxRuntime.exports.jsx(Button, __assign({ "data-cy": "markMessageAsReadButton", variant: "secondary", onClick: onMessageRead }, { children: buttonLabels.readMessage })) })) }))] });
|
|
37805
37808
|
};
|
|
37806
37809
|
|
|
37807
|
-
var classes$4 = {"container":"awell__form_container","traditional_container":"awell__form_traditional_container","awell_wizard_form":"awell__form_awell_wizard_form","form_progress":"awell__form_form_progress","loadingContainer":"awell__form_loadingContainer","title":"awell__form_title","wizard_form":"awell__form_wizard_form","conversational_button_wrapper":"awell__form_conversational_button_wrapper","traditional_button_wrapper":"awell__form_traditional_button_wrapper","traditional_form":"awell__form_traditional_form","traditional_form_question":"awell__form_traditional_form_question","trademark":"awell__form_trademark","traditional":"awell__form_traditional","conversational":"awell__form_conversational","scroll_hint_overlay":"awell__form_scroll_hint_overlay"
|
|
37810
|
+
var classes$4 = {"container":"awell__form_container","traditional_container":"awell__form_traditional_container","awell_wizard_form":"awell__form_awell_wizard_form","form_progress":"awell__form_form_progress","loadingContainer":"awell__form_loadingContainer","title":"awell__form_title","wizard_form":"awell__form_wizard_form","conversational_button_wrapper":"awell__form_conversational_button_wrapper","traditional_button_wrapper":"awell__form_traditional_button_wrapper","traditional_form":"awell__form_traditional_form","traditional_form_question":"awell__form_traditional_form_question","trademark":"awell__form_trademark","traditional":"awell__form_traditional","conversational":"awell__form_conversational","scroll_hint_overlay":"awell__form_scroll_hint_overlay"};
|
|
37808
37811
|
|
|
37809
37812
|
var useClickOutsideNotifier = function (_a) {
|
|
37810
37813
|
var ref = _a.ref,clickOutsideHandler = _a.clickOutsideHandler;
|
|
@@ -38385,7 +38388,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
38385
38388
|
var handleScroll = function () {
|
|
38386
38389
|
if (scrollHintOverlayRef.current) {
|
|
38387
38390
|
var _a = document.documentElement,scrollTop = _a.scrollTop,scrollHeight = _a.scrollHeight,clientHeight = _a.clientHeight;
|
|
38388
|
-
var isAtBottom = scrollTop + clientHeight >= scrollHeight;
|
|
38391
|
+
var isAtBottom = scrollTop + clientHeight >= scrollHeight - 1;
|
|
38389
38392
|
scrollHintOverlayRef.current.style.top = isAtBottom ? '100%' : 'auto';
|
|
38390
38393
|
}
|
|
38391
38394
|
};
|
|
@@ -38410,7 +38413,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
38410
38413
|
}, []);
|
|
38411
38414
|
return jsxRuntime.exports.jsxs("div", { children: [jsxRuntime.exports.jsx("main", __assign({ id: "ahp_main_content_with_scroll_hint", className: "".concat(layoutClasses.main_content, " ").concat(classes$4.traditional_form) }, { children: jsxRuntime.exports.jsxs("div", __assign({ className: "".concat(classes$4.container, " ").concat(classes$4.traditional_container) }, { children: [!questionWithVisiblity ? jsxRuntime.exports.jsx("div", __assign({ className: classes$4.loadingContainer }, { children: jsxRuntime.exports.jsx(LoadActivityPlaceholder, {}) })) : jsxRuntime.exports.jsx("div", { children: jsxRuntime.exports.jsx("div", { children: questionWithVisiblity.
|
|
38412
38415
|
filter(function (vb) {return vb.visible;}).
|
|
38413
|
-
map(function (visibleQuestion) {return jsxRuntime.exports.jsx("div", __assign({ className: classes$4.traditional_form_question }, { children: jsxRuntime.exports.jsx(Question, { question: visibleQuestion, control: control, getValues: getValues, errors: errors, inputAutoFocus: false, onAnswerChange: updateQuestionVisibility, labels: questionLabels }, visibleQuestion.id) }), visibleQuestion.id);}) }) }), (form === null || form === void 0 ? void 0 : form.trademark) && jsxRuntime.exports.jsx("div", __assign({ className: "".concat(classes$4.trademark, " ").concat(classes$4.
|
|
38416
|
+
map(function (visibleQuestion) {return jsxRuntime.exports.jsx("div", __assign({ className: classes$4.traditional_form_question }, { children: jsxRuntime.exports.jsx(Question, { question: visibleQuestion, control: control, getValues: getValues, errors: errors, inputAutoFocus: false, onAnswerChange: updateQuestionVisibility, labels: questionLabels }, visibleQuestion.id) }), visibleQuestion.id);}) }) }), (form === null || form === void 0 ? void 0 : form.trademark) && jsxRuntime.exports.jsx("div", __assign({ className: "".concat(classes$4.trademark, " ").concat(classes$4.traditional) }, { children: form.trademark }))] })) })), jsxRuntime.exports.jsx("div", { ref: scrollHintOverlayRef, className: classes$4.scroll_hint_overlay }), jsxRuntime.exports.jsx(HostedPageFooter, __assign({ showScrollHint: false, fixPosition: true }, { children: jsxRuntime.exports.jsxs("div", __assign({ className: classes$4.traditional_button_wrapper }, { children: [formHasErrors && jsxRuntime.exports.jsx("div", { children: jsxRuntime.exports.jsx(Text, __assign({ variant: "textSmall", color: "var(--awell-signalError100)" }, { children: errorLabels.formHasErrors })) }), jsxRuntime.exports.jsx("div", {}), jsxRuntime.exports.jsx(Button, __assign({ onClick: submitForm, type: "submit", "data-cy": "submitFormButton", disabled: isSubmittingForm }, { children: buttonLabels.submit }))] })) }))] });
|
|
38414
38417
|
};
|
|
38415
38418
|
|
|
38416
38419
|
var WizardForm = ConversationalForm;
|