@spothero/ui 14.6.0 → 14.7.1

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
 
@@ -34453,6 +34454,7 @@ var variants$7 = {
34453
34454
  borderRadius: 'unset',
34454
34455
  color: 'primary.default',
34455
34456
  textDecoration: 'underline',
34457
+ textUnderlineOffset: '1px',
34456
34458
  h: 'unset',
34457
34459
  m: 'unset',
34458
34460
  minW: 'unset',
@@ -34475,6 +34477,7 @@ var variants$7 = {
34475
34477
  borderWidth: 'none',
34476
34478
  color: 'white',
34477
34479
  textDecoration: 'underline',
34480
+ textUnderlineOffset: '1px',
34478
34481
  h: 'unset',
34479
34482
  m: 'unset',
34480
34483
  minW: 'unset',
@@ -34656,10 +34659,7 @@ var Button = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
34656
34659
  props = _objectWithoutProperties(_ref, _excluded$c);
34657
34660
 
34658
34661
  return /*#__PURE__*/React.createElement(Button$1, _extends({
34659
- iconSpacing: 2,
34660
- sx: {
34661
- 'text-underline-offset': '1px'
34662
- }
34662
+ iconSpacing: 2
34663
34663
  }, props, (asAnchor || props.as === 'a') && anchorProps(isExternal), {
34664
34664
  ref: ref
34665
34665
  }));
@@ -34788,6 +34788,9 @@ var Select = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
34788
34788
  isRequired = _ref.isRequired,
34789
34789
  props = _objectWithoutProperties(_ref, _excluded$a);
34790
34790
 
34791
+ var classes = cn({
34792
+ 'FormElement-contains-error': isInvalid
34793
+ });
34791
34794
  return /*#__PURE__*/React.createElement(_default$N, {
34792
34795
  isInvalid: isInvalid,
34793
34796
  isDisabled: isDisabled,
@@ -34799,7 +34802,8 @@ var Select = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
34799
34802
  }, /*#__PURE__*/React.createElement(Select$1, _extends({
34800
34803
  fontWeight: "regular",
34801
34804
  fontSize: "sm",
34802
- ref: ref
34805
+ ref: ref,
34806
+ className: classes
34803
34807
  }, props)));
34804
34808
  });
34805
34809
  Select.propTypes = {
@@ -38126,6 +38130,9 @@ var Input = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
38126
38130
  isRequired = _ref.isRequired,
38127
38131
  props = _objectWithoutProperties(_ref, _excluded$2);
38128
38132
 
38133
+ var classes = cn({
38134
+ 'FormElement-contains-error': isInvalid
38135
+ });
38129
38136
  return /*#__PURE__*/React.createElement(_default$N, {
38130
38137
  isInvalid: isInvalid,
38131
38138
  isDisabled: isDisabled,
@@ -38135,7 +38142,8 @@ var Input = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
38135
38142
  label: label,
38136
38143
  inputId: props.id
38137
38144
  }, /*#__PURE__*/React.createElement(Input$1, _extends({
38138
- ref: ref
38145
+ ref: ref,
38146
+ className: classes
38139
38147
  }, props)));
38140
38148
  });
38141
38149
  Input.propTypes = {