@spothero/ui 14.6.0 → 14.7.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.
@@ -1,6 +1,7 @@
1
1
  import React, { createContext as createContext$1, forwardRef as forwardRef$1, useContext, createElement, Fragment as Fragment$1, useRef, useLayoutEffect, Children, isValidElement as isValidElement$1, useCallback, useEffect, useState, useMemo, memo, Component, cloneElement } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import merge$2 from 'lodash/merge';
4
+ import cn from 'classnames';
4
5
  import { createPortal } from 'react-dom';
5
6
  import template from 'lodash/template';
6
7
 
@@ -34788,6 +34789,9 @@ var Select = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
34788
34789
  isRequired = _ref.isRequired,
34789
34790
  props = _objectWithoutProperties(_ref, _excluded$a);
34790
34791
 
34792
+ var classes = cn({
34793
+ 'FormElement-contains-error': isInvalid
34794
+ });
34791
34795
  return /*#__PURE__*/React.createElement(_default$N, {
34792
34796
  isInvalid: isInvalid,
34793
34797
  isDisabled: isDisabled,
@@ -34799,7 +34803,8 @@ var Select = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
34799
34803
  }, /*#__PURE__*/React.createElement(Select$1, _extends({
34800
34804
  fontWeight: "regular",
34801
34805
  fontSize: "sm",
34802
- ref: ref
34806
+ ref: ref,
34807
+ className: classes
34803
34808
  }, props)));
34804
34809
  });
34805
34810
  Select.propTypes = {
@@ -38126,6 +38131,9 @@ var Input = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
38126
38131
  isRequired = _ref.isRequired,
38127
38132
  props = _objectWithoutProperties(_ref, _excluded$2);
38128
38133
 
38134
+ var classes = cn({
38135
+ 'FormElement-contains-error': isInvalid
38136
+ });
38129
38137
  return /*#__PURE__*/React.createElement(_default$N, {
38130
38138
  isInvalid: isInvalid,
38131
38139
  isDisabled: isDisabled,
@@ -38135,7 +38143,8 @@ var Input = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
38135
38143
  label: label,
38136
38144
  inputId: props.id
38137
38145
  }, /*#__PURE__*/React.createElement(Input$1, _extends({
38138
- ref: ref
38146
+ ref: ref,
38147
+ className: classes
38139
38148
  }, props)));
38140
38149
  });
38141
38150
  Input.propTypes = {