@moderneinc/neo-styled-components 3.0.0 → 4.0.0-next.b43695

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.
@@ -0,0 +1,50 @@
1
+ import { type AlertProps } from '@mui/material/Alert';
2
+ import type { ReactNode } from 'react';
3
+ type Intent = 'success' | 'error' | 'warning' | 'offline' | 'info';
4
+ type AlertType = 'outlined' | 'filled';
5
+ export interface NeoAlertProps extends Omit<AlertProps, 'severity' | 'variant' | 'color'> {
6
+ /**
7
+ * The intent/purpose of the alert
8
+ * @default "success"
9
+ * @figma Intent
10
+ */
11
+ intent?: Intent;
12
+ /**
13
+ * Visual type: outlined (light bg) or filled (solid bg)
14
+ * @default "outlined"
15
+ * @figma Type
16
+ */
17
+ type?: AlertType;
18
+ /**
19
+ * The title text displayed in the alert
20
+ */
21
+ title: string;
22
+ /**
23
+ * Optional supporting description text
24
+ */
25
+ description?: string;
26
+ /**
27
+ * Custom icon to display (defaults to intent-based icon)
28
+ */
29
+ icon?: ReactNode;
30
+ /**
31
+ * Optional action element (typically a button) displayed on the right
32
+ */
33
+ action?: ReactNode;
34
+ }
35
+ /**
36
+ * NeoAlert - Alert component for displaying contextual status messages
37
+ *
38
+ * @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4921-3427
39
+ *
40
+ * Figma Props Mapping:
41
+ * - Intent (Success|Error|Warning|Offline|Info) → intent
42
+ * - Type (Outlined|Filled) → type
43
+ * - Show supporting text → description prop presence
44
+ * - Show Button → action prop presence
45
+ */
46
+ export declare const NeoAlert: {
47
+ ({ intent, type, title, description, icon, action, ...props }: NeoAlertProps): import("react/jsx-runtime").JSX.Element;
48
+ displayName: string;
49
+ };
50
+ export {};
@@ -1,6 +1,6 @@
1
- import { type ButtonBaseProps } from '@mui/material/ButtonBase';
2
- import type { ReactNode } from 'react';
3
- export interface NeoNavigationItemProps extends Omit<ButtonBaseProps, 'children'> {
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 const NeoNavigationItem: {
34
- ({ icon, label, selected, tag, children, ...props }: NeoNavigationItemProps): import("react/jsx-runtime").JSX.Element;
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 {};
@@ -39,10 +39,7 @@ export interface NeoTabProps extends Omit<TabProps, 'label'> {
39
39
  *
40
40
  * Figma Props Mapping:
41
41
  * - Current=True/False → Controlled by parent NeoTabs value
42
- * - State=Defaultdefault styling
43
- * - State=Hover → CSS :hover
44
- * - State=Focus → CSS :focus-visible
45
- * - Tag count → count prop (renders NeoTag)
42
+ * - Show tag count prop (renders NeoTag)
46
43
  * - Text label → label prop
47
44
  */
48
45
  export declare const NeoTab: {
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
@@ -362,7 +362,7 @@ declare const NeoBadge: {
362
362
  displayName: string;
363
363
  };
364
364
 
365
- type Intent = 'info' | 'success' | 'error' | 'warning' | 'neutral';
365
+ type Intent$1 = 'info' | 'success' | 'error' | 'warning' | 'neutral';
366
366
  type BannerType = 'outlined' | 'filled';
367
367
  interface NeoBannerProps extends Omit<AlertProps, 'variant' | 'severity' | 'color'> {
368
368
  /**
@@ -371,7 +371,7 @@ interface NeoBannerProps extends Omit<AlertProps, 'variant' | 'severity' | 'colo
371
371
  *
372
372
  * @figmaPropMapping Intention (Info|Success|Error|Warning|Neutral) → intent
373
373
  */
374
- intent?: Intent;
374
+ intent?: Intent$1;
375
375
  /**
376
376
  * Visual type: outlined (light bg) or filled (solid bg)
377
377
  * @default "outlined"
@@ -1696,7 +1696,7 @@ declare const NeoNavigationAvatar: {
1696
1696
  displayName: string;
1697
1697
  };
1698
1698
 
1699
- interface NeoNavigationItemProps extends Omit<ButtonBaseProps, 'children'> {
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 const NeoNavigationItem: {
1730
- ({ icon, label, selected, tag, children, ...props }: NeoNavigationItemProps): react_jsx_runtime.JSX.Element;
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
@@ -2101,57 +2104,51 @@ declare const NeoSkeleton: {
2101
2104
  displayName: string;
2102
2105
  };
2103
2106
 
2104
- /**
2105
- * Props for the NeoStatusBanner component
2106
- */
2107
- interface NeoStatusBannerProps extends Omit<AlertProps, 'severity' | 'variant'> {
2107
+ type Intent = 'success' | 'error' | 'warning' | 'offline' | 'info';
2108
+ type AlertType = 'outlined' | 'filled';
2109
+ interface NeoAlertProps extends Omit<AlertProps, 'severity' | 'variant' | 'color'> {
2108
2110
  /**
2109
- * The severity level of the status banner
2111
+ * The intent/purpose of the alert
2110
2112
  * @default "success"
2111
2113
  * @figma Intent
2112
2114
  */
2113
- severity?: 'success' | 'error' | 'neutral' | 'info';
2115
+ intent?: Intent;
2114
2116
  /**
2115
- * The visual variant style
2117
+ * Visual type: outlined (light bg) or filled (solid bg)
2116
2118
  * @default "outlined"
2117
- * @figma Theme
2119
+ * @figma Type
2118
2120
  */
2119
- variant?: 'outlined' | 'filled';
2121
+ type?: AlertType;
2120
2122
  /**
2121
- * The content to display inside the banner
2123
+ * The title text displayed in the alert
2122
2124
  */
2123
- children?: ReactNode;
2125
+ title: string;
2126
+ /**
2127
+ * Optional supporting description text
2128
+ */
2129
+ description?: string;
2124
2130
  /**
2125
- * Custom icon to display (defaults to severity-based icon)
2131
+ * Custom icon to display (defaults to intent-based icon)
2126
2132
  */
2127
2133
  icon?: ReactNode;
2134
+ /**
2135
+ * Optional action element (typically a button) displayed on the right
2136
+ */
2137
+ action?: ReactNode;
2128
2138
  }
2129
2139
  /**
2130
- * NeoStatusBanner - Status banner component for displaying system status messages
2131
- *
2132
- * Displays status information with different severity levels (success, error, info, neutral) and
2133
- * visual modes (outlined for light backgrounds, filled for emphasis).
2140
+ * NeoAlert - Alert component for displaying contextual status messages
2134
2141
  *
2135
2142
  * @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4921-3427
2136
2143
  *
2137
2144
  * Figma Props Mapping:
2138
- * - Status (Success|Error|Info|Offline) → severity ('success'|'error'|'info'|'neutral')
2139
- * - Mode (Light|Dark) → variant ('outlined'|'filled')
2140
- *
2141
- * Design Tokens Used:
2142
- * - status.success.light, status.success.default
2143
- * - status.error.light, status.error.default
2144
- * - status.neutral.light, status.neutral.default
2145
- * - status.info.light, status.info.default
2146
- * - typography.tooltip, typography.bodySecondary
2147
- * - grey[800]
2148
- * - fontSize.default, fontSize.sm
2149
- * - fontWeight.medium, fontWeight.regular
2150
- * - fontFamily.body
2151
- * - surfaces.shadowNeutral
2152
- */
2153
- declare const NeoStatusBanner: {
2154
- ({ severity, variant, icon, children, ...props }: NeoStatusBannerProps): react_jsx_runtime.JSX.Element;
2145
+ * - Intent (Success|Error|Warning|Offline|Info) → intent
2146
+ * - Type (Outlined|Filled) → type
2147
+ * - Show supporting text → description prop presence
2148
+ * - Show Button → action prop presence
2149
+ */
2150
+ declare const NeoAlert: {
2151
+ ({ intent, type, title, description, icon, action, ...props }: NeoAlertProps): react_jsx_runtime.JSX.Element;
2155
2152
  displayName: string;
2156
2153
  };
2157
2154
 
@@ -2194,10 +2191,7 @@ interface NeoTabProps extends Omit<TabProps, 'label'> {
2194
2191
  *
2195
2192
  * Figma Props Mapping:
2196
2193
  * - Current=True/False → Controlled by parent NeoTabs value
2197
- * - State=Defaultdefault styling
2198
- * - State=Hover → CSS :hover
2199
- * - State=Focus → CSS :focus-visible
2200
- * - Tag count → count prop (renders NeoTag)
2194
+ * - Show tag count prop (renders NeoTag)
2201
2195
  * - Text label → label prop
2202
2196
  */
2203
2197
  declare const NeoTab: {
@@ -2238,7 +2232,7 @@ type NeoTagOwnProps = {
2238
2232
  */
2239
2233
  color?: 'default' | 'error' | 'warning' | 'success' | 'info' | 'violet' | 'beta';
2240
2234
  };
2241
- type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<ComponentPropsWithoutRef<C>, keyof NeoTagOwnProps> & {
2235
+ type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<ChipProps, keyof NeoTagOwnProps | 'component'> & Omit<ComponentPropsWithoutRef<C>, keyof NeoTagOwnProps | keyof ChipProps> & {
2242
2236
  component?: C;
2243
2237
  };
2244
2238
  /**
@@ -2935,5 +2929,5 @@ declare module '@mui/x-data-grid-pro' {
2935
2929
 
2936
2930
  declare const version: string
2937
2931
 
2938
- export { ActivityScene, CIRCLE_RADIUS, NeoActivityHeader, NeoActivityIndicatorCell, NeoAvatar, NeoBadge, NeoBanner, NeoBreadcrumbLink, NeoBreadcrumbs, NeoButton, NeoButtonTab, NeoButtonTabGroup, NeoCard, NeoCheckbox, NeoCodeSnippet, NeoDataGrid, NeoDataGridCellContent, NeoDataGridColumnsButton, NeoDataGridColumnsPanel, NeoDataGridFilterPanel, NeoDataGridFilterPanelAddIcon, NeoDataGridFilterPanelDeleteIcon, NeoDataGridFilterPanelRemoveAllIcon, NeoDataGridFiltersButton, NeoDataGridHeaderLabel, NeoDropdown as NeoDataGridSelect, NeoDatePicker, NeoDivider, NeoDot, NeoDropdown, NeoDropdownMenu, NeoDropdownMenuItem, NeoDropdownMenuItem as NeoDropdownOption, NeoFilterChip, NeoFooter, NeoGeneralAvatar, NeoIconButton, NeoInfiniteScrollGrid, NeoInputField, NeoListItem, NeoListItemButton, NeoLoadingSpinner, NeoMarketplaceCard, NeoMarketplaceLargeCard, NeoDropdownMenu as NeoMenu, NeoDropdownMenuItem as NeoMenuItem, NeoModal, NeoModalContent, NeoModalFooter, NeoModalHeader, NeoMultiBadgesCell, NeoNavigationAvatar, NeoNavigationItem, NeoPageContent, NeoPaginatedGrid, NeoProgressbar, NeoQuickFilter, NeoRadio, NeoSearchChip, NeoDropdown as NeoSelect, NeoDropdownMenuItem as NeoSelectOption, NeoSkeleton, NeoStatusBadgeCell, NeoStatusBanner, NeoTab, NeoTabs, NeoTag, NeoToast, NeoToastButton, NeoToggle, NeoToolbar, NeoTooltip, NeoTreeItem, NeoTreeView, StyledToggleButton as NeoTypologyButton, NeoTypologyControl, NeoUserAvatarCell, SortedAscendingIcon, SortedDescendingIcon, UnsortedIcon, getDataGridHeaderStyles, version };
2939
- export type { ActivityColor, ActivityEvent, ActivityHeaderSize, BreadcrumbItem, DataGridSize, NeoActivityHeaderProps, NeoActivityIndicatorCellProps, NeoAvatarProps, NeoBadgeProps, NeoBannerProps, NeoBreadcrumbLinkProps, NeoBreadcrumbsProps, NeoButtonProps, NeoButtonTabGroupProps, NeoButtonTabProps, NeoCardLargeProps, NeoCardProps, NeoCardSize, NeoCardSmallProps, NeoCheckboxProps, NeoCodeSnippetProps, NeoDataGridCellContentProps, NeoDataGridHeaderLabelProps, NeoDataGridProps, NeoDatePickerProps, NeoDividerProps, NeoDotProps, NeoDropdownMenuItemProps, NeoDropdownMenuProps, NeoDropdownProps, NeoFilterChipProps, NeoFooterProps, NeoGeneralAvatarProps, NeoIconButtonProps, NeoInfiniteScrollGridProps, NeoInputFieldProps, NeoListItemButtonProps, NeoListItemProps, NeoLoadingSpinnerProps, NeoMarketplaceCardProps, NeoMarketplaceLargeCardProps, NeoDropdownMenuItemProps as NeoMenuItemProps, NeoDropdownMenuProps as NeoMenuProps, NeoModalContentProps, NeoModalFooterProps, NeoModalHeaderProps, NeoModalProps, NeoMultiBadgesCellProps, NeoNavigationAvatarProps, NeoNavigationItemProps, NeoPageContentProps, NeoPaginatedGridProps, NeoProgressbarProps, NeoQuickFilterProps, NeoRadioProps, NeoSearchChipProps, NeoDropdownProps as NeoSelectProps, NeoSkeletonProps, NeoStatusBadgeCellProps, NeoStatusBannerProps, NeoTabProps, NeoTagProps, NeoToastProps, NeoToggleProps, NeoToolbarProps, NeoTooltipProps, NeoTreeItemData, NeoTreeItemProps, NeoTreeViewProps, NeoTypologyControlProps, NeoUserAvatarCellProps };
2932
+ export { ActivityScene, CIRCLE_RADIUS, NeoActivityHeader, NeoActivityIndicatorCell, NeoAlert, NeoAvatar, NeoBadge, NeoBanner, NeoBreadcrumbLink, NeoBreadcrumbs, NeoButton, NeoButtonTab, NeoButtonTabGroup, NeoCard, NeoCheckbox, NeoCodeSnippet, NeoDataGrid, NeoDataGridCellContent, NeoDataGridColumnsButton, NeoDataGridColumnsPanel, NeoDataGridFilterPanel, NeoDataGridFilterPanelAddIcon, NeoDataGridFilterPanelDeleteIcon, NeoDataGridFilterPanelRemoveAllIcon, NeoDataGridFiltersButton, NeoDataGridHeaderLabel, NeoDropdown as NeoDataGridSelect, NeoDatePicker, NeoDivider, NeoDot, NeoDropdown, NeoDropdownMenu, NeoDropdownMenuItem, NeoDropdownMenuItem as NeoDropdownOption, NeoFilterChip, NeoFooter, NeoGeneralAvatar, NeoIconButton, NeoInfiniteScrollGrid, NeoInputField, NeoListItem, NeoListItemButton, NeoLoadingSpinner, NeoMarketplaceCard, NeoMarketplaceLargeCard, NeoDropdownMenu as NeoMenu, NeoDropdownMenuItem as NeoMenuItem, NeoModal, NeoModalContent, NeoModalFooter, NeoModalHeader, NeoMultiBadgesCell, NeoNavigationAvatar, NeoNavigationItem, NeoPageContent, NeoPaginatedGrid, NeoProgressbar, NeoQuickFilter, NeoRadio, NeoSearchChip, NeoDropdown as NeoSelect, NeoDropdownMenuItem as NeoSelectOption, NeoSkeleton, NeoStatusBadgeCell, NeoTab, NeoTabs, NeoTag, NeoToast, NeoToastButton, NeoToggle, NeoToolbar, NeoTooltip, NeoTreeItem, NeoTreeView, StyledToggleButton as NeoTypologyButton, NeoTypologyControl, NeoUserAvatarCell, SortedAscendingIcon, SortedDescendingIcon, UnsortedIcon, getDataGridHeaderStyles, version };
2933
+ export type { ActivityColor, ActivityEvent, ActivityHeaderSize, BreadcrumbItem, DataGridSize, NeoActivityHeaderProps, NeoActivityIndicatorCellProps, NeoAlertProps, NeoAvatarProps, NeoBadgeProps, NeoBannerProps, NeoBreadcrumbLinkProps, NeoBreadcrumbsProps, NeoButtonProps, NeoButtonTabGroupProps, NeoButtonTabProps, NeoCardLargeProps, NeoCardProps, NeoCardSize, NeoCardSmallProps, NeoCheckboxProps, NeoCodeSnippetProps, NeoDataGridCellContentProps, NeoDataGridHeaderLabelProps, NeoDataGridProps, NeoDatePickerProps, NeoDividerProps, NeoDotProps, NeoDropdownMenuItemProps, NeoDropdownMenuProps, NeoDropdownProps, NeoFilterChipProps, NeoFooterProps, NeoGeneralAvatarProps, NeoIconButtonProps, NeoInfiniteScrollGridProps, NeoInputFieldProps, NeoListItemButtonProps, NeoListItemProps, NeoLoadingSpinnerProps, NeoMarketplaceCardProps, NeoMarketplaceLargeCardProps, NeoDropdownMenuItemProps as NeoMenuItemProps, NeoDropdownMenuProps as NeoMenuProps, NeoModalContentProps, NeoModalFooterProps, NeoModalHeaderProps, NeoModalProps, NeoMultiBadgesCellProps, NeoNavigationAvatarProps, NeoNavigationItemProps, NeoPageContentProps, NeoPaginatedGridProps, NeoProgressbarProps, NeoQuickFilterProps, NeoRadioProps, NeoSearchChipProps, NeoDropdownProps as NeoSelectProps, NeoSkeletonProps, NeoStatusBadgeCellProps, NeoTabProps, NeoTagProps, NeoToastProps, NeoToggleProps, NeoToolbarProps, NeoTooltipProps, NeoTreeItemData, NeoTreeItemProps, NeoTreeViewProps, NeoTypologyControlProps, NeoUserAvatarCellProps };