@spothero/ui 25.0.0 → 25.1.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/dist/index.esm.js CHANGED
@@ -466,8 +466,8 @@ const colors = {
466
466
  };
467
467
 
468
468
  const shadows = {
469
- outline: '0 0 0 3px rgba(91, 170, 250, 0.7)',
470
- // primary.400, 70% opacity
469
+ outline: '0 0 0 3px rgba(29, 88, 242, 0.7)',
470
+ // primary.600, 70% opacity
471
471
  drawer: '-8px 0 16px 0 rgba(33,33,33,.1)'
472
472
  };
473
473
  var shadows$1 = merge(theme$2.shadows, shadows);
@@ -4164,7 +4164,7 @@ RadioGroup.propTypes = {
4164
4164
  direction: PropTypes.oneOf(['row', 'column'])
4165
4165
  };
4166
4166
 
4167
- const _excluded$5 = ["isChecked", "isDisabled", "value", "helperText", "expandableChildren", "defaultChecked", "isRadio", "label", "isExpandable", "size", "expandableChildrenStyles"];
4167
+ const _excluded$5 = ["isChecked", "isDisabled", "value", "helperText", "expandableChildren", "defaultChecked", "isRadio", "label", "isExpandable", "size", "expandableChildrenStyles", "topChild"];
4168
4168
  const SelectionCard = /*#__PURE__*/forwardRef((_ref, ref) => {
4169
4169
  let {
4170
4170
  isChecked,
@@ -4177,7 +4177,8 @@ const SelectionCard = /*#__PURE__*/forwardRef((_ref, ref) => {
4177
4177
  label,
4178
4178
  isExpandable,
4179
4179
  size = 'md',
4180
- expandableChildrenStyles = {}
4180
+ expandableChildrenStyles = {},
4181
+ topChild
4181
4182
  } = _ref,
4182
4183
  props = _objectWithoutProperties(_ref, _excluded$5);
4183
4184
  const Component = isRadio ? Radio : Checkbox;
@@ -4191,8 +4192,9 @@ const SelectionCard = /*#__PURE__*/forwardRef((_ref, ref) => {
4191
4192
  borderWidth: "1px",
4192
4193
  _hover: {
4193
4194
  borderColor: isDisabled ? 'gray.medium' : 'primary.default'
4194
- }
4195
- }, /*#__PURE__*/React__default.createElement(Box, {
4195
+ },
4196
+ overflow: topChild ? 'hidden' : 'auto'
4197
+ }, topChild, /*#__PURE__*/React__default.createElement(Box, {
4196
4198
  borderColor: "gray.medium",
4197
4199
  borderBottomWidth: hasExpandableContent ? '1px' : 0
4198
4200
  }, /*#__PURE__*/React__default.createElement(Component, _extends$6({
@@ -4235,7 +4237,8 @@ SelectionCard.propTypes = {
4235
4237
  isRadio: PropTypes.bool,
4236
4238
  isExpandable: PropTypes.bool,
4237
4239
  expandableChildrenStyles: PropTypes.object,
4238
- size: PropTypes.oneOf(['sm', 'md', 'lg'])
4240
+ size: PropTypes.oneOf(['sm', 'md', 'lg']),
4241
+ topChild: PropTypes.element
4239
4242
  };
4240
4243
 
4241
4244
  const _excluded$4 = ["variant", "colorScheme"];