@moderneinc/neo-styled-components 2.2.0-next.61ae69 → 2.2.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.esm.js CHANGED
@@ -1056,10 +1056,8 @@ 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'];
1061
1059
  const StyledButtonBase$1 = styled(ButtonBase, {
1062
- shouldForwardProp: prop => !buttonOnlyProps$1.includes(prop),
1060
+ shouldForwardProp: prop => prop !== 'variant' && prop !== 'size' && prop !== 'loading',
1063
1061
  })(({ theme, variant = 'primary', size = 'medium', loading = false }) => {
1064
1062
  // Size configurations using theme.spacing()
1065
1063
  const sizeConfig = {
@@ -3065,10 +3063,8 @@ function subMonths(date, amount, options) {
3065
3063
  return addMonths(date, -1);
3066
3064
  }
3067
3065
 
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'];
3070
3066
  const StyledIconButton = styled(IconButton, {
3071
- shouldForwardProp: prop => !buttonOnlyProps.includes(prop),
3067
+ shouldForwardProp: prop => prop !== 'size',
3072
3068
  })(({ theme, size = 'medium' }) => {
3073
3069
  // Size configurations using theme.spacing()
3074
3070
  const sizeConfig = {