@moderneinc/neo-styled-components 5.0.0-next.6e684c → 5.0.0-next.72cb64
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/Alert/Alert.d.ts +7 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +0 -10
- package/dist/CanceledIcon/CanceledIcon.d.ts +11 -0
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/DatePickerListItem/DatePickerListItem.d.ts +1 -1
- package/dist/DatePickerMenu/DatePickerMenu.d.ts +1 -1
- package/dist/Dot/Dot.d.ts +11 -4
- package/dist/FilledStatusIcons/FilledStatusIcons.d.ts +41 -0
- package/dist/GeneralAvatar/GeneralAvatar.d.ts +1 -7
- package/dist/InputField/InputField.d.ts +4 -4
- package/dist/MenuItem/MenuItem.d.ts +30 -8
- package/dist/NavigationAvatar/NavigationAvatar.d.ts +1 -1
- package/dist/NavigationItem/NavigationItem.d.ts +6 -1
- package/dist/NeoAvatarCell/NeoAvatarCell.d.ts +1 -3
- package/dist/RadioButtonWithText/RadioButtonWithText.d.ts +1 -1
- package/dist/RipplingDot/RipplingDot.d.ts +12 -0
- package/dist/SideNav/NeoSideNavContext.d.ts +5 -0
- package/dist/SideNav/SideNav.d.ts +19 -6
- package/dist/Tabs/Tabs.d.ts +1 -1
- package/dist/ToggleButtonWithText/ToggleButtonWithText.d.ts +1 -1
- package/dist/Tooltip/Tooltip.d.ts +8 -5
- package/dist/TopNav/TopNav.d.ts +1 -1
- package/dist/TourModal/TourModal.d.ts +1 -1
- package/dist/TypologyControl/TypologyControl.d.ts +1 -1
- package/dist/VibratingDot/VibratingDot.d.ts +12 -0
- package/dist/index.d.ts +174 -65
- package/dist/index.esm.js +532 -258
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +540 -256
- package/dist/index.js.map +1 -1
- package/dist/utils/colorHelpers.d.ts +6 -0
- package/package.json +5 -5
- package/dist/utils/avatarColors.d.ts +0 -7
package/dist/Alert/Alert.d.ts
CHANGED
|
@@ -39,6 +39,12 @@ export interface NeoAlertProps extends Omit<AlertProps, 'severity' | 'variant' |
|
|
|
39
39
|
* Optional action element (typically a button) displayed on the right
|
|
40
40
|
*/
|
|
41
41
|
action?: ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* Optional content rendered below the title inside the alert container.
|
|
44
|
+
* Use for rich content like stack traces or code blocks. When present,
|
|
45
|
+
* the alert expands to auto height and top-aligns its icon and action.
|
|
46
|
+
*/
|
|
47
|
+
children?: ReactNode;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* NeoAlert - Alert component for displaying contextual status messages
|
|
@@ -52,7 +58,7 @@ export interface NeoAlertProps extends Omit<AlertProps, 'severity' | 'variant' |
|
|
|
52
58
|
* - Show Button → action prop presence
|
|
53
59
|
*/
|
|
54
60
|
export declare const NeoAlert: {
|
|
55
|
-
({ intent, type, size, title, description, icon, action, ...props }: NeoAlertProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
({ intent, type, size, title, description, icon, action, children, ...props }: NeoAlertProps): import("react/jsx-runtime").JSX.Element;
|
|
56
62
|
displayName: string;
|
|
57
63
|
};
|
|
58
64
|
export {};
|
|
@@ -3,16 +3,6 @@ import type { ElementType, ReactNode } from 'react';
|
|
|
3
3
|
/**
|
|
4
4
|
* NeoBreadcrumbs - Navigation breadcrumb component
|
|
5
5
|
*
|
|
6
|
-
* Figma Mapping:
|
|
7
|
-
* - Base component uses MuiBreadcrumbs with custom styled Links
|
|
8
|
-
* - Uses chevron separator (ChevronRight from lucide-react)
|
|
9
|
-
* - Typography: 14px Medium (500 weight)
|
|
10
|
-
* - Colors:
|
|
11
|
-
* - Non-current: semanticColors.typography.bodySecondary (#6b7280)
|
|
12
|
-
* - Current: semanticColors.buttons.primary.default (#2f42ff)
|
|
13
|
-
* - Hover: semanticColors.icons.hover (#1f2937) or buttons.tertiary.hover (#1e2ec2)
|
|
14
|
-
* - Focus: 2px outline with buttons.primary.focus
|
|
15
|
-
*
|
|
16
6
|
* @see https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4563-122872
|
|
17
7
|
*/
|
|
18
8
|
export interface NeoBreadcrumbsProps {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type SvgIconProps } from '@mui/material/SvgIcon';
|
|
2
|
+
/**
|
|
3
|
+
* NeoCanceledIcon - Outlined circle struck through by a horizontal line.
|
|
4
|
+
*
|
|
5
|
+
* Marks a CANCELED state. Color comes entirely from `currentColor` (stroke plus
|
|
6
|
+
* a 10% fill tint); set it via the `color`/`sx` prop or a parent.
|
|
7
|
+
*/
|
|
8
|
+
export declare const NeoCanceledIcon: {
|
|
9
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -15,7 +15,7 @@ declare module '@mui/material/Checkbox' {
|
|
|
15
15
|
medium: true;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
declare const StyledCheckbox: import("@emotion/styled").StyledComponent<CheckboxProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material
|
|
18
|
+
declare const StyledCheckbox: import("@emotion/styled").StyledComponent<CheckboxProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
19
19
|
size?: CheckboxSize;
|
|
20
20
|
disabled?: boolean;
|
|
21
21
|
}, {}, {}>;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4176-8521
|
|
5
5
|
*/
|
|
6
|
-
export declare const NeoDatePickerListItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material
|
|
6
|
+
export declare const NeoDatePickerListItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4176-8593
|
|
5
5
|
*/
|
|
6
|
-
export declare const NeoDatePickerMenu: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material
|
|
6
|
+
export declare const NeoDatePickerMenu: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
package/dist/Dot/Dot.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
type DotSize = 'small' | 'medium' | 'large';
|
|
3
3
|
type DotVariant = 'solid' | 'outline';
|
|
4
4
|
type DotColor = 'success' | 'error' | 'warning' | 'info' | 'neutral';
|
|
5
|
-
export interface NeoDotProps extends Omit<
|
|
5
|
+
export interface NeoDotProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
6
6
|
/**
|
|
7
7
|
* The size of the dot
|
|
8
8
|
* @default "medium"
|
|
@@ -18,9 +18,16 @@ export interface NeoDotProps extends Omit<BadgeProps, 'variant' | 'color' | 'bad
|
|
|
18
18
|
* @default "neutral"
|
|
19
19
|
*/
|
|
20
20
|
color?: DotColor;
|
|
21
|
+
/**
|
|
22
|
+
* Optional icon rendered centered inside the dot. Use to indicate intent within
|
|
23
|
+
* the dot itself (e.g., a minus icon on a disconnected error dot). SVG children
|
|
24
|
+
* using `currentColor` inherit a white stroke/fill for contrast against the
|
|
25
|
+
* colored background, and are scaled to 70% of the dot size.
|
|
26
|
+
*/
|
|
27
|
+
children?: ReactNode;
|
|
21
28
|
}
|
|
22
29
|
/**
|
|
23
|
-
* NeoDot - Status indicator dot
|
|
30
|
+
* NeoDot - Status indicator dot.
|
|
24
31
|
*
|
|
25
32
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4163-3577
|
|
26
33
|
*
|
|
@@ -30,7 +37,7 @@ export interface NeoDotProps extends Omit<BadgeProps, 'variant' | 'color' | 'bad
|
|
|
30
37
|
* - Color is configurable via color prop (success|error|warning|info|neutral)
|
|
31
38
|
*/
|
|
32
39
|
export declare const NeoDot: {
|
|
33
|
-
({ size, variant, color, ...props }: NeoDotProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
({ size, variant, color, children, ...props }: NeoDotProps): import("react/jsx-runtime").JSX.Element;
|
|
34
41
|
displayName: string;
|
|
35
42
|
};
|
|
36
43
|
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type SvgIconProps } from '@mui/material/SvgIcon';
|
|
2
|
+
/**
|
|
3
|
+
* Filled status icons — sourced from the published Figma library components
|
|
4
|
+
* Filled_Success / Filled_Queued / Filled_Info / Filled_Warning / Filled_Error /
|
|
5
|
+
* Filled_Neutral / Filled_Canceled.
|
|
6
|
+
*
|
|
7
|
+
* Designed at 16px; size via `fontSize` like any MUI `SvgIcon`. Each ships its
|
|
8
|
+
* intent's status color baked into the silhouette with a white inner glyph — the
|
|
9
|
+
* fill is fixed, so `color`/`htmlColor` are omitted from the props. There is no
|
|
10
|
+
* Filled_Active (the open-arc spinner cannot fill). Use below 18px; above that,
|
|
11
|
+
* prefer the Lucide outline glyph.
|
|
12
|
+
*/
|
|
13
|
+
export type NeoFilledStatusIconProps = Omit<SvgIconProps, 'color' | 'htmlColor'>;
|
|
14
|
+
export declare const NeoFilledSuccess: {
|
|
15
|
+
(props: NeoFilledStatusIconProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const NeoFilledQueued: {
|
|
19
|
+
(props: NeoFilledStatusIconProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const NeoFilledInfo: {
|
|
23
|
+
(props: NeoFilledStatusIconProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const NeoFilledWarning: {
|
|
27
|
+
(props: NeoFilledStatusIconProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const NeoFilledError: {
|
|
31
|
+
(props: NeoFilledStatusIconProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const NeoFilledNeutral: {
|
|
35
|
+
(props: NeoFilledStatusIconProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
export declare const NeoFilledCanceled: {
|
|
39
|
+
(props: NeoFilledStatusIconProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|
|
@@ -7,12 +7,6 @@ export interface NeoGeneralAvatarProps extends Omit<AvatarProps, 'variant'> {
|
|
|
7
7
|
* @figma Size
|
|
8
8
|
*/
|
|
9
9
|
size?: AvatarSize;
|
|
10
|
-
/**
|
|
11
|
-
* Color index for initials background (1-7). Use 0 or omit for image mode.
|
|
12
|
-
* @default 0
|
|
13
|
-
* @figma Color Index
|
|
14
|
-
*/
|
|
15
|
-
colorIndex?: number;
|
|
16
10
|
}
|
|
17
11
|
/**
|
|
18
12
|
* NeoGeneralAvatar - Avatar with image or colored initials display
|
|
@@ -20,7 +14,7 @@ export interface NeoGeneralAvatarProps extends Omit<AvatarProps, 'variant'> {
|
|
|
20
14
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=9600-185
|
|
21
15
|
*/
|
|
22
16
|
export declare const NeoGeneralAvatar: {
|
|
23
|
-
({ size,
|
|
17
|
+
({ size, alt, children, ...props }: NeoGeneralAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
24
18
|
displayName: string;
|
|
25
19
|
};
|
|
26
20
|
export {};
|
|
@@ -2,15 +2,15 @@ import { type InputBaseProps } from '@mui/material/InputBase';
|
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
type InputFieldSize = 'small' | 'medium';
|
|
4
4
|
export type { InputFieldSize as NeoInputFieldSize };
|
|
5
|
-
export declare const StyledFormControl: import("@emotion/styled").StyledComponent<import("@mui/material
|
|
5
|
+
export declare const StyledFormControl: import("@emotion/styled").StyledComponent<import("@mui/material").FormControlOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "color" | "margin" | "size" | "children" | "sx" | "className" | "classes" | "disabled" | "variant" | "error" | "fullWidth" | "required" | "focused" | "hiddenLabel"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
6
6
|
size?: InputFieldSize;
|
|
7
7
|
}, {}, {}>;
|
|
8
|
-
export declare const StyledInputLabel: import("@emotion/styled").StyledComponent<import("@mui/material
|
|
8
|
+
export declare const StyledInputLabel: import("@emotion/styled").StyledComponent<import("@mui/material").InputLabelOwnProps & Pick<import("@mui/material").FormLabelOwnProps, "color" | "filled"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "style" | "color" | "margin" | "size" | "children" | "sx" | "className" | "classes" | "disabled" | "variant" | "filled" | "error" | "required" | "focused" | "disableAnimation" | "shrink"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
9
9
|
size?: InputFieldSize;
|
|
10
10
|
infoIcon?: boolean;
|
|
11
11
|
}, {}, {}>;
|
|
12
|
-
export declare const InfoIconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material
|
|
13
|
-
export declare const StyledFormHelperText: import("@emotion/styled").StyledComponent<import("@mui/material
|
|
12
|
+
export declare const InfoIconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
13
|
+
export declare const StyledFormHelperText: import("@emotion/styled").StyledComponent<import("@mui/material").FormHelperTextOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style" | "margin" | "children" | "sx" | "className" | "classes" | "disabled" | "variant" | "filled" | "error" | "required" | "focused"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
14
14
|
size?: InputFieldSize;
|
|
15
15
|
}, {}, {}>;
|
|
16
16
|
export interface NeoInputFieldProps extends Omit<InputBaseProps, 'size'> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
|
|
1
|
+
import MenuItem from '@mui/material/MenuItem';
|
|
2
|
+
import type { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';
|
|
3
|
+
type NeoMenuItemOwnProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Optional icon to display on the left side
|
|
6
6
|
* Note: Cannot be directly mapped from Figma (ReactNode)
|
|
@@ -18,12 +18,22 @@ export interface NeoMenuItemProps extends MenuItemProps {
|
|
|
18
18
|
* Note: Cannot be directly mapped from Figma (ReactNode/string)
|
|
19
19
|
*/
|
|
20
20
|
secondaryText?: string;
|
|
21
|
+
/**
|
|
22
|
+
* URL to navigate to. When provided, the menu item renders as an anchor
|
|
23
|
+
* element (via MUI ButtonBase) so users can middle-click or right-click
|
|
24
|
+
* to open in a new tab. For client-side routing, also pass
|
|
25
|
+
* `component={NextLink}` (or your router's link component).
|
|
26
|
+
*/
|
|
27
|
+
href?: string;
|
|
21
28
|
/**
|
|
22
29
|
* Menu item content (text label)
|
|
23
30
|
* @figma children mapped from Figma layer content
|
|
24
31
|
*/
|
|
25
32
|
children?: ReactNode;
|
|
26
|
-
}
|
|
33
|
+
};
|
|
34
|
+
export type NeoMenuItemProps<C extends ElementType = typeof MenuItem> = NeoMenuItemOwnProps & Omit<ComponentPropsWithoutRef<C>, keyof NeoMenuItemOwnProps> & {
|
|
35
|
+
component?: C;
|
|
36
|
+
};
|
|
27
37
|
/**
|
|
28
38
|
* NeoMenuItem - Menu item component based on MUI MenuItem
|
|
29
39
|
*
|
|
@@ -42,9 +52,21 @@ export interface NeoMenuItemProps extends MenuItemProps {
|
|
|
42
52
|
*
|
|
43
53
|
* // Disabled state
|
|
44
54
|
* <NeoMenuItem disabled>Disabled item</NeoMenuItem>
|
|
55
|
+
*
|
|
56
|
+
* // As an anchor — middle-click/right-click open in a new tab
|
|
57
|
+
* <NeoMenuItem href="/api-explorer">API explorer</NeoMenuItem>
|
|
58
|
+
*
|
|
59
|
+
* // External link
|
|
60
|
+
* <NeoMenuItem href="https://docs.example.com" target="_blank" rel="noopener noreferrer">
|
|
61
|
+
* Documentation
|
|
62
|
+
* </NeoMenuItem>
|
|
63
|
+
*
|
|
64
|
+
* // Client-side routing (Next.js)
|
|
65
|
+
* <NeoMenuItem component={NextLink} href="/api-explorer">API explorer</NeoMenuItem>
|
|
45
66
|
* ```
|
|
46
67
|
*/
|
|
47
|
-
export declare
|
|
48
|
-
|
|
49
|
-
displayName: string;
|
|
50
|
-
}
|
|
68
|
+
export declare function NeoMenuItem<C extends ElementType = typeof MenuItem>({ icon, shortcut, secondaryText, children, ...rest }: NeoMenuItemProps<C>): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export declare namespace NeoMenuItem {
|
|
70
|
+
var displayName: string;
|
|
71
|
+
}
|
|
72
|
+
export {};
|
|
@@ -10,6 +10,6 @@ export interface NeoNavigationAvatarProps extends Omit<NeoGeneralAvatarProps, 's
|
|
|
10
10
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=11325-102
|
|
11
11
|
*/
|
|
12
12
|
export declare const NeoNavigationAvatar: {
|
|
13
|
-
({
|
|
13
|
+
({ children, ...props }: NeoNavigationAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
@@ -21,6 +21,11 @@ type NeoNavigationItemOwnProps = {
|
|
|
21
21
|
* @figma Tag
|
|
22
22
|
*/
|
|
23
23
|
tag?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Hover tooltip shown only when the surrounding NeoSideNav is collapsed
|
|
26
|
+
* (and the label is therefore hidden).
|
|
27
|
+
*/
|
|
28
|
+
tooltip?: ReactNode;
|
|
24
29
|
/**
|
|
25
30
|
* Slot props for internal sub-components.
|
|
26
31
|
*/
|
|
@@ -47,7 +52,7 @@ export type NeoNavigationItemProps<C extends ElementType = typeof ButtonBase> =
|
|
|
47
52
|
*
|
|
48
53
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=8455-6120
|
|
49
54
|
*/
|
|
50
|
-
export declare function NeoNavigationItem<C extends ElementType = typeof ButtonBase>({ icon, label, selected, tag, slotProps, children, ...props }: NeoNavigationItemProps<C>): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
export declare function NeoNavigationItem<C extends ElementType = typeof ButtonBase>({ icon, label, selected, tag, tooltip, slotProps, children, ...props }: NeoNavigationItemProps<C>): import("react/jsx-runtime").JSX.Element;
|
|
51
56
|
export declare namespace NeoNavigationItem {
|
|
52
57
|
var displayName: string;
|
|
53
58
|
}
|
|
@@ -5,14 +5,12 @@ type NeoAvatarCellEmpty = NeoAvatarCellBase & {
|
|
|
5
5
|
empty: true;
|
|
6
6
|
name?: never;
|
|
7
7
|
src?: never;
|
|
8
|
-
colorIndex?: never;
|
|
9
8
|
label?: never;
|
|
10
9
|
};
|
|
11
10
|
type NeoAvatarCellContent = NeoAvatarCellBase & {
|
|
12
11
|
empty?: false;
|
|
13
12
|
name?: string;
|
|
14
13
|
src?: string;
|
|
15
|
-
colorIndex?: number;
|
|
16
14
|
label?: string;
|
|
17
15
|
};
|
|
18
16
|
export type NeoAvatarCellProps = NeoAvatarCellEmpty | NeoAvatarCellContent;
|
|
@@ -21,7 +19,7 @@ export type NeoAvatarCellProps = NeoAvatarCellEmpty | NeoAvatarCellContent;
|
|
|
21
19
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=13425-1725
|
|
22
20
|
*/
|
|
23
21
|
export declare const NeoAvatarCell: {
|
|
24
|
-
({ name, src,
|
|
22
|
+
({ name, src, label, disabled, empty, }: NeoAvatarCellProps): import("react/jsx-runtime").JSX.Element;
|
|
25
23
|
displayName: string;
|
|
26
24
|
};
|
|
27
25
|
export {};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=11565-7682
|
|
5
5
|
*/
|
|
6
|
-
export declare const NeoRadioButtonWithText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material
|
|
6
|
+
export declare const NeoRadioButtonWithText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type BoxProps } from '@mui/material';
|
|
2
|
+
import type { FunctionComponent } from 'react';
|
|
3
|
+
export interface NeoRipplingDotProps extends BoxProps {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* NeoRipplingDot - Animated status dot with an expanding ripple ring.
|
|
7
|
+
*
|
|
8
|
+
* Indicates an in-progress, indeterminate state (RUNNING / SYNCING / PROCESSING).
|
|
9
|
+
* Color is inherited from `currentColor`; set it via the `color`/`sx` prop or a
|
|
10
|
+
* parent. Sized to the lowercase-letter height regardless of parent fontSize.
|
|
11
|
+
*/
|
|
12
|
+
export declare const NeoRipplingDot: FunctionComponent<NeoRipplingDotProps>;
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
|
+
export type NeoSideNavProps = {
|
|
3
|
+
/** Controlled collapsed state. */
|
|
4
|
+
collapsed: boolean;
|
|
5
|
+
/** Called with the next collapsed value when the toggle is activated. */
|
|
6
|
+
onCollapsedChange: (next: boolean) => void;
|
|
7
|
+
/** Fixed top slot (e.g. product logo). */
|
|
8
|
+
header?: ReactNode;
|
|
9
|
+
/** Fixed bottom slot (e.g. tenant branding), rendered above the toggle. */
|
|
10
|
+
footer?: ReactNode;
|
|
11
|
+
/** Scrolling content slot — the nav items. */
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
/** Toggle label shown when expanded. Default "Less". */
|
|
14
|
+
collapseLabel?: string;
|
|
15
|
+
} & Pick<ComponentPropsWithoutRef<'nav'>, 'className' | 'id' | 'aria-label'>;
|
|
16
|
+
export declare function NeoSideNav({ collapsed, onCollapsedChange, header, footer, children, collapseLabel, ...rest }: NeoSideNavProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare namespace NeoSideNav {
|
|
18
|
+
var displayName: string;
|
|
19
|
+
}
|
package/dist/Tabs/Tabs.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import type { ReactNode } from 'react';
|
|
|
10
10
|
* - Tab selection → value prop + onChange
|
|
11
11
|
* - Active indicator → styled via indicator slot
|
|
12
12
|
*/
|
|
13
|
-
export declare const NeoTabs: import("@emotion/styled").StyledComponent<import("@mui/material
|
|
13
|
+
export declare const NeoTabs: import("@emotion/styled").StyledComponent<import("@mui/material").TabsOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "children" | "sx" | "className" | "aria-label" | "aria-labelledby" | "onChange" | "classes" | "action" | "value" | "variant" | "orientation" | "slots" | "slotProps" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
14
14
|
export interface NeoTabProps extends Omit<TabProps, 'label'> {
|
|
15
15
|
/**
|
|
16
16
|
* The label for the tab
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=11565-10485
|
|
5
5
|
*/
|
|
6
|
-
export declare const NeoToggleButtonWithText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material
|
|
6
|
+
export declare const NeoToggleButtonWithText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type TooltipProps } from '@mui/material/Tooltip';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
2
3
|
/**
|
|
3
4
|
* Variant type for NeoTooltip
|
|
4
5
|
*/
|
|
@@ -14,13 +15,15 @@ export interface NeoTooltipProps extends Omit<TooltipProps, 'title' | 'variant'>
|
|
|
14
15
|
*/
|
|
15
16
|
variant?: TooltipVariant;
|
|
16
17
|
/**
|
|
17
|
-
* The main tooltip
|
|
18
|
+
* The main tooltip content. Accepts a string or any ReactNode, so callers can
|
|
19
|
+
* compose richer content when the `description` variant isn't enough.
|
|
18
20
|
* @figma text (literal content, not a variant property)
|
|
19
21
|
*/
|
|
20
|
-
title:
|
|
22
|
+
title: ReactNode;
|
|
21
23
|
/**
|
|
22
|
-
* Optional supporting description text
|
|
23
|
-
*
|
|
24
|
+
* Optional supporting description text. When provided, shows a larger tooltip
|
|
25
|
+
* with a heading + body hierarchy: title (13px semibold) above a muted
|
|
26
|
+
* description (12px medium).
|
|
24
27
|
* @default undefined
|
|
25
28
|
* @figma Supporting text
|
|
26
29
|
*/
|
|
@@ -45,7 +48,7 @@ export interface NeoTooltipProps extends Omit<TooltipProps, 'title' | 'variant'>
|
|
|
45
48
|
* - Dark: grey[50] (#f9fafb), grey[800] (#1f2937)
|
|
46
49
|
* - Brand: digitalBlue[800] (#131e7a), typography.tooltip (#ffffff)
|
|
47
50
|
* - Shadow: neutralMedium (0px 8px 15px 0px rgba(31,41,55,0.1))
|
|
48
|
-
* - Typography: fontSize.xs (12), fontWeight.medium (500), fontWeight.semiBold (600)
|
|
51
|
+
* - Typography: fontSize.xs (12), fontSize.caption (13), fontWeight.medium (500), fontWeight.semiBold (600)
|
|
49
52
|
*/
|
|
50
53
|
export declare const NeoTooltip: {
|
|
51
54
|
({ variant, title, description, children, arrow, placement, ...props }: NeoTooltipProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/TopNav/TopNav.d.ts
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4618-185228
|
|
5
5
|
*/
|
|
6
|
-
export declare const NeoTopNav: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material
|
|
6
|
+
export declare const NeoTopNav: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=12408-1800
|
|
5
5
|
*/
|
|
6
|
-
export declare const NeoTourModal: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material
|
|
6
|
+
export declare const NeoTourModal: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ToggleButtonGroupProps } from '@mui/material/ToggleButtonGroup';
|
|
2
|
-
declare const StyledToggleButton: import("@emotion/styled").StyledComponent<import("@mui/material
|
|
2
|
+
declare const StyledToggleButton: import("@emotion/styled").StyledComponent<import("@mui/material").ToggleButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "children" | "sx" | "className" | "tabIndex" | "onChange" | "onClick" | "classes" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "value" | "fullWidth" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
3
3
|
export interface NeoTypologyControlProps extends Omit<ToggleButtonGroupProps, 'orientation'> {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type BoxProps } from '@mui/material';
|
|
2
|
+
import type { FunctionComponent } from 'react';
|
|
3
|
+
export interface NeoVibratingDotProps extends BoxProps {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* NeoVibratingDot - Animated status dot with a breathing pulse halo.
|
|
7
|
+
*
|
|
8
|
+
* Indicates a waiting/pending state (QUEUED / CREATED). Color is inherited from
|
|
9
|
+
* `currentColor`; set it via the `color`/`sx` prop or a parent. Sized to the
|
|
10
|
+
* lowercase-letter height regardless of parent fontSize.
|
|
11
|
+
*/
|
|
12
|
+
export declare const NeoVibratingDot: FunctionComponent<NeoVibratingDotProps>;
|