@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.
- package/CHANGELOG.md +11 -0
- package/CHANGELOG.tmp +3 -8
- package/package.json +1 -1
- package/styles/v2/components/Button/Button.jsx +0 -1
- package/styles/v2/components/Button/Button.styles.js +2 -0
- package/styles/v2/components/Input/Input.jsx +18 -13
- package/styles/v2/components/Select/Select.jsx +24 -18
- package/v2/index-bundled.cjs.js +3 -3
- package/v2/index-bundled.cjs.js.map +1 -1
- package/v2/index-bundled.esm.js +3 -3
- package/v2/index-bundled.esm.js.map +1 -1
- package/v2/index-unbundled.cjs.js +15 -6
- package/v2/index-unbundled.cjs.js.map +1 -1
- package/v2/index-unbundled.esm.js +14 -6
- package/v2/index-unbundled.esm.js.map +1 -1
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var PropTypes = require('prop-types');
|
|
7
7
|
var merge$2 = require('lodash/merge');
|
|
8
|
+
var cn = require('classnames');
|
|
8
9
|
var reactDom = require('react-dom');
|
|
9
10
|
var template = require('lodash/template');
|
|
10
11
|
|
|
@@ -13,6 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
14
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
15
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
15
16
|
var merge__default = /*#__PURE__*/_interopDefaultLegacy(merge$2);
|
|
17
|
+
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
16
18
|
var template__default = /*#__PURE__*/_interopDefaultLegacy(template);
|
|
17
19
|
|
|
18
20
|
/*
|
|
@@ -34464,6 +34466,7 @@ var variants$7 = {
|
|
|
34464
34466
|
borderRadius: 'unset',
|
|
34465
34467
|
color: 'primary.default',
|
|
34466
34468
|
textDecoration: 'underline',
|
|
34469
|
+
textUnderlineOffset: '1px',
|
|
34467
34470
|
h: 'unset',
|
|
34468
34471
|
m: 'unset',
|
|
34469
34472
|
minW: 'unset',
|
|
@@ -34486,6 +34489,7 @@ var variants$7 = {
|
|
|
34486
34489
|
borderWidth: 'none',
|
|
34487
34490
|
color: 'white',
|
|
34488
34491
|
textDecoration: 'underline',
|
|
34492
|
+
textUnderlineOffset: '1px',
|
|
34489
34493
|
h: 'unset',
|
|
34490
34494
|
m: 'unset',
|
|
34491
34495
|
minW: 'unset',
|
|
@@ -34667,10 +34671,7 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
34667
34671
|
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
34668
34672
|
|
|
34669
34673
|
return /*#__PURE__*/React__default['default'].createElement(Button$1, _extends({
|
|
34670
|
-
iconSpacing: 2
|
|
34671
|
-
sx: {
|
|
34672
|
-
'text-underline-offset': '1px'
|
|
34673
|
-
}
|
|
34674
|
+
iconSpacing: 2
|
|
34674
34675
|
}, props, (asAnchor || props.as === 'a') && anchorProps(isExternal), {
|
|
34675
34676
|
ref: ref
|
|
34676
34677
|
}));
|
|
@@ -34799,6 +34800,9 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
34799
34800
|
isRequired = _ref.isRequired,
|
|
34800
34801
|
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
34801
34802
|
|
|
34803
|
+
var classes = cn__default['default']({
|
|
34804
|
+
'FormElement-contains-error': isInvalid
|
|
34805
|
+
});
|
|
34802
34806
|
return /*#__PURE__*/React__default['default'].createElement(_default$N, {
|
|
34803
34807
|
isInvalid: isInvalid,
|
|
34804
34808
|
isDisabled: isDisabled,
|
|
@@ -34810,7 +34814,8 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
34810
34814
|
}, /*#__PURE__*/React__default['default'].createElement(Select$1, _extends({
|
|
34811
34815
|
fontWeight: "regular",
|
|
34812
34816
|
fontSize: "sm",
|
|
34813
|
-
ref: ref
|
|
34817
|
+
ref: ref,
|
|
34818
|
+
className: classes
|
|
34814
34819
|
}, props)));
|
|
34815
34820
|
});
|
|
34816
34821
|
Select.propTypes = {
|
|
@@ -38137,6 +38142,9 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
38137
38142
|
isRequired = _ref.isRequired,
|
|
38138
38143
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
38139
38144
|
|
|
38145
|
+
var classes = cn__default['default']({
|
|
38146
|
+
'FormElement-contains-error': isInvalid
|
|
38147
|
+
});
|
|
38140
38148
|
return /*#__PURE__*/React__default['default'].createElement(_default$N, {
|
|
38141
38149
|
isInvalid: isInvalid,
|
|
38142
38150
|
isDisabled: isDisabled,
|
|
@@ -38146,7 +38154,8 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
38146
38154
|
label: label,
|
|
38147
38155
|
inputId: props.id
|
|
38148
38156
|
}, /*#__PURE__*/React__default['default'].createElement(Input$1, _extends({
|
|
38149
|
-
ref: ref
|
|
38157
|
+
ref: ref,
|
|
38158
|
+
className: classes
|
|
38150
38159
|
}, props)));
|
|
38151
38160
|
});
|
|
38152
38161
|
Input.propTypes = {
|