bluconndesign 1.0.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 +95 -0
- package/dist/index.d.mts +2178 -0
- package/dist/index.d.ts +2178 -0
- package/dist/index.js +12390 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +12277 -0
- package/dist/index.mjs.map +1 -0
- package/dist/theme/index.d.mts +102 -0
- package/dist/theme/index.d.ts +102 -0
- package/dist/theme/index.js +2262 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/index.mjs +2139 -0
- package/dist/theme/index.mjs.map +1 -0
- package/dist/theme-BTyiMh3f.d.mts +310 -0
- package/dist/theme-BTyiMh3f.d.ts +310 -0
- package/package.json +64 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,2178 @@
|
|
|
1
|
+
import { D as DesignSystemColor } from './theme-BTyiMh3f.mjs';
|
|
2
|
+
export { t as theme, a as tokens } from './theme-BTyiMh3f.mjs';
|
|
3
|
+
import React$1 from 'react';
|
|
4
|
+
import * as _mui_material from '@mui/material';
|
|
5
|
+
import { ButtonProps as ButtonProps$1, ButtonGroupProps as ButtonGroupProps$1, CheckboxProps as CheckboxProps$1, SwitchProps, ChipProps, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, TextFieldProps, BadgeProps as BadgeProps$1, AvatarProps as AvatarProps$1, TooltipProps as TooltipProps$1, CircularProgressProps as CircularProgressProps$1, LinearProgressProps as LinearProgressProps$1, BoxProps as BoxProps$1, ContainerProps as ContainerProps$1, GridProps as GridProps$1, StackProps as StackProps$1, TypographyProps as TypographyProps$1, DividerProps as DividerProps$1, AppBarProps as AppBarProps$1, DrawerProps as DrawerProps$1, LinkProps as LinkProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, TabsProps as TabsProps$1, TabProps as TabProps$1, ToolbarProps as ToolbarProps$1, ListProps as ListProps$1, ListItemProps as ListItemProps$1, ListItemAvatarProps as ListItemAvatarProps$1, ListItemButtonProps as ListItemButtonProps$1, ListItemIconProps as ListItemIconProps$1, ListItemSecondaryActionProps as ListItemSecondaryActionProps$1, ListItemTextProps as ListItemTextProps$1, TableProps as TableProps$1, TableBodyProps as TableBodyProps$1, TableCellProps as TableCellProps$1, TableContainerProps as TableContainerProps$1, TableHeadProps as TableHeadProps$1, TableRowProps as TableRowProps$1, PaperProps as PaperProps$1, AccordionProps as AccordionProps$1, AccordionDetailsProps as AccordionDetailsProps$1, AccordionSummaryProps as AccordionSummaryProps$1, CardProps as CardProps$1, CardMediaProps as CardMediaProps$1, CardContentProps as CardContentProps$1, CardActionsProps as CardActionsProps$1, AutocompleteProps as AutocompleteProps$1, SelectProps as SelectProps$1, FormControlProps as FormControlProps$1, FormControlLabelProps as FormControlLabelProps$1, FormHelperTextProps as FormHelperTextProps$1, FormLabelProps as FormLabelProps$1, InputLabelProps as InputLabelProps$1, IconButtonProps as IconButtonProps$1, FabProps as FabProps$1, ToggleButtonProps as ToggleButtonProps$1, ToggleButtonGroupProps as ToggleButtonGroupProps$1, DialogProps as DialogProps$1, DialogActionsProps as DialogActionsProps$1, DialogContentProps as DialogContentProps$1, DialogContentTextProps as DialogContentTextProps$1, DialogTitleProps as DialogTitleProps$1, PopoverProps as PopoverProps$1, StepperProps as StepperProps$1, StepProps as StepProps$1, StepLabelProps as StepLabelProps$1, StepContentProps as StepContentProps$1, StepButtonProps as StepButtonProps$1 } from '@mui/material';
|
|
6
|
+
export { CssBaseline } from '@mui/material';
|
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
|
+
import * as _mui_types from '@mui/types';
|
|
9
|
+
import * as _mui_system from '@mui/system';
|
|
10
|
+
import { DatePickerProps as DatePickerProps$1, TimePickerProps as TimePickerProps$1, LocalizationProviderProps as LocalizationProviderProps$1 } from '@mui/x-date-pickers';
|
|
11
|
+
import { Dayjs } from 'dayjs';
|
|
12
|
+
import { DataGridProps as DataGridProps$1, GridColDef } from '@mui/x-data-grid';
|
|
13
|
+
export { ThemeProvider } from '@mui/material/styles';
|
|
14
|
+
|
|
15
|
+
type ButtonSize = 'small' | 'medium' | 'large';
|
|
16
|
+
interface ButtonProps extends Omit<ButtonProps$1, 'color' | 'size'> {
|
|
17
|
+
label?: string;
|
|
18
|
+
color?: DesignSystemColor | 'inherit';
|
|
19
|
+
size?: ButtonSize;
|
|
20
|
+
loading?: boolean;
|
|
21
|
+
iconLeading?: React$1.ReactNode;
|
|
22
|
+
iconTrailing?: React$1.ReactNode;
|
|
23
|
+
iconOnly?: boolean;
|
|
24
|
+
}
|
|
25
|
+
declare const Button: React$1.FC<ButtonProps>;
|
|
26
|
+
|
|
27
|
+
interface ButtonGroupProps extends ButtonGroupProps$1 {
|
|
28
|
+
}
|
|
29
|
+
declare const ButtonGroup: React$1.FC<ButtonGroupProps>;
|
|
30
|
+
|
|
31
|
+
interface CheckboxProps extends Omit<CheckboxProps$1, 'color' | 'size'> {
|
|
32
|
+
/**
|
|
33
|
+
* Optional label to display next to the checkbox
|
|
34
|
+
*/
|
|
35
|
+
label?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The color of the checkbox when checked
|
|
38
|
+
*/
|
|
39
|
+
color?: DesignSystemColor;
|
|
40
|
+
/**
|
|
41
|
+
* The size of the checkbox
|
|
42
|
+
* @default 'medium'
|
|
43
|
+
*/
|
|
44
|
+
size?: 'small' | 'medium';
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Checkbox component following the design system specifications.
|
|
48
|
+
*
|
|
49
|
+
* Features:
|
|
50
|
+
* - Two sizes: small (16x16px) and medium (20x20px)
|
|
51
|
+
* - Green checked state with hover effect
|
|
52
|
+
* - Focus ring on keyboard navigation
|
|
53
|
+
* - Disabled state styling
|
|
54
|
+
* - Indeterminate state support
|
|
55
|
+
*/
|
|
56
|
+
declare const Checkbox: ({ label, size, color, ...props }: CheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
interface ToggleProps extends Omit<SwitchProps, 'color'> {
|
|
59
|
+
/**
|
|
60
|
+
* Optional label to display next to the toggle
|
|
61
|
+
*/
|
|
62
|
+
label?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The color of the toggle when checked
|
|
65
|
+
*/
|
|
66
|
+
color?: DesignSystemColor;
|
|
67
|
+
/**
|
|
68
|
+
* The size of the toggle
|
|
69
|
+
* @default 'medium'
|
|
70
|
+
*/
|
|
71
|
+
size?: 'small' | 'medium';
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Toggle component (Switch) following the design system specifications.
|
|
75
|
+
*
|
|
76
|
+
* Features:
|
|
77
|
+
* - Two sizes: small (sm: 36x20px) and medium (md: 44x24px)
|
|
78
|
+
* - Green checked state with hover effect
|
|
79
|
+
* - Focus ring on keyboard navigation
|
|
80
|
+
* - Disabled state styling
|
|
81
|
+
*/
|
|
82
|
+
declare const Toggle: ({ label, size, color, ...props }: ToggleProps) => react_jsx_runtime.JSX.Element;
|
|
83
|
+
|
|
84
|
+
type TagSize = 'small' | 'medium' | 'large';
|
|
85
|
+
type TagVariant = 'filled' | 'outlined';
|
|
86
|
+
type TagColor = 'primary' | 'secondary' | 'error' | 'success';
|
|
87
|
+
interface TagProps extends Omit<ChipProps, 'color' | 'size' | 'variant'> {
|
|
88
|
+
label?: string;
|
|
89
|
+
color?: TagColor;
|
|
90
|
+
size?: TagSize;
|
|
91
|
+
variant?: TagVariant;
|
|
92
|
+
icon?: React$1.ReactElement;
|
|
93
|
+
onDelete?: (event: any) => void;
|
|
94
|
+
deleteIcon?: React$1.ReactElement;
|
|
95
|
+
avatar?: React$1.ReactElement;
|
|
96
|
+
clickable?: boolean;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Tag component (wrapper for MUI Chip)
|
|
100
|
+
*
|
|
101
|
+
* A compact element that represents an input, attribute, or action.
|
|
102
|
+
* Tags can be used in Autocomplete components with the limitTags prop.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* // Basic tag
|
|
106
|
+
* <Tag label="Tag Label" color="primary" />
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* // Deletable tag
|
|
110
|
+
* <Tag label="Deletable" color="primary" onDelete={() => handleDelete()} />
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* // With Autocomplete (limit tags)
|
|
114
|
+
* <Autocomplete
|
|
115
|
+
* multiple
|
|
116
|
+
* limitTags={2}
|
|
117
|
+
* options={options}
|
|
118
|
+
* renderTags={(value, getTagProps) =>
|
|
119
|
+
* value.map((option, index) => (
|
|
120
|
+
* <Tag
|
|
121
|
+
* label={option}
|
|
122
|
+
* {...getTagProps({ index })}
|
|
123
|
+
* />
|
|
124
|
+
* ))
|
|
125
|
+
* }
|
|
126
|
+
* />
|
|
127
|
+
*/
|
|
128
|
+
declare const Tag: React$1.FC<TagProps>;
|
|
129
|
+
|
|
130
|
+
interface RadioOption {
|
|
131
|
+
label: string;
|
|
132
|
+
value: string | number;
|
|
133
|
+
disabled?: boolean;
|
|
134
|
+
}
|
|
135
|
+
interface RadioProps extends Omit<RadioProps$1, 'color'> {
|
|
136
|
+
/**
|
|
137
|
+
* The color of the radio when checked
|
|
138
|
+
*/
|
|
139
|
+
color?: DesignSystemColor;
|
|
140
|
+
/**
|
|
141
|
+
* The size of the radio
|
|
142
|
+
* @default 'medium'
|
|
143
|
+
*/
|
|
144
|
+
size?: 'small' | 'medium';
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Radio component following the design system specifications.
|
|
148
|
+
*
|
|
149
|
+
* Features:
|
|
150
|
+
* - Two sizes: small (16x16px) and medium (20x20px)
|
|
151
|
+
* - Green checked state with solid background and white dot
|
|
152
|
+
* - Focus ring on keyboard navigation
|
|
153
|
+
* - Disabled state styling
|
|
154
|
+
*/
|
|
155
|
+
declare const Radio: ({ size, disabled, color, ...props }: RadioProps) => react_jsx_runtime.JSX.Element;
|
|
156
|
+
interface RadioGroupProps extends Omit<RadioGroupProps$1, 'color'> {
|
|
157
|
+
options: RadioOption[];
|
|
158
|
+
color?: DesignSystemColor;
|
|
159
|
+
/**
|
|
160
|
+
* The size of the radio buttons
|
|
161
|
+
* @default 'medium'
|
|
162
|
+
*/
|
|
163
|
+
size?: 'small' | 'medium';
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* RadioGroup component following the design system specifications.
|
|
167
|
+
*/
|
|
168
|
+
declare const RadioGroup: ({ options, color, size, ...props }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
169
|
+
|
|
170
|
+
interface InputProps extends Omit<TextFieldProps, 'color' | 'size'> {
|
|
171
|
+
/**
|
|
172
|
+
* The color of the input field
|
|
173
|
+
*/
|
|
174
|
+
color?: DesignSystemColor;
|
|
175
|
+
/**
|
|
176
|
+
* The size of the input field
|
|
177
|
+
* @default 'medium'
|
|
178
|
+
*/
|
|
179
|
+
size?: 'small' | 'medium';
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Input component following the design system specifications.
|
|
183
|
+
*
|
|
184
|
+
* Features:
|
|
185
|
+
* - Two sizes: small (sm) and medium (md)
|
|
186
|
+
* - Support for leading and trailing adornments
|
|
187
|
+
* - Error state with destructive styling
|
|
188
|
+
* - Disabled state
|
|
189
|
+
* - Helper text support
|
|
190
|
+
*/
|
|
191
|
+
declare const Input: ({ size, color, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
|
|
192
|
+
|
|
193
|
+
interface TextAreaProps extends Omit<TextFieldProps, 'color' | 'multiline'> {
|
|
194
|
+
/**
|
|
195
|
+
* The color of the textarea field
|
|
196
|
+
*/
|
|
197
|
+
color?: DesignSystemColor;
|
|
198
|
+
/**
|
|
199
|
+
* Minimum number of rows to display
|
|
200
|
+
* @default 4
|
|
201
|
+
*/
|
|
202
|
+
minRows?: number;
|
|
203
|
+
/**
|
|
204
|
+
* Maximum number of rows to display before scrolling
|
|
205
|
+
*/
|
|
206
|
+
maxRows?: number;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* TextArea component following the design system specifications.
|
|
210
|
+
*
|
|
211
|
+
* A multiline input field for longer text content.
|
|
212
|
+
*
|
|
213
|
+
* Features:
|
|
214
|
+
* - Resizable textarea with optional min/max rows
|
|
215
|
+
* - Error state with destructive styling
|
|
216
|
+
* - Disabled state
|
|
217
|
+
* - Helper text support
|
|
218
|
+
* - Label with required indicator
|
|
219
|
+
*/
|
|
220
|
+
declare const TextArea: ({ minRows, maxRows, color, ...props }: TextAreaProps) => react_jsx_runtime.JSX.Element;
|
|
221
|
+
|
|
222
|
+
interface BadgeProps extends Omit<BadgeProps$1, 'color' | 'variant' | 'content'> {
|
|
223
|
+
color?: DesignSystemColor;
|
|
224
|
+
/**
|
|
225
|
+
* Size of the badge
|
|
226
|
+
*/
|
|
227
|
+
size?: 'sm' | 'md';
|
|
228
|
+
/**
|
|
229
|
+
* Variant: 'dot' for overlay badge (default MUI behavior), 'inline' for pill badge next to content
|
|
230
|
+
* @default 'dot'
|
|
231
|
+
*/
|
|
232
|
+
variant?: 'dot' | 'inline';
|
|
233
|
+
/**
|
|
234
|
+
* For inline variant: the content to display in the badge
|
|
235
|
+
*/
|
|
236
|
+
content?: React$1.ReactNode;
|
|
237
|
+
/**
|
|
238
|
+
* Whether the badge represents an active/selected state (for inline variant)
|
|
239
|
+
*/
|
|
240
|
+
active?: boolean;
|
|
241
|
+
}
|
|
242
|
+
declare const Badge: ({ color, size, variant, content, active, ...props }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
243
|
+
|
|
244
|
+
type AvatarSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg';
|
|
245
|
+
interface AvatarProps extends Omit<AvatarProps$1, 'variant'> {
|
|
246
|
+
/**
|
|
247
|
+
* Size of the avatar
|
|
248
|
+
* @default 'sm'
|
|
249
|
+
*/
|
|
250
|
+
size?: AvatarSize;
|
|
251
|
+
/**
|
|
252
|
+
* Whether to show placeholder (user icon or initials) instead of image
|
|
253
|
+
* @default false
|
|
254
|
+
*/
|
|
255
|
+
placeholder?: boolean;
|
|
256
|
+
/**
|
|
257
|
+
* Initials to display when placeholder is true and text is provided
|
|
258
|
+
*/
|
|
259
|
+
initials?: string;
|
|
260
|
+
/**
|
|
261
|
+
* Whether to show the verified badge
|
|
262
|
+
* @default false
|
|
263
|
+
*/
|
|
264
|
+
verified?: boolean;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Avatar component following the design system specifications.
|
|
268
|
+
*
|
|
269
|
+
* Features:
|
|
270
|
+
* - Three sizes: sm (72px), md (96px), lg (160px)
|
|
271
|
+
* - Wrapper with white background and subtle border
|
|
272
|
+
* - Placeholder state with user icon
|
|
273
|
+
* - Initials state with text
|
|
274
|
+
* - Optional verified badge
|
|
275
|
+
*/
|
|
276
|
+
declare const Avatar: ({ size, placeholder, initials, verified, src, alt, children, sx, ...props }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
277
|
+
|
|
278
|
+
interface TooltipProps extends Omit<TooltipProps$1, 'title'> {
|
|
279
|
+
/**
|
|
280
|
+
* The main tooltip text
|
|
281
|
+
*/
|
|
282
|
+
title: string;
|
|
283
|
+
/**
|
|
284
|
+
* Optional supporting text for more detailed descriptions
|
|
285
|
+
*/
|
|
286
|
+
supportingText?: string;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Tooltip component following the design system specifications.
|
|
290
|
+
*
|
|
291
|
+
* Features:
|
|
292
|
+
* - Dark background (#0A0D12) with 8px border radius
|
|
293
|
+
* - Optional supporting text for detailed descriptions
|
|
294
|
+
* - Proper arrow styling matching the tooltip background
|
|
295
|
+
* - Typography: 12px DM Sans, semibold title, medium supporting text
|
|
296
|
+
*/
|
|
297
|
+
declare const Tooltip: ({ title, supportingText, children, arrow, placement, ...props }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
298
|
+
|
|
299
|
+
interface CircularProgressProps extends Omit<CircularProgressProps$1, 'color'> {
|
|
300
|
+
color?: DesignSystemColor | 'inherit';
|
|
301
|
+
}
|
|
302
|
+
interface LinearProgressProps extends Omit<LinearProgressProps$1, 'color'> {
|
|
303
|
+
color?: DesignSystemColor | 'inherit';
|
|
304
|
+
}
|
|
305
|
+
declare const CircularProgress: ({ color, ...props }: CircularProgressProps) => react_jsx_runtime.JSX.Element;
|
|
306
|
+
declare const LinearProgress: ({ color, ...props }: LinearProgressProps) => react_jsx_runtime.JSX.Element;
|
|
307
|
+
type ProgressCircleSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg';
|
|
308
|
+
type ProgressCircleShape = 'circle' | 'half-circle';
|
|
309
|
+
interface ProgressCircleProps {
|
|
310
|
+
/**
|
|
311
|
+
* The progress value (0-100)
|
|
312
|
+
*/
|
|
313
|
+
value: number;
|
|
314
|
+
/**
|
|
315
|
+
* Size of the progress circle
|
|
316
|
+
*/
|
|
317
|
+
size?: ProgressCircleSize;
|
|
318
|
+
/**
|
|
319
|
+
* Shape of the progress indicator
|
|
320
|
+
*/
|
|
321
|
+
shape?: ProgressCircleShape;
|
|
322
|
+
/**
|
|
323
|
+
* Show label below the percentage
|
|
324
|
+
*/
|
|
325
|
+
showLabel?: boolean;
|
|
326
|
+
/**
|
|
327
|
+
* Custom label text
|
|
328
|
+
*/
|
|
329
|
+
label?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Color of the progress bar
|
|
332
|
+
*/
|
|
333
|
+
color?: 'primary' | 'success' | 'warning' | 'error';
|
|
334
|
+
}
|
|
335
|
+
declare const ProgressCircle: React$1.FC<ProgressCircleProps>;
|
|
336
|
+
|
|
337
|
+
type BoxProps<C extends React.ElementType = 'div'> = BoxProps$1<C, {
|
|
338
|
+
component?: C;
|
|
339
|
+
}>;
|
|
340
|
+
declare const Box: _mui_types.OverridableComponent<_mui_system.BoxTypeMap<{}, "div", _mui_material.Theme>>;
|
|
341
|
+
|
|
342
|
+
type ContainerProps = ContainerProps$1;
|
|
343
|
+
declare const Container: React$1.FC<ContainerProps>;
|
|
344
|
+
|
|
345
|
+
type GridProps = GridProps$1;
|
|
346
|
+
declare const Grid: React$1.FC<GridProps>;
|
|
347
|
+
|
|
348
|
+
type StackProps = StackProps$1;
|
|
349
|
+
declare const Stack: React$1.FC<StackProps>;
|
|
350
|
+
|
|
351
|
+
interface TypographyProps extends Omit<TypographyProps$1, 'color'> {
|
|
352
|
+
color?: DesignSystemColor | 'textPrimary' | 'textSecondary' | 'error' | 'inherit';
|
|
353
|
+
}
|
|
354
|
+
declare const Typography: React$1.FC<TypographyProps>;
|
|
355
|
+
|
|
356
|
+
type DividerProps = DividerProps$1;
|
|
357
|
+
declare const Divider: React$1.FC<DividerProps>;
|
|
358
|
+
|
|
359
|
+
interface AppBarProps extends Omit<AppBarProps$1, 'color'> {
|
|
360
|
+
color?: DesignSystemColor | 'transparent' | 'inherit' | 'default';
|
|
361
|
+
}
|
|
362
|
+
declare const AppBar: React$1.FC<AppBarProps>;
|
|
363
|
+
|
|
364
|
+
type BreadcrumbDivider = 'Chevron' | 'Slash';
|
|
365
|
+
type BreadcrumbType = 'Text' | 'Text with line' | 'Button';
|
|
366
|
+
type BreadcrumbBreakpoint = 'Desktop' | 'Mobile';
|
|
367
|
+
interface BreadcrumbItem {
|
|
368
|
+
label: string;
|
|
369
|
+
href?: string;
|
|
370
|
+
isCurrentPage?: boolean;
|
|
371
|
+
}
|
|
372
|
+
interface BreadcrumbsProps {
|
|
373
|
+
items: BreadcrumbItem[];
|
|
374
|
+
divider?: BreadcrumbDivider;
|
|
375
|
+
type?: BreadcrumbType;
|
|
376
|
+
breakpoint?: BreadcrumbBreakpoint;
|
|
377
|
+
showHomeIcon?: boolean;
|
|
378
|
+
maxItems?: number;
|
|
379
|
+
onItemClick?: (item: BreadcrumbItem, index: number) => void;
|
|
380
|
+
}
|
|
381
|
+
declare const Breadcrumbs: React$1.FC<BreadcrumbsProps>;
|
|
382
|
+
|
|
383
|
+
type DrawerProps = DrawerProps$1;
|
|
384
|
+
declare const Drawer: React$1.FC<DrawerProps>;
|
|
385
|
+
|
|
386
|
+
interface LinkProps extends Omit<LinkProps$1, 'color'> {
|
|
387
|
+
color?: DesignSystemColor | 'inherit' | 'initial';
|
|
388
|
+
}
|
|
389
|
+
declare const Link: React$1.FC<LinkProps>;
|
|
390
|
+
|
|
391
|
+
interface SectionFooterAction {
|
|
392
|
+
label: string;
|
|
393
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
394
|
+
onClick?: () => void;
|
|
395
|
+
disabled?: boolean;
|
|
396
|
+
}
|
|
397
|
+
interface SectionFooterPeriod {
|
|
398
|
+
label: string;
|
|
399
|
+
value: string;
|
|
400
|
+
}
|
|
401
|
+
interface SectionFooterProps {
|
|
402
|
+
/**
|
|
403
|
+
* Time period options for toggle buttons
|
|
404
|
+
*/
|
|
405
|
+
periods?: SectionFooterPeriod[];
|
|
406
|
+
/**
|
|
407
|
+
* Selected period value
|
|
408
|
+
*/
|
|
409
|
+
selectedPeriod?: string;
|
|
410
|
+
/**
|
|
411
|
+
* Period change handler
|
|
412
|
+
*/
|
|
413
|
+
onPeriodChange?: (value: string) => void;
|
|
414
|
+
/**
|
|
415
|
+
* Show custom period button
|
|
416
|
+
*/
|
|
417
|
+
showCustomButton?: boolean;
|
|
418
|
+
/**
|
|
419
|
+
* Custom button click handler
|
|
420
|
+
*/
|
|
421
|
+
onCustomClick?: () => void;
|
|
422
|
+
/**
|
|
423
|
+
* Show "Learn more" link
|
|
424
|
+
*/
|
|
425
|
+
showLearnMore?: boolean;
|
|
426
|
+
/**
|
|
427
|
+
* Learn more click handler
|
|
428
|
+
*/
|
|
429
|
+
onLearnMoreClick?: () => void;
|
|
430
|
+
/**
|
|
431
|
+
* Action buttons to display
|
|
432
|
+
*/
|
|
433
|
+
actions?: SectionFooterAction[];
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* SectionFooter component for consistent section footers with time periods and actions.
|
|
437
|
+
*
|
|
438
|
+
* Features:
|
|
439
|
+
* - Time period toggle buttons (12 months, 30 days, 7 days, etc.)
|
|
440
|
+
* - Custom period button with + icon
|
|
441
|
+
* - Learn more link
|
|
442
|
+
* - Action buttons (Tertiary, Secondary, Primary)
|
|
443
|
+
* - Responsive layout
|
|
444
|
+
*/
|
|
445
|
+
declare const SectionFooter: React$1.FC<SectionFooterProps>;
|
|
446
|
+
|
|
447
|
+
type MenuProps = MenuProps$1;
|
|
448
|
+
declare const Menu: React$1.FC<MenuProps>;
|
|
449
|
+
|
|
450
|
+
type MenuItemProps = MenuItemProps$1;
|
|
451
|
+
declare const MenuItem: React$1.FC<MenuItemProps>;
|
|
452
|
+
|
|
453
|
+
type TabsProps = TabsProps$1;
|
|
454
|
+
declare const Tabs: React$1.FC<TabsProps>;
|
|
455
|
+
|
|
456
|
+
type TabProps = TabProps$1;
|
|
457
|
+
declare const Tab: React$1.FC<TabProps>;
|
|
458
|
+
|
|
459
|
+
type VerticalTabsType = 'Button primary' | 'Button gray' | 'Line' | 'Button border' | 'Button minimal';
|
|
460
|
+
type VerticalTabsSize = 'sm' | 'md';
|
|
461
|
+
type VerticalTabsBreakpoint = 'Desktop' | 'Mobile';
|
|
462
|
+
interface VerticalTab {
|
|
463
|
+
label: string;
|
|
464
|
+
value: string;
|
|
465
|
+
badge?: number;
|
|
466
|
+
}
|
|
467
|
+
interface VerticalTabsProps extends Omit<BoxProps$1, 'onChange'> {
|
|
468
|
+
/**
|
|
469
|
+
* Visual style of the tabs
|
|
470
|
+
*/
|
|
471
|
+
type?: VerticalTabsType;
|
|
472
|
+
/**
|
|
473
|
+
* Size of the tabs
|
|
474
|
+
*/
|
|
475
|
+
size?: VerticalTabsSize;
|
|
476
|
+
/**
|
|
477
|
+
* Responsive breakpoint (manual override)
|
|
478
|
+
*/
|
|
479
|
+
breakpoint?: VerticalTabsBreakpoint;
|
|
480
|
+
/**
|
|
481
|
+
* Array of tab items
|
|
482
|
+
*/
|
|
483
|
+
tabs?: VerticalTab[];
|
|
484
|
+
/**
|
|
485
|
+
* Currently active tab value
|
|
486
|
+
*/
|
|
487
|
+
value?: string;
|
|
488
|
+
/**
|
|
489
|
+
* Callback when tab changes
|
|
490
|
+
*/
|
|
491
|
+
onChange?: (value: string) => void;
|
|
492
|
+
}
|
|
493
|
+
declare const VerticalTabs: React$1.FC<VerticalTabsProps>;
|
|
494
|
+
|
|
495
|
+
type HorizontalTabsType = 'Button brand' | 'Button gray' | 'Button white' | 'Underline' | 'Button border' | 'Button minimal';
|
|
496
|
+
type HorizontalTabsSize = 'sm' | 'md';
|
|
497
|
+
type HorizontalTabsBreakpoint = 'Desktop' | 'Mobile';
|
|
498
|
+
interface HorizontalTab {
|
|
499
|
+
label: string;
|
|
500
|
+
value: string;
|
|
501
|
+
badge?: number;
|
|
502
|
+
}
|
|
503
|
+
interface HorizontalTabsProps extends Omit<BoxProps$1, 'onChange'> {
|
|
504
|
+
/**
|
|
505
|
+
* Visual style of the tabs
|
|
506
|
+
*/
|
|
507
|
+
type?: HorizontalTabsType;
|
|
508
|
+
/**
|
|
509
|
+
* Size of the tabs
|
|
510
|
+
*/
|
|
511
|
+
size?: HorizontalTabsSize;
|
|
512
|
+
/**
|
|
513
|
+
* Whether tabs should expand to fill available width
|
|
514
|
+
*/
|
|
515
|
+
fullWidth?: boolean;
|
|
516
|
+
/**
|
|
517
|
+
* Responsive breakpoint (manual override)
|
|
518
|
+
*/
|
|
519
|
+
breakpoint?: HorizontalTabsBreakpoint;
|
|
520
|
+
/**
|
|
521
|
+
* Array of tab items
|
|
522
|
+
*/
|
|
523
|
+
tabs?: HorizontalTab[];
|
|
524
|
+
/**
|
|
525
|
+
* Currently active tab value
|
|
526
|
+
*/
|
|
527
|
+
value?: string;
|
|
528
|
+
/**
|
|
529
|
+
* Callback when tab changes
|
|
530
|
+
*/
|
|
531
|
+
onChange?: (value: string) => void;
|
|
532
|
+
}
|
|
533
|
+
declare const HorizontalTabs: React$1.FC<HorizontalTabsProps>;
|
|
534
|
+
|
|
535
|
+
type ToolbarProps = ToolbarProps$1;
|
|
536
|
+
declare const Toolbar: React$1.FC<ToolbarProps>;
|
|
537
|
+
|
|
538
|
+
type ListProps = ListProps$1;
|
|
539
|
+
declare const List: React$1.FC<ListProps>;
|
|
540
|
+
type ListItemProps = ListItemProps$1;
|
|
541
|
+
declare const ListItem: React$1.FC<ListItemProps>;
|
|
542
|
+
type ListItemAvatarProps = ListItemAvatarProps$1;
|
|
543
|
+
declare const ListItemAvatar: React$1.FC<ListItemAvatarProps>;
|
|
544
|
+
type ListItemButtonProps = ListItemButtonProps$1;
|
|
545
|
+
declare const ListItemButton: React$1.FC<ListItemButtonProps>;
|
|
546
|
+
type ListItemIconProps = ListItemIconProps$1;
|
|
547
|
+
declare const ListItemIcon: React$1.FC<ListItemIconProps>;
|
|
548
|
+
type ListItemSecondaryActionProps = ListItemSecondaryActionProps$1;
|
|
549
|
+
declare const ListItemSecondaryAction: React$1.FC<ListItemSecondaryActionProps>;
|
|
550
|
+
type ListItemTextProps = ListItemTextProps$1;
|
|
551
|
+
declare const ListItemText: React$1.FC<ListItemTextProps>;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Table component - wrapper around MUI Table
|
|
555
|
+
*
|
|
556
|
+
* For pagination, use the design system's Pagination component from '../Pagination'
|
|
557
|
+
* instead of MUI's TablePagination.
|
|
558
|
+
*
|
|
559
|
+
* @example
|
|
560
|
+
* import { Table, TableBody, TableCell, TableContainer, TableHead, TableRow } from 'design_system';
|
|
561
|
+
* import { Pagination } from 'design_system';
|
|
562
|
+
*/
|
|
563
|
+
type TableProps = TableProps$1;
|
|
564
|
+
declare const Table: React$1.FC<TableProps>;
|
|
565
|
+
type TableBodyProps = TableBodyProps$1;
|
|
566
|
+
declare const TableBody: React$1.FC<TableBodyProps>;
|
|
567
|
+
type TableCellProps = TableCellProps$1;
|
|
568
|
+
declare const TableCell: React$1.FC<TableCellProps>;
|
|
569
|
+
type TableContainerProps = TableContainerProps$1;
|
|
570
|
+
declare const TableContainer: React$1.FC<TableContainerProps>;
|
|
571
|
+
type TableHeadProps = TableHeadProps$1;
|
|
572
|
+
declare const TableHead: React$1.FC<TableHeadProps>;
|
|
573
|
+
type TableRowProps = TableRowProps$1;
|
|
574
|
+
declare const TableRow: React$1.FC<TableRowProps>;
|
|
575
|
+
|
|
576
|
+
type PaperProps = PaperProps$1;
|
|
577
|
+
declare const Paper: React$1.FC<PaperProps>;
|
|
578
|
+
|
|
579
|
+
type AccordionProps = AccordionProps$1;
|
|
580
|
+
declare const Accordion: React$1.FC<AccordionProps>;
|
|
581
|
+
type AccordionDetailsProps = AccordionDetailsProps$1;
|
|
582
|
+
declare const AccordionDetails: React$1.FC<AccordionDetailsProps>;
|
|
583
|
+
type AccordionSummaryProps = AccordionSummaryProps$1;
|
|
584
|
+
declare const AccordionSummary: React$1.FC<AccordionSummaryProps>;
|
|
585
|
+
|
|
586
|
+
type CardProps = CardProps$1;
|
|
587
|
+
declare const Card: React$1.FC<CardProps>;
|
|
588
|
+
type CardMediaProps = CardMediaProps$1;
|
|
589
|
+
declare const CardMedia: React$1.FC<CardMediaProps>;
|
|
590
|
+
type CardContentProps = CardContentProps$1;
|
|
591
|
+
declare const CardContent: React$1.FC<CardContentProps>;
|
|
592
|
+
type CardActionsProps = CardActionsProps$1;
|
|
593
|
+
declare const CardActions: React$1.FC<CardActionsProps>;
|
|
594
|
+
interface CardHeaderBadgeProps {
|
|
595
|
+
label: string;
|
|
596
|
+
color?: 'primary' | 'success' | 'warning' | 'error' | 'gray';
|
|
597
|
+
}
|
|
598
|
+
interface CardHeaderActionButton {
|
|
599
|
+
label: string;
|
|
600
|
+
onClick?: () => void;
|
|
601
|
+
variant?: 'tertiary' | 'secondary' | 'primary';
|
|
602
|
+
}
|
|
603
|
+
interface CardHeaderProps {
|
|
604
|
+
title: string;
|
|
605
|
+
subheader?: string;
|
|
606
|
+
badge?: CardHeaderBadgeProps;
|
|
607
|
+
avatar?: string | React$1.ReactElement;
|
|
608
|
+
actions?: CardHeaderActionButton[];
|
|
609
|
+
showDropdown?: boolean;
|
|
610
|
+
onDropdownClick?: () => void;
|
|
611
|
+
showDivider?: boolean;
|
|
612
|
+
}
|
|
613
|
+
declare const CardHeader: React$1.FC<CardHeaderProps>;
|
|
614
|
+
|
|
615
|
+
type AutocompleteSize = 'sm' | 'md';
|
|
616
|
+
type AutocompleteProps<T, Multiple extends boolean | undefined = undefined, DisableClearable extends boolean | undefined = undefined, FreeSolo extends boolean | undefined = undefined> = Omit<AutocompleteProps$1<T, Multiple, DisableClearable, FreeSolo>, 'size'> & {
|
|
617
|
+
/**
|
|
618
|
+
* The size of the autocomplete input
|
|
619
|
+
* @default 'md'
|
|
620
|
+
*/
|
|
621
|
+
size?: AutocompleteSize;
|
|
622
|
+
};
|
|
623
|
+
declare const Autocomplete: <T, Multiple extends boolean | undefined = undefined, DisableClearable extends boolean | undefined = undefined, FreeSolo extends boolean | undefined = undefined>(props: AutocompleteProps<T, Multiple, DisableClearable, FreeSolo>) => react_jsx_runtime.JSX.Element;
|
|
624
|
+
|
|
625
|
+
interface SelectOption {
|
|
626
|
+
value: string | number;
|
|
627
|
+
label: string;
|
|
628
|
+
}
|
|
629
|
+
interface SelectProps extends Omit<SelectProps$1, 'children'> {
|
|
630
|
+
/**
|
|
631
|
+
* Array of options for the select dropdown
|
|
632
|
+
* If provided, will render MenuItem children automatically
|
|
633
|
+
*/
|
|
634
|
+
options?: SelectOption[];
|
|
635
|
+
/**
|
|
636
|
+
* Children to render (MenuItem components)
|
|
637
|
+
* If options prop is provided, this will be ignored
|
|
638
|
+
*/
|
|
639
|
+
children?: React$1.ReactNode;
|
|
640
|
+
/**
|
|
641
|
+
* Placeholder text to display when no value is selected
|
|
642
|
+
*/
|
|
643
|
+
placeholder?: string;
|
|
644
|
+
}
|
|
645
|
+
declare const Select: React$1.FC<SelectProps>;
|
|
646
|
+
|
|
647
|
+
type FormControlProps = FormControlProps$1;
|
|
648
|
+
declare const FormControl: React$1.FC<FormControlProps>;
|
|
649
|
+
type FormControlLabelProps = FormControlLabelProps$1;
|
|
650
|
+
declare const FormControlLabel: React$1.FC<FormControlLabelProps>;
|
|
651
|
+
type FormHelperTextProps = FormHelperTextProps$1;
|
|
652
|
+
declare const FormHelperText: React$1.FC<FormHelperTextProps>;
|
|
653
|
+
type FormLabelProps = FormLabelProps$1;
|
|
654
|
+
declare const FormLabel: React$1.FC<FormLabelProps>;
|
|
655
|
+
type InputLabelProps = InputLabelProps$1;
|
|
656
|
+
declare const InputLabel: React$1.FC<InputLabelProps>;
|
|
657
|
+
|
|
658
|
+
interface IconButtonProps extends Omit<IconButtonProps$1, 'color'> {
|
|
659
|
+
color?: DesignSystemColor | 'inherit' | 'default';
|
|
660
|
+
}
|
|
661
|
+
declare const IconButton: React$1.FC<IconButtonProps>;
|
|
662
|
+
|
|
663
|
+
interface FabProps extends Omit<FabProps$1, 'color'> {
|
|
664
|
+
color?: DesignSystemColor | 'inherit' | 'default';
|
|
665
|
+
}
|
|
666
|
+
declare const Fab: React$1.FC<FabProps>;
|
|
667
|
+
|
|
668
|
+
interface ToggleButtonProps extends Omit<ToggleButtonProps$1, 'color'> {
|
|
669
|
+
color?: DesignSystemColor | 'standard';
|
|
670
|
+
}
|
|
671
|
+
declare const ToggleButton: React$1.FC<ToggleButtonProps>;
|
|
672
|
+
interface ToggleButtonGroupProps extends Omit<ToggleButtonGroupProps$1, 'color'> {
|
|
673
|
+
color?: DesignSystemColor | 'standard';
|
|
674
|
+
}
|
|
675
|
+
declare const ToggleButtonGroup: React$1.FC<ToggleButtonGroupProps>;
|
|
676
|
+
|
|
677
|
+
type AlertSeverity = 'info' | 'success' | 'warning' | 'error' | 'default' | 'gray';
|
|
678
|
+
type AlertVariant = 'floating' | 'full-width';
|
|
679
|
+
interface AlertAction {
|
|
680
|
+
label: string;
|
|
681
|
+
onClick?: () => void;
|
|
682
|
+
variant?: 'text' | 'contained';
|
|
683
|
+
}
|
|
684
|
+
interface AlertProps {
|
|
685
|
+
/**
|
|
686
|
+
* The severity of the alert
|
|
687
|
+
*/
|
|
688
|
+
severity?: AlertSeverity;
|
|
689
|
+
/**
|
|
690
|
+
* The title of the alert
|
|
691
|
+
*/
|
|
692
|
+
title: string;
|
|
693
|
+
/**
|
|
694
|
+
* Optional supporting text
|
|
695
|
+
*/
|
|
696
|
+
description?: string;
|
|
697
|
+
/**
|
|
698
|
+
* Optional actions
|
|
699
|
+
*/
|
|
700
|
+
actions?: AlertAction[];
|
|
701
|
+
/**
|
|
702
|
+
* Show close button
|
|
703
|
+
*/
|
|
704
|
+
onClose?: () => void;
|
|
705
|
+
/**
|
|
706
|
+
* Alert variant (floating or full-width)
|
|
707
|
+
*/
|
|
708
|
+
variant?: AlertVariant;
|
|
709
|
+
/**
|
|
710
|
+
* Custom className
|
|
711
|
+
*/
|
|
712
|
+
className?: string;
|
|
713
|
+
}
|
|
714
|
+
declare const Alert: React$1.FC<AlertProps>;
|
|
715
|
+
type AlertTitleProps = {
|
|
716
|
+
children: React$1.ReactNode;
|
|
717
|
+
};
|
|
718
|
+
declare const AlertTitle: React$1.FC<AlertTitleProps>;
|
|
719
|
+
|
|
720
|
+
type DialogProps = DialogProps$1;
|
|
721
|
+
declare const Dialog: React$1.FC<DialogProps>;
|
|
722
|
+
type DialogActionsProps = DialogActionsProps$1;
|
|
723
|
+
declare const DialogActions: React$1.FC<DialogActionsProps>;
|
|
724
|
+
type DialogContentProps = DialogContentProps$1;
|
|
725
|
+
declare const DialogContent: React$1.FC<DialogContentProps>;
|
|
726
|
+
type DialogContentTextProps = DialogContentTextProps$1;
|
|
727
|
+
declare const DialogContentText: React$1.FC<DialogContentTextProps>;
|
|
728
|
+
type DialogTitleProps = DialogTitleProps$1;
|
|
729
|
+
declare const DialogTitle: React$1.FC<DialogTitleProps>;
|
|
730
|
+
|
|
731
|
+
type EmptyStateIconType = 'featured' | 'illustration' | 'fileType' | 'folder';
|
|
732
|
+
type EmptyStateSize = 'sm' | 'md' | 'lg';
|
|
733
|
+
interface EmptyStateAction {
|
|
734
|
+
label: string;
|
|
735
|
+
onClick?: () => void;
|
|
736
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
737
|
+
color?: 'primary' | 'secondary' | 'error' | 'warning' | 'success';
|
|
738
|
+
icon?: React$1.ReactNode;
|
|
739
|
+
}
|
|
740
|
+
interface EmptyStateProps {
|
|
741
|
+
/**
|
|
742
|
+
* The type of icon to display
|
|
743
|
+
*/
|
|
744
|
+
iconType?: EmptyStateIconType;
|
|
745
|
+
/**
|
|
746
|
+
* The size of the empty state
|
|
747
|
+
*/
|
|
748
|
+
size?: EmptyStateSize;
|
|
749
|
+
/**
|
|
750
|
+
* The heading text
|
|
751
|
+
*/
|
|
752
|
+
heading?: string;
|
|
753
|
+
/**
|
|
754
|
+
* The description/supporting text
|
|
755
|
+
*/
|
|
756
|
+
description?: string;
|
|
757
|
+
/**
|
|
758
|
+
* Primary action button
|
|
759
|
+
*/
|
|
760
|
+
primaryAction?: EmptyStateAction;
|
|
761
|
+
/**
|
|
762
|
+
* Secondary action button
|
|
763
|
+
*/
|
|
764
|
+
secondaryAction?: EmptyStateAction;
|
|
765
|
+
/**
|
|
766
|
+
* Whether to show the decorative background pattern
|
|
767
|
+
*/
|
|
768
|
+
showBackground?: boolean;
|
|
769
|
+
/**
|
|
770
|
+
* Custom className
|
|
771
|
+
*/
|
|
772
|
+
className?: string;
|
|
773
|
+
}
|
|
774
|
+
declare const EmptyState: React$1.FC<EmptyStateProps>;
|
|
775
|
+
|
|
776
|
+
type ModalType = 'stacked-left-aligned' | 'horizontal' | 'warning-horizontal' | 'destructive-horizontal' | 'destructive-stacked-left-aligned' | 'warning-stacked-left-aligned';
|
|
777
|
+
type ModalSize = 'sm' | 'md' | 'lg';
|
|
778
|
+
interface ModalProps {
|
|
779
|
+
open: boolean;
|
|
780
|
+
onClose: () => void;
|
|
781
|
+
/**
|
|
782
|
+
* Modal type/variant
|
|
783
|
+
*/
|
|
784
|
+
type?: ModalType;
|
|
785
|
+
/**
|
|
786
|
+
* Modal title
|
|
787
|
+
*/
|
|
788
|
+
title?: string;
|
|
789
|
+
/**
|
|
790
|
+
* Supporting/description text
|
|
791
|
+
*/
|
|
792
|
+
description?: string;
|
|
793
|
+
/**
|
|
794
|
+
* Show featured icon
|
|
795
|
+
*/
|
|
796
|
+
showIcon?: boolean;
|
|
797
|
+
/**
|
|
798
|
+
* Custom icon component
|
|
799
|
+
*/
|
|
800
|
+
icon?: React$1.ReactNode;
|
|
801
|
+
/**
|
|
802
|
+
* Show close button
|
|
803
|
+
*/
|
|
804
|
+
showCloseButton?: boolean;
|
|
805
|
+
/**
|
|
806
|
+
* Content to render in the modal body
|
|
807
|
+
*/
|
|
808
|
+
children?: React$1.ReactNode;
|
|
809
|
+
/**
|
|
810
|
+
* Primary button text
|
|
811
|
+
*/
|
|
812
|
+
primaryButtonText?: string;
|
|
813
|
+
/**
|
|
814
|
+
* Secondary button text
|
|
815
|
+
*/
|
|
816
|
+
secondaryButtonText?: string;
|
|
817
|
+
/**
|
|
818
|
+
* Tertiary button text (for horizontal layouts)
|
|
819
|
+
*/
|
|
820
|
+
tertiaryButtonText?: string;
|
|
821
|
+
/**
|
|
822
|
+
* Primary button handler
|
|
823
|
+
*/
|
|
824
|
+
onPrimaryClick?: () => void;
|
|
825
|
+
/**
|
|
826
|
+
* Secondary button handler
|
|
827
|
+
*/
|
|
828
|
+
onSecondaryClick?: () => void;
|
|
829
|
+
/**
|
|
830
|
+
* Tertiary button handler
|
|
831
|
+
*/
|
|
832
|
+
onTertiaryClick?: () => void;
|
|
833
|
+
/**
|
|
834
|
+
* Show checkbox option (for horizontal layouts)
|
|
835
|
+
*/
|
|
836
|
+
showCheckbox?: boolean;
|
|
837
|
+
/**
|
|
838
|
+
* Checkbox label
|
|
839
|
+
*/
|
|
840
|
+
checkboxLabel?: string;
|
|
841
|
+
/**
|
|
842
|
+
* Modal width size
|
|
843
|
+
*/
|
|
844
|
+
size?: ModalSize;
|
|
845
|
+
/**
|
|
846
|
+
* Show divider between header and content
|
|
847
|
+
*/
|
|
848
|
+
showDivider?: boolean;
|
|
849
|
+
}
|
|
850
|
+
declare const Modal: React$1.FC<ModalProps>;
|
|
851
|
+
|
|
852
|
+
type ModalActionsLayoutType = 'vertical-fill-container' | 'horizontal-fill-container' | 'horizontal-right-aligned-checkbox';
|
|
853
|
+
type ModalActionsBreakpoint = 'desktop' | 'mobile';
|
|
854
|
+
interface ModalActionsProps {
|
|
855
|
+
/**
|
|
856
|
+
* Whether to show the checkbox ("Don't show again")
|
|
857
|
+
* @default false
|
|
858
|
+
*/
|
|
859
|
+
checkbox?: boolean;
|
|
860
|
+
/**
|
|
861
|
+
* Whether to show the tertiary button (Settings)
|
|
862
|
+
* @default false
|
|
863
|
+
*/
|
|
864
|
+
tertiaryButton?: boolean;
|
|
865
|
+
/**
|
|
866
|
+
* Whether to show the divider above the actions
|
|
867
|
+
* @default true
|
|
868
|
+
*/
|
|
869
|
+
divider?: boolean;
|
|
870
|
+
/**
|
|
871
|
+
* The layout type of the modal actions
|
|
872
|
+
* @default 'horizontal-fill-container'
|
|
873
|
+
*/
|
|
874
|
+
type?: ModalActionsLayoutType;
|
|
875
|
+
/**
|
|
876
|
+
* Whether this is a destructive action (shows Delete button)
|
|
877
|
+
* @default false
|
|
878
|
+
*/
|
|
879
|
+
destructive?: boolean;
|
|
880
|
+
/**
|
|
881
|
+
* The breakpoint for responsive design
|
|
882
|
+
* @default 'desktop'
|
|
883
|
+
*/
|
|
884
|
+
breakpoint?: ModalActionsBreakpoint;
|
|
885
|
+
/**
|
|
886
|
+
* Callback when the Cancel button is clicked
|
|
887
|
+
*/
|
|
888
|
+
onCancel?: () => void;
|
|
889
|
+
/**
|
|
890
|
+
* Callback when the Confirm/Delete button is clicked
|
|
891
|
+
*/
|
|
892
|
+
onConfirm?: () => void;
|
|
893
|
+
/**
|
|
894
|
+
* Callback when the tertiary button (Settings) is clicked
|
|
895
|
+
*/
|
|
896
|
+
onTertiaryAction?: () => void;
|
|
897
|
+
/**
|
|
898
|
+
* Callback when the checkbox is toggled
|
|
899
|
+
*/
|
|
900
|
+
onCheckboxChange?: (checked: boolean) => void;
|
|
901
|
+
/**
|
|
902
|
+
* The checked state of the checkbox
|
|
903
|
+
*/
|
|
904
|
+
checkboxChecked?: boolean;
|
|
905
|
+
/**
|
|
906
|
+
* Custom label for the confirm button
|
|
907
|
+
* @default 'Confirm'
|
|
908
|
+
*/
|
|
909
|
+
confirmLabel?: string;
|
|
910
|
+
/**
|
|
911
|
+
* Custom label for the cancel button
|
|
912
|
+
* @default 'Cancel'
|
|
913
|
+
*/
|
|
914
|
+
cancelLabel?: string;
|
|
915
|
+
/**
|
|
916
|
+
* Custom label for the delete button
|
|
917
|
+
* @default 'Delete'
|
|
918
|
+
*/
|
|
919
|
+
deleteLabel?: string;
|
|
920
|
+
/**
|
|
921
|
+
* Custom label for the tertiary button
|
|
922
|
+
* @default 'Settings'
|
|
923
|
+
*/
|
|
924
|
+
tertiaryLabel?: string;
|
|
925
|
+
/**
|
|
926
|
+
* Custom label for the checkbox
|
|
927
|
+
* @default "Don't show again"
|
|
928
|
+
*/
|
|
929
|
+
checkboxLabel?: string;
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* ModalActions component provides standardized action areas for modal dialogs
|
|
933
|
+
* with support for different layouts, responsive breakpoints, and destructive actions.
|
|
934
|
+
*
|
|
935
|
+
* Features:
|
|
936
|
+
* - Three layout types: vertical fill, horizontal fill, and horizontal with checkbox
|
|
937
|
+
* - Desktop and mobile breakpoints
|
|
938
|
+
* - Optional checkbox, tertiary button, and divider
|
|
939
|
+
* - Support for destructive actions (Delete button)
|
|
940
|
+
* - Consistent spacing and styling from design tokens
|
|
941
|
+
*/
|
|
942
|
+
declare const ModalActions: React$1.FC<ModalActionsProps>;
|
|
943
|
+
|
|
944
|
+
type ModalHeaderType = 'left-aligned' | 'center-aligned' | 'horizontal-left-aligned';
|
|
945
|
+
type ModalHeaderBreakpoint = 'desktop' | 'mobile';
|
|
946
|
+
type IconVariant = 'success' | 'warning' | 'error' | 'info';
|
|
947
|
+
interface ModalHeaderProps {
|
|
948
|
+
/**
|
|
949
|
+
* Whether to show the close (X) button
|
|
950
|
+
* @default true
|
|
951
|
+
*/
|
|
952
|
+
xCloseButton?: boolean;
|
|
953
|
+
/**
|
|
954
|
+
* Whether to show the featured icon
|
|
955
|
+
* @default true
|
|
956
|
+
*/
|
|
957
|
+
featuredIcon?: boolean;
|
|
958
|
+
/**
|
|
959
|
+
* Whether to add padding at the bottom
|
|
960
|
+
* @default true
|
|
961
|
+
*/
|
|
962
|
+
paddingBottom?: boolean;
|
|
963
|
+
/**
|
|
964
|
+
* Whether to show the divider
|
|
965
|
+
* @default true
|
|
966
|
+
*/
|
|
967
|
+
divider?: boolean;
|
|
968
|
+
/**
|
|
969
|
+
* The layout type of the modal header
|
|
970
|
+
* @default 'left-aligned'
|
|
971
|
+
*/
|
|
972
|
+
type?: ModalHeaderType;
|
|
973
|
+
/**
|
|
974
|
+
* The breakpoint for responsive design
|
|
975
|
+
* @default 'desktop'
|
|
976
|
+
*/
|
|
977
|
+
breakpoint?: ModalHeaderBreakpoint;
|
|
978
|
+
/**
|
|
979
|
+
* The icon variant/color scheme
|
|
980
|
+
* @default 'success'
|
|
981
|
+
*/
|
|
982
|
+
iconVariant?: IconVariant;
|
|
983
|
+
/**
|
|
984
|
+
* Custom icon component
|
|
985
|
+
*/
|
|
986
|
+
icon?: React$1.ReactNode;
|
|
987
|
+
/**
|
|
988
|
+
* The title text
|
|
989
|
+
*/
|
|
990
|
+
title?: string;
|
|
991
|
+
/**
|
|
992
|
+
* The supporting/description text
|
|
993
|
+
*/
|
|
994
|
+
description?: string;
|
|
995
|
+
/**
|
|
996
|
+
* Callback when close button is clicked
|
|
997
|
+
*/
|
|
998
|
+
onClose?: () => void;
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* ModalHeader component provides standardized header sections for modal dialogs
|
|
1002
|
+
* with support for different layouts, responsive breakpoints, and icon variants.
|
|
1003
|
+
*
|
|
1004
|
+
* Features:
|
|
1005
|
+
* - Three layout types: left-aligned, center-aligned, and horizontal left-aligned
|
|
1006
|
+
* - Desktop and mobile breakpoints
|
|
1007
|
+
* - Optional featured icon with color variants (success, warning, error, info)
|
|
1008
|
+
* - Optional close button
|
|
1009
|
+
* - Optional divider and padding
|
|
1010
|
+
* - Customizable title and description text
|
|
1011
|
+
* - Consistent spacing and styling from design tokens
|
|
1012
|
+
*/
|
|
1013
|
+
declare const ModalHeader: React$1.FC<ModalHeaderProps>;
|
|
1014
|
+
|
|
1015
|
+
type PopoverProps = PopoverProps$1;
|
|
1016
|
+
declare const Popover: React$1.FC<PopoverProps>;
|
|
1017
|
+
|
|
1018
|
+
type StepperProps = StepperProps$1;
|
|
1019
|
+
declare const Stepper: React$1.FC<StepperProps>;
|
|
1020
|
+
type StepProps = StepProps$1;
|
|
1021
|
+
declare const Step: React$1.FC<StepProps>;
|
|
1022
|
+
type StepLabelProps = StepLabelProps$1;
|
|
1023
|
+
declare const StepLabel: React$1.FC<StepLabelProps>;
|
|
1024
|
+
type StepContentProps = StepContentProps$1;
|
|
1025
|
+
declare const StepContent: React$1.FC<StepContentProps>;
|
|
1026
|
+
type StepButtonProps = StepButtonProps$1;
|
|
1027
|
+
declare const StepButton: React$1.FC<StepButtonProps>;
|
|
1028
|
+
|
|
1029
|
+
interface DateCalendarComponentProps {
|
|
1030
|
+
/**
|
|
1031
|
+
* The selected date value
|
|
1032
|
+
*/
|
|
1033
|
+
value?: Dayjs | null;
|
|
1034
|
+
/**
|
|
1035
|
+
* Callback fired when the value changes
|
|
1036
|
+
*/
|
|
1037
|
+
onChange?: (value: Dayjs | null) => void;
|
|
1038
|
+
/**
|
|
1039
|
+
* Show the Today button
|
|
1040
|
+
*/
|
|
1041
|
+
showTodayButton?: boolean;
|
|
1042
|
+
/**
|
|
1043
|
+
* Dates with event indicators (small green dots)
|
|
1044
|
+
*/
|
|
1045
|
+
highlightedDates?: Dayjs[];
|
|
1046
|
+
/**
|
|
1047
|
+
* Show Cancel and Apply buttons
|
|
1048
|
+
*/
|
|
1049
|
+
showActionButtons?: boolean;
|
|
1050
|
+
/**
|
|
1051
|
+
* Cancel button callback
|
|
1052
|
+
*/
|
|
1053
|
+
onCancel?: () => void;
|
|
1054
|
+
/**
|
|
1055
|
+
* Apply button callback
|
|
1056
|
+
*/
|
|
1057
|
+
onApply?: () => void;
|
|
1058
|
+
}
|
|
1059
|
+
declare const DateCalendarComponent: React$1.FC<DateCalendarComponentProps>;
|
|
1060
|
+
type DatePickerProps = Omit<DatePickerProps$1<Dayjs>, 'open'>;
|
|
1061
|
+
declare const DatePicker: React$1.FC<DatePickerProps>;
|
|
1062
|
+
type TimePickerProps = TimePickerProps$1<Dayjs>;
|
|
1063
|
+
declare const TimePicker: React$1.FC<TimePickerProps>;
|
|
1064
|
+
type LocalizationProviderProps = LocalizationProviderProps$1<Dayjs>;
|
|
1065
|
+
declare const LocalizationProvider: React$1.FC<LocalizationProviderProps>;
|
|
1066
|
+
|
|
1067
|
+
type DataGridProps = DataGridProps$1 & {
|
|
1068
|
+
/**
|
|
1069
|
+
* Show the table header with title and badge
|
|
1070
|
+
*/
|
|
1071
|
+
showHeader?: boolean;
|
|
1072
|
+
/**
|
|
1073
|
+
* Title text for the header
|
|
1074
|
+
*/
|
|
1075
|
+
headerTitle?: string;
|
|
1076
|
+
/**
|
|
1077
|
+
* Badge content for the header (e.g., "100 users")
|
|
1078
|
+
*/
|
|
1079
|
+
headerBadgeContent?: string;
|
|
1080
|
+
/**
|
|
1081
|
+
* Show header menu icon
|
|
1082
|
+
*/
|
|
1083
|
+
showHeaderMenu?: boolean;
|
|
1084
|
+
/**
|
|
1085
|
+
* Callback when header menu is clicked
|
|
1086
|
+
*/
|
|
1087
|
+
onHeaderMenuClick?: () => void;
|
|
1088
|
+
/**
|
|
1089
|
+
* Show custom pagination
|
|
1090
|
+
*/
|
|
1091
|
+
showCustomPagination?: boolean;
|
|
1092
|
+
/**
|
|
1093
|
+
* Pagination type
|
|
1094
|
+
*/
|
|
1095
|
+
paginationType?: 'Page default' | 'Card minimal left aligned';
|
|
1096
|
+
/**
|
|
1097
|
+
* Show header action buttons (for file table)
|
|
1098
|
+
*/
|
|
1099
|
+
showHeaderActions?: boolean;
|
|
1100
|
+
/**
|
|
1101
|
+
* Download all button label
|
|
1102
|
+
*/
|
|
1103
|
+
downloadAllLabel?: string;
|
|
1104
|
+
/**
|
|
1105
|
+
* Upload button label
|
|
1106
|
+
*/
|
|
1107
|
+
uploadLabel?: string;
|
|
1108
|
+
/**
|
|
1109
|
+
* Callback when download all is clicked
|
|
1110
|
+
*/
|
|
1111
|
+
onDownloadAll?: () => void;
|
|
1112
|
+
/**
|
|
1113
|
+
* Callback when files are selected for upload
|
|
1114
|
+
*/
|
|
1115
|
+
onUpload?: (files: FileList | null) => void;
|
|
1116
|
+
};
|
|
1117
|
+
declare const createFileColumns: () => GridColDef[];
|
|
1118
|
+
declare const createDefaultColumns: () => GridColDef[];
|
|
1119
|
+
declare const DataGrid: React$1.FC<DataGridProps>;
|
|
1120
|
+
|
|
1121
|
+
interface CommandMenuProps {
|
|
1122
|
+
open: boolean;
|
|
1123
|
+
onClose: () => void;
|
|
1124
|
+
placeholder?: string;
|
|
1125
|
+
children?: React$1.ReactNode;
|
|
1126
|
+
/**
|
|
1127
|
+
* Search value (controlled)
|
|
1128
|
+
*/
|
|
1129
|
+
searchValue?: string;
|
|
1130
|
+
/**
|
|
1131
|
+
* Search change handler
|
|
1132
|
+
*/
|
|
1133
|
+
onSearchChange?: (value: string) => void;
|
|
1134
|
+
}
|
|
1135
|
+
declare const CommandMenu: React$1.FC<CommandMenuProps>;
|
|
1136
|
+
declare const CommandGroup: React$1.FC<{
|
|
1137
|
+
title: string;
|
|
1138
|
+
children: React$1.ReactNode;
|
|
1139
|
+
}>;
|
|
1140
|
+
interface CommandItemProps {
|
|
1141
|
+
icon?: React$1.ReactNode;
|
|
1142
|
+
avatar?: React$1.ReactNode;
|
|
1143
|
+
title: string;
|
|
1144
|
+
subtitle?: string;
|
|
1145
|
+
shortcut?: string[];
|
|
1146
|
+
selected?: boolean;
|
|
1147
|
+
onClick?: () => void;
|
|
1148
|
+
}
|
|
1149
|
+
declare const CommandItem: React$1.FC<CommandItemProps>;
|
|
1150
|
+
declare const CommandFooter: React$1.FC;
|
|
1151
|
+
interface CommandEmptyProps {
|
|
1152
|
+
title?: string;
|
|
1153
|
+
description?: string;
|
|
1154
|
+
children?: React$1.ReactNode;
|
|
1155
|
+
}
|
|
1156
|
+
declare const CommandEmpty: React$1.FC<CommandEmptyProps>;
|
|
1157
|
+
interface CommandProfileProps {
|
|
1158
|
+
avatar: React$1.ReactNode;
|
|
1159
|
+
name: string;
|
|
1160
|
+
role?: string;
|
|
1161
|
+
description?: string;
|
|
1162
|
+
actions?: React$1.ReactNode;
|
|
1163
|
+
}
|
|
1164
|
+
/**
|
|
1165
|
+
* CommandProfile - Displays a user profile card with gradient header and avatar
|
|
1166
|
+
*
|
|
1167
|
+
* @example
|
|
1168
|
+
* ```tsx
|
|
1169
|
+
* <CommandProfile
|
|
1170
|
+
* avatar={<Avatar src="..." size="lg" />}
|
|
1171
|
+
* name="Olivia Rhye"
|
|
1172
|
+
* role="Product Designer"
|
|
1173
|
+
* description="I'm a Product Designer based in Melbourne, Australia."
|
|
1174
|
+
* actions={<Button>View profile</Button>}
|
|
1175
|
+
* />
|
|
1176
|
+
* ```
|
|
1177
|
+
*/
|
|
1178
|
+
declare const CommandProfile: React$1.FC<CommandProfileProps>;
|
|
1179
|
+
interface CommandSplitViewProps {
|
|
1180
|
+
sidebar: React$1.ReactNode;
|
|
1181
|
+
main: React$1.ReactNode;
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* CommandSplitView - Two-column layout with sidebar list and main content area
|
|
1185
|
+
*/
|
|
1186
|
+
declare const CommandSplitView: React$1.FC<CommandSplitViewProps>;
|
|
1187
|
+
interface CommandIntegrationDetailProps {
|
|
1188
|
+
icon: React$1.ReactNode;
|
|
1189
|
+
name: string;
|
|
1190
|
+
description: string;
|
|
1191
|
+
primaryAction?: React$1.ReactNode;
|
|
1192
|
+
secondaryAction?: React$1.ReactNode;
|
|
1193
|
+
toggle?: React$1.ReactNode;
|
|
1194
|
+
}
|
|
1195
|
+
/**
|
|
1196
|
+
* CommandIntegrationDetail - Displays integration details with icon, description, and actions
|
|
1197
|
+
*/
|
|
1198
|
+
declare const CommandIntegrationDetail: React$1.FC<CommandIntegrationDetailProps>;
|
|
1199
|
+
interface CommandProfileEnhancedProps {
|
|
1200
|
+
avatar: React$1.ReactNode;
|
|
1201
|
+
name: string;
|
|
1202
|
+
verified?: boolean;
|
|
1203
|
+
description: string;
|
|
1204
|
+
socialIcons?: React$1.ReactNode[];
|
|
1205
|
+
actions?: React$1.ReactNode;
|
|
1206
|
+
gradientType?: 'purple-blue' | 'blue-pink';
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* CommandProfileEnhanced - Profile card with verified badge, social icons, and custom gradient
|
|
1210
|
+
*/
|
|
1211
|
+
declare const CommandProfileEnhanced: React$1.FC<CommandProfileEnhancedProps>;
|
|
1212
|
+
|
|
1213
|
+
interface SlideMenuHeaderProps {
|
|
1214
|
+
/** Optional icon element to display */
|
|
1215
|
+
icon?: React$1.ReactNode;
|
|
1216
|
+
/** Whether to show the featured icon container */
|
|
1217
|
+
showIcon?: boolean;
|
|
1218
|
+
/** Heading text */
|
|
1219
|
+
heading?: string;
|
|
1220
|
+
/** Supporting text below the heading */
|
|
1221
|
+
supportingText?: string;
|
|
1222
|
+
/** Whether to show the close button */
|
|
1223
|
+
showCloseButton?: boolean;
|
|
1224
|
+
/** Callback when close button is clicked */
|
|
1225
|
+
onClose?: () => void;
|
|
1226
|
+
/** Whether to show tabs */
|
|
1227
|
+
showTabs?: boolean;
|
|
1228
|
+
/** Array of tab labels */
|
|
1229
|
+
tabs?: Array<{
|
|
1230
|
+
label: string;
|
|
1231
|
+
badge?: string | number;
|
|
1232
|
+
}>;
|
|
1233
|
+
/** Currently selected tab index */
|
|
1234
|
+
selectedTab?: number;
|
|
1235
|
+
/** Callback when tab changes */
|
|
1236
|
+
onTabChange?: (event: React$1.SyntheticEvent, value: number) => void;
|
|
1237
|
+
}
|
|
1238
|
+
interface SlideMenuFooterProps {
|
|
1239
|
+
/** Left-aligned action buttons/links */
|
|
1240
|
+
leftActions?: React$1.ReactNode;
|
|
1241
|
+
/** Right-aligned action buttons */
|
|
1242
|
+
rightActions?: React$1.ReactNode;
|
|
1243
|
+
/** Whether to show the footer */
|
|
1244
|
+
show?: boolean;
|
|
1245
|
+
}
|
|
1246
|
+
interface SlideMenuProps extends Omit<DrawerProps$1, 'onClose'> {
|
|
1247
|
+
/** Header configuration */
|
|
1248
|
+
header?: SlideMenuHeaderProps;
|
|
1249
|
+
/** Footer configuration */
|
|
1250
|
+
footer?: SlideMenuFooterProps;
|
|
1251
|
+
/** Callback when drawer closes */
|
|
1252
|
+
onClose?: () => void;
|
|
1253
|
+
}
|
|
1254
|
+
/**
|
|
1255
|
+
* SlideMenu component - A drawer that slides in from the side with an optional header and footer
|
|
1256
|
+
*
|
|
1257
|
+
* Features:
|
|
1258
|
+
* - Optional header with icon, heading, and supporting text
|
|
1259
|
+
* - Optional tabs in the header
|
|
1260
|
+
* - Optional footer with left and right actions
|
|
1261
|
+
* - Close button
|
|
1262
|
+
* - Responsive (Desktop/Mobile breakpoints)
|
|
1263
|
+
* - Uses design tokens from tokens.json
|
|
1264
|
+
*/
|
|
1265
|
+
declare const SlideMenu: React$1.FC<SlideMenuProps>;
|
|
1266
|
+
|
|
1267
|
+
interface ApplicationNavigationSubmenuItem {
|
|
1268
|
+
/**
|
|
1269
|
+
* Submenu item label
|
|
1270
|
+
*/
|
|
1271
|
+
label: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* Icon element
|
|
1274
|
+
*/
|
|
1275
|
+
icon?: React$1.ReactNode;
|
|
1276
|
+
/**
|
|
1277
|
+
* Badge count or text
|
|
1278
|
+
*/
|
|
1279
|
+
badge?: number | string;
|
|
1280
|
+
/**
|
|
1281
|
+
* Click handler
|
|
1282
|
+
*/
|
|
1283
|
+
onClick?: () => void;
|
|
1284
|
+
}
|
|
1285
|
+
interface ApplicationNavigationItemProps {
|
|
1286
|
+
/**
|
|
1287
|
+
* Whether the item is active
|
|
1288
|
+
*/
|
|
1289
|
+
active?: boolean;
|
|
1290
|
+
/**
|
|
1291
|
+
* Icon element to display
|
|
1292
|
+
*/
|
|
1293
|
+
icon?: React$1.ReactNode;
|
|
1294
|
+
/**
|
|
1295
|
+
* Icon background color (for team items)
|
|
1296
|
+
*/
|
|
1297
|
+
iconBgColor?: string;
|
|
1298
|
+
/**
|
|
1299
|
+
* Label text
|
|
1300
|
+
*/
|
|
1301
|
+
label?: string;
|
|
1302
|
+
/**
|
|
1303
|
+
* Badge count
|
|
1304
|
+
*/
|
|
1305
|
+
badge?: number | string;
|
|
1306
|
+
/**
|
|
1307
|
+
* Keyboard shortcut (e.g., "⌘1")
|
|
1308
|
+
*/
|
|
1309
|
+
keyboardShortcut?: string;
|
|
1310
|
+
/**
|
|
1311
|
+
* Show dropdown arrow
|
|
1312
|
+
*/
|
|
1313
|
+
showDropdown?: boolean;
|
|
1314
|
+
/**
|
|
1315
|
+
* Show right arrow
|
|
1316
|
+
*/
|
|
1317
|
+
showRightArrow?: boolean;
|
|
1318
|
+
/**
|
|
1319
|
+
* Whether the item is expanded
|
|
1320
|
+
*/
|
|
1321
|
+
expanded?: boolean;
|
|
1322
|
+
/**
|
|
1323
|
+
* Submenu items
|
|
1324
|
+
*/
|
|
1325
|
+
submenuItems?: ApplicationNavigationSubmenuItem[];
|
|
1326
|
+
/**
|
|
1327
|
+
* Click handler
|
|
1328
|
+
*/
|
|
1329
|
+
onClick?: () => void;
|
|
1330
|
+
}
|
|
1331
|
+
interface ApplicationNavigationIconButtonProps {
|
|
1332
|
+
/**
|
|
1333
|
+
* Variant of icon button
|
|
1334
|
+
*/
|
|
1335
|
+
variant?: 'notification' | 'menu';
|
|
1336
|
+
/**
|
|
1337
|
+
* Size of icon button
|
|
1338
|
+
*/
|
|
1339
|
+
size?: 'md' | 'lg';
|
|
1340
|
+
/**
|
|
1341
|
+
* Click handler
|
|
1342
|
+
*/
|
|
1343
|
+
onClick?: () => void;
|
|
1344
|
+
}
|
|
1345
|
+
interface ApplicationNavigationSearchProps {
|
|
1346
|
+
/**
|
|
1347
|
+
* Placeholder text
|
|
1348
|
+
*/
|
|
1349
|
+
placeholder?: string;
|
|
1350
|
+
/**
|
|
1351
|
+
* Keyboard shortcut text
|
|
1352
|
+
*/
|
|
1353
|
+
shortcut?: string;
|
|
1354
|
+
/**
|
|
1355
|
+
* Change handler
|
|
1356
|
+
*/
|
|
1357
|
+
onChange?: (value: string) => void;
|
|
1358
|
+
}
|
|
1359
|
+
interface ApplicationNavigationUserProfileProps {
|
|
1360
|
+
/**
|
|
1361
|
+
* User name
|
|
1362
|
+
*/
|
|
1363
|
+
name: string;
|
|
1364
|
+
/**
|
|
1365
|
+
* User email
|
|
1366
|
+
*/
|
|
1367
|
+
email: string;
|
|
1368
|
+
/**
|
|
1369
|
+
* Avatar image URL
|
|
1370
|
+
*/
|
|
1371
|
+
avatarSrc?: string;
|
|
1372
|
+
/**
|
|
1373
|
+
* Online status
|
|
1374
|
+
*/
|
|
1375
|
+
online?: boolean;
|
|
1376
|
+
/**
|
|
1377
|
+
* Selected state (for radio button variant)
|
|
1378
|
+
*/
|
|
1379
|
+
selected?: boolean;
|
|
1380
|
+
/**
|
|
1381
|
+
* Show expand icon
|
|
1382
|
+
*/
|
|
1383
|
+
showExpand?: boolean;
|
|
1384
|
+
/**
|
|
1385
|
+
* Click handler
|
|
1386
|
+
*/
|
|
1387
|
+
onClick?: () => void;
|
|
1388
|
+
}
|
|
1389
|
+
interface ApplicationNavigationMenuItemProps {
|
|
1390
|
+
/**
|
|
1391
|
+
* Menu item icon
|
|
1392
|
+
*/
|
|
1393
|
+
icon?: React$1.ReactNode;
|
|
1394
|
+
/**
|
|
1395
|
+
* Menu item label
|
|
1396
|
+
*/
|
|
1397
|
+
label: string;
|
|
1398
|
+
/**
|
|
1399
|
+
* Keyboard shortcut
|
|
1400
|
+
*/
|
|
1401
|
+
shortcut?: string;
|
|
1402
|
+
/**
|
|
1403
|
+
* Click handler
|
|
1404
|
+
*/
|
|
1405
|
+
onClick?: () => void;
|
|
1406
|
+
}
|
|
1407
|
+
interface ApplicationNavigationAccountMenuProps {
|
|
1408
|
+
/**
|
|
1409
|
+
* Current user
|
|
1410
|
+
*/
|
|
1411
|
+
currentUser: ApplicationNavigationUserProfileProps;
|
|
1412
|
+
/**
|
|
1413
|
+
* Menu items
|
|
1414
|
+
*/
|
|
1415
|
+
menuItems?: ApplicationNavigationMenuItemProps[];
|
|
1416
|
+
/**
|
|
1417
|
+
* Switch account users
|
|
1418
|
+
*/
|
|
1419
|
+
switchAccountUsers?: ApplicationNavigationUserProfileProps[];
|
|
1420
|
+
/**
|
|
1421
|
+
* Show add account button
|
|
1422
|
+
*/
|
|
1423
|
+
showAddAccount?: boolean;
|
|
1424
|
+
/**
|
|
1425
|
+
* Show sign out
|
|
1426
|
+
*/
|
|
1427
|
+
showSignOut?: boolean;
|
|
1428
|
+
/**
|
|
1429
|
+
* Sign out click handler
|
|
1430
|
+
*/
|
|
1431
|
+
onSignOut?: () => void;
|
|
1432
|
+
/**
|
|
1433
|
+
* Add account click handler
|
|
1434
|
+
*/
|
|
1435
|
+
onAddAccount?: () => void;
|
|
1436
|
+
}
|
|
1437
|
+
interface ApplicationNavigationBannerListItem {
|
|
1438
|
+
/**
|
|
1439
|
+
* List item label
|
|
1440
|
+
*/
|
|
1441
|
+
label: string;
|
|
1442
|
+
/**
|
|
1443
|
+
* Dot color
|
|
1444
|
+
*/
|
|
1445
|
+
dotColor?: string;
|
|
1446
|
+
/**
|
|
1447
|
+
* Show arrow
|
|
1448
|
+
*/
|
|
1449
|
+
showArrow?: boolean;
|
|
1450
|
+
/**
|
|
1451
|
+
* Click handler
|
|
1452
|
+
*/
|
|
1453
|
+
onClick?: () => void;
|
|
1454
|
+
}
|
|
1455
|
+
interface ApplicationNavigationBannerProps {
|
|
1456
|
+
/**
|
|
1457
|
+
* Icon element to display
|
|
1458
|
+
*/
|
|
1459
|
+
icon?: React$1.ReactNode;
|
|
1460
|
+
/**
|
|
1461
|
+
* Status badge (e.g., "Online", "Live")
|
|
1462
|
+
*/
|
|
1463
|
+
statusBadge?: string;
|
|
1464
|
+
/**
|
|
1465
|
+
* Status badge color
|
|
1466
|
+
*/
|
|
1467
|
+
statusBadgeColor?: string;
|
|
1468
|
+
/**
|
|
1469
|
+
* Avatars to display
|
|
1470
|
+
*/
|
|
1471
|
+
avatars?: string[];
|
|
1472
|
+
/**
|
|
1473
|
+
* Avatar count text (e.g., "+5")
|
|
1474
|
+
*/
|
|
1475
|
+
avatarCount?: string;
|
|
1476
|
+
/**
|
|
1477
|
+
* Show add button
|
|
1478
|
+
*/
|
|
1479
|
+
showAddButton?: boolean;
|
|
1480
|
+
/**
|
|
1481
|
+
* Timestamp text (e.g., "2 mins ago")
|
|
1482
|
+
*/
|
|
1483
|
+
timestamp?: string;
|
|
1484
|
+
/**
|
|
1485
|
+
* Title text
|
|
1486
|
+
*/
|
|
1487
|
+
title: string;
|
|
1488
|
+
/**
|
|
1489
|
+
* Title right text (e.g., "24 days left")
|
|
1490
|
+
*/
|
|
1491
|
+
titleRight?: string;
|
|
1492
|
+
/**
|
|
1493
|
+
* Description text
|
|
1494
|
+
*/
|
|
1495
|
+
description?: string;
|
|
1496
|
+
/**
|
|
1497
|
+
* Message text (for user messages)
|
|
1498
|
+
*/
|
|
1499
|
+
message?: string;
|
|
1500
|
+
/**
|
|
1501
|
+
* Progress type
|
|
1502
|
+
*/
|
|
1503
|
+
progressType?: 'bar' | 'circular' | 'none';
|
|
1504
|
+
/**
|
|
1505
|
+
* Progress value (0-100)
|
|
1506
|
+
*/
|
|
1507
|
+
progressValue?: number;
|
|
1508
|
+
/**
|
|
1509
|
+
* Badge text
|
|
1510
|
+
*/
|
|
1511
|
+
badge?: string;
|
|
1512
|
+
/**
|
|
1513
|
+
* List items
|
|
1514
|
+
*/
|
|
1515
|
+
listItems?: ApplicationNavigationBannerListItem[];
|
|
1516
|
+
/**
|
|
1517
|
+
* List footer link text
|
|
1518
|
+
*/
|
|
1519
|
+
listFooterLink?: string;
|
|
1520
|
+
/**
|
|
1521
|
+
* List footer link handler
|
|
1522
|
+
*/
|
|
1523
|
+
onListFooterClick?: () => void;
|
|
1524
|
+
/**
|
|
1525
|
+
* Image/QR code URL
|
|
1526
|
+
*/
|
|
1527
|
+
imageUrl?: string;
|
|
1528
|
+
/**
|
|
1529
|
+
* Input field value (for referral links etc)
|
|
1530
|
+
*/
|
|
1531
|
+
inputValue?: string;
|
|
1532
|
+
/**
|
|
1533
|
+
* Show copy button
|
|
1534
|
+
*/
|
|
1535
|
+
showCopyButton?: boolean;
|
|
1536
|
+
/**
|
|
1537
|
+
* Primary action button text
|
|
1538
|
+
*/
|
|
1539
|
+
primaryAction?: string;
|
|
1540
|
+
/**
|
|
1541
|
+
* Primary action icon
|
|
1542
|
+
*/
|
|
1543
|
+
primaryActionIcon?: React$1.ReactNode;
|
|
1544
|
+
/**
|
|
1545
|
+
* Primary action click handler
|
|
1546
|
+
*/
|
|
1547
|
+
onPrimaryAction?: () => void;
|
|
1548
|
+
/**
|
|
1549
|
+
* Secondary action button text
|
|
1550
|
+
*/
|
|
1551
|
+
secondaryAction?: string;
|
|
1552
|
+
/**
|
|
1553
|
+
* Secondary action click handler
|
|
1554
|
+
*/
|
|
1555
|
+
onSecondaryAction?: () => void;
|
|
1556
|
+
/**
|
|
1557
|
+
* Close handler
|
|
1558
|
+
*/
|
|
1559
|
+
onClose?: () => void;
|
|
1560
|
+
}
|
|
1561
|
+
interface ApplicationNavigationProps {
|
|
1562
|
+
/**
|
|
1563
|
+
* Navigation items
|
|
1564
|
+
*/
|
|
1565
|
+
items?: ApplicationNavigationItemProps[];
|
|
1566
|
+
/**
|
|
1567
|
+
* Icon button props
|
|
1568
|
+
*/
|
|
1569
|
+
iconButton?: ApplicationNavigationIconButtonProps;
|
|
1570
|
+
/**
|
|
1571
|
+
* Search props
|
|
1572
|
+
*/
|
|
1573
|
+
search?: ApplicationNavigationSearchProps;
|
|
1574
|
+
/**
|
|
1575
|
+
* User profile props
|
|
1576
|
+
*/
|
|
1577
|
+
userProfile?: ApplicationNavigationUserProfileProps;
|
|
1578
|
+
/**
|
|
1579
|
+
* Account menu props
|
|
1580
|
+
*/
|
|
1581
|
+
accountMenu?: ApplicationNavigationAccountMenuProps;
|
|
1582
|
+
/**
|
|
1583
|
+
* Banner props
|
|
1584
|
+
*/
|
|
1585
|
+
banner?: ApplicationNavigationBannerProps;
|
|
1586
|
+
/**
|
|
1587
|
+
* Type of component to render
|
|
1588
|
+
*/
|
|
1589
|
+
type?: 'item' | 'iconButton' | 'search' | 'userProfile' | 'accountMenu' | 'banner';
|
|
1590
|
+
}
|
|
1591
|
+
/**
|
|
1592
|
+
* ApplicationNavigation component for navigation items and icon buttons
|
|
1593
|
+
*/
|
|
1594
|
+
declare const ApplicationNavigation: React$1.FC<ApplicationNavigationProps>;
|
|
1595
|
+
|
|
1596
|
+
interface ApplicationNavigationSidebarLogo {
|
|
1597
|
+
/**
|
|
1598
|
+
* Logo icon element
|
|
1599
|
+
*/
|
|
1600
|
+
icon?: React$1.ReactNode;
|
|
1601
|
+
/**
|
|
1602
|
+
* Logo text
|
|
1603
|
+
*/
|
|
1604
|
+
text?: string;
|
|
1605
|
+
/**
|
|
1606
|
+
* Click handler
|
|
1607
|
+
*/
|
|
1608
|
+
onClick?: () => void;
|
|
1609
|
+
}
|
|
1610
|
+
interface ApplicationNavigationSidebarSection {
|
|
1611
|
+
/**
|
|
1612
|
+
* Section header label (e.g., "GENERAL", "YOUR TEAMS")
|
|
1613
|
+
*/
|
|
1614
|
+
header?: string;
|
|
1615
|
+
/**
|
|
1616
|
+
* Navigation items in this section
|
|
1617
|
+
*/
|
|
1618
|
+
items: ApplicationNavigationItemProps[];
|
|
1619
|
+
}
|
|
1620
|
+
interface ApplicationNavigationSidebarProps {
|
|
1621
|
+
/**
|
|
1622
|
+
* Logo configuration
|
|
1623
|
+
*/
|
|
1624
|
+
logo?: ApplicationNavigationSidebarLogo;
|
|
1625
|
+
/**
|
|
1626
|
+
* Show search input
|
|
1627
|
+
*/
|
|
1628
|
+
showSearch?: boolean;
|
|
1629
|
+
/**
|
|
1630
|
+
* Search placeholder
|
|
1631
|
+
*/
|
|
1632
|
+
searchPlaceholder?: string;
|
|
1633
|
+
/**
|
|
1634
|
+
* Search shortcut
|
|
1635
|
+
*/
|
|
1636
|
+
searchShortcut?: string;
|
|
1637
|
+
/**
|
|
1638
|
+
* Search change handler
|
|
1639
|
+
*/
|
|
1640
|
+
onSearchChange?: (value: string) => void;
|
|
1641
|
+
/**
|
|
1642
|
+
* Main navigation items
|
|
1643
|
+
*/
|
|
1644
|
+
navigationItems?: ApplicationNavigationItemProps[];
|
|
1645
|
+
/**
|
|
1646
|
+
* Navigation sections (alternative to navigationItems for grouped navigation)
|
|
1647
|
+
*/
|
|
1648
|
+
navigationSections?: ApplicationNavigationSidebarSection[];
|
|
1649
|
+
/**
|
|
1650
|
+
* Bottom navigation items (Settings, Support, etc)
|
|
1651
|
+
*/
|
|
1652
|
+
bottomNavigationItems?: ApplicationNavigationItemProps[];
|
|
1653
|
+
/**
|
|
1654
|
+
* Banner configuration
|
|
1655
|
+
*/
|
|
1656
|
+
banner?: ApplicationNavigationBannerProps;
|
|
1657
|
+
/**
|
|
1658
|
+
* User profile configuration
|
|
1659
|
+
*/
|
|
1660
|
+
userProfile?: ApplicationNavigationUserProfileProps;
|
|
1661
|
+
/**
|
|
1662
|
+
* Collapsed state (icon-only mode)
|
|
1663
|
+
*/
|
|
1664
|
+
collapsed?: boolean;
|
|
1665
|
+
/**
|
|
1666
|
+
* Drawer mode (with overlay and close button)
|
|
1667
|
+
*/
|
|
1668
|
+
drawer?: boolean;
|
|
1669
|
+
/**
|
|
1670
|
+
* Drawer open state
|
|
1671
|
+
*/
|
|
1672
|
+
drawerOpen?: boolean;
|
|
1673
|
+
/**
|
|
1674
|
+
* Drawer close handler
|
|
1675
|
+
*/
|
|
1676
|
+
onDrawerClose?: () => void;
|
|
1677
|
+
/**
|
|
1678
|
+
* Show header only (logo and hamburger menu)
|
|
1679
|
+
*/
|
|
1680
|
+
headerOnly?: boolean;
|
|
1681
|
+
/**
|
|
1682
|
+
* Header hamburger click handler
|
|
1683
|
+
*/
|
|
1684
|
+
onHeaderMenuClick?: () => void;
|
|
1685
|
+
/**
|
|
1686
|
+
* Submenu panel items (shown in side panel)
|
|
1687
|
+
*/
|
|
1688
|
+
submenuPanelItems?: ApplicationNavigationSubmenuItem[];
|
|
1689
|
+
/**
|
|
1690
|
+
* Submenu panel title
|
|
1691
|
+
*/
|
|
1692
|
+
submenuPanelTitle?: string;
|
|
1693
|
+
/**
|
|
1694
|
+
* Submenu panel icon
|
|
1695
|
+
*/
|
|
1696
|
+
submenuPanelIcon?: React$1.ReactNode;
|
|
1697
|
+
}
|
|
1698
|
+
/**
|
|
1699
|
+
* ApplicationNavigationSidebar - Full sidebar layout component
|
|
1700
|
+
*/
|
|
1701
|
+
declare const ApplicationNavigationSidebar: React$1.FC<ApplicationNavigationSidebarProps>;
|
|
1702
|
+
|
|
1703
|
+
interface ApplicationNavigationTopBarLink {
|
|
1704
|
+
/**
|
|
1705
|
+
* Link label
|
|
1706
|
+
*/
|
|
1707
|
+
label: string;
|
|
1708
|
+
/**
|
|
1709
|
+
* Whether the link is active
|
|
1710
|
+
*/
|
|
1711
|
+
active?: boolean;
|
|
1712
|
+
/**
|
|
1713
|
+
* Click handler
|
|
1714
|
+
*/
|
|
1715
|
+
onClick?: () => void;
|
|
1716
|
+
}
|
|
1717
|
+
interface ApplicationNavigationTopBarTab {
|
|
1718
|
+
/**
|
|
1719
|
+
* Tab label
|
|
1720
|
+
*/
|
|
1721
|
+
label: string;
|
|
1722
|
+
/**
|
|
1723
|
+
* Whether the tab is active
|
|
1724
|
+
*/
|
|
1725
|
+
active?: boolean;
|
|
1726
|
+
/**
|
|
1727
|
+
* Click handler
|
|
1728
|
+
*/
|
|
1729
|
+
onClick?: () => void;
|
|
1730
|
+
}
|
|
1731
|
+
interface ApplicationNavigationTopBarProps {
|
|
1732
|
+
/**
|
|
1733
|
+
* Logo icon element
|
|
1734
|
+
*/
|
|
1735
|
+
logo?: React$1.ReactNode;
|
|
1736
|
+
/**
|
|
1737
|
+
* Logo text
|
|
1738
|
+
*/
|
|
1739
|
+
logoText?: string;
|
|
1740
|
+
/**
|
|
1741
|
+
* Logo click handler
|
|
1742
|
+
*/
|
|
1743
|
+
onLogoClick?: () => void;
|
|
1744
|
+
/**
|
|
1745
|
+
* Navigation links
|
|
1746
|
+
*/
|
|
1747
|
+
links?: ApplicationNavigationTopBarLink[];
|
|
1748
|
+
/**
|
|
1749
|
+
* Show upgrade button
|
|
1750
|
+
*/
|
|
1751
|
+
showUpgradeButton?: boolean;
|
|
1752
|
+
/**
|
|
1753
|
+
* Upgrade button text
|
|
1754
|
+
*/
|
|
1755
|
+
upgradeButtonText?: string;
|
|
1756
|
+
/**
|
|
1757
|
+
* Upgrade button click handler
|
|
1758
|
+
*/
|
|
1759
|
+
onUpgradeClick?: () => void;
|
|
1760
|
+
/**
|
|
1761
|
+
* Show search icon
|
|
1762
|
+
*/
|
|
1763
|
+
showSearch?: boolean;
|
|
1764
|
+
/**
|
|
1765
|
+
* Search click handler
|
|
1766
|
+
*/
|
|
1767
|
+
onSearchClick?: () => void;
|
|
1768
|
+
/**
|
|
1769
|
+
* Show settings icon
|
|
1770
|
+
*/
|
|
1771
|
+
showSettings?: boolean;
|
|
1772
|
+
/**
|
|
1773
|
+
* Settings click handler
|
|
1774
|
+
*/
|
|
1775
|
+
onSettingsClick?: () => void;
|
|
1776
|
+
/**
|
|
1777
|
+
* Show notifications icon
|
|
1778
|
+
*/
|
|
1779
|
+
showNotifications?: boolean;
|
|
1780
|
+
/**
|
|
1781
|
+
* Notifications click handler
|
|
1782
|
+
*/
|
|
1783
|
+
onNotificationsClick?: () => void;
|
|
1784
|
+
/**
|
|
1785
|
+
* User avatar source
|
|
1786
|
+
*/
|
|
1787
|
+
userAvatarSrc?: string;
|
|
1788
|
+
/**
|
|
1789
|
+
* User avatar click handler
|
|
1790
|
+
*/
|
|
1791
|
+
onUserAvatarClick?: () => void;
|
|
1792
|
+
/**
|
|
1793
|
+
* Secondary navigation tabs
|
|
1794
|
+
*/
|
|
1795
|
+
tabs?: ApplicationNavigationTopBarTab[];
|
|
1796
|
+
/**
|
|
1797
|
+
* Show search input in tabs row
|
|
1798
|
+
*/
|
|
1799
|
+
showTabsSearch?: boolean;
|
|
1800
|
+
/**
|
|
1801
|
+
* Tabs search placeholder
|
|
1802
|
+
*/
|
|
1803
|
+
tabsSearchPlaceholder?: string;
|
|
1804
|
+
/**
|
|
1805
|
+
* Tabs search shortcut
|
|
1806
|
+
*/
|
|
1807
|
+
tabsSearchShortcut?: string;
|
|
1808
|
+
/**
|
|
1809
|
+
* Tabs search change handler
|
|
1810
|
+
*/
|
|
1811
|
+
onTabsSearchChange?: (value: string) => void;
|
|
1812
|
+
}
|
|
1813
|
+
/**
|
|
1814
|
+
* ApplicationNavigationTopBar - Horizontal top navigation bar
|
|
1815
|
+
*/
|
|
1816
|
+
declare const ApplicationNavigationTopBar: React$1.FC<ApplicationNavigationTopBarProps>;
|
|
1817
|
+
|
|
1818
|
+
interface FileUploadProps {
|
|
1819
|
+
/**
|
|
1820
|
+
* Callback when files are selected or dropped
|
|
1821
|
+
*/
|
|
1822
|
+
onFilesSelected?: (files: FileList) => void;
|
|
1823
|
+
/**
|
|
1824
|
+
* Accepted file types
|
|
1825
|
+
*/
|
|
1826
|
+
accept?: string;
|
|
1827
|
+
/**
|
|
1828
|
+
* Allow multiple file selection
|
|
1829
|
+
*/
|
|
1830
|
+
multiple?: boolean;
|
|
1831
|
+
/**
|
|
1832
|
+
* Disabled state
|
|
1833
|
+
*/
|
|
1834
|
+
disabled?: boolean;
|
|
1835
|
+
/**
|
|
1836
|
+
* Maximum file size in bytes
|
|
1837
|
+
*/
|
|
1838
|
+
maxSize?: number;
|
|
1839
|
+
/**
|
|
1840
|
+
* Custom helper text
|
|
1841
|
+
*/
|
|
1842
|
+
helperText?: string;
|
|
1843
|
+
/**
|
|
1844
|
+
* Custom className
|
|
1845
|
+
*/
|
|
1846
|
+
className?: string;
|
|
1847
|
+
}
|
|
1848
|
+
declare const FileUpload: React$1.FC<FileUploadProps>;
|
|
1849
|
+
type FileUploadItemStatus = 'uploading' | 'complete' | 'error';
|
|
1850
|
+
type FileUploadItemVariant = 'progress-bar' | 'progress-fill';
|
|
1851
|
+
interface FileUploadItemProps {
|
|
1852
|
+
/**
|
|
1853
|
+
* File name
|
|
1854
|
+
*/
|
|
1855
|
+
fileName: string;
|
|
1856
|
+
/**
|
|
1857
|
+
* File size in bytes
|
|
1858
|
+
*/
|
|
1859
|
+
fileSize: number;
|
|
1860
|
+
/**
|
|
1861
|
+
* Upload progress (0-100)
|
|
1862
|
+
*/
|
|
1863
|
+
progress?: number;
|
|
1864
|
+
/**
|
|
1865
|
+
* Upload status
|
|
1866
|
+
*/
|
|
1867
|
+
status: FileUploadItemStatus;
|
|
1868
|
+
/**
|
|
1869
|
+
* Display variant
|
|
1870
|
+
*/
|
|
1871
|
+
variant?: FileUploadItemVariant;
|
|
1872
|
+
/**
|
|
1873
|
+
* Show file type icon
|
|
1874
|
+
*/
|
|
1875
|
+
showIcon?: boolean;
|
|
1876
|
+
/**
|
|
1877
|
+
* File type for icon display (e.g., 'PDF', 'JPG')
|
|
1878
|
+
*/
|
|
1879
|
+
fileType?: string;
|
|
1880
|
+
/**
|
|
1881
|
+
* Callback when delete button is clicked
|
|
1882
|
+
*/
|
|
1883
|
+
onDelete?: () => void;
|
|
1884
|
+
/**
|
|
1885
|
+
* Callback when try again button is clicked
|
|
1886
|
+
*/
|
|
1887
|
+
onRetry?: () => void;
|
|
1888
|
+
}
|
|
1889
|
+
declare const FileUploadItem: React$1.FC<FileUploadItemProps>;
|
|
1890
|
+
|
|
1891
|
+
interface SectionHeaderTab {
|
|
1892
|
+
label: string;
|
|
1893
|
+
value: string;
|
|
1894
|
+
badge?: number;
|
|
1895
|
+
}
|
|
1896
|
+
type SectionHeaderType = 'Buttons' | 'Search' | 'Button group';
|
|
1897
|
+
interface SectionHeaderProps {
|
|
1898
|
+
title?: string;
|
|
1899
|
+
supportingText?: boolean;
|
|
1900
|
+
type?: SectionHeaderType;
|
|
1901
|
+
breakpoint?: 'Desktop' | 'Mobile';
|
|
1902
|
+
actions?: boolean;
|
|
1903
|
+
buttonGroupItems?: string[];
|
|
1904
|
+
searchPlaceholder?: string;
|
|
1905
|
+
searchShortcut?: string;
|
|
1906
|
+
dropdownIcon?: boolean;
|
|
1907
|
+
tabs?: boolean;
|
|
1908
|
+
tabsConfig?: SectionHeaderTab[];
|
|
1909
|
+
activeTab?: string;
|
|
1910
|
+
onTabChange?: (value: string) => void;
|
|
1911
|
+
divider?: boolean;
|
|
1912
|
+
onSearchChange?: (value: string) => void;
|
|
1913
|
+
onDropdownClick?: () => void;
|
|
1914
|
+
onButtonGroupClick?: (index: number) => void;
|
|
1915
|
+
}
|
|
1916
|
+
declare const SectionHeader: React$1.FC<SectionHeaderProps>;
|
|
1917
|
+
|
|
1918
|
+
type LoadingIndicatorSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
1919
|
+
|
|
1920
|
+
type LoadingIndicatorStyle = 'Line simple' | 'Line spinner' | 'Dot circle';
|
|
1921
|
+
interface LoadingIndicatorProps extends Omit<BoxProps$1, 'style'> {
|
|
1922
|
+
/**
|
|
1923
|
+
* Visual style of the loading indicator
|
|
1924
|
+
*/
|
|
1925
|
+
style?: LoadingIndicatorStyle;
|
|
1926
|
+
/**
|
|
1927
|
+
* Size of the indicator
|
|
1928
|
+
*/
|
|
1929
|
+
size?: LoadingIndicatorSize;
|
|
1930
|
+
/**
|
|
1931
|
+
* Text label displayed below the indicator
|
|
1932
|
+
*/
|
|
1933
|
+
label?: string;
|
|
1934
|
+
/**
|
|
1935
|
+
* Whether to show supporting text below the indicator
|
|
1936
|
+
*/
|
|
1937
|
+
supportingText?: boolean;
|
|
1938
|
+
}
|
|
1939
|
+
declare const LoadingIndicator: React$1.FC<LoadingIndicatorProps>;
|
|
1940
|
+
|
|
1941
|
+
type PaginationType = 'Page default' | 'Page minimal center aligned' | 'Card default' | 'Card minimal right aligned' | 'Card minimal left aligned' | 'Card minimal center aligned' | 'Card button group right aligned' | 'Card button group left aligned' | 'Card button group center aligned';
|
|
1942
|
+
type PaginationShape = 'Square' | 'Circle';
|
|
1943
|
+
type PaginationBreakpoint = 'Desktop' | 'Mobile';
|
|
1944
|
+
interface PaginationProps {
|
|
1945
|
+
/**
|
|
1946
|
+
* Visual style of the pagination
|
|
1947
|
+
*/
|
|
1948
|
+
type?: PaginationType;
|
|
1949
|
+
/**
|
|
1950
|
+
* Shape of page number buttons
|
|
1951
|
+
*/
|
|
1952
|
+
shape?: PaginationShape;
|
|
1953
|
+
/**
|
|
1954
|
+
* Current page number (1-indexed)
|
|
1955
|
+
*/
|
|
1956
|
+
page?: number;
|
|
1957
|
+
/**
|
|
1958
|
+
* Total number of pages
|
|
1959
|
+
*/
|
|
1960
|
+
totalPages?: number;
|
|
1961
|
+
/**
|
|
1962
|
+
* Callback when page changes
|
|
1963
|
+
*/
|
|
1964
|
+
onChange?: (page: number) => void;
|
|
1965
|
+
/**
|
|
1966
|
+
* Responsive breakpoint (manual override)
|
|
1967
|
+
*/
|
|
1968
|
+
breakpoint?: PaginationBreakpoint;
|
|
1969
|
+
}
|
|
1970
|
+
declare const Pagination: React$1.FC<PaginationProps>;
|
|
1971
|
+
|
|
1972
|
+
type PieChartHole = 'False' | '25%' | '50%' | '75%';
|
|
1973
|
+
interface PieChartDataItem {
|
|
1974
|
+
value: number;
|
|
1975
|
+
label?: string;
|
|
1976
|
+
color?: string;
|
|
1977
|
+
}
|
|
1978
|
+
interface PieChartProps {
|
|
1979
|
+
/**
|
|
1980
|
+
* Data for the pie chart segments
|
|
1981
|
+
*/
|
|
1982
|
+
data?: PieChartDataItem[];
|
|
1983
|
+
/**
|
|
1984
|
+
* Size of the center hole (False = solid pie chart)
|
|
1985
|
+
*/
|
|
1986
|
+
hole?: PieChartHole;
|
|
1987
|
+
/**
|
|
1988
|
+
* Size of the chart in pixels
|
|
1989
|
+
*/
|
|
1990
|
+
size?: number;
|
|
1991
|
+
/**
|
|
1992
|
+
* Custom class name
|
|
1993
|
+
*/
|
|
1994
|
+
className?: string;
|
|
1995
|
+
}
|
|
1996
|
+
/**
|
|
1997
|
+
* PieChart component for displaying data in a circular chart
|
|
1998
|
+
*
|
|
1999
|
+
* Features:
|
|
2000
|
+
* - Solid pie chart or donut chart with configurable hole sizes
|
|
2001
|
+
* - Customizable colors per segment
|
|
2002
|
+
* - SVG-based rendering
|
|
2003
|
+
* - Responsive sizing
|
|
2004
|
+
* - Uses design system color tokens
|
|
2005
|
+
*/
|
|
2006
|
+
declare const PieChart: React$1.FC<PieChartProps>;
|
|
2007
|
+
|
|
2008
|
+
type ActivityGaugeSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
2009
|
+
interface ActivityGaugeRing {
|
|
2010
|
+
/**
|
|
2011
|
+
* Progress percentage (0-100)
|
|
2012
|
+
*/
|
|
2013
|
+
progress: number;
|
|
2014
|
+
/**
|
|
2015
|
+
* Custom color for the ring
|
|
2016
|
+
*/
|
|
2017
|
+
color?: string;
|
|
2018
|
+
}
|
|
2019
|
+
interface ActivityGaugeProps {
|
|
2020
|
+
/**
|
|
2021
|
+
* Size of the gauge
|
|
2022
|
+
*/
|
|
2023
|
+
size?: ActivityGaugeSize;
|
|
2024
|
+
/**
|
|
2025
|
+
* Whether to show the label
|
|
2026
|
+
*/
|
|
2027
|
+
label?: boolean;
|
|
2028
|
+
/**
|
|
2029
|
+
* Label text (e.g., "Active users")
|
|
2030
|
+
*/
|
|
2031
|
+
labelText?: string;
|
|
2032
|
+
/**
|
|
2033
|
+
* Value to display in the center
|
|
2034
|
+
*/
|
|
2035
|
+
value?: string | number;
|
|
2036
|
+
/**
|
|
2037
|
+
* Array of rings (outer to inner)
|
|
2038
|
+
*/
|
|
2039
|
+
rings?: ActivityGaugeRing[];
|
|
2040
|
+
/**
|
|
2041
|
+
* Custom class name
|
|
2042
|
+
*/
|
|
2043
|
+
className?: string;
|
|
2044
|
+
}
|
|
2045
|
+
/**
|
|
2046
|
+
* ActivityGauge component for displaying circular progress with multiple rings
|
|
2047
|
+
*
|
|
2048
|
+
* Features:
|
|
2049
|
+
* - Multiple concentric progress rings
|
|
2050
|
+
* - Four sizes: xs, sm, md, lg
|
|
2051
|
+
* - Center label and value display
|
|
2052
|
+
* - Customizable ring colors
|
|
2053
|
+
* - SVG-based rendering
|
|
2054
|
+
* - Uses design system color tokens
|
|
2055
|
+
*/
|
|
2056
|
+
declare const ActivityGauge: React$1.FC<ActivityGaugeProps>;
|
|
2057
|
+
|
|
2058
|
+
type MetricItemType = 'Simple' | 'Icon 01' | 'Icon 02' | 'Icon 03' | 'Icon 04' | 'Chart 01' | 'Chart 02' | 'Chart 03' | 'Chart 04';
|
|
2059
|
+
type MetricItemBreakpoint = 'Desktop' | 'Mobile';
|
|
2060
|
+
type ChangeTrend = 'Positive' | 'Negative';
|
|
2061
|
+
type ChangeType = '01' | '02' | '03';
|
|
2062
|
+
interface MetricItemProps {
|
|
2063
|
+
label: string;
|
|
2064
|
+
value: string | number;
|
|
2065
|
+
type?: MetricItemType;
|
|
2066
|
+
breakpoint?: MetricItemBreakpoint;
|
|
2067
|
+
showActions?: boolean;
|
|
2068
|
+
showDropdown?: boolean;
|
|
2069
|
+
showFeaturedIcon?: boolean;
|
|
2070
|
+
showSettingsIcon?: boolean;
|
|
2071
|
+
changeValue?: string;
|
|
2072
|
+
changeTrend?: ChangeTrend;
|
|
2073
|
+
changeType?: ChangeType;
|
|
2074
|
+
changeText?: string;
|
|
2075
|
+
actionText?: string;
|
|
2076
|
+
onActionClick?: () => void;
|
|
2077
|
+
onDropdownClick?: () => void;
|
|
2078
|
+
onSettingsClick?: () => void;
|
|
2079
|
+
chartComponent?: React$1.ReactNode;
|
|
2080
|
+
}
|
|
2081
|
+
declare const MetricItem: React$1.FC<MetricItemProps>;
|
|
2082
|
+
|
|
2083
|
+
interface MessageReaction {
|
|
2084
|
+
emoji: string;
|
|
2085
|
+
count?: number;
|
|
2086
|
+
}
|
|
2087
|
+
interface MessageReply {
|
|
2088
|
+
userName: string;
|
|
2089
|
+
content: string;
|
|
2090
|
+
}
|
|
2091
|
+
interface MessageFile {
|
|
2092
|
+
name: string;
|
|
2093
|
+
size: string;
|
|
2094
|
+
type: string;
|
|
2095
|
+
color?: string;
|
|
2096
|
+
}
|
|
2097
|
+
interface MessageAudio {
|
|
2098
|
+
duration: string;
|
|
2099
|
+
waveformColor?: string;
|
|
2100
|
+
}
|
|
2101
|
+
interface MessageImage {
|
|
2102
|
+
url: string;
|
|
2103
|
+
name: string;
|
|
2104
|
+
size: string;
|
|
2105
|
+
aspectRatio?: string;
|
|
2106
|
+
}
|
|
2107
|
+
interface MessageVideo {
|
|
2108
|
+
url: string;
|
|
2109
|
+
thumbnail?: string;
|
|
2110
|
+
duration?: string;
|
|
2111
|
+
}
|
|
2112
|
+
interface MessageLinkPreview {
|
|
2113
|
+
url: string;
|
|
2114
|
+
imageUrl: string;
|
|
2115
|
+
}
|
|
2116
|
+
interface MessageProps {
|
|
2117
|
+
/** Whether message is from current user (true) or other user (false) */
|
|
2118
|
+
sent: boolean;
|
|
2119
|
+
/** Sender name */
|
|
2120
|
+
userName: string;
|
|
2121
|
+
/** Time display */
|
|
2122
|
+
timestamp: string;
|
|
2123
|
+
/** Message text */
|
|
2124
|
+
content: string;
|
|
2125
|
+
/** Avatar URL (only when sent=false) */
|
|
2126
|
+
avatar?: string;
|
|
2127
|
+
/** Online status indicator */
|
|
2128
|
+
online?: boolean;
|
|
2129
|
+
/** Emoji reactions */
|
|
2130
|
+
reactions?: MessageReaction[];
|
|
2131
|
+
/** Show read checkmark (only when sent=true) */
|
|
2132
|
+
statusIcon?: boolean;
|
|
2133
|
+
/** Replied message */
|
|
2134
|
+
replyTo?: MessageReply;
|
|
2135
|
+
/** File attachment */
|
|
2136
|
+
file?: MessageFile;
|
|
2137
|
+
/** Audio message */
|
|
2138
|
+
audio?: MessageAudio;
|
|
2139
|
+
/** Image attachment */
|
|
2140
|
+
image?: MessageImage;
|
|
2141
|
+
/** Video message */
|
|
2142
|
+
video?: MessageVideo;
|
|
2143
|
+
/** Link preview */
|
|
2144
|
+
linkPreview?: MessageLinkPreview;
|
|
2145
|
+
/** Show action buttons on hover */
|
|
2146
|
+
showActions?: boolean;
|
|
2147
|
+
/** Download click handler (for file/audio/image) */
|
|
2148
|
+
onDownload?: () => void;
|
|
2149
|
+
/** Reaction click handler */
|
|
2150
|
+
onReaction?: (emoji: string) => void;
|
|
2151
|
+
/** Edit click handler */
|
|
2152
|
+
onEdit?: () => void;
|
|
2153
|
+
/** Copy click handler */
|
|
2154
|
+
onCopy?: () => void;
|
|
2155
|
+
/** Regenerate click handler */
|
|
2156
|
+
onRegenerate?: () => void;
|
|
2157
|
+
/** Star click handler */
|
|
2158
|
+
onStar?: () => void;
|
|
2159
|
+
}
|
|
2160
|
+
/**
|
|
2161
|
+
* Message component - Chat message with avatar, reactions, and actions
|
|
2162
|
+
*
|
|
2163
|
+
* Features:
|
|
2164
|
+
* - Different styles for sent/received messages
|
|
2165
|
+
* - Avatar with online indicator for received messages
|
|
2166
|
+
* - Reply message preview with green border
|
|
2167
|
+
* - File attachments with colored icons
|
|
2168
|
+
* - Audio messages with waveform visualization
|
|
2169
|
+
* - Image attachments with file info
|
|
2170
|
+
* - Video messages with play overlay and action bar
|
|
2171
|
+
* - Link preview messages with open graph image
|
|
2172
|
+
* - Emoji reactions
|
|
2173
|
+
* - Action panel on hover (edit, copy, regenerate, star, download)
|
|
2174
|
+
* - Read status icon for sent messages
|
|
2175
|
+
*/
|
|
2176
|
+
declare const Message: React$1.FC<MessageProps>;
|
|
2177
|
+
|
|
2178
|
+
export { Accordion, AccordionDetails, type AccordionDetailsProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, ActivityGauge, type ActivityGaugeProps, type ActivityGaugeRing, type ActivityGaugeSize, Alert, type AlertAction, type AlertProps, type AlertSeverity, AlertTitle, type AlertTitleProps, type AlertVariant, AppBar, type AppBarProps, ApplicationNavigation, type ApplicationNavigationAccountMenuProps, type ApplicationNavigationBannerListItem, type ApplicationNavigationBannerProps, type ApplicationNavigationIconButtonProps, type ApplicationNavigationItemProps, type ApplicationNavigationMenuItemProps, type ApplicationNavigationProps, type ApplicationNavigationSearchProps, ApplicationNavigationSidebar, type ApplicationNavigationSidebarLogo, type ApplicationNavigationSidebarProps, type ApplicationNavigationSidebarSection, type ApplicationNavigationSubmenuItem, ApplicationNavigationTopBar, type ApplicationNavigationTopBarLink, type ApplicationNavigationTopBarProps, type ApplicationNavigationTopBarTab, type ApplicationNavigationUserProfileProps, Autocomplete, type AutocompleteProps, type AutocompleteSize, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, Box, type BoxProps, type BreadcrumbBreakpoint, type BreadcrumbDivider, type BreadcrumbItem, type BreadcrumbType, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardHeader, type CardHeaderActionButton, type CardHeaderBadgeProps, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps, type ChangeTrend, type ChangeType, Checkbox, type CheckboxProps, CircularProgress, type CircularProgressProps, CommandEmpty, type CommandEmptyProps, CommandFooter, CommandGroup, CommandIntegrationDetail, type CommandIntegrationDetailProps, CommandItem, type CommandItemProps, CommandMenu, type CommandMenuProps, CommandProfile, CommandProfileEnhanced, type CommandProfileEnhancedProps, type CommandProfileProps, CommandSplitView, type CommandSplitViewProps, Container, type ContainerProps, DataGrid, type DataGridProps, DateCalendarComponent, type DateCalendarComponentProps, DatePicker, type DatePickerProps, Dialog, DialogActions, type DialogActionsProps, DialogContent, type DialogContentProps, DialogContentText, type DialogContentTextProps, type DialogProps, DialogTitle, type DialogTitleProps, Divider, type DividerProps, Drawer, type DrawerProps, EmptyState, type EmptyStateAction, type EmptyStateIconType, type EmptyStateProps, type EmptyStateSize, Fab, type FabProps, FileUpload, FileUploadItem, type FileUploadItemProps, type FileUploadItemStatus, type FileUploadItemVariant, type FileUploadProps, FormControl, FormControlLabel, type FormControlLabelProps, type FormControlProps, FormHelperText, type FormHelperTextProps, FormLabel, type FormLabelProps, Grid, type GridProps, type HorizontalTab, HorizontalTabs, type HorizontalTabsBreakpoint, type HorizontalTabsProps, type HorizontalTabsSize, type HorizontalTabsType, IconButton, type IconButtonProps, type IconVariant, Input, InputLabel, type InputLabelProps, type InputProps, LinearProgress, type LinearProgressProps, Link, type LinkProps, List, ListItem, ListItemAvatar, type ListItemAvatarProps, ListItemButton, type ListItemButtonProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemSecondaryAction, type ListItemSecondaryActionProps, ListItemText, type ListItemTextProps, type ListProps, LoadingIndicator, type LoadingIndicatorProps, type LoadingIndicatorStyle, LocalizationProvider, type LocalizationProviderProps, Menu, MenuItem, type MenuItemProps, type MenuProps, Message, type MessageAudio, type MessageFile, type MessageImage, type MessageLinkPreview, type MessageProps, type MessageReaction, type MessageReply, type MessageVideo, MetricItem, type MetricItemBreakpoint, type MetricItemProps, type MetricItemType, Modal, ModalActions, type ModalActionsBreakpoint, type ModalActionsLayoutType, type ModalActionsProps, ModalHeader, type ModalHeaderBreakpoint, type ModalHeaderProps, type ModalHeaderType, type ModalProps, Pagination, type PaginationBreakpoint, type PaginationProps, type PaginationShape, type PaginationType, Paper, type PaperProps, PieChart, type PieChartDataItem, type PieChartHole, type PieChartProps, Popover, type PopoverProps, ProgressCircle, type ProgressCircleProps, type ProgressCircleShape, type ProgressCircleSize, Radio, RadioGroup, type RadioGroupProps, type RadioOption, type RadioProps, SectionFooter, type SectionFooterAction, type SectionFooterPeriod, type SectionFooterProps, SectionHeader, type SectionHeaderProps, type SectionHeaderTab, type SectionHeaderType, Select, type SelectOption, type SelectProps, SlideMenu, type SlideMenuFooterProps, type SlideMenuHeaderProps, type SlideMenuProps, Stack, type StackProps, Step, StepButton, type StepButtonProps, StepContent, type StepContentProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableContainer, type TableContainerProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Tag, type TagColor, type TagProps, type TagSize, type TagVariant, TextArea, type TextAreaProps, TimePicker, type TimePickerProps, Toggle, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, type ToggleProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Typography, type TypographyProps, type VerticalTab, VerticalTabs, type VerticalTabsBreakpoint, type VerticalTabsProps, type VerticalTabsSize, type VerticalTabsType, createDefaultColumns, createFileColumns };
|