@cere/cere-design-system 0.0.45 → 0.2.0
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/README.md +76 -0
- package/dist/buttons.d.mts +119 -0
- package/dist/buttons.d.ts +119 -0
- package/dist/buttons.js +19 -0
- package/dist/buttons.js.map +1 -0
- package/dist/buttons.mjs +19 -0
- package/dist/buttons.mjs.map +1 -0
- package/dist/carousel.d.mts +51 -0
- package/dist/carousel.d.ts +51 -0
- package/dist/carousel.js +185 -0
- package/dist/carousel.js.map +1 -0
- package/dist/carousel.mjs +185 -0
- package/dist/carousel.mjs.map +1 -0
- package/dist/charts.d.mts +187 -0
- package/dist/charts.d.ts +187 -0
- package/dist/charts.js +13 -0
- package/dist/charts.js.map +1 -0
- package/dist/charts.mjs +13 -0
- package/dist/charts.mjs.map +1 -0
- package/dist/chunk-2EBCST6X.js +25 -0
- package/dist/chunk-2EBCST6X.js.map +1 -0
- package/dist/chunk-2KDN37PQ.js +486 -0
- package/dist/chunk-2KDN37PQ.js.map +1 -0
- package/dist/chunk-34LFXT6C.mjs +486 -0
- package/dist/chunk-34LFXT6C.mjs.map +1 -0
- package/dist/chunk-3KCXCVOX.mjs +411 -0
- package/dist/chunk-3KCXCVOX.mjs.map +1 -0
- package/dist/chunk-4OKTICU5.js +374 -0
- package/dist/chunk-4OKTICU5.js.map +1 -0
- package/dist/chunk-5ASG6G6U.mjs +40 -0
- package/dist/chunk-5ASG6G6U.mjs.map +1 -0
- package/dist/chunk-72TQ56EP.js +280 -0
- package/dist/chunk-72TQ56EP.js.map +1 -0
- package/dist/chunk-7KXKK2RE.js +43 -0
- package/dist/chunk-7KXKK2RE.js.map +1 -0
- package/dist/chunk-ARSCL4ZZ.js +111 -0
- package/dist/chunk-ARSCL4ZZ.js.map +1 -0
- package/dist/chunk-AWVNEU6R.mjs +1478 -0
- package/dist/chunk-AWVNEU6R.mjs.map +1 -0
- package/dist/chunk-BH4FNZKK.mjs +1472 -0
- package/dist/chunk-BH4FNZKK.mjs.map +1 -0
- package/dist/chunk-BIZK6FUD.js +37 -0
- package/dist/chunk-BIZK6FUD.js.map +1 -0
- package/dist/chunk-BOQPWZIB.mjs +147 -0
- package/dist/chunk-BOQPWZIB.mjs.map +1 -0
- package/dist/chunk-BT7XUTT5.mjs +392 -0
- package/dist/chunk-BT7XUTT5.mjs.map +1 -0
- package/dist/chunk-D7D25O6E.mjs +280 -0
- package/dist/chunk-D7D25O6E.mjs.map +1 -0
- package/dist/chunk-DRGMEIPT.mjs +162 -0
- package/dist/chunk-DRGMEIPT.mjs.map +1 -0
- package/dist/chunk-DZXNYLVG.js +392 -0
- package/dist/chunk-DZXNYLVG.js.map +1 -0
- package/dist/chunk-GR52ENYI.mjs +527 -0
- package/dist/chunk-GR52ENYI.mjs.map +1 -0
- package/dist/chunk-GTBKQXXI.js +1472 -0
- package/dist/chunk-GTBKQXXI.js.map +1 -0
- package/dist/chunk-HJ24WKU4.js +120 -0
- package/dist/chunk-HJ24WKU4.js.map +1 -0
- package/dist/chunk-JBHRAAN3.js +31 -0
- package/dist/chunk-JBHRAAN3.js.map +1 -0
- package/dist/chunk-KKIKOIMP.js +1478 -0
- package/dist/chunk-KKIKOIMP.js.map +1 -0
- package/dist/chunk-LVJSKRX3.js +147 -0
- package/dist/chunk-LVJSKRX3.js.map +1 -0
- package/dist/chunk-OWWDNDF4.js +40 -0
- package/dist/chunk-OWWDNDF4.js.map +1 -0
- package/dist/chunk-PFZZJZ64.js +162 -0
- package/dist/chunk-PFZZJZ64.js.map +1 -0
- package/dist/chunk-PHMNZK2R.mjs +18 -0
- package/dist/chunk-PHMNZK2R.mjs.map +1 -0
- package/dist/chunk-POCAW2G4.mjs +111 -0
- package/dist/chunk-POCAW2G4.mjs.map +1 -0
- package/dist/chunk-QBCRH7YF.mjs +37 -0
- package/dist/chunk-QBCRH7YF.mjs.map +1 -0
- package/dist/chunk-QCFLZ7X3.js +527 -0
- package/dist/chunk-QCFLZ7X3.js.map +1 -0
- package/dist/chunk-SG2TD7FQ.mjs +374 -0
- package/dist/chunk-SG2TD7FQ.mjs.map +1 -0
- package/dist/chunk-SSFALO6S.mjs +120 -0
- package/dist/chunk-SSFALO6S.mjs.map +1 -0
- package/dist/chunk-U2QHFISG.js +18 -0
- package/dist/chunk-U2QHFISG.js.map +1 -0
- package/dist/chunk-UPGFBPFX.mjs +25 -0
- package/dist/chunk-UPGFBPFX.mjs.map +1 -0
- package/dist/chunk-WC2TCWXK.mjs +445 -0
- package/dist/chunk-WC2TCWXK.mjs.map +1 -0
- package/dist/chunk-XZZZ4MZV.js +445 -0
- package/dist/chunk-XZZZ4MZV.js.map +1 -0
- package/dist/chunk-YCDCQSYH.js +411 -0
- package/dist/chunk-YCDCQSYH.js.map +1 -0
- package/dist/chunk-ZDAZYIXB.mjs +43 -0
- package/dist/chunk-ZDAZYIXB.mjs.map +1 -0
- package/dist/chunk-ZP26PGMS.mjs +31 -0
- package/dist/chunk-ZP26PGMS.mjs.map +1 -0
- package/dist/feedback.d.mts +368 -0
- package/dist/feedback.d.ts +368 -0
- package/dist/feedback.js +43 -0
- package/dist/feedback.js.map +1 -0
- package/dist/feedback.mjs +43 -0
- package/dist/feedback.mjs.map +1 -0
- package/dist/fonts/HumanSans-BlackOblique.otf +0 -0
- package/dist/fonts/HumanSans-Thin.otf +0 -0
- package/dist/fonts/HumanSans-ThinOblique.otf +0 -0
- package/dist/fonts/human-sans-font.css +88 -0
- package/dist/fonts/human-sans.css +3 -0
- package/dist/fonts/inter.css +3 -0
- package/dist/icons.d.mts +21 -0
- package/dist/icons.d.ts +21 -0
- package/dist/icons.js +23 -0
- package/dist/icons.js.map +1 -0
- package/dist/icons.mjs +23 -0
- package/dist/icons.mjs.map +1 -0
- package/dist/index.d.mts +196 -3082
- package/dist/index.d.ts +196 -3082
- package/dist/index.js +253 -10082
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +229 -10017
- package/dist/index.mjs.map +1 -1
- package/dist/inputs.d.mts +129 -0
- package/dist/inputs.d.ts +129 -0
- package/dist/inputs.js +43 -0
- package/dist/inputs.js.map +1 -0
- package/dist/inputs.mjs +43 -0
- package/dist/inputs.mjs.map +1 -0
- package/dist/layout.d.mts +681 -0
- package/dist/layout.d.ts +681 -0
- package/dist/layout.js +98 -0
- package/dist/layout.js.map +1 -0
- package/dist/layout.mjs +98 -0
- package/dist/layout.mjs.map +1 -0
- package/dist/navigation.d.mts +611 -0
- package/dist/navigation.d.ts +611 -0
- package/dist/navigation.js +54 -0
- package/dist/navigation.js.map +1 -0
- package/dist/navigation.mjs +54 -0
- package/dist/navigation.mjs.map +1 -0
- package/dist/third-party.d.mts +113 -0
- package/dist/third-party.d.ts +113 -0
- package/dist/third-party.js +7 -0
- package/dist/third-party.js.map +1 -0
- package/dist/third-party.mjs +7 -0
- package/dist/third-party.mjs.map +1 -0
- package/dist/tokens.css +45 -71
- package/dist/utilities.d.mts +39 -0
- package/dist/utilities.d.ts +39 -0
- package/dist/utilities.js +17 -0
- package/dist/utilities.js.map +1 -0
- package/dist/utilities.mjs +17 -0
- package/dist/utilities.mjs.map +1 -0
- package/package.json +76 -8
- package/dist/index.css +0 -79
- package/dist/index.css.map +0 -1
- /package/dist/{HumanSans-Black-C4YJONK7.otf → fonts/HumanSans-Black.otf} +0 -0
- /package/dist/{HumanSans-Bold-4EAJ3L3T.otf → fonts/HumanSans-Bold.otf} +0 -0
- /package/dist/{HumanSans-BoldOblique-4D325T4F.otf → fonts/HumanSans-BoldOblique.otf} +0 -0
- /package/dist/{HumanSans-ExtraLight-VL7DEKQ4.otf → fonts/HumanSans-ExtraLight.otf} +0 -0
- /package/dist/{HumanSans-ExtraLightOblique-VK2JTUXF.otf → fonts/HumanSans-ExtraLightOblique.otf} +0 -0
- /package/dist/{HumanSans-Light-YV7AFKRB.otf → fonts/HumanSans-Light.otf} +0 -0
- /package/dist/{HumanSans-LightOblique-VIXV7QA6.otf → fonts/HumanSans-LightOblique.otf} +0 -0
- /package/dist/{HumanSans-Medium-UULJ3PIR.otf → fonts/HumanSans-Medium.otf} +0 -0
- /package/dist/{HumanSans-MediumOblique-M7FHDZRS.otf → fonts/HumanSans-MediumOblique.otf} +0 -0
- /package/dist/{HumanSans-Regular-QMFEP3F6.otf → fonts/HumanSans-Regular.otf} +0 -0
- /package/dist/{HumanSans-RegularOblique-YPKQJAAM.otf → fonts/HumanSans-RegularOblique.otf} +0 -0
|
@@ -0,0 +1,681 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default, { PropsWithChildren, ReactElement, ReactNode } from 'react';
|
|
4
|
+
import { DialogProps as DialogProps$1 } from '@mui/material/Dialog';
|
|
5
|
+
import { DrawerProps as DrawerProps$1 } from '@mui/material/Drawer';
|
|
6
|
+
import { BoxProps } from '@mui/material/Box';
|
|
7
|
+
export { default as Box, BoxProps } from '@mui/material/Box';
|
|
8
|
+
import { Theme, SxProps } from '@mui/material/styles';
|
|
9
|
+
import { CardProps as CardProps$1 } from '@mui/material/Card';
|
|
10
|
+
import { CardContentProps } from '@mui/material/CardContent';
|
|
11
|
+
import { CardHeaderProps } from '@mui/material/CardHeader';
|
|
12
|
+
import { CardActionsProps } from '@mui/material/CardActions';
|
|
13
|
+
import { CardMediaProps as CardMediaProps$1 } from '@mui/material/CardMedia';
|
|
14
|
+
import { ListProps as ListProps$1 } from '@mui/material/List';
|
|
15
|
+
import { ListItemProps as ListItemProps$1 } from '@mui/material/ListItem';
|
|
16
|
+
import { AvatarProps as AvatarProps$1 } from '@mui/material/Avatar';
|
|
17
|
+
import { TableProps as TableProps$1 } from '@mui/material/Table';
|
|
18
|
+
export { default as Grid, Grid2Props as GridProps } from '@mui/material/Grid2';
|
|
19
|
+
import { BreadcrumbsProps as BreadcrumbsProps$1 } from '@mui/material/Breadcrumbs';
|
|
20
|
+
import { AccordionProps as AccordionProps$1 } from '@mui/material/Accordion';
|
|
21
|
+
import { PaperProps as PaperProps$1 } from '@mui/material/Paper';
|
|
22
|
+
import { DividerProps as DividerProps$1 } from '@mui/material/Divider';
|
|
23
|
+
export { default as Stack, StackProps } from '@mui/material/Stack';
|
|
24
|
+
export { default as Typography, TypographyProps } from '@mui/material/Typography';
|
|
25
|
+
import { LinkProps as LinkProps$1 } from '@mui/material/Link';
|
|
26
|
+
export { default as Container, ContainerProps } from '@mui/material/Container';
|
|
27
|
+
import { AppBarProps as AppBarProps$1 } from '@mui/material/AppBar';
|
|
28
|
+
import { CollapseProps as CollapseProps$1 } from '@mui/material/Collapse';
|
|
29
|
+
export { default as ListItemIcon } from '@mui/material/ListItemIcon';
|
|
30
|
+
export { default as ListItemSecondaryAction } from '@mui/material/ListItemSecondaryAction';
|
|
31
|
+
export { default as ListItemText } from '@mui/material/ListItemText';
|
|
32
|
+
export { default as Toolbar, ToolbarProps } from '@mui/material/Toolbar';
|
|
33
|
+
|
|
34
|
+
type LogoSize = 'large' | 'medium' | 'small';
|
|
35
|
+
type LogoProps = PropsWithChildren<{
|
|
36
|
+
icon?: ReactElement;
|
|
37
|
+
size?: LogoSize;
|
|
38
|
+
}>;
|
|
39
|
+
declare const Logo: ({ children, size, icon }: LogoProps) => react_jsx_runtime.JSX.Element;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* **PaperProps merge order.**
|
|
43
|
+
*
|
|
44
|
+
* The component pre-sets `PaperProps.sx = { minHeight: ... }` and then
|
|
45
|
+
* spreads consumer-supplied `PaperProps` over it:
|
|
46
|
+
* ```
|
|
47
|
+
* PaperProps={{ sx: { minHeight: ... }, ...dialogProps.PaperProps }}
|
|
48
|
+
* ```
|
|
49
|
+
* Consumer `PaperProps.sx` will override the component's `minHeight`.
|
|
50
|
+
* Consumer `PaperProps` keys other than `sx` are passed through unchanged.
|
|
51
|
+
* To extend the `sx` rather than replace it, pass an array:
|
|
52
|
+
* ```
|
|
53
|
+
* PaperProps={{ sx: [{ minHeight: '400px' }, { borderRadius: 2 }] }}
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
interface DialogProps extends Omit<DialogProps$1, 'title'> {
|
|
57
|
+
open: boolean;
|
|
58
|
+
title: ReactNode;
|
|
59
|
+
onClose: () => void;
|
|
60
|
+
onSubmit?: () => void;
|
|
61
|
+
submitLabel?: string;
|
|
62
|
+
cancelLabel?: string;
|
|
63
|
+
isLoading?: boolean;
|
|
64
|
+
disableSubmit?: boolean;
|
|
65
|
+
showActions?: boolean;
|
|
66
|
+
headerAction?: ReactNode;
|
|
67
|
+
fullWidth?: boolean;
|
|
68
|
+
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
69
|
+
children: ReactNode;
|
|
70
|
+
dividers?: boolean;
|
|
71
|
+
confirmBeforeClose?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Custom actions to render instead of default actions
|
|
74
|
+
* If provided, showActions is ignored and custom actions are used
|
|
75
|
+
*/
|
|
76
|
+
customActions?: ReactNode;
|
|
77
|
+
}
|
|
78
|
+
declare const Dialog: React__default.FC<DialogProps>;
|
|
79
|
+
|
|
80
|
+
type KpiTone = 'violet' | 'blue' | 'green' | 'orange' | 'pink' | 'neutral';
|
|
81
|
+
interface KpiCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
82
|
+
/** Optional leading glyph rendered before the label row. */
|
|
83
|
+
icon?: React.ReactNode;
|
|
84
|
+
/** Short caption rendered in the eyebrow style above the value. */
|
|
85
|
+
label: string;
|
|
86
|
+
/** The headline KPI value. Can be a string, number, or composed node. */
|
|
87
|
+
value: React.ReactNode;
|
|
88
|
+
/** Optional sub line rendered under the value. */
|
|
89
|
+
sub?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Accent color applied to the left stripe.
|
|
92
|
+
* @default 'neutral'
|
|
93
|
+
*/
|
|
94
|
+
tone?: KpiTone;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* KpiCard — a single metric tile for dashboards.
|
|
98
|
+
*
|
|
99
|
+
* Lays out an optional icon + uppercase label on top, a large value beneath,
|
|
100
|
+
* and an optional sub line. A vertical stripe on the left uses `tone` for the
|
|
101
|
+
* accent color. All typography pulls from the DS-augmented variants.
|
|
102
|
+
*
|
|
103
|
+
* Lives in `layout/` per the constitution: KpiCard is a data-display tile,
|
|
104
|
+
* not a feedback signal.
|
|
105
|
+
*/
|
|
106
|
+
declare const KpiCard: React.ForwardRefExoticComponent<KpiCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
107
|
+
|
|
108
|
+
interface AgentAvatarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
109
|
+
/** Stable string keyed to the agent identity; same seed always picks the same palette. */
|
|
110
|
+
seed: string;
|
|
111
|
+
/** Used as the source of the initial glyph (first letter, upper-cased). */
|
|
112
|
+
name: string;
|
|
113
|
+
/** Pixel size. Accepts the three preset sizes or any number. @default 40 */
|
|
114
|
+
size?: 32 | 40 | 56 | number;
|
|
115
|
+
/** Adds an outer drop shadow for use over plain surfaces. */
|
|
116
|
+
shadow?: boolean;
|
|
117
|
+
/** When set, renders an `<img>` in place of the initial. */
|
|
118
|
+
iconUrl?: string;
|
|
119
|
+
/** Optional override for the accessible label; defaults to `name`. */
|
|
120
|
+
ariaLabel?: string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Brand-coloured avatar tile that auto-derives a palette shade from `seed`.
|
|
124
|
+
*
|
|
125
|
+
* Renders the first letter of `name` by default; if `iconUrl` is provided,
|
|
126
|
+
* renders the image full-bleed instead. White glyph; optional outer
|
|
127
|
+
* shadow pulled from the MUI theme elevation scale.
|
|
128
|
+
*/
|
|
129
|
+
declare const AgentAvatar: React.ForwardRefExoticComponent<AgentAvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
130
|
+
|
|
131
|
+
type NumberedListTone = 'violet' | 'blue' | 'green' | 'orange' | 'pink' | 'neutral';
|
|
132
|
+
interface NumberedListItem {
|
|
133
|
+
/** Row title rendered next to the badge. */
|
|
134
|
+
title: string;
|
|
135
|
+
/** Optional secondary line under the title. */
|
|
136
|
+
detail?: React.ReactNode;
|
|
137
|
+
/** Optional trailing action (button, link, chip) aligned to the right. */
|
|
138
|
+
cta?: React.ReactNode;
|
|
139
|
+
}
|
|
140
|
+
interface NumberedListProps extends Omit<React.OlHTMLAttributes<HTMLOListElement>, 'children'> {
|
|
141
|
+
/** Rows to render in order. */
|
|
142
|
+
items: NumberedListItem[];
|
|
143
|
+
/** Accent color for the numbered badges. @default 'violet' */
|
|
144
|
+
tone?: NumberedListTone;
|
|
145
|
+
/** First badge number. @default 1 */
|
|
146
|
+
startAt?: number;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* NumberedList — ordered list with numbered tinted badges.
|
|
150
|
+
*
|
|
151
|
+
* Use for onboarding checklists, sequence walkthroughs, and other ordered
|
|
152
|
+
* step lists. Badges pull their tint from the design system palette via
|
|
153
|
+
* `tone`. `startAt` lets you chain lists across pages without resetting.
|
|
154
|
+
*/
|
|
155
|
+
declare const NumberedList: React.ForwardRefExoticComponent<NumberedListProps & React.RefAttributes<HTMLOListElement>>;
|
|
156
|
+
|
|
157
|
+
type DrawerWidthValue = number | string;
|
|
158
|
+
/**
|
|
159
|
+
* Per-breakpoint drawer widths. `xs` sets the base width (mobile-first);
|
|
160
|
+
* `sm`/`md`/`lg`/`xl` override at and above the named MUI breakpoint.
|
|
161
|
+
*/
|
|
162
|
+
interface ResponsiveDrawerWidth {
|
|
163
|
+
xs?: DrawerWidthValue;
|
|
164
|
+
sm?: DrawerWidthValue;
|
|
165
|
+
md?: DrawerWidthValue;
|
|
166
|
+
lg?: DrawerWidthValue;
|
|
167
|
+
xl?: DrawerWidthValue;
|
|
168
|
+
}
|
|
169
|
+
type DrawerWidth = DrawerWidthValue | ResponsiveDrawerWidth;
|
|
170
|
+
/**
|
|
171
|
+
* Resolve a `width` prop into a style object usable by `styled()`.
|
|
172
|
+
*
|
|
173
|
+
* - Number/string input returns a single `{ width }` rule.
|
|
174
|
+
* - Object input produces a mobile-first base width (from `xs`, or
|
|
175
|
+
* `defaultWidth` if `xs` is missing) plus breakpoint-scoped overrides
|
|
176
|
+
* for each of sm/md/lg/xl that was provided.
|
|
177
|
+
*/
|
|
178
|
+
declare function resolveDrawerWidth(width: DrawerWidth | undefined, theme: Theme, defaultWidth?: DrawerWidthValue): Record<string, unknown> & {
|
|
179
|
+
width?: DrawerWidthValue;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
interface DrawerProps extends Omit<DrawerProps$1, 'title'> {
|
|
183
|
+
/**
|
|
184
|
+
* Width of the drawer when open. Accepts a single value (number or CSS
|
|
185
|
+
* string like `"100vw"`) or a responsive object keyed by MUI breakpoint
|
|
186
|
+
* (`{ xs, sm, md, lg, xl }`). Responsive widths are mobile-first: `xs`
|
|
187
|
+
* is the base, each named breakpoint overrides at that breakpoint and up.
|
|
188
|
+
* @default 400 for temporary/persistent, 240 for permanent
|
|
189
|
+
*/
|
|
190
|
+
width?: DrawerWidth;
|
|
191
|
+
/**
|
|
192
|
+
* Width of the drawer when collapsed (mini variant)
|
|
193
|
+
* @default 72
|
|
194
|
+
*/
|
|
195
|
+
miniWidth?: number;
|
|
196
|
+
/**
|
|
197
|
+
* Whether the drawer is in collapsed/mini state
|
|
198
|
+
* @default false
|
|
199
|
+
*/
|
|
200
|
+
collapsed?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Title to display in the drawer header
|
|
203
|
+
*/
|
|
204
|
+
title?: ReactNode;
|
|
205
|
+
/**
|
|
206
|
+
* Custom header content (replaces title if provided)
|
|
207
|
+
*/
|
|
208
|
+
header?: ReactNode;
|
|
209
|
+
/**
|
|
210
|
+
* Show close button in header
|
|
211
|
+
* @default true for temporary variant, false for permanent
|
|
212
|
+
*/
|
|
213
|
+
showCloseButton?: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Tab labels for tabbed drawer content
|
|
216
|
+
*/
|
|
217
|
+
tabs?: string[];
|
|
218
|
+
/**
|
|
219
|
+
* Active tab index
|
|
220
|
+
*/
|
|
221
|
+
activeTab?: number;
|
|
222
|
+
/**
|
|
223
|
+
* Callback when tab changes
|
|
224
|
+
*/
|
|
225
|
+
onTabChange?: (index: number) => void;
|
|
226
|
+
/**
|
|
227
|
+
* Footer content (actions, buttons, etc.)
|
|
228
|
+
*/
|
|
229
|
+
footer?: ReactNode;
|
|
230
|
+
/**
|
|
231
|
+
* Props for drawer content container
|
|
232
|
+
*/
|
|
233
|
+
contentProps?: BoxProps;
|
|
234
|
+
/**
|
|
235
|
+
* Anchor position
|
|
236
|
+
* @default 'right'
|
|
237
|
+
*/
|
|
238
|
+
anchor?: 'left' | 'right' | 'top' | 'bottom';
|
|
239
|
+
/**
|
|
240
|
+
* Top offset in pixels (e.g., for header + breadcrumbs)
|
|
241
|
+
* @default 0
|
|
242
|
+
*/
|
|
243
|
+
topOffset?: number;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Drawer component for navigation drawers and side panels
|
|
247
|
+
* Can be used as a replacement for Dialog for better UX
|
|
248
|
+
*
|
|
249
|
+
* @example
|
|
250
|
+
* ```tsx
|
|
251
|
+
* // Simple drawer
|
|
252
|
+
* <Drawer open={true} variant="temporary" width={400} title="Settings" onClose={handleClose}>
|
|
253
|
+
* <Box p={2}>Content here</Box>
|
|
254
|
+
* </Drawer>
|
|
255
|
+
*
|
|
256
|
+
* // Drawer with tabs
|
|
257
|
+
* <Drawer
|
|
258
|
+
* open={true}
|
|
259
|
+
* variant="temporary"
|
|
260
|
+
* width={600}
|
|
261
|
+
* title="Edit Stream"
|
|
262
|
+
* tabs={['General', 'Rules', 'Settings']}
|
|
263
|
+
* activeTab={activeTab}
|
|
264
|
+
* onTabChange={setActiveTab}
|
|
265
|
+
* onClose={handleClose}
|
|
266
|
+
* >
|
|
267
|
+
* <Box p={2}>{tabContent}</Box>
|
|
268
|
+
* </Drawer>
|
|
269
|
+
* ```
|
|
270
|
+
*/
|
|
271
|
+
declare const Drawer: React__default.ForwardRefExoticComponent<Omit<DrawerProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
272
|
+
|
|
273
|
+
interface MetaFieldProps {
|
|
274
|
+
/** Uppercase eyebrow label displayed above the value. */
|
|
275
|
+
label: string;
|
|
276
|
+
/** Value to display. String values get a `title` attribute for overflow tooltips. */
|
|
277
|
+
value: ReactNode;
|
|
278
|
+
/** Render the value in a monospace font (for IDs, durations, paths). */
|
|
279
|
+
mono?: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* Override the auto-generated `title` attribute. Useful when the value is a
|
|
282
|
+
* ReactNode but you still want a hover tooltip, or to customize the string
|
|
283
|
+
* shown on hover.
|
|
284
|
+
*/
|
|
285
|
+
title?: string;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* MetaField — a compact label-over-value column for metadata lists.
|
|
289
|
+
*
|
|
290
|
+
* Wraps its content in a min-width-0 flex column so it collapses cleanly
|
|
291
|
+
* inside responsive grids. The value truncates with an ellipsis and shows
|
|
292
|
+
* the full text on hover (for string values by default).
|
|
293
|
+
*
|
|
294
|
+
* @example
|
|
295
|
+
* ```tsx
|
|
296
|
+
* <MetaField label="Run ID" value="run_abc123" mono />
|
|
297
|
+
* <MetaField label="Status" value={<StatusBadge status="ok" />} />
|
|
298
|
+
* ```
|
|
299
|
+
*/
|
|
300
|
+
declare const MetaField: React__default.ForwardRefExoticComponent<MetaFieldProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
301
|
+
|
|
302
|
+
interface ScrollableRowProps {
|
|
303
|
+
/** Row content. Rendered in a horizontally-scrolling flex container. */
|
|
304
|
+
children: ReactNode;
|
|
305
|
+
/** Accessible label for the left chevron. @default 'Scroll left' */
|
|
306
|
+
leftLabel?: string;
|
|
307
|
+
/** Accessible label for the right chevron. @default 'Scroll right' */
|
|
308
|
+
rightLabel?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Minimum nudge distance (px) when a chevron is clicked. The component
|
|
311
|
+
* scrolls by max(minNudge, clientWidth * nudgeFraction). @default 160
|
|
312
|
+
*/
|
|
313
|
+
minNudge?: number;
|
|
314
|
+
/** Fraction of the viewport scrolled per chevron click. @default 0.6 */
|
|
315
|
+
nudgeFraction?: number;
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* ScrollableRow — a horizontally-scrolling container that reveals chevron
|
|
319
|
+
* buttons at the left and right edges only when content actually overflows.
|
|
320
|
+
*
|
|
321
|
+
* Works with any children (chips, cards, pills). Uses a `ResizeObserver` on
|
|
322
|
+
* both the scroller and its children plus a `MutationObserver` to catch
|
|
323
|
+
* children being added/removed, so the chevrons stay in sync with real
|
|
324
|
+
* layout.
|
|
325
|
+
*/
|
|
326
|
+
declare const ScrollableRow: React__default.FC<ScrollableRowProps>;
|
|
327
|
+
|
|
328
|
+
interface SectionRowProps {
|
|
329
|
+
/** Section title (e.g. "Published by alice"). Rendered as an h2-equivalent. */
|
|
330
|
+
title: ReactNode;
|
|
331
|
+
/** Optional sublabel below the title (e.g. "3 agents"). */
|
|
332
|
+
subtitle?: ReactNode;
|
|
333
|
+
/** Optional right-aligned slot in the header (e.g. a "See all →" link). */
|
|
334
|
+
action?: ReactNode;
|
|
335
|
+
/** Accessible labels for the scroll chevrons. */
|
|
336
|
+
leftLabel?: string;
|
|
337
|
+
rightLabel?: string;
|
|
338
|
+
/** Tiles / cards rendered inside the horizontally-scrolling track. */
|
|
339
|
+
children: ReactNode;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* SectionRow — header (title + subtitle + right-side action) on top of a
|
|
343
|
+
* ScrollableRow track. Use for "category row" or "publisher row" layouts in
|
|
344
|
+
* marketplace / library / dashboard contexts. The scroll mechanics and edge
|
|
345
|
+
* chevrons come from ScrollableRow.
|
|
346
|
+
*/
|
|
347
|
+
declare const SectionRow: React__default.ForwardRefExoticComponent<SectionRowProps & React__default.RefAttributes<HTMLElement>>;
|
|
348
|
+
|
|
349
|
+
/** Number of distinct gradient palettes. Useful for sizing slide cycles deterministically. */
|
|
350
|
+
declare const GRADIENT_PALETTE_COUNT: 6;
|
|
351
|
+
interface GradientSurfaceProps {
|
|
352
|
+
/**
|
|
353
|
+
* Which palette to use. Any integer (positive or negative) — the value is
|
|
354
|
+
* wrapped modulo the palette count, so callers can pass their own counter
|
|
355
|
+
* (`rowIndex + tileIndex`, slide index, etc.) without worrying about range.
|
|
356
|
+
*/
|
|
357
|
+
index: number;
|
|
358
|
+
/** Optional body rendered over the gradient + blobs. */
|
|
359
|
+
children?: ReactNode;
|
|
360
|
+
/** Style overrides on the surface. */
|
|
361
|
+
sx?: SxProps<Theme>;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* GradientSurface — a positioned, gradient-painted surface with two soft blob
|
|
365
|
+
* accents. Owns the brand palette cycle so consumers don't redeclare gradient
|
|
366
|
+
* colors per route. Pair with absolute-positioned children for hero artwork.
|
|
367
|
+
*/
|
|
368
|
+
declare const GradientSurface: React__default.ForwardRefExoticComponent<GradientSurfaceProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
369
|
+
|
|
370
|
+
interface DefinitionRowProps {
|
|
371
|
+
/** Optional leading icon (e.g. a scope or category glyph). */
|
|
372
|
+
icon?: ReactNode;
|
|
373
|
+
/** Primary label rendered on the left side. */
|
|
374
|
+
label: ReactNode;
|
|
375
|
+
/** Optional secondary line under the label (e.g. type, scope path). */
|
|
376
|
+
sublabel?: ReactNode;
|
|
377
|
+
/** Primary right-side content (e.g. `read`, `optional`). */
|
|
378
|
+
value?: ReactNode;
|
|
379
|
+
/** Secondary right-side line under the value (e.g. constraint, default). */
|
|
380
|
+
hint?: ReactNode;
|
|
381
|
+
/** Reduce vertical padding for compact lists. */
|
|
382
|
+
dense?: boolean;
|
|
383
|
+
/** Draw a bottom divider. The last row in a list never draws. @default true */
|
|
384
|
+
divider?: boolean;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* DefinitionRow — `icon · label / sublabel … value / hint` row primitive
|
|
388
|
+
* for description-list style content (scope tables, settings, key/value
|
|
389
|
+
* panels).
|
|
390
|
+
*/
|
|
391
|
+
declare const DefinitionRow: React__default.ForwardRefExoticComponent<DefinitionRowProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
392
|
+
|
|
393
|
+
type PanelDialogWidth = 'sm' | 'md' | 'lg' | 'xl';
|
|
394
|
+
type PanelDialogSide = 'right' | 'center';
|
|
395
|
+
type PanelDialogTransition = 'fade' | 'slide-up' | 'slide-left';
|
|
396
|
+
interface PanelDialogProps {
|
|
397
|
+
/** Controls visibility. */
|
|
398
|
+
open: boolean;
|
|
399
|
+
/** Fires when the user closes (close button, backdrop click, ESC). */
|
|
400
|
+
onClose: () => void;
|
|
401
|
+
/** Optional title rendered in the header. Used as the dialog accessible name when a string. */
|
|
402
|
+
title?: ReactNode;
|
|
403
|
+
/** Optional right-aligned slot in the header (e.g. install + share buttons). */
|
|
404
|
+
headerActions?: ReactNode;
|
|
405
|
+
/** Panel width. @default 'md' */
|
|
406
|
+
width?: PanelDialogWidth;
|
|
407
|
+
/** Where the panel docks. `right` slides in from the right edge; `center` is a regular centered panel. @default 'right' */
|
|
408
|
+
side?: PanelDialogSide;
|
|
409
|
+
/** Override the accessible name when `title` is not a string. */
|
|
410
|
+
ariaLabel?: string;
|
|
411
|
+
/**
|
|
412
|
+
* Drop the header bar entirely (no title row, no border). The close button
|
|
413
|
+
* still renders but floats absolute over the top-right of the body. Use when
|
|
414
|
+
* the body content has its own hero / chrome.
|
|
415
|
+
*/
|
|
416
|
+
hideHeader?: boolean;
|
|
417
|
+
/** Style overrides on the dialog paper (border-radius, shadow, width tweaks). */
|
|
418
|
+
paperSx?: SxProps<Theme>;
|
|
419
|
+
/** Style overrides on the modal backdrop (e.g. tint, blur). */
|
|
420
|
+
backdropSx?: SxProps<Theme>;
|
|
421
|
+
/**
|
|
422
|
+
* Entry transition. Defaults to `slide-left` for `side='right'` and `fade`
|
|
423
|
+
* for `side='center'`.
|
|
424
|
+
*/
|
|
425
|
+
transition?: PanelDialogTransition;
|
|
426
|
+
/** Body content. */
|
|
427
|
+
children: ReactNode;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* PanelDialog — a right-anchored (or centered) slide-in panel for detail
|
|
431
|
+
* views, inspectors, and side sheets. Built on MUI Dialog; focus trap and
|
|
432
|
+
* ESC-to-close come from MUI. Use Dialog for centered modal-with-Save/Cancel.
|
|
433
|
+
*/
|
|
434
|
+
declare function PanelDialog({ open, onClose, title, headerActions, width, side, ariaLabel, hideHeader, paperSx, backdropSx, transition, children, }: PanelDialogProps): react_jsx_runtime.JSX.Element;
|
|
435
|
+
|
|
436
|
+
interface SplitDialogContentProps {
|
|
437
|
+
left: React__default.ReactNode;
|
|
438
|
+
right: React__default.ReactNode;
|
|
439
|
+
/** Width of the right (aside) column in px. @default 320 */
|
|
440
|
+
rightWidth?: number;
|
|
441
|
+
/** Viewport breakpoint (px) below which the layout collapses to one column. @default 860 */
|
|
442
|
+
collapseBelow?: number;
|
|
443
|
+
sx?: SxProps<Theme>;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Two-column dialog body used by detail / info modals: primary content on
|
|
447
|
+
* the left, sticky meta panel on the right. Collapses to a single column on
|
|
448
|
+
* narrow viewports.
|
|
449
|
+
*
|
|
450
|
+
* Compose inside a `<PanelDialog>`:
|
|
451
|
+
* <PanelDialog ...>
|
|
452
|
+
* <SplitDialogContent left={...} right={...} />
|
|
453
|
+
* </PanelDialog>
|
|
454
|
+
*/
|
|
455
|
+
declare const SplitDialogContent: React__default.ForwardRefExoticComponent<SplitDialogContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
456
|
+
|
|
457
|
+
type CardMediaProps = CardMediaProps$1;
|
|
458
|
+
declare const CardMedia: React__default.ForwardRefExoticComponent<Omit<CardMediaProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
459
|
+
type CardVariant = 'standard' | 'tinted' | 'outlined';
|
|
460
|
+
interface CardProps extends Omit<CardProps$1, 'variant'> {
|
|
461
|
+
/** Visual treatment. @default 'standard' */
|
|
462
|
+
variant?: CardVariant;
|
|
463
|
+
hoverable?: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* Opt the card into being a real interactive element. When combined with
|
|
466
|
+
* `onClick`, the root renders via MUI ButtonBase — focusable button,
|
|
467
|
+
* Enter/Space activation, `:focus-visible` ring. When `clickable` is set
|
|
468
|
+
* without `onClick`, only the pointer cursor changes (back-compat).
|
|
469
|
+
*
|
|
470
|
+
* `<Card onClick={...}>` WITHOUT `clickable` keeps a `<div>` root and just
|
|
471
|
+
* forwards the click handler, so consumers using onClick for analytics or
|
|
472
|
+
* non-clickable side effects are not silently turned into buttons.
|
|
473
|
+
*/
|
|
474
|
+
clickable?: boolean;
|
|
475
|
+
}
|
|
476
|
+
declare const Card: React__default.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React__default.RefAttributes<HTMLButtonElement | HTMLDivElement>>;
|
|
477
|
+
declare const CardContent: React__default.ForwardRefExoticComponent<Omit<CardContentProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
478
|
+
declare const CardHeader: React__default.ForwardRefExoticComponent<Omit<CardHeaderProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
479
|
+
declare const CardActions: React__default.ForwardRefExoticComponent<Omit<CardActionsProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
480
|
+
|
|
481
|
+
type ListProps = ListProps$1;
|
|
482
|
+
declare const List: React__default.ForwardRefExoticComponent<Omit<ListProps, "ref"> & React__default.RefAttributes<HTMLUListElement>>;
|
|
483
|
+
interface ListItemProps extends ListItemProps$1 {
|
|
484
|
+
primary?: React__default.ReactNode;
|
|
485
|
+
secondary?: React__default.ReactNode;
|
|
486
|
+
icon?: React__default.ReactNode;
|
|
487
|
+
action?: React__default.ReactNode;
|
|
488
|
+
hoverable?: boolean;
|
|
489
|
+
}
|
|
490
|
+
declare const ListItem: React__default.ForwardRefExoticComponent<Omit<ListItemProps, "ref"> & React__default.RefAttributes<HTMLLIElement>>;
|
|
491
|
+
|
|
492
|
+
interface AvatarProps extends AvatarProps$1 {
|
|
493
|
+
size?: 'small' | 'medium' | 'large' | number;
|
|
494
|
+
}
|
|
495
|
+
declare const Avatar: React__default.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
496
|
+
|
|
497
|
+
interface TableProps extends TableProps$1 {
|
|
498
|
+
stickyHeader?: boolean;
|
|
499
|
+
}
|
|
500
|
+
declare const Table: React__default.ForwardRefExoticComponent<Omit<TableProps, "ref"> & React__default.RefAttributes<HTMLTableElement>>;
|
|
501
|
+
interface TableHeaderProps {
|
|
502
|
+
columns: Array<{
|
|
503
|
+
id: string;
|
|
504
|
+
label: string;
|
|
505
|
+
sortable?: boolean;
|
|
506
|
+
align?: 'left' | 'center' | 'right';
|
|
507
|
+
}>;
|
|
508
|
+
orderBy?: string;
|
|
509
|
+
order?: 'asc' | 'desc';
|
|
510
|
+
onSort?: (columnId: string) => void;
|
|
511
|
+
}
|
|
512
|
+
declare const TableHeader: React__default.ForwardRefExoticComponent<TableHeaderProps & React__default.RefAttributes<HTMLTableSectionElement>>;
|
|
513
|
+
|
|
514
|
+
interface BreadcrumbItem {
|
|
515
|
+
label: string;
|
|
516
|
+
href?: string;
|
|
517
|
+
onClick?: () => void;
|
|
518
|
+
}
|
|
519
|
+
interface BreadcrumbsProps extends Omit<BreadcrumbsProps$1, 'children'> {
|
|
520
|
+
items: BreadcrumbItem[];
|
|
521
|
+
}
|
|
522
|
+
declare const Breadcrumbs: React__default.ForwardRefExoticComponent<Omit<BreadcrumbsProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
523
|
+
|
|
524
|
+
interface AccordionProps extends Omit<AccordionProps$1, 'children'> {
|
|
525
|
+
title: string;
|
|
526
|
+
children: NonNullable<React__default.ReactNode>;
|
|
527
|
+
defaultExpanded?: boolean;
|
|
528
|
+
}
|
|
529
|
+
declare const Accordion: React__default.ForwardRefExoticComponent<Omit<AccordionProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
530
|
+
|
|
531
|
+
interface PaperProps extends PaperProps$1 {
|
|
532
|
+
variant?: 'elevation' | 'outlined';
|
|
533
|
+
}
|
|
534
|
+
declare const Paper: React__default.ForwardRefExoticComponent<Omit<PaperProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
535
|
+
|
|
536
|
+
interface DividerProps extends DividerProps$1 {
|
|
537
|
+
variant?: 'fullWidth' | 'inset' | 'middle';
|
|
538
|
+
}
|
|
539
|
+
declare const Divider: React__default.ForwardRefExoticComponent<Omit<DividerProps, "ref"> & React__default.RefAttributes<HTMLHRElement>>;
|
|
540
|
+
|
|
541
|
+
interface LinkProps extends LinkProps$1 {
|
|
542
|
+
underline?: 'none' | 'hover' | 'always';
|
|
543
|
+
}
|
|
544
|
+
declare const Link: React__default.FC<LinkProps>;
|
|
545
|
+
|
|
546
|
+
interface AppBarProps extends AppBarProps$1 {
|
|
547
|
+
height?: number;
|
|
548
|
+
}
|
|
549
|
+
declare const AppBar: React__default.FC<AppBarProps>;
|
|
550
|
+
|
|
551
|
+
interface CollapseProps extends CollapseProps$1 {
|
|
552
|
+
/**
|
|
553
|
+
* If `true`, the component will transition in
|
|
554
|
+
*/
|
|
555
|
+
in?: boolean;
|
|
556
|
+
/**
|
|
557
|
+
* The content to collapse
|
|
558
|
+
*/
|
|
559
|
+
children?: React__default.ReactNode;
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Collapse component - provides a collapse animation
|
|
563
|
+
*
|
|
564
|
+
* @example
|
|
565
|
+
* ```tsx
|
|
566
|
+
* <Collapse in={open}>
|
|
567
|
+
* <Box>Collapsible content</Box>
|
|
568
|
+
* </Collapse>
|
|
569
|
+
* ```
|
|
570
|
+
*/
|
|
571
|
+
declare const Collapse: React__default.ForwardRefExoticComponent<Omit<CollapseProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Primary action configuration for EntityHeader
|
|
575
|
+
*/
|
|
576
|
+
interface PrimaryAction {
|
|
577
|
+
/**
|
|
578
|
+
* Button label text
|
|
579
|
+
*/
|
|
580
|
+
label: string;
|
|
581
|
+
/**
|
|
582
|
+
* Optional count to display as "Label (N)"
|
|
583
|
+
*/
|
|
584
|
+
count?: number;
|
|
585
|
+
/**
|
|
586
|
+
* Optional leading icon
|
|
587
|
+
*/
|
|
588
|
+
icon?: React__default.ReactNode;
|
|
589
|
+
/**
|
|
590
|
+
* Click handler for the button
|
|
591
|
+
*/
|
|
592
|
+
onClick?: () => void;
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* EntityHeader component props
|
|
596
|
+
*/
|
|
597
|
+
interface EntityHeaderProps {
|
|
598
|
+
/**
|
|
599
|
+
* Primary title text (e.g., entity name)
|
|
600
|
+
* @required
|
|
601
|
+
*/
|
|
602
|
+
title: string;
|
|
603
|
+
/**
|
|
604
|
+
* Secondary descriptive text below title
|
|
605
|
+
*/
|
|
606
|
+
subtitle?: string;
|
|
607
|
+
/**
|
|
608
|
+
* Role or status label - displays as RoleBadge pill
|
|
609
|
+
*/
|
|
610
|
+
role?: string;
|
|
611
|
+
/**
|
|
612
|
+
* Entity identifier - displays as IDBlock with copy action
|
|
613
|
+
*/
|
|
614
|
+
id?: string;
|
|
615
|
+
/**
|
|
616
|
+
* Main action button configuration
|
|
617
|
+
*/
|
|
618
|
+
primaryAction?: PrimaryAction;
|
|
619
|
+
/**
|
|
620
|
+
* Additional content rendered before the primary action button.
|
|
621
|
+
* Accepts any ReactNode (buttons, dropdowns, etc.).
|
|
622
|
+
*/
|
|
623
|
+
startActions?: React__default.ReactNode;
|
|
624
|
+
/**
|
|
625
|
+
* Additional content rendered after the primary action button
|
|
626
|
+
* but before the more-options icon button.
|
|
627
|
+
* Accepts any ReactNode (buttons, dropdowns, etc.).
|
|
628
|
+
*/
|
|
629
|
+
endActions?: React__default.ReactNode;
|
|
630
|
+
/**
|
|
631
|
+
* Callback when ID is copied (internal copy + this callback)
|
|
632
|
+
*/
|
|
633
|
+
onCopyId?: () => void;
|
|
634
|
+
/**
|
|
635
|
+
* Callback when more options button clicked (receives event for anchor positioning)
|
|
636
|
+
*/
|
|
637
|
+
onMoreOptions?: (event: React__default.MouseEvent<HTMLElement>) => void;
|
|
638
|
+
/**
|
|
639
|
+
* HTML heading level for the title element
|
|
640
|
+
* @default 'h2'
|
|
641
|
+
*/
|
|
642
|
+
headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
643
|
+
/**
|
|
644
|
+
* Show bottom divider line
|
|
645
|
+
* @default true
|
|
646
|
+
*/
|
|
647
|
+
divider?: boolean;
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* EntityHeader - Composite UI component for entity (workspace, account, etc.) headers
|
|
651
|
+
*
|
|
652
|
+
* Displays an entity with title, optional subtitle, role badge, ID with copy action,
|
|
653
|
+
* primary action button, and more options control. Matches Figma node 15-1258 specifications.
|
|
654
|
+
*
|
|
655
|
+
* @example
|
|
656
|
+
* ```tsx
|
|
657
|
+
* // Full example with all props
|
|
658
|
+
* <EntityHeader
|
|
659
|
+
* title="Game Co. WF 1769936170928"
|
|
660
|
+
* subtitle="Gaming Demo Account"
|
|
661
|
+
* role="Manager"
|
|
662
|
+
* id="W1234567890"
|
|
663
|
+
* primaryAction={{
|
|
664
|
+
* label: 'Members',
|
|
665
|
+
* count: 5,
|
|
666
|
+
* icon: <AddCircleIcon />,
|
|
667
|
+
* onClick: () => console.log('Open members')
|
|
668
|
+
* }}
|
|
669
|
+
* onCopyId={() => console.log('ID copied')}
|
|
670
|
+
* onMoreOptions={(e) => setAnchorEl(e.currentTarget)}
|
|
671
|
+
* />
|
|
672
|
+
*
|
|
673
|
+
* // Minimal example
|
|
674
|
+
* <EntityHeader title="Simple Entity" />
|
|
675
|
+
* ```
|
|
676
|
+
*
|
|
677
|
+
* @see Figma node 15-1258 for design specifications
|
|
678
|
+
*/
|
|
679
|
+
declare const EntityHeader: React__default.ForwardRefExoticComponent<EntityHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
680
|
+
|
|
681
|
+
export { Accordion, type AccordionProps, AgentAvatar, type AgentAvatarProps, AppBar, type AppBarProps, Avatar, type AvatarProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Card, CardActions, CardContent, CardHeader, CardMedia, type CardMediaProps, type CardProps, type CardVariant, Collapse, type CollapseProps, DefinitionRow, type DefinitionRowProps, Dialog, type DialogProps, Divider, type DividerProps, Drawer, type DrawerProps, type DrawerWidth, type DrawerWidthValue, EntityHeader, type EntityHeaderProps, GRADIENT_PALETTE_COUNT, GradientSurface, type GradientSurfaceProps, KpiCard, type KpiCardProps, type KpiTone, Link, type LinkProps, List, ListItem, type ListItemProps, type ListProps, Logo, type LogoProps, MetaField, type MetaFieldProps, NumberedList, type NumberedListItem, type NumberedListProps, type NumberedListTone, PanelDialog, type PanelDialogProps, type PanelDialogSide, type PanelDialogWidth, Paper, type PaperProps, type PrimaryAction, type ResponsiveDrawerWidth, ScrollableRow, type ScrollableRowProps, SectionRow, type SectionRowProps, SplitDialogContent, type SplitDialogContentProps, Table, TableHeader, type TableHeaderProps, type TableProps, resolveDrawerWidth };
|