@moderneinc/neo-styled-components 5.0.0-next.bd2a49 → 5.0.0-next.d2d555
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 +9 -1
- package/dist/Badge/Badge.d.ts +16 -2
- package/dist/DataGrid/DataGrid.d.ts +1 -1
- package/dist/DataGrid/DataGrid.styles.d.ts +3 -0
- package/dist/DataGridCell/DataGridCell.d.ts +0 -16
- package/dist/DataGridHeaderCell/DataGridHeaderCell.d.ts +0 -37
- package/dist/DatePickerListItem/DatePickerListItem.d.ts +2 -22
- package/dist/DatePickerMenu/DatePickerMenu.d.ts +2 -22
- package/dist/InputField/InputField.d.ts +12 -1
- package/dist/ListItemButton/ListItemButton.d.ts +12 -1
- package/dist/MenuItem/MenuItem.d.ts +1 -1
- package/dist/NavigationAvatar/NavigationAvatar.d.ts +2 -2
- package/dist/NavigationItem/NavigationItem.d.ts +14 -2
- package/dist/NeoActionsCell/NeoActionsCell.d.ts +9 -0
- package/dist/NeoAvatarCell/NeoAvatarCell.d.ts +27 -0
- package/dist/NeoIconCell/NeoIconCell.d.ts +14 -0
- package/dist/NeoLogoCell/NeoLogoCell.d.ts +24 -0
- package/dist/NeoProgressCell/NeoProgressCell.d.ts +21 -0
- package/dist/NeoStatusCell/NeoStatusCell.d.ts +30 -0
- package/dist/PageContent/PageContent.d.ts +12 -1
- package/dist/RadioButtonWithText/RadioButtonWithText.d.ts +2 -22
- package/dist/SelectField/SelectField.d.ts +64 -0
- package/dist/SideNav/SideNav.d.ts +2 -22
- package/dist/TabPanel/TabPanel.d.ts +47 -0
- package/dist/Table/Table.d.ts +64 -0
- package/dist/Tag/Tag.d.ts +1 -2
- package/dist/ToggleButton/ToggleButton.d.ts +13 -18
- package/dist/ToggleButtonGroup/ToggleButtonGroup.d.ts +26 -0
- package/dist/ToggleButtonWithText/ToggleButtonWithText.d.ts +2 -22
- package/dist/TopNav/TopNav.d.ts +2 -22
- package/dist/TourModal/TourModal.d.ts +2 -22
- package/dist/index.d.ts +499 -94
- package/dist/index.esm.js +800 -335
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +816 -332
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactNode, ElementType, HTMLAttributes, ComponentType, ComponentPropsWithoutRef } from 'react';
|
|
4
|
-
import { GridDensity, GridFilterPanel, ToolbarProps } from '@mui/x-data-grid';
|
|
4
|
+
import { GridDensity, GridRenderCellParams, GridFilterPanel, ToolbarProps } from '@mui/x-data-grid';
|
|
5
5
|
import Chip, { ChipProps } from '@mui/material/Chip';
|
|
6
6
|
import { AlertProps } from '@mui/material/Alert';
|
|
7
7
|
import { LinkProps } from '@mui/material/Link';
|
|
@@ -25,9 +25,10 @@ import { DialogProps } from '@mui/material/Dialog';
|
|
|
25
25
|
import { BoxProps } from '@mui/material/Box';
|
|
26
26
|
import { LinearProgressProps } from '@mui/material/LinearProgress';
|
|
27
27
|
import { RadioProps } from '@mui/material/Radio';
|
|
28
|
+
import * as _mui_system from '@mui/system';
|
|
28
29
|
import { SelectProps } from '@mui/material/Select';
|
|
29
30
|
import { SkeletonProps } from '@mui/material/Skeleton';
|
|
30
|
-
import
|
|
31
|
+
import { TableProps } from '@mui/material/Table';
|
|
31
32
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
32
33
|
import * as _mui_material_Tabs from '@mui/material/Tabs';
|
|
33
34
|
import { TabProps } from '@mui/material/Tab';
|
|
@@ -288,12 +289,25 @@ declare const NeoActivityIndicatorCell: {
|
|
|
288
289
|
displayName: string;
|
|
289
290
|
};
|
|
290
291
|
|
|
292
|
+
type BadgeSize = 'small' | 'medium';
|
|
293
|
+
type BadgeVariant = 'filled' | 'outlined';
|
|
291
294
|
interface NeoBadgeProps extends Omit<ChipProps, 'variant' | 'size'> {
|
|
292
295
|
/**
|
|
293
|
-
* The color/state of the badge
|
|
296
|
+
* The color/state of the badge. Ignored when `variant="outlined"`.
|
|
294
297
|
* @default "default"
|
|
295
298
|
*/
|
|
296
299
|
color?: 'default' | 'error' | 'warning' | 'success' | 'info';
|
|
300
|
+
/**
|
|
301
|
+
* Visual density of the badge. `small` is 20px tall, `medium` is 24px tall.
|
|
302
|
+
* @default "medium"
|
|
303
|
+
*/
|
|
304
|
+
size?: BadgeSize;
|
|
305
|
+
/**
|
|
306
|
+
* Visual treatment. `filled` uses a per-color tinted background;
|
|
307
|
+
* `outlined` uses a transparent background with a neutral secondary border.
|
|
308
|
+
* @default "filled"
|
|
309
|
+
*/
|
|
310
|
+
variant?: BadgeVariant;
|
|
297
311
|
}
|
|
298
312
|
/**
|
|
299
313
|
* NeoBadge - Status badge component based on MUI Chip
|
|
@@ -307,7 +321,7 @@ interface NeoBadgeProps extends Omit<ChipProps, 'variant' | 'size'> {
|
|
|
307
321
|
* - Label → label prop
|
|
308
322
|
*/
|
|
309
323
|
declare const NeoBadge: {
|
|
310
|
-
(props: NeoBadgeProps): react_jsx_runtime.JSX.Element;
|
|
324
|
+
({ size, variant, ...props }: NeoBadgeProps): react_jsx_runtime.JSX.Element;
|
|
311
325
|
displayName: string;
|
|
312
326
|
};
|
|
313
327
|
|
|
@@ -835,7 +849,7 @@ interface NeoDataGridProps extends Omit<DataGridProProps, 'slots'> {
|
|
|
835
849
|
* - `size` → Row heights (compact: 42px, standard: 48px, comfortable: 56px) and header heights (compact: 38px, standard: 44px, comfortable: 52px)
|
|
836
850
|
*
|
|
837
851
|
* Design tokens used:
|
|
838
|
-
* - Colors: semanticColors.border.primary, semanticColors.
|
|
852
|
+
* - Colors: semanticColors.border.primary, semanticColors.surfaces.dataGrid.*
|
|
839
853
|
* - Typography: typography.fontFamily.body, typography.fontSize.sm
|
|
840
854
|
* - Spacing: spacing.spacing_*
|
|
841
855
|
*
|
|
@@ -859,6 +873,9 @@ declare namespace NeoDataGrid {
|
|
|
859
873
|
var displayName: string;
|
|
860
874
|
}
|
|
861
875
|
|
|
876
|
+
declare const getDataGridHeaderStyles: () => SxProps<Theme>;
|
|
877
|
+
declare const getDataGridRowStyles: () => SxProps<Theme>;
|
|
878
|
+
|
|
862
879
|
interface NeoInfiniteScrollGridProps extends Omit<NeoDataGridProps, 'slots'> {
|
|
863
880
|
/**
|
|
864
881
|
* Callback when load more is triggered - either by scrolling or clicking button
|
|
@@ -1051,6 +1068,129 @@ declare const NeoMultiBadgesCell: {
|
|
|
1051
1068
|
displayName: string;
|
|
1052
1069
|
};
|
|
1053
1070
|
|
|
1071
|
+
interface NeoActionsCellProps extends Omit<GridRenderCellParams, 'api'> {
|
|
1072
|
+
api?: GridRenderCellParams['api'];
|
|
1073
|
+
children: ReactNode;
|
|
1074
|
+
position?: 'bottom-end' | 'bottom-start' | 'top-end' | 'top-start';
|
|
1075
|
+
suppressChildrenValidation?: boolean;
|
|
1076
|
+
}
|
|
1077
|
+
declare function NeoActionsCell(props: NeoActionsCellProps): react_jsx_runtime.JSX.Element;
|
|
1078
|
+
|
|
1079
|
+
type NeoAvatarCellBase = {
|
|
1080
|
+
disabled?: boolean;
|
|
1081
|
+
};
|
|
1082
|
+
type NeoAvatarCellEmpty = NeoAvatarCellBase & {
|
|
1083
|
+
empty: true;
|
|
1084
|
+
name?: never;
|
|
1085
|
+
src?: never;
|
|
1086
|
+
colorIndex?: never;
|
|
1087
|
+
label?: never;
|
|
1088
|
+
};
|
|
1089
|
+
type NeoAvatarCellContent = NeoAvatarCellBase & {
|
|
1090
|
+
empty?: false;
|
|
1091
|
+
name?: string;
|
|
1092
|
+
src?: string;
|
|
1093
|
+
colorIndex?: number;
|
|
1094
|
+
label?: string;
|
|
1095
|
+
};
|
|
1096
|
+
type NeoAvatarCellProps = NeoAvatarCellEmpty | NeoAvatarCellContent;
|
|
1097
|
+
/**
|
|
1098
|
+
* NeoAvatarCell — DataGrid cell displaying a user avatar with optional label.
|
|
1099
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=13425-1725
|
|
1100
|
+
*/
|
|
1101
|
+
declare const NeoAvatarCell: {
|
|
1102
|
+
({ name, src, colorIndex, label, disabled, empty, }: NeoAvatarCellProps): react_jsx_runtime.JSX.Element;
|
|
1103
|
+
displayName: string;
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
interface NeoIconCellProps {
|
|
1107
|
+
icon?: ReactNode;
|
|
1108
|
+
ariaLabel?: string;
|
|
1109
|
+
disabled?: boolean;
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* NeoIconCell — Icon cell for DataGrid. Renders an icon centered in the cell.
|
|
1113
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=13272-9345
|
|
1114
|
+
*/
|
|
1115
|
+
declare const NeoIconCell: {
|
|
1116
|
+
({ icon, ariaLabel, disabled }: NeoIconCellProps): react_jsx_runtime.JSX.Element | null;
|
|
1117
|
+
displayName: string;
|
|
1118
|
+
};
|
|
1119
|
+
|
|
1120
|
+
type NeoLogoCellNoSrc = {
|
|
1121
|
+
src?: undefined;
|
|
1122
|
+
alt?: string;
|
|
1123
|
+
disabled?: boolean;
|
|
1124
|
+
};
|
|
1125
|
+
type NeoLogoCellWithSrc = {
|
|
1126
|
+
src: string;
|
|
1127
|
+
alt: string;
|
|
1128
|
+
disabled?: boolean;
|
|
1129
|
+
};
|
|
1130
|
+
type NeoLogoCellProps = NeoLogoCellNoSrc | NeoLogoCellWithSrc;
|
|
1131
|
+
/**
|
|
1132
|
+
* NeoLogoCell — DataGrid cell displaying a raster or SVG logo image.
|
|
1133
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=13278-9558
|
|
1134
|
+
*
|
|
1135
|
+
* Kept separate from NeoIconCell to match Neo's Icon/Logo component split:
|
|
1136
|
+
* - NeoIconCell: MUI SvgIcon components
|
|
1137
|
+
* - NeoLogoCell: raster or SVG image URLs (img tag)
|
|
1138
|
+
*/
|
|
1139
|
+
declare const NeoLogoCell: {
|
|
1140
|
+
({ src, alt, disabled }: NeoLogoCellProps): react_jsx_runtime.JSX.Element;
|
|
1141
|
+
displayName: string;
|
|
1142
|
+
};
|
|
1143
|
+
|
|
1144
|
+
type NeoProgressCellBase = {
|
|
1145
|
+
disabled?: boolean;
|
|
1146
|
+
};
|
|
1147
|
+
type NeoProgressCellEmpty = NeoProgressCellBase & {
|
|
1148
|
+
empty: true;
|
|
1149
|
+
value?: never;
|
|
1150
|
+
};
|
|
1151
|
+
type NeoProgressCellContent = NeoProgressCellBase & {
|
|
1152
|
+
empty?: false;
|
|
1153
|
+
value?: number;
|
|
1154
|
+
};
|
|
1155
|
+
type NeoProgressCellProps = NeoProgressCellEmpty | NeoProgressCellContent;
|
|
1156
|
+
/**
|
|
1157
|
+
* NeoProgressCell — DataGrid cell displaying a linear progress indicator.
|
|
1158
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=13425-5378
|
|
1159
|
+
*/
|
|
1160
|
+
declare const NeoProgressCell: {
|
|
1161
|
+
({ value, disabled, empty, }: NeoProgressCellProps): react_jsx_runtime.JSX.Element;
|
|
1162
|
+
displayName: string;
|
|
1163
|
+
};
|
|
1164
|
+
|
|
1165
|
+
type NeoStatusCellVariant = 'success' | 'error' | 'warning' | 'info' | 'neutral';
|
|
1166
|
+
type NeoStatusCellBase = {
|
|
1167
|
+
disabled?: boolean;
|
|
1168
|
+
};
|
|
1169
|
+
type NeoStatusCellEmpty = NeoStatusCellBase & {
|
|
1170
|
+
empty: true;
|
|
1171
|
+
label?: never;
|
|
1172
|
+
icon?: never;
|
|
1173
|
+
variant?: never;
|
|
1174
|
+
details?: never;
|
|
1175
|
+
};
|
|
1176
|
+
type NeoStatusCellContent = NeoStatusCellBase & {
|
|
1177
|
+
empty?: false;
|
|
1178
|
+
label: string;
|
|
1179
|
+
icon?: ReactNode;
|
|
1180
|
+
variant?: NeoStatusCellVariant;
|
|
1181
|
+
/** Error details shown in a hover tooltip. Clipboard actions should be handled by the consuming app. */
|
|
1182
|
+
details?: string;
|
|
1183
|
+
};
|
|
1184
|
+
type NeoStatusCellProps = NeoStatusCellEmpty | NeoStatusCellContent;
|
|
1185
|
+
/**
|
|
1186
|
+
* NeoStatusCell — DataGrid cell displaying an icon + label chip with optional error tooltip.
|
|
1187
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=13272-8705
|
|
1188
|
+
*/
|
|
1189
|
+
declare const NeoStatusCell: {
|
|
1190
|
+
({ icon, label, details, disabled, variant, empty, }: NeoStatusCellProps): react_jsx_runtime.JSX.Element;
|
|
1191
|
+
displayName: string;
|
|
1192
|
+
};
|
|
1193
|
+
|
|
1054
1194
|
/**
|
|
1055
1195
|
* NeoDataGridColumnsButton - Button to open the columns panel in DataGrid
|
|
1056
1196
|
*
|
|
@@ -1111,7 +1251,7 @@ interface NeoMenuItemProps extends MenuItemProps {
|
|
|
1111
1251
|
/**
|
|
1112
1252
|
* NeoMenuItem - Menu item component based on MUI MenuItem
|
|
1113
1253
|
*
|
|
1114
|
-
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4159-
|
|
1254
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025-26?node-id=4159-8714
|
|
1115
1255
|
*
|
|
1116
1256
|
* @example
|
|
1117
1257
|
* ```tsx
|
|
@@ -1185,42 +1325,6 @@ declare const NeoDataGridFilterPanel: {
|
|
|
1185
1325
|
declare function SortedDescendingIcon(): react_jsx_runtime.JSX.Element;
|
|
1186
1326
|
declare function SortedAscendingIcon(): react_jsx_runtime.JSX.Element;
|
|
1187
1327
|
declare function UnsortedIcon(): react_jsx_runtime.JSX.Element;
|
|
1188
|
-
/**
|
|
1189
|
-
* Utility function to get DataGrid sx styles for header cells
|
|
1190
|
-
*
|
|
1191
|
-
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4212-41618
|
|
1192
|
-
*
|
|
1193
|
-
* Figma prop mappings:
|
|
1194
|
-
* - `size` → `size`: Figma "condensed" → MUI 'compact', Figma "default" → MUI 'standard', Figma "relaxed" → MUI 'comfortable'
|
|
1195
|
-
*
|
|
1196
|
-
* Design tokens used:
|
|
1197
|
-
* - Background: colors.grey[50] (#f9fafb)
|
|
1198
|
-
* - Border: semanticColors.border.primary
|
|
1199
|
-
* - Padding: 12px vertical, 24px horizontal
|
|
1200
|
-
* - Gap: 12px
|
|
1201
|
-
*
|
|
1202
|
-
*
|
|
1203
|
-
* @param size - Header row size variant (affects header cell height)
|
|
1204
|
-
* @returns SxProps for DataGrid header cells
|
|
1205
|
-
*
|
|
1206
|
-
* @example
|
|
1207
|
-
* import { getDataGridHeaderStyles, SortedDescendingIcon, SortedAscendingIcon, UnsortedIcon } from './DataGridHeaderCell'
|
|
1208
|
-
*
|
|
1209
|
-
* <DataGrid
|
|
1210
|
-
* columnHeaderHeight={38} // for compact (Figma: condensed)
|
|
1211
|
-
* sx={{
|
|
1212
|
-
* ...getDataGridHeaderStyles(),
|
|
1213
|
-
* }}
|
|
1214
|
-
* slots={{
|
|
1215
|
-
* columnSortedDescendingIcon: SortedDescendingIcon,
|
|
1216
|
-
* columnSortedAscendingIcon: SortedAscendingIcon,
|
|
1217
|
-
* columnUnsortedIcon: UnsortedIcon,
|
|
1218
|
-
* }}
|
|
1219
|
-
* rows={rows}
|
|
1220
|
-
* columns={columns}
|
|
1221
|
-
* />
|
|
1222
|
-
*/
|
|
1223
|
-
declare const getDataGridHeaderStyles: () => SxProps<Theme>;
|
|
1224
1328
|
|
|
1225
1329
|
interface NeoDataGridHeaderLabelProps {
|
|
1226
1330
|
/**
|
|
@@ -1474,6 +1578,7 @@ declare const NeoIconButton: {
|
|
|
1474
1578
|
};
|
|
1475
1579
|
|
|
1476
1580
|
type InputFieldSize = 'small' | 'medium';
|
|
1581
|
+
|
|
1477
1582
|
interface NeoInputFieldProps extends Omit<InputBaseProps, 'size'> {
|
|
1478
1583
|
/**
|
|
1479
1584
|
* The size of the input field
|
|
@@ -1741,8 +1846,8 @@ interface NeoNavigationAvatarProps extends Omit<NeoGeneralAvatarProps, 'size'> {
|
|
|
1741
1846
|
/**
|
|
1742
1847
|
* NeoNavigationAvatar - Compact avatar for navigation contexts
|
|
1743
1848
|
*
|
|
1744
|
-
* Wraps NeoGeneralAvatar (size="small") in a
|
|
1745
|
-
* providing
|
|
1849
|
+
* Wraps NeoGeneralAvatar (size="small") in a 40px container,
|
|
1850
|
+
* providing an interactive area for navigation UI.
|
|
1746
1851
|
*
|
|
1747
1852
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=11325-102
|
|
1748
1853
|
*/
|
|
@@ -1751,6 +1856,58 @@ declare const NeoNavigationAvatar: {
|
|
|
1751
1856
|
displayName: string;
|
|
1752
1857
|
};
|
|
1753
1858
|
|
|
1859
|
+
declare module '@mui/material/Chip' {
|
|
1860
|
+
interface ChipPropsColorOverrides {
|
|
1861
|
+
violet: true;
|
|
1862
|
+
beta: true;
|
|
1863
|
+
}
|
|
1864
|
+
interface ChipPropsSizeOverrides {
|
|
1865
|
+
large: true;
|
|
1866
|
+
}
|
|
1867
|
+
interface ChipPropsVariantOverrides {
|
|
1868
|
+
outlined: true;
|
|
1869
|
+
filled: true;
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
type NeoTagOwnProps = {
|
|
1873
|
+
/**
|
|
1874
|
+
* The size of the tag
|
|
1875
|
+
* @figma Size (Small|Medium|Large)
|
|
1876
|
+
* @default "small"
|
|
1877
|
+
*/
|
|
1878
|
+
size?: 'small' | 'medium' | 'large';
|
|
1879
|
+
/**
|
|
1880
|
+
* The variant style of the tag
|
|
1881
|
+
* @figma Variant (Subtle|Filled)
|
|
1882
|
+
* @default "outlined"
|
|
1883
|
+
*/
|
|
1884
|
+
variant?: 'outlined' | 'filled';
|
|
1885
|
+
/**
|
|
1886
|
+
* The intent/purpose of the tag
|
|
1887
|
+
* @figma Intent (Neutral|Error|Warning|Success|Info|Violet)
|
|
1888
|
+
* @default "default"
|
|
1889
|
+
*/
|
|
1890
|
+
intent?: 'default' | 'error' | 'warning' | 'success' | 'info' | 'violet' | 'beta';
|
|
1891
|
+
};
|
|
1892
|
+
type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<ChipProps, keyof NeoTagOwnProps | 'component' | 'color'> & Omit<ComponentPropsWithoutRef<C>, keyof NeoTagOwnProps | keyof ChipProps> & {
|
|
1893
|
+
component?: C;
|
|
1894
|
+
};
|
|
1895
|
+
/**
|
|
1896
|
+
* NeoTag - Small pill-shaped label component based on MUI Chip
|
|
1897
|
+
*
|
|
1898
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4120-34533
|
|
1899
|
+
*
|
|
1900
|
+
* Figma Props Mapping:
|
|
1901
|
+
* - Size (Small|Medium|Large) → size (small|medium|large)
|
|
1902
|
+
* - Variant (Subtle|Filled) → variant (outlined|filled)
|
|
1903
|
+
* - Intent (Neutral|Error|Warning|Success|Info|Violet|Beta) → intent (default|error|warning|success|info|violet|beta)
|
|
1904
|
+
* - TEXT Label → label prop
|
|
1905
|
+
*/
|
|
1906
|
+
declare function NeoTag<C extends ElementType = typeof Chip>({ size, variant, intent, ...props }: NeoTagProps<C>): react_jsx_runtime.JSX.Element;
|
|
1907
|
+
declare namespace NeoTag {
|
|
1908
|
+
var displayName: string;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1754
1911
|
type NeoNavigationItemOwnProps = {
|
|
1755
1912
|
/**
|
|
1756
1913
|
* Icon element to display
|
|
@@ -1767,10 +1924,21 @@ type NeoNavigationItemOwnProps = {
|
|
|
1767
1924
|
*/
|
|
1768
1925
|
selected?: boolean;
|
|
1769
1926
|
/**
|
|
1770
|
-
* Optional tag badge content (e.g.,
|
|
1927
|
+
* Optional tag badge content (e.g., "Beta")
|
|
1771
1928
|
* @figma Tag
|
|
1772
1929
|
*/
|
|
1773
1930
|
tag?: string;
|
|
1931
|
+
/**
|
|
1932
|
+
* Slot props for internal sub-components.
|
|
1933
|
+
*/
|
|
1934
|
+
slotProps?: {
|
|
1935
|
+
/**
|
|
1936
|
+
* Props forwarded to the NeoTag badge rendered when `tag` is set.
|
|
1937
|
+
* Override `intent`, `variant`, or `size` to change appearance — e.g.
|
|
1938
|
+
* `{ variant: 'outlined', intent: 'default' }` for a calmer grey badge.
|
|
1939
|
+
*/
|
|
1940
|
+
badge?: NeoTagOwnProps;
|
|
1941
|
+
};
|
|
1774
1942
|
/**
|
|
1775
1943
|
* Additional content
|
|
1776
1944
|
*/
|
|
@@ -1784,7 +1952,7 @@ type NeoNavigationItemProps<C extends ElementType = typeof ButtonBase__default>
|
|
|
1784
1952
|
*
|
|
1785
1953
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=8455-6120
|
|
1786
1954
|
*/
|
|
1787
|
-
declare function NeoNavigationItem<C extends ElementType = typeof ButtonBase__default>({ icon, label, selected, tag, children, ...props }: NeoNavigationItemProps<C>): react_jsx_runtime.JSX.Element;
|
|
1955
|
+
declare function NeoNavigationItem<C extends ElementType = typeof ButtonBase__default>({ icon, label, selected, tag, slotProps, children, ...props }: NeoNavigationItemProps<C>): react_jsx_runtime.JSX.Element;
|
|
1788
1956
|
declare namespace NeoNavigationItem {
|
|
1789
1957
|
var displayName: string;
|
|
1790
1958
|
}
|
|
@@ -1861,6 +2029,17 @@ interface NeoPageContentProps extends BoxProps {
|
|
|
1861
2029
|
* @default false
|
|
1862
2030
|
*/
|
|
1863
2031
|
disableGutters?: boolean;
|
|
2032
|
+
/**
|
|
2033
|
+
* Page layout mode.
|
|
2034
|
+
* - `default`: standard centered/max-width-constrained content with
|
|
2035
|
+
* gutters. Best for content-driven pages (settings, forms, lists).
|
|
2036
|
+
* - `fullBleed`: removes max-width and horizontal/bottom padding, lets
|
|
2037
|
+
* the content area flex-fill the viewport. Best for full-height
|
|
2038
|
+
* layouts (sidebar + panel canvases, builders, explorers). Title
|
|
2039
|
+
* and breadcrumbs still render — they sit at the leading edge.
|
|
2040
|
+
* @default 'default'
|
|
2041
|
+
*/
|
|
2042
|
+
layout?: 'default' | 'fullBleed';
|
|
1864
2043
|
/**
|
|
1865
2044
|
* Loading state - shows spinner while content loads
|
|
1866
2045
|
* @default false
|
|
@@ -1931,7 +2110,7 @@ interface NeoPageContentProps extends BoxProps {
|
|
|
1931
2110
|
* </NeoPageContent>
|
|
1932
2111
|
* ```
|
|
1933
2112
|
*/
|
|
1934
|
-
declare function NeoPageContent({ pageTitle, subtitle, breadcrumbs, action, sticky, contentMaxWidth, centerContent, disableGutters, isLoading, showBackToTop, children, sx, ...boxProps }: NeoPageContentProps): react_jsx_runtime.JSX.Element;
|
|
2113
|
+
declare function NeoPageContent({ pageTitle, subtitle, breadcrumbs, action, sticky, contentMaxWidth: contentMaxWidthProp, centerContent, disableGutters: disableGuttersProp, isLoading, showBackToTop, layout, children, sx, ...boxProps }: NeoPageContentProps): react_jsx_runtime.JSX.Element;
|
|
1935
2114
|
declare namespace NeoPageContent {
|
|
1936
2115
|
var displayName: string;
|
|
1937
2116
|
}
|
|
@@ -2104,6 +2283,13 @@ declare const NeoRadio: {
|
|
|
2104
2283
|
displayName: string;
|
|
2105
2284
|
};
|
|
2106
2285
|
|
|
2286
|
+
/**
|
|
2287
|
+
* NeoRadioButtonWithText
|
|
2288
|
+
*
|
|
2289
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=11565-7682
|
|
2290
|
+
*/
|
|
2291
|
+
declare const NeoRadioButtonWithText: StyledComponent<_mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2292
|
+
|
|
2107
2293
|
interface NeoSearchChipProps extends Omit<InputBaseProps, 'startAdornment' | 'endAdornment' | 'type'> {
|
|
2108
2294
|
/**
|
|
2109
2295
|
* Handler for clearing the search value (shows X icon when provided and value is non-empty)
|
|
@@ -2123,6 +2309,72 @@ declare const NeoSearchChip: {
|
|
|
2123
2309
|
displayName: string;
|
|
2124
2310
|
};
|
|
2125
2311
|
|
|
2312
|
+
interface NeoSelectFieldOption {
|
|
2313
|
+
value: string | number;
|
|
2314
|
+
label: ReactNode;
|
|
2315
|
+
disabled?: boolean;
|
|
2316
|
+
}
|
|
2317
|
+
interface NeoSelectFieldProps extends Omit<SelectProps, 'size' | 'variant' | 'error' | 'children'> {
|
|
2318
|
+
/**
|
|
2319
|
+
* Form-control size.
|
|
2320
|
+
* @default 'medium'
|
|
2321
|
+
*/
|
|
2322
|
+
size?: InputFieldSize;
|
|
2323
|
+
/**
|
|
2324
|
+
* Show error/destructive state with red label + helper text styling.
|
|
2325
|
+
* @default false
|
|
2326
|
+
*/
|
|
2327
|
+
destructive?: boolean;
|
|
2328
|
+
/** Label text rendered above the select. */
|
|
2329
|
+
label?: string;
|
|
2330
|
+
/** Show required indicator (asterisk) next to the label. @default false */
|
|
2331
|
+
required?: boolean;
|
|
2332
|
+
/** Optional info icon rendered next to the label. */
|
|
2333
|
+
infoIcon?: ReactNode;
|
|
2334
|
+
/** Helper text rendered below the select (normal state). */
|
|
2335
|
+
helperText?: string;
|
|
2336
|
+
/**
|
|
2337
|
+
* Error message rendered below the select when `destructive` is true.
|
|
2338
|
+
* Takes precedence over helperText when destructive.
|
|
2339
|
+
*/
|
|
2340
|
+
errorMessage?: string;
|
|
2341
|
+
/**
|
|
2342
|
+
* Convenience option list. Each entry becomes a NeoSelectOption.
|
|
2343
|
+
* Use `children` instead for custom option content.
|
|
2344
|
+
*/
|
|
2345
|
+
options?: NeoSelectFieldOption[];
|
|
2346
|
+
/** Custom option content. Overrides `options` if both are provided. */
|
|
2347
|
+
children?: ReactNode;
|
|
2348
|
+
}
|
|
2349
|
+
/**
|
|
2350
|
+
* NeoSelectField — composite of NeoInputField's form chrome (label,
|
|
2351
|
+
* helper text, error state) wrapped around NeoSelect. Mirrors the
|
|
2352
|
+
* MUI `<TextField select>` ergonomics with Neo design tokens, so
|
|
2353
|
+
* consumers don't have to compose the two manually.
|
|
2354
|
+
*
|
|
2355
|
+
* @example
|
|
2356
|
+
* <NeoSelectField
|
|
2357
|
+
* label="Response format"
|
|
2358
|
+
* value={format}
|
|
2359
|
+
* onChange={e => setFormat(e.target.value)}
|
|
2360
|
+
* options={[
|
|
2361
|
+
* { value: 'json', label: 'JSON' },
|
|
2362
|
+
* { value: 'plain', label: 'Plain text' },
|
|
2363
|
+
* ]}
|
|
2364
|
+
* />
|
|
2365
|
+
*/
|
|
2366
|
+
declare const NeoSelectField: {
|
|
2367
|
+
({ size, destructive, label, required, infoIcon, helperText, errorMessage, options, children, disabled, id, ...selectProps }: NeoSelectFieldProps): react_jsx_runtime.JSX.Element;
|
|
2368
|
+
displayName: string;
|
|
2369
|
+
};
|
|
2370
|
+
|
|
2371
|
+
/**
|
|
2372
|
+
* NeoSideNav
|
|
2373
|
+
*
|
|
2374
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4065-3425
|
|
2375
|
+
*/
|
|
2376
|
+
declare const NeoSideNav: StyledComponent<_mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2377
|
+
|
|
2126
2378
|
/**
|
|
2127
2379
|
* Extended props for NeoSkeleton component
|
|
2128
2380
|
*/
|
|
@@ -2161,6 +2413,7 @@ declare const NeoSkeleton: {
|
|
|
2161
2413
|
|
|
2162
2414
|
type Intent$1 = 'success' | 'error' | 'warning' | 'offline' | 'info';
|
|
2163
2415
|
type AlertType = 'outlined' | 'filled';
|
|
2416
|
+
type AlertSize = 'default' | 'compact';
|
|
2164
2417
|
interface NeoAlertProps extends Omit<AlertProps, 'severity' | 'variant' | 'color'> {
|
|
2165
2418
|
/**
|
|
2166
2419
|
* The intent/purpose of the alert
|
|
@@ -2174,6 +2427,13 @@ interface NeoAlertProps extends Omit<AlertProps, 'severity' | 'variant' | 'color
|
|
|
2174
2427
|
* @figma Type
|
|
2175
2428
|
*/
|
|
2176
2429
|
type?: AlertType;
|
|
2430
|
+
/**
|
|
2431
|
+
* Vertical density. `default` is page-level (64px fixed height,
|
|
2432
|
+
* supports title + description). `compact` is inline-panel use
|
|
2433
|
+
* (auto height, 40px min, single-line optimized for terse messages).
|
|
2434
|
+
* @default "default"
|
|
2435
|
+
*/
|
|
2436
|
+
size?: AlertSize;
|
|
2177
2437
|
/**
|
|
2178
2438
|
* The title text displayed in the alert
|
|
2179
2439
|
*/
|
|
@@ -2203,7 +2463,69 @@ interface NeoAlertProps extends Omit<AlertProps, 'severity' | 'variant' | 'color
|
|
|
2203
2463
|
* - Show Button → action prop presence
|
|
2204
2464
|
*/
|
|
2205
2465
|
declare const NeoAlert: {
|
|
2206
|
-
({ intent, type, title, description, icon, action, ...props }: NeoAlertProps): react_jsx_runtime.JSX.Element;
|
|
2466
|
+
({ intent, type, size, title, description, icon, action, ...props }: NeoAlertProps): react_jsx_runtime.JSX.Element;
|
|
2467
|
+
displayName: string;
|
|
2468
|
+
};
|
|
2469
|
+
|
|
2470
|
+
type TableSize = 'small' | 'medium';
|
|
2471
|
+
type TableVariant = 'bordered' | 'plain';
|
|
2472
|
+
type CellAlign = 'left' | 'center' | 'right';
|
|
2473
|
+
interface NeoTableColumn {
|
|
2474
|
+
/** Unique key — looked up against each row to find the cell value. */
|
|
2475
|
+
key: string;
|
|
2476
|
+
/** Header label rendered in the thead. */
|
|
2477
|
+
header: ReactNode;
|
|
2478
|
+
/** Cell text alignment. @default 'left' */
|
|
2479
|
+
align?: CellAlign;
|
|
2480
|
+
/** Column width — any CSS length (e.g. '120px', '20%'). */
|
|
2481
|
+
width?: string;
|
|
2482
|
+
}
|
|
2483
|
+
interface NeoTableProps extends Omit<TableProps, 'size'> {
|
|
2484
|
+
/** Column definitions. Order in the array determines render order. */
|
|
2485
|
+
columns: NeoTableColumn[];
|
|
2486
|
+
/**
|
|
2487
|
+
* Row data. Each row is a record keyed by `column.key`. Cell values
|
|
2488
|
+
* may be any ReactNode (strings, badges, icons, etc.).
|
|
2489
|
+
*/
|
|
2490
|
+
rows: Array<Record<string, ReactNode>>;
|
|
2491
|
+
/**
|
|
2492
|
+
* Cell density.
|
|
2493
|
+
* - 'small': tight padding for dense lists.
|
|
2494
|
+
* - 'medium': comfortable padding for read-heavy tables.
|
|
2495
|
+
* @default 'small'
|
|
2496
|
+
*/
|
|
2497
|
+
size?: TableSize;
|
|
2498
|
+
/**
|
|
2499
|
+
* Container chrome.
|
|
2500
|
+
* - 'bordered': container border + borderRadius.card.
|
|
2501
|
+
* - 'plain': no container chrome — for embedding inside an existing surface.
|
|
2502
|
+
* @default 'bordered'
|
|
2503
|
+
*/
|
|
2504
|
+
variant?: TableVariant;
|
|
2505
|
+
/** Optional accessible label for the table. */
|
|
2506
|
+
ariaLabel?: string;
|
|
2507
|
+
}
|
|
2508
|
+
/**
|
|
2509
|
+
* NeoTable — lightweight read-only table for static data (schema rows,
|
|
2510
|
+
* key/value summaries, response metadata). For interactive grids with
|
|
2511
|
+
* sorting / filtering / pagination, use NeoDataGrid instead.
|
|
2512
|
+
*
|
|
2513
|
+
* @example
|
|
2514
|
+
* <NeoTable
|
|
2515
|
+
* columns={[
|
|
2516
|
+
* { key: 'name', header: 'Property' },
|
|
2517
|
+
* { key: 'type', header: 'Type', align: 'center', width: '120px' },
|
|
2518
|
+
* { key: 'description', header: 'Description' },
|
|
2519
|
+
* ]}
|
|
2520
|
+
* rows={[
|
|
2521
|
+
* { name: 'id', type: 'string', description: 'Resource identifier' },
|
|
2522
|
+
* { name: 'count', type: 'number', description: 'Item count' },
|
|
2523
|
+
* ]}
|
|
2524
|
+
* size="small"
|
|
2525
|
+
* />
|
|
2526
|
+
*/
|
|
2527
|
+
declare const NeoTable: {
|
|
2528
|
+
({ columns, rows, size, variant, ariaLabel, ...tableProps }: NeoTableProps): react_jsx_runtime.JSX.Element;
|
|
2207
2529
|
displayName: string;
|
|
2208
2530
|
};
|
|
2209
2531
|
|
|
@@ -2254,57 +2576,50 @@ declare const NeoTab: {
|
|
|
2254
2576
|
displayName: string;
|
|
2255
2577
|
};
|
|
2256
2578
|
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
}
|
|
2262
|
-
interface ChipPropsSizeOverrides {
|
|
2263
|
-
large: true;
|
|
2264
|
-
}
|
|
2265
|
-
interface ChipPropsVariantOverrides {
|
|
2266
|
-
outlined: true;
|
|
2267
|
-
filled: true;
|
|
2268
|
-
}
|
|
2269
|
-
}
|
|
2270
|
-
type NeoTagOwnProps = {
|
|
2271
|
-
/**
|
|
2272
|
-
* The size of the tag
|
|
2273
|
-
* @figma Size (Small|Medium|Large)
|
|
2274
|
-
* @default "small"
|
|
2275
|
-
*/
|
|
2276
|
-
size?: 'small' | 'medium' | 'large';
|
|
2579
|
+
type TabPanelVariant = 'default' | 'flush';
|
|
2580
|
+
interface NeoTabPanelProps extends Omit<BoxProps, 'role'> {
|
|
2581
|
+
/** This panel's identity — must match `currentValue` for the panel to render. */
|
|
2582
|
+
value: string | number;
|
|
2277
2583
|
/**
|
|
2278
|
-
* The
|
|
2279
|
-
*
|
|
2280
|
-
*
|
|
2584
|
+
* The currently selected tab value. When equal to `value`, this panel
|
|
2585
|
+
* renders its children. Otherwise the panel is hidden (and removed from
|
|
2586
|
+
* the accessibility tree via `hidden`).
|
|
2281
2587
|
*/
|
|
2282
|
-
|
|
2588
|
+
currentValue: string | number;
|
|
2283
2589
|
/**
|
|
2284
|
-
*
|
|
2285
|
-
*
|
|
2286
|
-
*
|
|
2590
|
+
* Layout density.
|
|
2591
|
+
* - `default`: 16px top padding — for standard content tabs.
|
|
2592
|
+
* - `flush`: zero padding — for full-bleed sidebar/panel/canvas layouts
|
|
2593
|
+
* where content must sit flush against the tab bar's bottom border.
|
|
2594
|
+
* @default 'default'
|
|
2287
2595
|
*/
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
};
|
|
2596
|
+
variant?: TabPanelVariant;
|
|
2597
|
+
/** Panel content. */
|
|
2598
|
+
children?: ReactNode;
|
|
2599
|
+
}
|
|
2293
2600
|
/**
|
|
2294
|
-
*
|
|
2601
|
+
* NeoTabPanel — completes the NeoTabs + NeoTab + NeoTabPanel set.
|
|
2295
2602
|
*
|
|
2296
|
-
*
|
|
2603
|
+
* Lightweight ARIA-compliant tab panel that renders children when its
|
|
2604
|
+
* `value` matches `currentValue`. No MUI Lab / TabContext dependency.
|
|
2297
2605
|
*
|
|
2298
|
-
*
|
|
2299
|
-
*
|
|
2300
|
-
*
|
|
2301
|
-
*
|
|
2302
|
-
*
|
|
2606
|
+
* @example
|
|
2607
|
+
* const [tab, setTab] = useState('overview')
|
|
2608
|
+
* return (
|
|
2609
|
+
* <>
|
|
2610
|
+
* <NeoTabs value={tab} onChange={(_, v) => setTab(v)}>
|
|
2611
|
+
* <NeoTab value="overview" label="Overview" />
|
|
2612
|
+
* <NeoTab value="details" label="Details" />
|
|
2613
|
+
* </NeoTabs>
|
|
2614
|
+
* <NeoTabPanel value="overview" currentValue={tab}>...</NeoTabPanel>
|
|
2615
|
+
* <NeoTabPanel value="details" currentValue={tab} variant="flush">...</NeoTabPanel>
|
|
2616
|
+
* </>
|
|
2617
|
+
* )
|
|
2303
2618
|
*/
|
|
2304
|
-
declare
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
}
|
|
2619
|
+
declare const NeoTabPanel: {
|
|
2620
|
+
({ value, currentValue, variant, children, ...boxProps }: NeoTabPanelProps): react_jsx_runtime.JSX.Element;
|
|
2621
|
+
displayName: string;
|
|
2622
|
+
};
|
|
2308
2623
|
|
|
2309
2624
|
type Intent = 'neutral' | 'info' | 'success' | 'error' | 'warning';
|
|
2310
2625
|
type ToastType = 'outlined' | 'filled';
|
|
@@ -2435,6 +2750,58 @@ declare const NeoToggle: {
|
|
|
2435
2750
|
displayName: string;
|
|
2436
2751
|
};
|
|
2437
2752
|
|
|
2753
|
+
type ToggleButtonSize = 'small' | 'medium';
|
|
2754
|
+
interface NeoToggleButtonProps extends Omit<ToggleButtonProps, 'color' | 'size'> {
|
|
2755
|
+
/**
|
|
2756
|
+
* Size of the toggle button. Set automatically by NeoToggleButtonGroup
|
|
2757
|
+
* when used as a child; set explicitly only for standalone use.
|
|
2758
|
+
* @default 'medium'
|
|
2759
|
+
*/
|
|
2760
|
+
size?: ToggleButtonSize;
|
|
2761
|
+
}
|
|
2762
|
+
/**
|
|
2763
|
+
* NeoToggleButton — a single button in a segmented control. Use inside
|
|
2764
|
+
* NeoToggleButtonGroup; the group manages selection state and forwards
|
|
2765
|
+
* size to its children. Suitable for inline toolbar mode switches
|
|
2766
|
+
* ("Table" / "Raw"). For page-level tabs, prefer NeoButtonTab.
|
|
2767
|
+
*/
|
|
2768
|
+
declare const NeoToggleButton: {
|
|
2769
|
+
({ children, size, ...props }: NeoToggleButtonProps): react_jsx_runtime.JSX.Element;
|
|
2770
|
+
displayName: string;
|
|
2771
|
+
};
|
|
2772
|
+
|
|
2773
|
+
type ToggleButtonGroupSize = 'small' | 'medium';
|
|
2774
|
+
interface NeoToggleButtonGroupProps extends Omit<ToggleButtonGroupProps, 'orientation' | 'color' | 'size' | 'fullWidth'> {
|
|
2775
|
+
/**
|
|
2776
|
+
* Size of the buttons in the group. Forwarded to each NeoToggleButton child.
|
|
2777
|
+
* @default 'medium'
|
|
2778
|
+
*/
|
|
2779
|
+
size?: ToggleButtonGroupSize;
|
|
2780
|
+
}
|
|
2781
|
+
/**
|
|
2782
|
+
* NeoToggleButtonGroup — pill-shaped segmented control wrapping
|
|
2783
|
+
* MUI ToggleButtonGroup with Neo tokens. Use for inline toolbar mode
|
|
2784
|
+
* switches (e.g. "Table" / "Raw" in a panel header). For page-level
|
|
2785
|
+
* tab navigation, prefer NeoButtonTabGroup.
|
|
2786
|
+
*
|
|
2787
|
+
* @example
|
|
2788
|
+
* <NeoToggleButtonGroup value={mode} exclusive onChange={(_, v) => v && setMode(v)} size="small">
|
|
2789
|
+
* <NeoToggleButton value="table">Table</NeoToggleButton>
|
|
2790
|
+
* <NeoToggleButton value="raw">Raw</NeoToggleButton>
|
|
2791
|
+
* </NeoToggleButtonGroup>
|
|
2792
|
+
*/
|
|
2793
|
+
declare const NeoToggleButtonGroup: {
|
|
2794
|
+
({ size, children, ...props }: NeoToggleButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
2795
|
+
displayName: string;
|
|
2796
|
+
};
|
|
2797
|
+
|
|
2798
|
+
/**
|
|
2799
|
+
* NeoToggleButtonWithText
|
|
2800
|
+
*
|
|
2801
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=11565-10485
|
|
2802
|
+
*/
|
|
2803
|
+
declare const NeoToggleButtonWithText: StyledComponent<_mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2804
|
+
|
|
2438
2805
|
interface NeoToolbarProps extends ToolbarProps {
|
|
2439
2806
|
/**
|
|
2440
2807
|
* Toolbar content (typically NeoQuickFilter, NeoButton, NeoToggle, etc.)
|
|
@@ -2577,6 +2944,7 @@ declare const NeoListItem: {
|
|
|
2577
2944
|
displayName: string;
|
|
2578
2945
|
};
|
|
2579
2946
|
|
|
2947
|
+
type ListItemButtonVariant = 'card' | 'nav';
|
|
2580
2948
|
/**
|
|
2581
2949
|
* Props for the NeoListItemButton component
|
|
2582
2950
|
*/
|
|
@@ -2593,6 +2961,15 @@ interface NeoListItemButtonProps extends ListItemButtonProps {
|
|
|
2593
2961
|
* @figma property1="Disabled"
|
|
2594
2962
|
*/
|
|
2595
2963
|
disabled?: boolean;
|
|
2964
|
+
/**
|
|
2965
|
+
* Visual treatment.
|
|
2966
|
+
* - `card` (default): bordered card-style for settings/radio-list patterns.
|
|
2967
|
+
* Expects ListItemIcon + ListItemText children for full styling support.
|
|
2968
|
+
* - `nav`: borderless sidebar nav style with subtle hover/selected
|
|
2969
|
+
* highlights. Renders children inline; works with plain text.
|
|
2970
|
+
* @default 'card'
|
|
2971
|
+
*/
|
|
2972
|
+
variant?: ListItemButtonVariant;
|
|
2596
2973
|
}
|
|
2597
2974
|
/**
|
|
2598
2975
|
* NeoListItemButton - Selectable list item with icon and text
|
|
@@ -2638,7 +3015,7 @@ interface NeoListItemButtonProps extends ListItemButtonProps {
|
|
|
2638
3015
|
* - colors.grey[50] (#f9fafb) - Disabled background
|
|
2639
3016
|
*/
|
|
2640
3017
|
declare const NeoListItemButton: {
|
|
2641
|
-
({ children, selected, disabled, ...props }: NeoListItemButtonProps): react_jsx_runtime.JSX.Element;
|
|
3018
|
+
({ children, selected, disabled, variant, ...props }: NeoListItemButtonProps): react_jsx_runtime.JSX.Element;
|
|
2642
3019
|
displayName: string;
|
|
2643
3020
|
};
|
|
2644
3021
|
|
|
@@ -2695,6 +3072,20 @@ declare const NeoTooltip: {
|
|
|
2695
3072
|
displayName: string;
|
|
2696
3073
|
};
|
|
2697
3074
|
|
|
3075
|
+
/**
|
|
3076
|
+
* NeoTopNav
|
|
3077
|
+
*
|
|
3078
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4618-185228
|
|
3079
|
+
*/
|
|
3080
|
+
declare const NeoTopNav: StyledComponent<_mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3081
|
+
|
|
3082
|
+
/**
|
|
3083
|
+
* NeoTourModal
|
|
3084
|
+
*
|
|
3085
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=12408-1800
|
|
3086
|
+
*/
|
|
3087
|
+
declare const NeoTourModal: StyledComponent<_mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3088
|
+
|
|
2698
3089
|
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>, {}, {}>;
|
|
2699
3090
|
interface NeoTypologyControlProps extends Omit<ToggleButtonGroupProps, 'orientation'> {
|
|
2700
3091
|
}
|
|
@@ -2882,6 +3273,20 @@ declare const NeoDatePicker: {
|
|
|
2882
3273
|
displayName: string;
|
|
2883
3274
|
};
|
|
2884
3275
|
|
|
3276
|
+
/**
|
|
3277
|
+
* NeoDatePickerListItem
|
|
3278
|
+
*
|
|
3279
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4176-8521
|
|
3280
|
+
*/
|
|
3281
|
+
declare const NeoDatePickerListItem: StyledComponent<_mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3282
|
+
|
|
3283
|
+
/**
|
|
3284
|
+
* NeoDatePickerMenu
|
|
3285
|
+
*
|
|
3286
|
+
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4176-8593
|
|
3287
|
+
*/
|
|
3288
|
+
declare const NeoDatePickerMenu: StyledComponent<_mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3289
|
+
|
|
2885
3290
|
/**
|
|
2886
3291
|
* Extended item data that NeoTreeItem can read from the items array.
|
|
2887
3292
|
* Consumers pass these via the `items` prop on NeoTreeView.
|
|
@@ -2952,5 +3357,5 @@ declare module '@mui/x-data-grid-pro' {
|
|
|
2952
3357
|
|
|
2953
3358
|
declare const version: string
|
|
2954
3359
|
|
|
2955
|
-
export { ActivityScene, CIRCLE_RADIUS, NeoActivityHeader, NeoActivityIndicatorCell, NeoAlert, NeoBadge, NeoBanner, NeoBreadcrumbLink, NeoBreadcrumbs, NeoButton, NeoButtonTab, NeoButtonTabGroup, NeoCard, NeoCheckbox, NeoCheckboxWithText, NeoCodeSnippet, NeoDataGrid, NeoDataGridCellContent, NeoDataGridColumnsButton, NeoDataGridColumnsPanel, NeoDataGridFilterPanel, NeoDataGridFilterPanelAddIcon, NeoDataGridFilterPanelDeleteIcon, NeoDataGridFilterPanelRemoveAllIcon, NeoDataGridFiltersButton, NeoDataGridHeaderLabel, NeoSelect as NeoDataGridSelect, NeoDatePicker, NeoDivider, NeoDot, NeoDownloadToast, NeoSelect as NeoDropdown, NeoMenu as NeoDropdownMenu, NeoMenuItem as NeoDropdownMenuItem, NeoMenuItem as NeoDropdownOption, NeoFilterChip, NeoFooter, NeoGeneralAvatar, NeoIconButton, NeoInfiniteScrollGrid, NeoInputField, NeoListItem, NeoListItemButton, NeoLoadingSpinner, NeoMenu, NeoMenuItem, NeoModal, NeoModalContent, NeoModalFooter, NeoModalHeader, NeoMultiBadgesCell, NeoNavigationAvatar, NeoNavigationItem, NeoPageContent, NeoPaginatedGrid, NeoProgressbar, NeoQuickFilter, NeoRadio, NeoSearchChip, NeoSelect, NeoMenuItem as NeoSelectOption, NeoSkeleton, NeoStatusBadgeCell, NeoTab, NeoTabs, NeoTag, NeoToast, NeoToastButton, NeoToggle, NeoToolbar, NeoTooltip, NeoTreeItem, NeoTreeView, StyledToggleButton as NeoTypologyButton, NeoTypologyControl, NeoUserAvatarCell, SortedAscendingIcon, SortedDescendingIcon, UnsortedIcon, focusRingStyles, getDataGridHeaderStyles, version };
|
|
2956
|
-
export type { ActivityColor, ActivityEvent, ActivityHeaderSize, BreadcrumbItem, DataGridSize, NeoActivityHeaderProps, NeoActivityIndicatorCellProps, NeoAlertProps, NeoBadgeProps, NeoBannerProps, NeoBreadcrumbLinkProps, NeoBreadcrumbsProps, NeoButtonProps, NeoButtonTabGroupProps, NeoButtonTabProps, NeoCardLargeProps, NeoCardProps, NeoCardSize, NeoCardSmallProps, NeoCheckboxProps, NeoCheckboxWithTextProps, NeoCodeSnippetProps, NeoDataGridCellContentProps, NeoDataGridHeaderLabelProps, NeoDataGridProps, NeoDatePickerProps, NeoDividerProps, NeoDotProps, NeoDownloadToastProps, NeoMenuItemProps as NeoDropdownMenuItemProps, NeoMenuProps as NeoDropdownMenuProps, NeoSelectProps as NeoDropdownProps, NeoFilterChipProps, NeoFooterProps, NeoGeneralAvatarProps, NeoIconButtonProps, NeoInfiniteScrollGridProps, NeoInputFieldProps, NeoListItemButtonProps, NeoListItemProps, NeoLoadingSpinnerProps, NeoMenuItemProps, NeoMenuProps, NeoModalContentProps, NeoModalFooterProps, NeoModalHeaderProps, NeoModalProps, NeoMultiBadgesCellProps, NeoNavigationAvatarProps, NeoNavigationItemProps, NeoPageContentProps, NeoPaginatedGridProps, NeoProgressbarProps, NeoQuickFilterProps, NeoRadioProps, NeoSearchChipProps, NeoSelectProps, NeoSkeletonProps, NeoStatusBadgeCellProps, NeoTabProps, NeoTagProps, NeoToastProps, NeoToggleProps, NeoToolbarProps, NeoTooltipProps, NeoTreeItemData, NeoTreeItemProps, NeoTreeViewProps, NeoTypologyControlProps, NeoUserAvatarCellProps };
|
|
3360
|
+
export { ActivityScene, CIRCLE_RADIUS, NeoActionsCell, NeoActivityHeader, NeoActivityIndicatorCell, NeoAlert, NeoAvatarCell, NeoBadge, NeoBanner, NeoBreadcrumbLink, NeoBreadcrumbs, NeoButton, NeoButtonTab, NeoButtonTabGroup, NeoCard, NeoCheckbox, NeoCheckboxWithText, NeoCodeSnippet, NeoDataGrid, NeoDataGridCellContent, NeoDataGridColumnsButton, NeoDataGridColumnsPanel, NeoDataGridFilterPanel, NeoDataGridFilterPanelAddIcon, NeoDataGridFilterPanelDeleteIcon, NeoDataGridFilterPanelRemoveAllIcon, NeoDataGridFiltersButton, NeoDataGridHeaderLabel, NeoSelect as NeoDataGridSelect, NeoDatePicker, NeoDatePickerListItem, NeoDatePickerMenu, NeoDivider, NeoDot, NeoDownloadToast, NeoSelect as NeoDropdown, NeoMenu as NeoDropdownMenu, NeoMenuItem as NeoDropdownMenuItem, NeoMenuItem as NeoDropdownOption, NeoFilterChip, NeoFooter, NeoGeneralAvatar, NeoIconButton, NeoIconCell, NeoInfiniteScrollGrid, NeoInputField, NeoListItem, NeoListItemButton, NeoLoadingSpinner, NeoLogoCell, NeoMenu, NeoMenuItem, NeoModal, NeoModalContent, NeoModalFooter, NeoModalHeader, NeoMultiBadgesCell, NeoNavigationAvatar, NeoNavigationItem, NeoPageContent, NeoPaginatedGrid, NeoProgressCell, NeoProgressbar, NeoQuickFilter, NeoRadio, NeoRadioButtonWithText, NeoSearchChip, NeoSelect, NeoSelectField, NeoMenuItem as NeoSelectOption, NeoSideNav, NeoSkeleton, NeoStatusBadgeCell, NeoStatusCell, NeoTab, NeoTabPanel, NeoTable, NeoTabs, NeoTag, NeoToast, NeoToastButton, NeoToggle, NeoToggleButton, NeoToggleButtonGroup, NeoToggleButtonWithText, NeoToolbar, NeoTooltip, NeoTopNav, NeoTourModal, NeoTreeItem, NeoTreeView, StyledToggleButton as NeoTypologyButton, NeoTypologyControl, NeoUserAvatarCell, SortedAscendingIcon, SortedDescendingIcon, UnsortedIcon, focusRingStyles, getDataGridHeaderStyles, getDataGridRowStyles, version };
|
|
3361
|
+
export type { ActivityColor, ActivityEvent, ActivityHeaderSize, BreadcrumbItem, DataGridSize, NeoActionsCellProps, NeoActivityHeaderProps, NeoActivityIndicatorCellProps, NeoAlertProps, NeoAvatarCellProps, NeoBadgeProps, NeoBannerProps, NeoBreadcrumbLinkProps, NeoBreadcrumbsProps, NeoButtonProps, NeoButtonTabGroupProps, NeoButtonTabProps, NeoCardLargeProps, NeoCardProps, NeoCardSize, NeoCardSmallProps, NeoCheckboxProps, NeoCheckboxWithTextProps, NeoCodeSnippetProps, NeoDataGridCellContentProps, NeoDataGridHeaderLabelProps, NeoDataGridProps, NeoDatePickerProps, NeoDividerProps, NeoDotProps, NeoDownloadToastProps, NeoMenuItemProps as NeoDropdownMenuItemProps, NeoMenuProps as NeoDropdownMenuProps, NeoSelectProps as NeoDropdownProps, NeoFilterChipProps, NeoFooterProps, NeoGeneralAvatarProps, NeoIconButtonProps, NeoIconCellProps, NeoInfiniteScrollGridProps, NeoInputFieldProps, NeoListItemButtonProps, NeoListItemProps, NeoLoadingSpinnerProps, NeoLogoCellProps, NeoMenuItemProps, NeoMenuProps, NeoModalContentProps, NeoModalFooterProps, NeoModalHeaderProps, NeoModalProps, NeoMultiBadgesCellProps, NeoNavigationAvatarProps, NeoNavigationItemProps, NeoPageContentProps, NeoPaginatedGridProps, NeoProgressCellProps, NeoProgressbarProps, NeoQuickFilterProps, NeoRadioProps, NeoSearchChipProps, NeoSelectFieldOption, NeoSelectFieldProps, NeoSelectProps, NeoSkeletonProps, NeoStatusBadgeCellProps, NeoStatusCellProps, NeoStatusCellVariant, NeoTabPanelProps, NeoTabProps, NeoTableColumn, NeoTableProps, NeoTagProps, NeoToastProps, NeoToggleButtonGroupProps, NeoToggleButtonProps, NeoToggleProps, NeoToolbarProps, NeoTooltipProps, NeoTreeItemData, NeoTreeItemProps, NeoTreeViewProps, NeoTypologyControlProps, NeoUserAvatarCellProps };
|