@hexure/ui 1.13.49 → 1.13.50

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/cjs/index.js CHANGED
@@ -1368,9 +1368,30 @@ const Validation = styled.div `
1368
1368
  color: ${Colors.RED.Hex};
1369
1369
  margin: 4px 0 0 0;
1370
1370
  box-sizing: border-box;
1371
+ min-height: 19px;
1371
1372
  `;
1373
+ const ValidationNew = styled.span `
1374
+ font-size: ${FontSizes.SMALL};
1375
+ font-weight: 400;
1376
+ line-height: 1.3em;
1377
+ font-family: ${FontStyles.DEFAULT};
1378
+ color: ${Colors.BLACK.Hex};
1379
+ box-sizing: border-box;
1380
+ align-items: center;
1381
+ display: flex;
1382
+ `;
1383
+ const ValidationInnerIcon = styled.span `
1384
+ padding-right: 5px;
1385
+ display: flex;
1386
+ `;
1387
+ const ValidationInnerMessage = styled.span ``;
1388
+ const MessageWrapper = message => (React.createElement(ValidationNew, null,
1389
+ React.createElement(ValidationInnerIcon, null,
1390
+ React.createElement(Icon, { path: js.mdiAlertCircle, size: '17px' })),
1391
+ ' ',
1392
+ React.createElement(ValidationInnerMessage, null, message)));
1372
1393
  const Field = (_a) => {
1373
- var { action, children, validationText, label, description, required, htmlFor, style = {}, tooltip, dataItemid } = _a, accessibleProps = __rest(_a, ["action", "children", "validationText", "label", "description", "required", "htmlFor", "style", "tooltip", "dataItemid"]);
1394
+ var { action, children, validationText, label, description, required, htmlFor, style = {}, tooltip, dataItemid, isNewMessageType } = _a, accessibleProps = __rest(_a, ["action", "children", "validationText", "label", "description", "required", "htmlFor", "style", "tooltip", "dataItemid", "isNewMessageType"]);
1374
1395
  const baseId = dataItemid || 'field';
1375
1396
  return (React.createElement(Wrapper$9, Object.assign({ "$customStyle": style }, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
1376
1397
  React.createElement(LabelRow, { "data-itemid": `${baseId}-label-row` },
@@ -1381,7 +1402,9 @@ const Field = (_a) => {
1381
1402
  action ? (React.createElement(Action, { "data-itemid": `${baseId}-action`, onClick: action.onClick }, action.label)) : null),
1382
1403
  description ? (React.createElement(Description, { "data-itemid": `${baseId}-description` }, description)) : null,
1383
1404
  React.createElement("div", { "data-itemid": `${baseId}-children` }, children),
1384
- React.createElement(Validation, { className: 'field-validation-wrapper', "data-itemid": `${baseId}-validation`, title: validationText }, validationText ? validationText : '\u00A0')));
1405
+ React.createElement(Validation, { className: 'field-validation-wrapper', "data-itemid": `${baseId}-validation`, title: validationText }, validationText && isNewMessageType
1406
+ ? MessageWrapper(validationText)
1407
+ : validationText || '\u00A0')));
1385
1408
  };
1386
1409
 
1387
1410
  const Wrapper$8 = styled.fieldset `