@moderneinc/neo-styled-components 2.2.0 → 2.2.1-next.29e8a2
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/MarketplaceCard/MarketplaceCard.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- 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
|
@@ -3,7 +3,7 @@ import type { ReactNode } from 'react';
|
|
|
3
3
|
/**
|
|
4
4
|
* Props for the NeoMarketplaceCard component
|
|
5
5
|
*/
|
|
6
|
-
export interface NeoMarketplaceCardProps extends Omit<CardProps, 'children'> {
|
|
6
|
+
export interface NeoMarketplaceCardProps extends Omit<CardProps, 'children' | 'title'> {
|
|
7
7
|
/**
|
|
8
8
|
* The logo to display (48x48px ReactNode)
|
|
9
9
|
*/
|
|
@@ -13,9 +13,9 @@ export interface NeoMarketplaceCardProps extends Omit<CardProps, 'children'> {
|
|
|
13
13
|
*/
|
|
14
14
|
recipeCount: string;
|
|
15
15
|
/**
|
|
16
|
-
* The title text
|
|
16
|
+
* The title text or element
|
|
17
17
|
*/
|
|
18
|
-
title: string;
|
|
18
|
+
title: ReactNode | string;
|
|
19
19
|
/**
|
|
20
20
|
* The description text
|
|
21
21
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -2524,7 +2524,7 @@ declare const NeoTypologyControl: {
|
|
|
2524
2524
|
/**
|
|
2525
2525
|
* Props for the NeoMarketplaceCard component
|
|
2526
2526
|
*/
|
|
2527
|
-
interface NeoMarketplaceCardProps extends Omit<CardProps, 'children'> {
|
|
2527
|
+
interface NeoMarketplaceCardProps extends Omit<CardProps, 'children' | 'title'> {
|
|
2528
2528
|
/**
|
|
2529
2529
|
* The logo to display (48x48px ReactNode)
|
|
2530
2530
|
*/
|
|
@@ -2534,9 +2534,9 @@ interface NeoMarketplaceCardProps extends Omit<CardProps, 'children'> {
|
|
|
2534
2534
|
*/
|
|
2535
2535
|
recipeCount: string;
|
|
2536
2536
|
/**
|
|
2537
|
-
* The title text
|
|
2537
|
+
* The title text or element
|
|
2538
2538
|
*/
|
|
2539
|
-
title: string;
|
|
2539
|
+
title: ReactNode | string;
|
|
2540
2540
|
/**
|
|
2541
2541
|
* The description text
|
|
2542
2542
|
*/
|
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
|
|
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
|
|
3071
|
+
shouldForwardProp: prop => !buttonOnlyProps.includes(prop),
|
|
3068
3072
|
})(({ theme, size = 'medium' }) => {
|
|
3069
3073
|
// Size configurations using theme.spacing()
|
|
3070
3074
|
const sizeConfig = {
|