@moderneinc/neo-styled-components 3.0.0-next.ac08ae → 3.0.0-next.cbf6d5
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/NavigationItem/NavigationItem.d.ts +12 -8
- package/dist/Tag/Tag.d.ts +2 -2
- package/dist/index.d.ts +10 -7
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ButtonBaseProps } from '@mui/material/ButtonBase';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
|
|
1
|
+
import ButtonBase, { type ButtonBaseProps } from '@mui/material/ButtonBase';
|
|
2
|
+
import type { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';
|
|
3
|
+
type NeoNavigationItemOwnProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Icon element to display
|
|
6
6
|
*/
|
|
@@ -24,13 +24,17 @@ export interface NeoNavigationItemProps extends Omit<ButtonBaseProps, 'children'
|
|
|
24
24
|
* Additional content
|
|
25
25
|
*/
|
|
26
26
|
children?: ReactNode;
|
|
27
|
-
}
|
|
27
|
+
};
|
|
28
|
+
export type NeoNavigationItemProps<C extends ElementType = typeof ButtonBase> = NeoNavigationItemOwnProps & Omit<ButtonBaseProps, keyof NeoNavigationItemOwnProps | 'component'> & Omit<ComponentPropsWithoutRef<C>, keyof NeoNavigationItemOwnProps | keyof ButtonBaseProps> & {
|
|
29
|
+
component?: C;
|
|
30
|
+
};
|
|
28
31
|
/**
|
|
29
32
|
* NeoNavigationItem - Vertical navigation item with icon, label, and optional tag
|
|
30
33
|
*
|
|
31
34
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=8455-6120
|
|
32
35
|
*/
|
|
33
|
-
export declare
|
|
34
|
-
|
|
35
|
-
displayName: string;
|
|
36
|
-
}
|
|
36
|
+
export declare function NeoNavigationItem<C extends ElementType = typeof ButtonBase>({ icon, label, selected, tag, children, ...props }: NeoNavigationItemProps<C>): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare namespace NeoNavigationItem {
|
|
38
|
+
var displayName: string;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
package/dist/Tag/Tag.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Chip from '@mui/material/Chip';
|
|
1
|
+
import Chip, { type ChipProps } from '@mui/material/Chip';
|
|
2
2
|
import type { ComponentPropsWithoutRef, ElementType } from 'react';
|
|
3
3
|
declare module '@mui/material/Chip' {
|
|
4
4
|
interface ChipPropsColorOverrides {
|
|
@@ -33,7 +33,7 @@ type NeoTagOwnProps = {
|
|
|
33
33
|
*/
|
|
34
34
|
color?: 'default' | 'error' | 'warning' | 'success' | 'info' | 'violet' | 'beta';
|
|
35
35
|
};
|
|
36
|
-
export type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<ComponentPropsWithoutRef<C>, keyof NeoTagOwnProps> & {
|
|
36
|
+
export type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<ChipProps, keyof NeoTagOwnProps | 'component'> & Omit<ComponentPropsWithoutRef<C>, keyof NeoTagOwnProps | keyof ChipProps> & {
|
|
37
37
|
component?: C;
|
|
38
38
|
};
|
|
39
39
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1696,7 +1696,7 @@ declare const NeoNavigationAvatar: {
|
|
|
1696
1696
|
displayName: string;
|
|
1697
1697
|
};
|
|
1698
1698
|
|
|
1699
|
-
|
|
1699
|
+
type NeoNavigationItemOwnProps = {
|
|
1700
1700
|
/**
|
|
1701
1701
|
* Icon element to display
|
|
1702
1702
|
*/
|
|
@@ -1720,16 +1720,19 @@ interface NeoNavigationItemProps extends Omit<ButtonBaseProps, 'children'> {
|
|
|
1720
1720
|
* Additional content
|
|
1721
1721
|
*/
|
|
1722
1722
|
children?: ReactNode;
|
|
1723
|
-
}
|
|
1723
|
+
};
|
|
1724
|
+
type NeoNavigationItemProps<C extends ElementType = typeof ButtonBase__default> = NeoNavigationItemOwnProps & Omit<ButtonBaseProps, keyof NeoNavigationItemOwnProps | 'component'> & Omit<ComponentPropsWithoutRef<C>, keyof NeoNavigationItemOwnProps | keyof ButtonBaseProps> & {
|
|
1725
|
+
component?: C;
|
|
1726
|
+
};
|
|
1724
1727
|
/**
|
|
1725
1728
|
* NeoNavigationItem - Vertical navigation item with icon, label, and optional tag
|
|
1726
1729
|
*
|
|
1727
1730
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=8455-6120
|
|
1728
1731
|
*/
|
|
1729
|
-
declare
|
|
1730
|
-
|
|
1731
|
-
displayName: string;
|
|
1732
|
-
}
|
|
1732
|
+
declare function NeoNavigationItem<C extends ElementType = typeof ButtonBase__default>({ icon, label, selected, tag, children, ...props }: NeoNavigationItemProps<C>): react_jsx_runtime.JSX.Element;
|
|
1733
|
+
declare namespace NeoNavigationItem {
|
|
1734
|
+
var displayName: string;
|
|
1735
|
+
}
|
|
1733
1736
|
|
|
1734
1737
|
/**
|
|
1735
1738
|
* Breadcrumb item configuration
|
|
@@ -2238,7 +2241,7 @@ type NeoTagOwnProps = {
|
|
|
2238
2241
|
*/
|
|
2239
2242
|
color?: 'default' | 'error' | 'warning' | 'success' | 'info' | 'violet' | 'beta';
|
|
2240
2243
|
};
|
|
2241
|
-
type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<ComponentPropsWithoutRef<C>, keyof NeoTagOwnProps> & {
|
|
2244
|
+
type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<ChipProps, keyof NeoTagOwnProps | 'component'> & Omit<ComponentPropsWithoutRef<C>, keyof NeoTagOwnProps | keyof ChipProps> & {
|
|
2242
2245
|
component?: C;
|
|
2243
2246
|
};
|
|
2244
2247
|
/**
|
package/dist/index.esm.js
CHANGED
|
@@ -5324,9 +5324,9 @@ const TagPill = styled('span')(({ theme }) => ({
|
|
|
5324
5324
|
*
|
|
5325
5325
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=8455-6120
|
|
5326
5326
|
*/
|
|
5327
|
-
|
|
5327
|
+
function NeoNavigationItem({ icon, label, selected = false, tag, children, ...props }) {
|
|
5328
5328
|
return (jsxs(StyledRoot, { selected: selected, disableRipple: true, ...props, children: [jsx(IconPadding, { className: "neo-nav-icon-padding", children: icon }), label && jsx(Label$2, { className: "neo-nav-label", children: label }), tag && jsx(TagPill, { children: tag }), children] }));
|
|
5329
|
-
}
|
|
5329
|
+
}
|
|
5330
5330
|
NeoNavigationItem.displayName = 'NeoNavigationItem';
|
|
5331
5331
|
|
|
5332
5332
|
/**
|