@moderneinc/neo-styled-components 2.2.0 → 2.2.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
@@ -1056,8 +1056,10 @@ function NeoBreadcrumbs({ children, className }) {
1056
1056
  return (jsx(StyledBreadcrumbs, { separator: jsx(ChevronRight, { size: 10.67, color: semanticColors.icons.utility }), className: className, "aria-label": "breadcrumb", children: children }));
1057
1057
  }
1058
1058
 
1059
+ // Props that should not be forwarded to ButtonBase (Button-specific props that ButtonBase doesn't support)
1060
+ const buttonOnlyProps$1 = ['variant', 'size', 'loading', 'startIcon', 'endIcon', 'fullWidth', 'disableElevation'];
1059
1061
  const StyledButtonBase$1 = styled(ButtonBase, {
1060
- shouldForwardProp: prop => prop !== 'variant' && prop !== 'size' && prop !== 'loading',
1062
+ shouldForwardProp: prop => !buttonOnlyProps$1.includes(prop),
1061
1063
  })(({ theme, variant = 'primary', size = 'medium', loading = false }) => {
1062
1064
  // Size configurations using theme.spacing()
1063
1065
  const sizeConfig = {
@@ -3063,8 +3065,10 @@ function subMonths(date, amount, options) {
3063
3065
  return addMonths(date, -1);
3064
3066
  }
3065
3067
 
3068
+ // Props that should not be forwarded to IconButton (Button-specific props that IconButton doesn't support)
3069
+ const buttonOnlyProps = ['size', 'startIcon', 'endIcon', 'fullWidth', 'disableElevation', 'variant'];
3066
3070
  const StyledIconButton = styled(IconButton, {
3067
- shouldForwardProp: prop => prop !== 'size',
3071
+ shouldForwardProp: prop => !buttonOnlyProps.includes(prop),
3068
3072
  })(({ theme, size = 'medium' }) => {
3069
3073
  // Size configurations using theme.spacing()
3070
3074
  const sizeConfig = {