@spothero/ui 25.0.0 → 25.1.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.
package/dist/index.cjs.js CHANGED
@@ -4192,7 +4192,7 @@ RadioGroup.propTypes = {
4192
4192
  direction: PropTypes__default.default.oneOf(['row', 'column'])
4193
4193
  };
4194
4194
 
4195
- const _excluded$5 = ["isChecked", "isDisabled", "value", "helperText", "expandableChildren", "defaultChecked", "isRadio", "label", "isExpandable", "size", "expandableChildrenStyles"];
4195
+ const _excluded$5 = ["isChecked", "isDisabled", "value", "helperText", "expandableChildren", "defaultChecked", "isRadio", "label", "isExpandable", "size", "expandableChildrenStyles", "topChild"];
4196
4196
  const SelectionCard = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4197
4197
  let {
4198
4198
  isChecked,
@@ -4205,7 +4205,8 @@ const SelectionCard = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4205
4205
  label,
4206
4206
  isExpandable,
4207
4207
  size = 'md',
4208
- expandableChildrenStyles = {}
4208
+ expandableChildrenStyles = {},
4209
+ topChild
4209
4210
  } = _ref,
4210
4211
  props = _objectWithoutProperties(_ref, _excluded$5);
4211
4212
  const Component = isRadio ? Radio : Checkbox;
@@ -4219,8 +4220,9 @@ const SelectionCard = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4219
4220
  borderWidth: "1px",
4220
4221
  _hover: {
4221
4222
  borderColor: isDisabled ? 'gray.medium' : 'primary.default'
4222
- }
4223
- }, /*#__PURE__*/React__namespace.default.createElement(react.Box, {
4223
+ },
4224
+ overflow: topChild ? 'hidden' : 'auto'
4225
+ }, topChild, /*#__PURE__*/React__namespace.default.createElement(react.Box, {
4224
4226
  borderColor: "gray.medium",
4225
4227
  borderBottomWidth: hasExpandableContent ? '1px' : 0
4226
4228
  }, /*#__PURE__*/React__namespace.default.createElement(Component, _extends$6({
@@ -4263,7 +4265,8 @@ SelectionCard.propTypes = {
4263
4265
  isRadio: PropTypes__default.default.bool,
4264
4266
  isExpandable: PropTypes__default.default.bool,
4265
4267
  expandableChildrenStyles: PropTypes__default.default.object,
4266
- size: PropTypes__default.default.oneOf(['sm', 'md', 'lg'])
4268
+ size: PropTypes__default.default.oneOf(['sm', 'md', 'lg']),
4269
+ topChild: PropTypes__default.default.element
4267
4270
  };
4268
4271
 
4269
4272
  const _excluded$4 = ["variant", "colorScheme"];