@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 +6 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1058,8 +1058,10 @@ function NeoBreadcrumbs({ children, className }) {
|
|
|
1058
1058
|
return (jsxRuntime.jsx(StyledBreadcrumbs, { separator: jsxRuntime.jsx(ChevronRight, { size: 10.67, color: neoDesign.semanticColors.icons.utility }), className: className, "aria-label": "breadcrumb", children: children }));
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
1061
|
+
// Props that should not be forwarded to ButtonBase (Button-specific props that ButtonBase doesn't support)
|
|
1062
|
+
const buttonOnlyProps$1 = ['variant', 'size', 'loading', 'startIcon', 'endIcon', 'fullWidth', 'disableElevation'];
|
|
1061
1063
|
const StyledButtonBase$1 = styles.styled(ButtonBase, {
|
|
1062
|
-
shouldForwardProp: prop => prop
|
|
1064
|
+
shouldForwardProp: prop => !buttonOnlyProps$1.includes(prop),
|
|
1063
1065
|
})(({ theme, variant = 'primary', size = 'medium', loading = false }) => {
|
|
1064
1066
|
// Size configurations using theme.spacing()
|
|
1065
1067
|
const sizeConfig = {
|
|
@@ -3065,8 +3067,10 @@ function subMonths(date, amount, options) {
|
|
|
3065
3067
|
return addMonths(date, -1);
|
|
3066
3068
|
}
|
|
3067
3069
|
|
|
3070
|
+
// Props that should not be forwarded to IconButton (Button-specific props that IconButton doesn't support)
|
|
3071
|
+
const buttonOnlyProps = ['size', 'startIcon', 'endIcon', 'fullWidth', 'disableElevation', 'variant'];
|
|
3068
3072
|
const StyledIconButton = styles.styled(IconButton, {
|
|
3069
|
-
shouldForwardProp: prop => prop
|
|
3073
|
+
shouldForwardProp: prop => !buttonOnlyProps.includes(prop),
|
|
3070
3074
|
})(({ theme, size = 'medium' }) => {
|
|
3071
3075
|
// Size configurations using theme.spacing()
|
|
3072
3076
|
const sizeConfig = {
|