@justfixnyc/component-library 0.52.8 → 0.53.0
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/src/index.es.js
CHANGED
|
@@ -305,6 +305,7 @@ const InputHeader = _ref2 => {
|
|
|
305
305
|
isLegend,
|
|
306
306
|
headerText,
|
|
307
307
|
helperText,
|
|
308
|
+
helperElement,
|
|
308
309
|
invalid,
|
|
309
310
|
invalidText
|
|
310
311
|
} = _ref2;
|
|
@@ -313,11 +314,11 @@ const InputHeader = _ref2 => {
|
|
|
313
314
|
labelFor: labelFor,
|
|
314
315
|
isLegend: isLegend,
|
|
315
316
|
headerText: headerText,
|
|
316
|
-
hasHelperText: !!helperText
|
|
317
|
-
}), helperText && /*#__PURE__*/React.createElement("div", {
|
|
317
|
+
hasHelperText: !!helperText && !helperElement
|
|
318
|
+
}), helperText && !helperElement && /*#__PURE__*/React.createElement("div", {
|
|
318
319
|
className: "jfcl-input-header__helper_text",
|
|
319
320
|
"data-testid": "helper-text"
|
|
320
|
-
}, helperText), invalid && invalidText && /*#__PURE__*/React.createElement("div", {
|
|
321
|
+
}, helperText), helperElement, invalid && invalidText && /*#__PURE__*/React.createElement("div", {
|
|
321
322
|
className: "jfcl-input-header__invalid_text",
|
|
322
323
|
"data-testid": "error"
|
|
323
324
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -439,6 +440,7 @@ const FormGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
439
440
|
invalidText,
|
|
440
441
|
invalid,
|
|
441
442
|
helperText,
|
|
443
|
+
helperElement,
|
|
442
444
|
legendText,
|
|
443
445
|
...props
|
|
444
446
|
} = _ref;
|
|
@@ -452,6 +454,7 @@ const FormGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
452
454
|
}), /*#__PURE__*/React.createElement(InputHeader, {
|
|
453
455
|
headerText: legendText,
|
|
454
456
|
helperText: helperText,
|
|
457
|
+
helperElement: helperElement,
|
|
455
458
|
invalid: invalid,
|
|
456
459
|
invalidText: invalidText,
|
|
457
460
|
isLegend: true
|
package/dist/src/index.js
CHANGED
|
@@ -316,6 +316,7 @@ const InputHeader = _ref2 => {
|
|
|
316
316
|
isLegend,
|
|
317
317
|
headerText,
|
|
318
318
|
helperText,
|
|
319
|
+
helperElement,
|
|
319
320
|
invalid,
|
|
320
321
|
invalidText
|
|
321
322
|
} = _ref2;
|
|
@@ -324,11 +325,11 @@ const InputHeader = _ref2 => {
|
|
|
324
325
|
labelFor: labelFor,
|
|
325
326
|
isLegend: isLegend,
|
|
326
327
|
headerText: headerText,
|
|
327
|
-
hasHelperText: !!helperText
|
|
328
|
-
}), helperText && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
328
|
+
hasHelperText: !!helperText && !helperElement
|
|
329
|
+
}), helperText && !helperElement && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
329
330
|
className: "jfcl-input-header__helper_text",
|
|
330
331
|
"data-testid": "helper-text"
|
|
331
|
-
}, helperText), invalid && invalidText && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
332
|
+
}, helperText), helperElement, invalid && invalidText && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
332
333
|
className: "jfcl-input-header__invalid_text",
|
|
333
334
|
"data-testid": "error"
|
|
334
335
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
@@ -450,6 +451,7 @@ const FormGroup = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
450
451
|
invalidText,
|
|
451
452
|
invalid,
|
|
452
453
|
helperText,
|
|
454
|
+
helperElement,
|
|
453
455
|
legendText,
|
|
454
456
|
...props
|
|
455
457
|
} = _ref;
|
|
@@ -463,6 +465,7 @@ const FormGroup = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
463
465
|
}), /*#__PURE__*/React__default["default"].createElement(InputHeader, {
|
|
464
466
|
headerText: legendText,
|
|
465
467
|
helperText: helperText,
|
|
468
|
+
helperElement: helperElement,
|
|
466
469
|
invalid: invalid,
|
|
467
470
|
invalidText: invalidText,
|
|
468
471
|
isLegend: true
|