@moderneinc/neo-styled-components 2.5.0-next.124c4e → 2.5.0-next.2dcdc6
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/Avatar/Avatar.d.ts +2 -1
- package/dist/Badge/Badge.d.ts +3 -3
- package/dist/Button/Button.d.ts +22 -10
- package/dist/Footer/Footer.d.ts +6 -1
- package/dist/MarketplaceCard/MarketplaceCard.d.ts +7 -6
- package/dist/SearchChip/SearchChip.d.ts +19 -0
- package/dist/Tree/Tree.d.ts +31 -15
- package/dist/index.d.ts +139 -24
- package/dist/index.esm.js +326 -44
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +342 -57
- package/dist/index.js.map +1 -1
- package/dist/utils/focusRing.d.ts +10 -0
- package/package.json +24 -2
package/dist/Avatar/Avatar.d.ts
CHANGED
|
@@ -20,8 +20,9 @@ export interface NeoAvatarProps extends Omit<AvatarProps, 'variant'> {
|
|
|
20
20
|
*
|
|
21
21
|
* Figma Props Mapping:
|
|
22
22
|
* - Figma Type "Initials" → variant="initials", size="small" (20px)
|
|
23
|
-
* - Figma Type "Small" → variant="circular", size="small" (
|
|
23
|
+
* - Figma Type "Small" → variant="circular", size="small" (32px with image)
|
|
24
24
|
* - Figma Type "Medium" → variant="circular", size="medium" (44px white container with image)
|
|
25
|
+
* - State: Focus → CSS :focus-visible ring (2px white inner + 4px blue outer)
|
|
25
26
|
* - State: Hover (tooltip) → Wrap component with MUI Tooltip
|
|
26
27
|
*
|
|
27
28
|
* Usage:
|
package/dist/Badge/Badge.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ export interface NeoBadgeProps extends Omit<ChipProps, 'variant' | 'size'> {
|
|
|
12
12
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system-w--correct-set-of-tokens?node-id=4091-17230
|
|
13
13
|
*
|
|
14
14
|
* Figma Props Mapping:
|
|
15
|
-
* -
|
|
16
|
-
* -
|
|
17
|
-
* -
|
|
15
|
+
* - Intent (Neutral|Error|Warning|Success|Info) → color (default|error|warning|success|info)
|
|
16
|
+
* - LeadingIcon → icon prop (pass React element)
|
|
17
|
+
* - TrailingIcon → deleteIcon prop (pass React element)
|
|
18
18
|
* - Label → label prop
|
|
19
19
|
*/
|
|
20
20
|
export declare const NeoBadge: {
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import ButtonBase from '@mui/material/ButtonBase';
|
|
2
|
+
import React, { type ElementType, type ReactNode } from 'react';
|
|
3
3
|
declare module '@mui/material/ButtonBase' {
|
|
4
4
|
interface ButtonBasePropsVariantOverrides {
|
|
5
5
|
primary: true;
|
|
@@ -7,11 +7,12 @@ declare module '@mui/material/ButtonBase' {
|
|
|
7
7
|
destructive: true;
|
|
8
8
|
link: true;
|
|
9
9
|
linkColor: true;
|
|
10
|
+
tertiary: true;
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
|
-
type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'link' | 'linkColor';
|
|
13
|
+
type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'link' | 'linkColor' | 'tertiary';
|
|
13
14
|
type ButtonSize = 'small' | 'medium';
|
|
14
|
-
|
|
15
|
+
type NeoButtonOwnProps = {
|
|
15
16
|
/**
|
|
16
17
|
* The visual variant of the button
|
|
17
18
|
* @default "primary"
|
|
@@ -41,14 +42,25 @@ export interface NeoButtonProps extends Omit<ButtonBaseProps, 'children'> {
|
|
|
41
42
|
* URL to link to. When provided, the button renders as a link element.
|
|
42
43
|
*/
|
|
43
44
|
href?: string;
|
|
44
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Icon placed before the button label
|
|
47
|
+
*/
|
|
48
|
+
startIcon?: ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* Icon placed after the button label
|
|
51
|
+
*/
|
|
52
|
+
endIcon?: ReactNode;
|
|
53
|
+
};
|
|
54
|
+
export type NeoButtonProps<C extends ElementType = typeof ButtonBase> = NeoButtonOwnProps & Omit<React.ComponentPropsWithoutRef<C>, keyof NeoButtonOwnProps> & {
|
|
55
|
+
component?: C;
|
|
56
|
+
};
|
|
45
57
|
/**
|
|
46
58
|
* NeoButton - Text button component based on MUI ButtonBase
|
|
47
59
|
*
|
|
48
60
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4086-7590
|
|
49
61
|
*
|
|
50
62
|
* Figma Props Mapping:
|
|
51
|
-
* - Hierarchy (Primary|Secondary|Destructive|Link|Link Color) → variant prop
|
|
63
|
+
* - Hierarchy (Primary|Secondary|Destructive|Link|Link Color|Tertiary) → variant prop
|
|
52
64
|
* - Size (Small|Medium) → size prop
|
|
53
65
|
* - State=Disabled → disabled prop
|
|
54
66
|
* - State=Loading → loading prop
|
|
@@ -56,8 +68,8 @@ export interface NeoButtonProps extends Omit<ButtonBaseProps, 'children'> {
|
|
|
56
68
|
* - State=Pressed → CSS :active
|
|
57
69
|
* - State=Focused → CSS :focus-visible
|
|
58
70
|
*/
|
|
59
|
-
export declare
|
|
60
|
-
|
|
61
|
-
displayName: string;
|
|
62
|
-
}
|
|
71
|
+
export declare function NeoButton<C extends ElementType = typeof ButtonBase>({ variant, size, loading, children, disabled, startIcon, endIcon, ...rest }: NeoButtonProps<C>): import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
export declare namespace NeoButton {
|
|
73
|
+
var displayName: string;
|
|
74
|
+
}
|
|
63
75
|
export {};
|
package/dist/Footer/Footer.d.ts
CHANGED
|
@@ -54,6 +54,11 @@ export interface NeoFooterProps {
|
|
|
54
54
|
* If not provided, will attempt to use DataGrid's pagination state
|
|
55
55
|
*/
|
|
56
56
|
hasNextPage?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Whether to show the selected row count on the left side (pagination variant)
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
showSelected?: boolean;
|
|
57
62
|
/**
|
|
58
63
|
* Custom content to render in the footer
|
|
59
64
|
*/
|
|
@@ -103,6 +108,6 @@ export interface NeoFooterProps {
|
|
|
103
108
|
* />
|
|
104
109
|
*/
|
|
105
110
|
export declare const NeoFooter: {
|
|
106
|
-
({ variant, showShadow, loading, resultCount, onLoadMore, hasMore, paginationInfo, onPreviousPage, onNextPage, hasPreviousPage, hasNextPage, children, }: NeoFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
111
|
+
({ variant, showShadow, loading, resultCount, onLoadMore, hasMore, paginationInfo, onPreviousPage, onNextPage, hasPreviousPage, hasNextPage, showSelected, children, }: NeoFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
107
112
|
displayName: string;
|
|
108
113
|
};
|
|
@@ -23,13 +23,13 @@ export interface NeoMarketplaceCardProps extends Omit<CardProps, 'children' | 't
|
|
|
23
23
|
/**
|
|
24
24
|
* Whether the card is in selected/active state
|
|
25
25
|
* @default false
|
|
26
|
-
* @figma
|
|
26
|
+
* @figma State (Active)
|
|
27
27
|
*/
|
|
28
28
|
selected?: boolean;
|
|
29
29
|
/**
|
|
30
30
|
* Whether the card is disabled
|
|
31
31
|
* @default false
|
|
32
|
-
* @figma
|
|
32
|
+
* @figma State (Disabled)
|
|
33
33
|
*/
|
|
34
34
|
disabled?: boolean;
|
|
35
35
|
/**
|
|
@@ -59,10 +59,11 @@ export interface NeoMarketplaceCardProps extends Omit<CardProps, 'children' | 't
|
|
|
59
59
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4286-1635&t=Bo58EpFmg6ILJtmv-11
|
|
60
60
|
*
|
|
61
61
|
* Figma Props Mapping:
|
|
62
|
-
* -
|
|
63
|
-
* -
|
|
64
|
-
* -
|
|
65
|
-
* -
|
|
62
|
+
* - State="Active" → selected={true}
|
|
63
|
+
* - State="Disabled" → disabled={true}
|
|
64
|
+
* - State="Focused" → CSS :focus-visible state (not a prop)
|
|
65
|
+
* - State="Hover" → CSS :hover state (not a prop)
|
|
66
|
+
* - State="Default" → Base state (no props)
|
|
66
67
|
*
|
|
67
68
|
* Design Tokens Used:
|
|
68
69
|
* - semanticColors.surfaces.card (#FFFFFF) - Default card background
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type InputBaseProps } from '@mui/material/InputBase';
|
|
2
|
+
export interface NeoSearchChipProps extends Omit<InputBaseProps, 'startAdornment' | 'endAdornment' | 'type'> {
|
|
3
|
+
/**
|
|
4
|
+
* Handler for clearing the search value (shows X icon when provided and value is non-empty)
|
|
5
|
+
*/
|
|
6
|
+
onClear?: () => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* NeoSearchChip - Pill-shaped search input for inline search functionality.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* <NeoSearchChip placeholder="Search titles" value={query} onChange={handleChange} onClear={handleClear} />
|
|
13
|
+
*
|
|
14
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=8542-921
|
|
15
|
+
*/
|
|
16
|
+
export declare const NeoSearchChip: {
|
|
17
|
+
({ onClear, value, ...props }: NeoSearchChipProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
package/dist/Tree/Tree.d.ts
CHANGED
|
@@ -1,26 +1,42 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type TreeItemProps } from '@mui/x-tree-view/TreeItem';
|
|
2
|
+
import { type RichTreeViewProProps } from '@mui/x-tree-view-pro/RichTreeViewPro';
|
|
3
|
+
import { type ReactNode } from 'react';
|
|
2
4
|
/**
|
|
3
|
-
*
|
|
5
|
+
* Extended item data that NeoTreeItem can read from the items array.
|
|
6
|
+
* Consumers pass these via the `items` prop on NeoTreeView.
|
|
4
7
|
*/
|
|
5
|
-
export interface
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
export interface NeoTreeItemData {
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
icon?: ReactNode;
|
|
12
|
+
checkbox?: ReactNode;
|
|
13
|
+
secondaryLabel?: ReactNode;
|
|
14
|
+
endAction?: ReactNode;
|
|
15
|
+
statusIcon?: ReactNode;
|
|
16
|
+
children?: NeoTreeItemData[];
|
|
10
17
|
}
|
|
18
|
+
export type NeoTreeItemProps = TreeItemProps;
|
|
11
19
|
/**
|
|
12
|
-
*
|
|
20
|
+
* NeoTreeItem - Styled tree item row with optional icon, checkbox,
|
|
21
|
+
* secondaryLabel, endAction, and statusIcon slots.
|
|
22
|
+
*
|
|
23
|
+
* Slot data is read from the item model (passed via `items` on NeoTreeView).
|
|
13
24
|
*
|
|
14
25
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4190-30493
|
|
26
|
+
*/
|
|
27
|
+
export declare const NeoTreeItem: import("react").ForwardRefExoticComponent<TreeItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
28
|
+
export interface NeoTreeViewProps extends Omit<RichTreeViewProProps<NeoTreeItemData, false>, 'slots'> {
|
|
29
|
+
slots?: RichTreeViewProProps<NeoTreeItemData, false>['slots'];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* NeoTreeView - Styled tree container wrapping MUI RichTreeViewPro.
|
|
15
33
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* - FigmaProp → reactProp
|
|
34
|
+
* Provides neo-design token styling, default expand/collapse icons,
|
|
35
|
+
* and NeoTreeItem as the default item slot.
|
|
19
36
|
*
|
|
20
|
-
*
|
|
21
|
-
* - TODO: List design tokens used (e.g., semanticColors.text.primary, typography.body.medium)
|
|
37
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4190-30493
|
|
22
38
|
*/
|
|
23
|
-
export declare const
|
|
24
|
-
({
|
|
39
|
+
export declare const NeoTreeView: {
|
|
40
|
+
({ slots, ...props }: NeoTreeViewProps): import("react/jsx-runtime").JSX.Element;
|
|
25
41
|
displayName: string;
|
|
26
42
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ import { AvatarProps } from '@mui/material/Avatar';
|
|
|
6
6
|
import { ChipProps } from '@mui/material/Chip';
|
|
7
7
|
import { AlertProps } from '@mui/material/Alert';
|
|
8
8
|
import { LinkProps } from '@mui/material/Link';
|
|
9
|
-
import * as
|
|
10
|
-
import { ButtonBaseProps } from '@mui/material/ButtonBase';
|
|
9
|
+
import * as ButtonBase from '@mui/material/ButtonBase';
|
|
10
|
+
import ButtonBase__default, { ButtonBaseProps } from '@mui/material/ButtonBase';
|
|
11
11
|
import { ButtonGroupProps } from '@mui/material/ButtonGroup';
|
|
12
12
|
import { CheckboxProps } from '@mui/material/Checkbox';
|
|
13
13
|
import { GridDensity as GridDensity$1, DataGridProProps, GridSlots, ToolbarProps, GridColumnsPanelProps } from '@mui/x-data-grid-pro';
|
|
@@ -40,6 +40,8 @@ import { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
|
|
|
40
40
|
import { PickersShortcutsItem } from '@mui/x-date-pickers/PickersShortcuts';
|
|
41
41
|
import { DateRangePickerProps } from '@mui/x-date-pickers-pro/DateRangePicker';
|
|
42
42
|
import { DateRange } from '@mui/x-date-pickers-pro/models';
|
|
43
|
+
import { TreeItemProps } from '@mui/x-tree-view/TreeItem';
|
|
44
|
+
import { RichTreeViewProProps } from '@mui/x-tree-view-pro/RichTreeViewPro';
|
|
43
45
|
|
|
44
46
|
interface NeoFooterProps {
|
|
45
47
|
/**
|
|
@@ -96,6 +98,11 @@ interface NeoFooterProps {
|
|
|
96
98
|
* If not provided, will attempt to use DataGrid's pagination state
|
|
97
99
|
*/
|
|
98
100
|
hasNextPage?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Whether to show the selected row count on the left side (pagination variant)
|
|
103
|
+
* @default true
|
|
104
|
+
*/
|
|
105
|
+
showSelected?: boolean;
|
|
99
106
|
/**
|
|
100
107
|
* Custom content to render in the footer
|
|
101
108
|
*/
|
|
@@ -145,7 +152,7 @@ interface NeoFooterProps {
|
|
|
145
152
|
* />
|
|
146
153
|
*/
|
|
147
154
|
declare const NeoFooter: {
|
|
148
|
-
({ variant, showShadow, loading, resultCount, onLoadMore, hasMore, paginationInfo, onPreviousPage, onNextPage, hasPreviousPage, hasNextPage, children, }: NeoFooterProps): react_jsx_runtime.JSX.Element;
|
|
155
|
+
({ variant, showShadow, loading, resultCount, onLoadMore, hasMore, paginationInfo, onPreviousPage, onNextPage, hasPreviousPage, hasNextPage, showSelected, children, }: NeoFooterProps): react_jsx_runtime.JSX.Element;
|
|
149
156
|
displayName: string;
|
|
150
157
|
};
|
|
151
158
|
|
|
@@ -302,8 +309,9 @@ interface NeoAvatarProps extends Omit<AvatarProps, 'variant'> {
|
|
|
302
309
|
*
|
|
303
310
|
* Figma Props Mapping:
|
|
304
311
|
* - Figma Type "Initials" → variant="initials", size="small" (20px)
|
|
305
|
-
* - Figma Type "Small" → variant="circular", size="small" (
|
|
312
|
+
* - Figma Type "Small" → variant="circular", size="small" (32px with image)
|
|
306
313
|
* - Figma Type "Medium" → variant="circular", size="medium" (44px white container with image)
|
|
314
|
+
* - State: Focus → CSS :focus-visible ring (2px white inner + 4px blue outer)
|
|
307
315
|
* - State: Hover (tooltip) → Wrap component with MUI Tooltip
|
|
308
316
|
*
|
|
309
317
|
* Usage:
|
|
@@ -344,9 +352,9 @@ interface NeoBadgeProps extends Omit<ChipProps, 'variant' | 'size'> {
|
|
|
344
352
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system-w--correct-set-of-tokens?node-id=4091-17230
|
|
345
353
|
*
|
|
346
354
|
* Figma Props Mapping:
|
|
347
|
-
* -
|
|
348
|
-
* -
|
|
349
|
-
* -
|
|
355
|
+
* - Intent (Neutral|Error|Warning|Success|Info) → color (default|error|warning|success|info)
|
|
356
|
+
* - LeadingIcon → icon prop (pass React element)
|
|
357
|
+
* - TrailingIcon → deleteIcon prop (pass React element)
|
|
350
358
|
* - Label → label prop
|
|
351
359
|
*/
|
|
352
360
|
declare const NeoBadge: {
|
|
@@ -488,11 +496,12 @@ declare module '@mui/material/ButtonBase' {
|
|
|
488
496
|
destructive: true;
|
|
489
497
|
link: true;
|
|
490
498
|
linkColor: true;
|
|
499
|
+
tertiary: true;
|
|
491
500
|
}
|
|
492
501
|
}
|
|
493
|
-
type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'link' | 'linkColor';
|
|
502
|
+
type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'link' | 'linkColor' | 'tertiary';
|
|
494
503
|
type ButtonSize = 'small' | 'medium';
|
|
495
|
-
|
|
504
|
+
type NeoButtonOwnProps = {
|
|
496
505
|
/**
|
|
497
506
|
* The visual variant of the button
|
|
498
507
|
* @default "primary"
|
|
@@ -522,14 +531,25 @@ interface NeoButtonProps extends Omit<ButtonBaseProps, 'children'> {
|
|
|
522
531
|
* URL to link to. When provided, the button renders as a link element.
|
|
523
532
|
*/
|
|
524
533
|
href?: string;
|
|
525
|
-
|
|
534
|
+
/**
|
|
535
|
+
* Icon placed before the button label
|
|
536
|
+
*/
|
|
537
|
+
startIcon?: ReactNode;
|
|
538
|
+
/**
|
|
539
|
+
* Icon placed after the button label
|
|
540
|
+
*/
|
|
541
|
+
endIcon?: ReactNode;
|
|
542
|
+
};
|
|
543
|
+
type NeoButtonProps<C extends ElementType = typeof ButtonBase__default> = NeoButtonOwnProps & Omit<React__default.ComponentPropsWithoutRef<C>, keyof NeoButtonOwnProps> & {
|
|
544
|
+
component?: C;
|
|
545
|
+
};
|
|
526
546
|
/**
|
|
527
547
|
* NeoButton - Text button component based on MUI ButtonBase
|
|
528
548
|
*
|
|
529
549
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4086-7590
|
|
530
550
|
*
|
|
531
551
|
* Figma Props Mapping:
|
|
532
|
-
* - Hierarchy (Primary|Secondary|Destructive|Link|Link Color) → variant prop
|
|
552
|
+
* - Hierarchy (Primary|Secondary|Destructive|Link|Link Color|Tertiary) → variant prop
|
|
533
553
|
* - Size (Small|Medium) → size prop
|
|
534
554
|
* - State=Disabled → disabled prop
|
|
535
555
|
* - State=Loading → loading prop
|
|
@@ -537,10 +557,10 @@ interface NeoButtonProps extends Omit<ButtonBaseProps, 'children'> {
|
|
|
537
557
|
* - State=Pressed → CSS :active
|
|
538
558
|
* - State=Focused → CSS :focus-visible
|
|
539
559
|
*/
|
|
540
|
-
declare
|
|
541
|
-
|
|
542
|
-
displayName: string;
|
|
543
|
-
}
|
|
560
|
+
declare function NeoButton<C extends ElementType = typeof ButtonBase__default>({ variant, size, loading, children, disabled, startIcon, endIcon, ...rest }: NeoButtonProps<C>): react_jsx_runtime.JSX.Element;
|
|
561
|
+
declare namespace NeoButton {
|
|
562
|
+
var displayName: string;
|
|
563
|
+
}
|
|
544
564
|
|
|
545
565
|
type ButtonGroupSize = 'small' | 'medium';
|
|
546
566
|
interface NeoButtonGroupProps extends Omit<ButtonGroupProps, 'size' | 'variant'> {
|
|
@@ -1646,6 +1666,41 @@ declare const NeoModalFooter: {
|
|
|
1646
1666
|
displayName: string;
|
|
1647
1667
|
};
|
|
1648
1668
|
|
|
1669
|
+
interface NeoNavigationItemProps extends Omit<ButtonBaseProps, 'children'> {
|
|
1670
|
+
/**
|
|
1671
|
+
* Icon element to display
|
|
1672
|
+
*/
|
|
1673
|
+
icon?: ReactNode;
|
|
1674
|
+
/**
|
|
1675
|
+
* Text label below the icon
|
|
1676
|
+
*/
|
|
1677
|
+
label?: string;
|
|
1678
|
+
/**
|
|
1679
|
+
* Whether the item is selected/active
|
|
1680
|
+
* @figma State (Selected)
|
|
1681
|
+
* @default false
|
|
1682
|
+
*/
|
|
1683
|
+
selected?: boolean;
|
|
1684
|
+
/**
|
|
1685
|
+
* Optional tag badge content (e.g., count)
|
|
1686
|
+
* @figma Tag
|
|
1687
|
+
*/
|
|
1688
|
+
tag?: string;
|
|
1689
|
+
/**
|
|
1690
|
+
* Additional content
|
|
1691
|
+
*/
|
|
1692
|
+
children?: ReactNode;
|
|
1693
|
+
}
|
|
1694
|
+
/**
|
|
1695
|
+
* NeoNavigationItem - Vertical navigation item with icon, label, and optional tag
|
|
1696
|
+
*
|
|
1697
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=8455-6120
|
|
1698
|
+
*/
|
|
1699
|
+
declare const NeoNavigationItem: {
|
|
1700
|
+
({ icon, label, selected, tag, children, ...props }: NeoNavigationItemProps): react_jsx_runtime.JSX.Element;
|
|
1701
|
+
displayName: string;
|
|
1702
|
+
};
|
|
1703
|
+
|
|
1649
1704
|
/**
|
|
1650
1705
|
* Breadcrumb item configuration
|
|
1651
1706
|
*/
|
|
@@ -1962,6 +2017,25 @@ declare const NeoRadio: {
|
|
|
1962
2017
|
displayName: string;
|
|
1963
2018
|
};
|
|
1964
2019
|
|
|
2020
|
+
interface NeoSearchChipProps extends Omit<InputBaseProps, 'startAdornment' | 'endAdornment' | 'type'> {
|
|
2021
|
+
/**
|
|
2022
|
+
* Handler for clearing the search value (shows X icon when provided and value is non-empty)
|
|
2023
|
+
*/
|
|
2024
|
+
onClear?: () => void;
|
|
2025
|
+
}
|
|
2026
|
+
/**
|
|
2027
|
+
* NeoSearchChip - Pill-shaped search input for inline search functionality.
|
|
2028
|
+
*
|
|
2029
|
+
* @example
|
|
2030
|
+
* <NeoSearchChip placeholder="Search titles" value={query} onChange={handleChange} onClear={handleClear} />
|
|
2031
|
+
*
|
|
2032
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=8542-921
|
|
2033
|
+
*/
|
|
2034
|
+
declare const NeoSearchChip: {
|
|
2035
|
+
({ onClear, value, ...props }: NeoSearchChipProps): react_jsx_runtime.JSX.Element;
|
|
2036
|
+
displayName: string;
|
|
2037
|
+
};
|
|
2038
|
+
|
|
1965
2039
|
/**
|
|
1966
2040
|
* Extended props for NeoSkeleton component
|
|
1967
2041
|
*/
|
|
@@ -2544,7 +2618,7 @@ declare const NeoTooltip: {
|
|
|
2544
2618
|
displayName: string;
|
|
2545
2619
|
};
|
|
2546
2620
|
|
|
2547
|
-
declare const StyledToggleButton: StyledComponent<_mui_material_ToggleButton.ToggleButtonOwnProps & Omit<
|
|
2621
|
+
declare const StyledToggleButton: StyledComponent<_mui_material_ToggleButton.ToggleButtonOwnProps & Omit<ButtonBase.ButtonBaseOwnProps, "classes"> & _mui_material_OverridableComponent.CommonProps & Omit<React$1.DetailedHTMLProps<React$1.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"> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, {}, {}>;
|
|
2548
2622
|
interface NeoTypologyControlProps extends Omit<ToggleButtonGroupProps, 'orientation'> {
|
|
2549
2623
|
}
|
|
2550
2624
|
/**
|
|
@@ -2591,13 +2665,13 @@ interface NeoMarketplaceCardProps extends Omit<CardProps, 'children' | 'title'>
|
|
|
2591
2665
|
/**
|
|
2592
2666
|
* Whether the card is in selected/active state
|
|
2593
2667
|
* @default false
|
|
2594
|
-
* @figma
|
|
2668
|
+
* @figma State (Active)
|
|
2595
2669
|
*/
|
|
2596
2670
|
selected?: boolean;
|
|
2597
2671
|
/**
|
|
2598
2672
|
* Whether the card is disabled
|
|
2599
2673
|
* @default false
|
|
2600
|
-
* @figma
|
|
2674
|
+
* @figma State (Disabled)
|
|
2601
2675
|
*/
|
|
2602
2676
|
disabled?: boolean;
|
|
2603
2677
|
/**
|
|
@@ -2627,10 +2701,11 @@ interface NeoMarketplaceCardProps extends Omit<CardProps, 'children' | 'title'>
|
|
|
2627
2701
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4286-1635&t=Bo58EpFmg6ILJtmv-11
|
|
2628
2702
|
*
|
|
2629
2703
|
* Figma Props Mapping:
|
|
2630
|
-
* -
|
|
2631
|
-
* -
|
|
2632
|
-
* -
|
|
2633
|
-
* -
|
|
2704
|
+
* - State="Active" → selected={true}
|
|
2705
|
+
* - State="Disabled" → disabled={true}
|
|
2706
|
+
* - State="Focused" → CSS :focus-visible state (not a prop)
|
|
2707
|
+
* - State="Hover" → CSS :hover state (not a prop)
|
|
2708
|
+
* - State="Default" → Base state (no props)
|
|
2634
2709
|
*
|
|
2635
2710
|
* Design Tokens Used:
|
|
2636
2711
|
* - semanticColors.surfaces.card (#FFFFFF) - Default card background
|
|
@@ -2785,6 +2860,46 @@ declare const NeoDatePicker: {
|
|
|
2785
2860
|
displayName: string;
|
|
2786
2861
|
};
|
|
2787
2862
|
|
|
2863
|
+
/**
|
|
2864
|
+
* Extended item data that NeoTreeItem can read from the items array.
|
|
2865
|
+
* Consumers pass these via the `items` prop on NeoTreeView.
|
|
2866
|
+
*/
|
|
2867
|
+
interface NeoTreeItemData {
|
|
2868
|
+
id: string;
|
|
2869
|
+
label: string;
|
|
2870
|
+
icon?: ReactNode;
|
|
2871
|
+
checkbox?: ReactNode;
|
|
2872
|
+
secondaryLabel?: ReactNode;
|
|
2873
|
+
endAction?: ReactNode;
|
|
2874
|
+
statusIcon?: ReactNode;
|
|
2875
|
+
children?: NeoTreeItemData[];
|
|
2876
|
+
}
|
|
2877
|
+
type NeoTreeItemProps = TreeItemProps;
|
|
2878
|
+
/**
|
|
2879
|
+
* NeoTreeItem - Styled tree item row with optional icon, checkbox,
|
|
2880
|
+
* secondaryLabel, endAction, and statusIcon slots.
|
|
2881
|
+
*
|
|
2882
|
+
* Slot data is read from the item model (passed via `items` on NeoTreeView).
|
|
2883
|
+
*
|
|
2884
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4190-30493
|
|
2885
|
+
*/
|
|
2886
|
+
declare const NeoTreeItem: React$1.ForwardRefExoticComponent<TreeItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
2887
|
+
interface NeoTreeViewProps extends Omit<RichTreeViewProProps<NeoTreeItemData, false>, 'slots'> {
|
|
2888
|
+
slots?: RichTreeViewProProps<NeoTreeItemData, false>['slots'];
|
|
2889
|
+
}
|
|
2890
|
+
/**
|
|
2891
|
+
* NeoTreeView - Styled tree container wrapping MUI RichTreeViewPro.
|
|
2892
|
+
*
|
|
2893
|
+
* Provides neo-design token styling, default expand/collapse icons,
|
|
2894
|
+
* and NeoTreeItem as the default item slot.
|
|
2895
|
+
*
|
|
2896
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4190-30493
|
|
2897
|
+
*/
|
|
2898
|
+
declare const NeoTreeView: {
|
|
2899
|
+
({ slots, ...props }: NeoTreeViewProps): react_jsx_runtime.JSX.Element;
|
|
2900
|
+
displayName: string;
|
|
2901
|
+
};
|
|
2902
|
+
|
|
2788
2903
|
/**
|
|
2789
2904
|
* @moderneinc/neo-styled-components
|
|
2790
2905
|
*
|
|
@@ -2804,5 +2919,5 @@ declare module '@mui/x-data-grid-pro' {
|
|
|
2804
2919
|
|
|
2805
2920
|
declare const version: string
|
|
2806
2921
|
|
|
2807
|
-
export { ActivityScene, CIRCLE_RADIUS, NeoActivityHeader, NeoActivityIndicatorCell, NeoAvatar, NeoBadge, NeoBanner, NeoBreadcrumbLink, NeoBreadcrumbs, NeoButton, NeoButtonGroup, NeoCheckbox, NeoCodeSnippet, NeoDataGrid, NeoDataGridCellContent, NeoDataGridColumnsButton, NeoDataGridColumnsPanel, NeoDataGridFilterPanel, NeoDataGridFilterPanelAddIcon, NeoDataGridFilterPanelDeleteIcon, NeoDataGridFilterPanelRemoveAllIcon, NeoDataGridFiltersButton, NeoDataGridHeaderLabel, NeoSelect as NeoDataGridSelect, NeoDatePicker, NeoDivider, NeoDot, NeoFilterChip, NeoFooter, NeoIconButton, NeoInfiniteScrollGrid, NeoInputField, NeoListItem, NeoListItemButton, NeoLoadingSpinner, NeoMarketplaceCard, NeoMenu, NeoMenuItem, NeoModal, NeoModalContent, NeoModalFooter, NeoModalHeader, NeoMultiBadgesCell, NeoPageContent, NeoPaginatedGrid, NeoProgressbar, NeoQuickFilter, NeoRadio, NeoSelect, NeoMenuItem as NeoSelectOption, NeoSkeleton, NeoStatusBadgeCell, NeoStatusBanner, NeoTab, NeoTabs, NeoTag, NeoToast, NeoToastButton, NeoToggle, NeoToolbar, NeoTooltip, StyledToggleButton as NeoTypologyButton, NeoTypologyControl, NeoUserAvatarCell, SortedAscendingIcon, SortedDescendingIcon, UnsortedIcon, getDataGridHeaderStyles, version };
|
|
2808
|
-
export type { ActivityColor, ActivityEvent, ActivityHeaderSize, BreadcrumbItem, DataGridSize, NeoActivityHeaderProps, NeoActivityIndicatorCellProps, NeoAvatarProps, NeoBadgeProps, NeoBannerProps, NeoBreadcrumbLinkProps, NeoBreadcrumbsProps, NeoButtonGroupProps, NeoButtonProps, NeoCheckboxProps, NeoCodeSnippetProps, NeoDataGridCellContentProps, NeoDataGridHeaderLabelProps, NeoDataGridProps, NeoDatePickerProps, NeoDividerProps, NeoDotProps, NeoFilterChipProps, NeoFooterProps, NeoIconButtonProps, NeoInfiniteScrollGridProps, NeoInputFieldProps, NeoListItemButtonProps, NeoListItemProps, NeoLoadingSpinnerProps, NeoMarketplaceCardProps, NeoMenuItemProps, NeoMenuProps, NeoModalContentProps, NeoModalFooterProps, NeoModalHeaderProps, NeoModalProps, NeoMultiBadgesCellProps, NeoPageContentProps, NeoPaginatedGridProps, NeoProgressbarProps, NeoQuickFilterProps, NeoRadioProps, NeoSelectProps, NeoSkeletonProps, NeoStatusBadgeCellProps, NeoStatusBannerProps, NeoTabProps, NeoTagProps, NeoToastProps, NeoToggleProps, NeoToolbarProps, NeoTooltipProps, NeoTypologyControlProps, NeoUserAvatarCellProps };
|
|
2922
|
+
export { ActivityScene, CIRCLE_RADIUS, NeoActivityHeader, NeoActivityIndicatorCell, NeoAvatar, NeoBadge, NeoBanner, NeoBreadcrumbLink, NeoBreadcrumbs, NeoButton, NeoButtonGroup, NeoCheckbox, NeoCodeSnippet, NeoDataGrid, NeoDataGridCellContent, NeoDataGridColumnsButton, NeoDataGridColumnsPanel, NeoDataGridFilterPanel, NeoDataGridFilterPanelAddIcon, NeoDataGridFilterPanelDeleteIcon, NeoDataGridFilterPanelRemoveAllIcon, NeoDataGridFiltersButton, NeoDataGridHeaderLabel, NeoSelect as NeoDataGridSelect, NeoDatePicker, NeoDivider, NeoDot, NeoFilterChip, NeoFooter, NeoIconButton, NeoInfiniteScrollGrid, NeoInputField, NeoListItem, NeoListItemButton, NeoLoadingSpinner, NeoMarketplaceCard, NeoMenu, NeoMenuItem, NeoModal, NeoModalContent, NeoModalFooter, NeoModalHeader, NeoMultiBadgesCell, NeoNavigationItem, NeoPageContent, NeoPaginatedGrid, NeoProgressbar, NeoQuickFilter, NeoRadio, NeoSearchChip, NeoSelect, NeoMenuItem 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 };
|
|
2923
|
+
export type { ActivityColor, ActivityEvent, ActivityHeaderSize, BreadcrumbItem, DataGridSize, NeoActivityHeaderProps, NeoActivityIndicatorCellProps, NeoAvatarProps, NeoBadgeProps, NeoBannerProps, NeoBreadcrumbLinkProps, NeoBreadcrumbsProps, NeoButtonGroupProps, NeoButtonProps, NeoCheckboxProps, NeoCodeSnippetProps, NeoDataGridCellContentProps, NeoDataGridHeaderLabelProps, NeoDataGridProps, NeoDatePickerProps, NeoDividerProps, NeoDotProps, NeoFilterChipProps, NeoFooterProps, NeoIconButtonProps, NeoInfiniteScrollGridProps, NeoInputFieldProps, NeoListItemButtonProps, NeoListItemProps, NeoLoadingSpinnerProps, NeoMarketplaceCardProps, NeoMenuItemProps, NeoMenuProps, NeoModalContentProps, NeoModalFooterProps, NeoModalHeaderProps, NeoModalProps, NeoMultiBadgesCellProps, NeoNavigationItemProps, NeoPageContentProps, NeoPaginatedGridProps, NeoProgressbarProps, NeoQuickFilterProps, NeoRadioProps, NeoSearchChipProps, NeoSelectProps, NeoSkeletonProps, NeoStatusBadgeCellProps, NeoStatusBannerProps, NeoTabProps, NeoTagProps, NeoToastProps, NeoToggleProps, NeoToolbarProps, NeoTooltipProps, NeoTreeItemData, NeoTreeItemProps, NeoTreeViewProps, NeoTypologyControlProps, NeoUserAvatarCellProps };
|