@awell-health/ui-library 0.1.82 → 0.1.83
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 +13 -0
- package/dist/index.js +11 -11
- package/dist/types/molecules/question/types.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -5863,6 +5863,19 @@ html {
|
|
|
5863
5863
|
height: var(--awell-font-size-base);
|
|
5864
5864
|
margin-top: var(--awell-spacing-4);
|
|
5865
5865
|
}
|
|
5866
|
+
|
|
5867
|
+
.awell__question_awell_question_description {
|
|
5868
|
+
display: block;
|
|
5869
|
+
color: var(--awell-neutralMid400);
|
|
5870
|
+
font-size: 0.875rem;
|
|
5871
|
+
line-height: 20px;
|
|
5872
|
+
margin-top: var(--awell-spacing-2);
|
|
5873
|
+
font-weight: 400;
|
|
5874
|
+
}
|
|
5875
|
+
.awell__question_awell_question_description > a {
|
|
5876
|
+
color: var(--awell-blue400);
|
|
5877
|
+
text-decoration: underline;
|
|
5878
|
+
}
|
|
5866
5879
|
.awell__phoneInputField_awell_input_field_wrapper {
|
|
5867
5880
|
--awell-focus-ring-color: var(--awell-accent-ring-color-inputs);
|
|
5868
5881
|
--awell-focus-ring-offset-width: 0px;
|
package/dist/index.js
CHANGED
|
@@ -37257,7 +37257,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
37257
37257
|
'' }, option.id);}) }))] });
|
|
37258
37258
|
};
|
|
37259
37259
|
|
|
37260
|
-
var classes$a = {"awell_question":"awell__question_awell_question","error":"awell__question_error"};
|
|
37260
|
+
var classes$a = {"awell_question":"awell__question_awell_question","error":"awell__question_error","awell_question_description":"awell__question_awell_question_description"};
|
|
37261
37261
|
|
|
37262
37262
|
var classes$9 = {"awell_input_field_wrapper":"awell__phoneInputField_awell_input_field_wrapper","awell_phone_input_field_container":"awell__phoneInputField_awell_phone_input_field_container","input_wrapper_with_error":"awell__phoneInputField_input_wrapper_with_error","has_error":"awell__phoneInputField_has_error","error_message":"awell__phoneInputField_error_message","error_icon":"awell__phoneInputField_error_icon","awell_input_field":"awell__phoneInputField_awell_input_field"};
|
|
37263
37263
|
|
|
@@ -41333,16 +41333,16 @@ Check the top-level render call using <` + t + ">.");
|
|
|
41333
41333
|
} });
|
|
41334
41334
|
case exports.UserQuestionType.Icd10Classification:
|
|
41335
41335
|
return jsxRuntime.exports.jsx(Controller, { name: question.id, control: control, defaultValue: "", rules: { required: config === null || config === void 0 ? void 0 : config.mandatory }, render: function (_a) {
|
|
41336
|
-
var _b, _c;
|
|
41337
|
-
var
|
|
41338
|
-
return jsxRuntime.exports.jsx(Select, { id: question.id, value: value, labels: {
|
|
41339
|
-
|
|
41340
|
-
|
|
41341
|
-
|
|
41342
|
-
|
|
41343
|
-
|
|
41344
|
-
|
|
41345
|
-
|
|
41336
|
+
var _b, _c, _d, _e;
|
|
41337
|
+
var _f = _a.field,onChange = _f.onChange,value = _f.value;
|
|
41338
|
+
return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, { children: [jsxRuntime.exports.jsx(Select, { id: question.id, value: value, labels: {
|
|
41339
|
+
questionLabel: question.title,
|
|
41340
|
+
placeholder: (_b = labels.select) === null || _b === void 0 ? void 0 : _b.search_icd_placeholder,
|
|
41341
|
+
noOptions: (_c = labels.select) === null || _c === void 0 ? void 0 : _c.no_options },
|
|
41342
|
+
onChange: function (data) {
|
|
41343
|
+
onChange(data);
|
|
41344
|
+
onAnswerChange();
|
|
41345
|
+
}, type: "single", options: icdClassificationOptions !== null && icdClassificationOptions !== void 0 ? icdClassificationOptions : [], mandatory: config === null || config === void 0 ? void 0 : config.mandatory, showCount: true, filtering: true, onSearch: onIcdClassificationSearchChange, loading: optionsLoading, allowSearchAfterSelect: true, allowEmptyOptionsList: true }), jsxRuntime.exports.jsxs("span", __assign({ className: classes$a.awell_question_description }, { children: [(_d = labels.select) === null || _d === void 0 ? void 0 : _d.icd_10_catalogue_description, ' ', jsxRuntime.exports.jsx("a", __assign({ href: "https://icd.who.int/browse10/2019/en#/J00", target: "blank" }, { children: (_e = labels.select) === null || _e === void 0 ? void 0 : _e.icd_10_catalogue_link })), '.'] }))] });
|
|
41346
41346
|
} });
|
|
41347
41347
|
case exports.UserQuestionType.Description:
|
|
41348
41348
|
return jsxRuntime.exports.jsx(Description, { content: question.title });
|
|
@@ -5,8 +5,11 @@ export interface QuestionLabels {
|
|
|
5
5
|
no_label: string;
|
|
6
6
|
select?: {
|
|
7
7
|
search_placeholder: string;
|
|
8
|
+
search_icd_placeholder: string;
|
|
8
9
|
no_options: string;
|
|
9
10
|
loading?: string;
|
|
11
|
+
icd_10_catalogue_description?: string;
|
|
12
|
+
icd_10_catalogue_link?: string;
|
|
10
13
|
};
|
|
11
14
|
slider: {
|
|
12
15
|
tooltip_guide: string;
|