@awell-health/ui-library 0.1.77 → 0.1.78

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -37667,14 +37667,18 @@ Check the top-level render call using <` + t + ">.");
37667
37667
  return jsxRuntime.exports.jsx(Controller, { name: question.id, control: control, defaultValue: "", rules: {
37668
37668
  required: config === null || config === void 0 ? void 0 : config.mandatory,
37669
37669
  validate: function (value) {
37670
- return isValidEmail(value);
37670
+ if (!lodash.exports.isEmpty(value)) {
37671
+ return isValidEmail(value);
37672
+ }
37673
+ return true;
37671
37674
  } },
37672
37675
  render: function (_a) {
37673
- var _b = _a.field,onChange = _b.onChange,value = _b.value;
37676
+ var _b;
37677
+ var _c = _a.field,onChange = _c.onChange,value = _c.value;
37674
37678
  return jsxRuntime.exports.jsx(InputField, { autoFocus: inputAutoFocus, type: "email", onChange: function (e) {
37675
37679
  onChange(e.target.value);
37676
37680
  onAnswerChange();
37677
- }, label: question.title, id: question.id, value: value, mandatory: config === null || config === void 0 ? void 0 : config.mandatory, placeholder: "name@example.com" });
37681
+ }, label: question.title, id: question.id, value: value, mandatory: (_b = config === null || config === void 0 ? void 0 : config.mandatory) !== null && _b !== void 0 ? _b : false, placeholder: "name@example.com" });
37678
37682
  } });
37679
37683
  case exports.UserQuestionType.Date:
37680
37684
  return jsxRuntime.exports.jsx(Controller, { name: question.id, control: control, rules: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/ui-library",
3
- "version": "0.1.77",
3
+ "version": "0.1.78",
4
4
  "description": "UI components to integrate with Awell Health",
5
5
  "repository": {
6
6
  "type": "git",