@spothero/ui 25.1.3-beta.1 → 25.1.3
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/index.cjs.js +8 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -14
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3814,7 +3814,7 @@ Select.propTypes = {
|
|
|
3814
3814
|
rightElementStyles: PropTypes.object
|
|
3815
3815
|
};
|
|
3816
3816
|
|
|
3817
|
-
const _excluded$8 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "
|
|
3817
|
+
const _excluded$8 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "buttonValue"];
|
|
3818
3818
|
|
|
3819
3819
|
/**
|
|
3820
3820
|
* A component used in the homepage/midfunnel refresh of 2024
|
|
@@ -3831,7 +3831,6 @@ const Button = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3831
3831
|
isInvalid,
|
|
3832
3832
|
isDisabled,
|
|
3833
3833
|
isRequired,
|
|
3834
|
-
isHighlighted,
|
|
3835
3834
|
rightElement,
|
|
3836
3835
|
leftElement,
|
|
3837
3836
|
rightElementStyles,
|
|
@@ -3865,13 +3864,10 @@ const Button = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3865
3864
|
}, props, {
|
|
3866
3865
|
isDisabled: isDisabled,
|
|
3867
3866
|
color: isInvalid || !label ? 'gray.600' : 'black',
|
|
3868
|
-
borderColor: isInvalid ? 'error' :
|
|
3867
|
+
borderColor: isInvalid ? 'error' : 'gray.200',
|
|
3869
3868
|
_focus: {
|
|
3870
3869
|
borderColor: isInvalid ? 'error' : 'primary.default'
|
|
3871
3870
|
},
|
|
3872
|
-
_hover: {
|
|
3873
|
-
borderColor: isHighlighted ? 'primary.default' : 'gray.300'
|
|
3874
|
-
},
|
|
3875
3871
|
paddingTop: label ? 'var(--chakra-sizes-5-5)' : '3',
|
|
3876
3872
|
textTransform: "none"
|
|
3877
3873
|
}), buttonValue));
|
|
@@ -4025,7 +4021,7 @@ const AutoSuggestSelect$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
4025
4021
|
isRequired: isRequired,
|
|
4026
4022
|
helperText: helperText,
|
|
4027
4023
|
label: label,
|
|
4028
|
-
|
|
4024
|
+
id: id,
|
|
4029
4025
|
leftElement: leftElement,
|
|
4030
4026
|
leftElementStyles: leftElementStyles
|
|
4031
4027
|
}, /*#__PURE__*/React__default.createElement(AsyncSelect, {
|
|
@@ -4042,7 +4038,7 @@ const AutoSuggestSelect$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
4042
4038
|
loadOptions: getOptions,
|
|
4043
4039
|
onChange: handleChange,
|
|
4044
4040
|
isDisabled: isDisabled,
|
|
4045
|
-
|
|
4041
|
+
inputId: id,
|
|
4046
4042
|
placeholder: placeholder,
|
|
4047
4043
|
defaultValue: defaultValue,
|
|
4048
4044
|
styles: customStyles,
|
|
@@ -4627,16 +4623,14 @@ const ToggleButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4627
4623
|
onChange,
|
|
4628
4624
|
value,
|
|
4629
4625
|
children,
|
|
4630
|
-
groupProps
|
|
4631
|
-
buttonGroupStyles: _buttonGroupStyles = {},
|
|
4632
|
-
childrenStyles = {}
|
|
4626
|
+
groupProps
|
|
4633
4627
|
} = props;
|
|
4634
4628
|
if (!children) throw new Error('Children required');
|
|
4635
4629
|
|
|
4636
4630
|
// iterate over array of child nodes to apply extended props
|
|
4637
4631
|
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends$6({
|
|
4638
4632
|
ref: ref,
|
|
4639
|
-
sx: _objectSpread2(
|
|
4633
|
+
sx: _objectSpread2({}, buttonGroupStyles)
|
|
4640
4634
|
}, groupProps), React__default.Children.map(children, CHILD => {
|
|
4641
4635
|
var _CHILD$props3;
|
|
4642
4636
|
return /*#__PURE__*/React__default.cloneElement(CHILD, _objectSpread2({
|
|
@@ -4646,9 +4640,9 @@ const ToggleButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4646
4640
|
onChange(CHILD === null || CHILD === void 0 || (_CHILD$props2 = CHILD.props) === null || _CHILD$props2 === void 0 ? void 0 : _CHILD$props2.value);
|
|
4647
4641
|
}
|
|
4648
4642
|
}, value !== (CHILD === null || CHILD === void 0 || (_CHILD$props3 = CHILD.props) === null || _CHILD$props3 === void 0 ? void 0 : _CHILD$props3.value) ? {
|
|
4649
|
-
sx: _objectSpread2(_objectSpread2(
|
|
4643
|
+
sx: _objectSpread2(_objectSpread2({}, defaultStyles), inactiveStyles)
|
|
4650
4644
|
} : {
|
|
4651
|
-
sx: _objectSpread2(_objectSpread2(
|
|
4645
|
+
sx: _objectSpread2(_objectSpread2({}, defaultStyles), activeStyles)
|
|
4652
4646
|
}));
|
|
4653
4647
|
}));
|
|
4654
4648
|
});
|