@particle-academy/react-fancy 1.0.0 → 1.3.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 +120 -16
- package/dist/diagram.serializers-OK4HP7AB.js +273 -0
- package/dist/diagram.serializers-OK4HP7AB.js.map +1 -0
- package/dist/index.cjs +7489 -329
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1681 -34
- package/dist/index.d.ts +1681 -34
- package/dist/index.js +7106 -326
- package/dist/index.js.map +1 -1
- package/dist/styles.css +116 -0
- package/dist/styles.css.map +1 -1
- package/package.json +13 -11
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, TextareaHTMLAttributes, SelectHTMLAttributes } from 'react';
|
|
2
|
+
import { ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, TextareaHTMLAttributes, SelectHTMLAttributes, HTMLAttributes, ComponentType, ReactElement, RefObject, CSSProperties } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
5
5
|
|
|
@@ -7,6 +7,7 @@ type Size = "xs" | "sm" | "md" | "lg" | "xl";
|
|
|
7
7
|
type Color = "zinc" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
8
8
|
type Variant = "solid" | "outline" | "ghost" | "soft";
|
|
9
9
|
type ActionColor = "blue" | "emerald" | "amber" | "red" | "violet" | "indigo" | "sky" | "rose" | "orange" | "zinc";
|
|
10
|
+
type Placement = "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
|
|
10
11
|
|
|
11
12
|
interface ActionProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color"> {
|
|
12
13
|
/** Shape variant */
|
|
@@ -19,14 +20,14 @@ interface ActionProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "col
|
|
|
19
20
|
checked?: boolean;
|
|
20
21
|
warn?: boolean;
|
|
21
22
|
alert?: boolean;
|
|
22
|
-
/** Leading icon (
|
|
23
|
-
icon?:
|
|
24
|
-
/** Trailing icon (convenience for right-side icon) */
|
|
25
|
-
iconTrailing?:
|
|
23
|
+
/** Leading icon slug (resolved via Icon component, e.g. "pencil", "chevron-right") */
|
|
24
|
+
icon?: string;
|
|
25
|
+
/** Trailing icon slug (convenience for right-side icon) */
|
|
26
|
+
iconTrailing?: string;
|
|
26
27
|
/** Icon placement direction */
|
|
27
|
-
iconPlace?: "left" | "right" | "top" | "bottom";
|
|
28
|
-
/** Pulsing alert icon */
|
|
29
|
-
alertIcon?:
|
|
28
|
+
iconPlace?: "left" | "right" | "top" | "bottom" | "top left" | "top right" | "bottom left" | "bottom right" | "left top" | "left bottom" | "right top" | "right bottom";
|
|
29
|
+
/** Pulsing alert icon slug */
|
|
30
|
+
alertIcon?: string;
|
|
30
31
|
/** Position alert icon on trailing side */
|
|
31
32
|
alertIconTrailing?: boolean;
|
|
32
33
|
/** Emoji slug (resolved via emoji-utils) */
|
|
@@ -87,8 +88,15 @@ interface InputBaseProps {
|
|
|
87
88
|
id?: string;
|
|
88
89
|
name?: string;
|
|
89
90
|
}
|
|
91
|
+
type AffixPosition = "inside" | "outside";
|
|
92
|
+
interface InputAffixProps {
|
|
93
|
+
prefix?: ReactNode;
|
|
94
|
+
suffix?: ReactNode;
|
|
95
|
+
prefixPosition?: AffixPosition;
|
|
96
|
+
suffixPosition?: AffixPosition;
|
|
97
|
+
}
|
|
90
98
|
|
|
91
|
-
interface InputProps extends InputBaseProps, Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> {
|
|
99
|
+
interface InputProps extends InputBaseProps, InputAffixProps, Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "prefix"> {
|
|
92
100
|
type?: "text" | "email" | "password" | "number" | "tel" | "url" | "search";
|
|
93
101
|
onValueChange?: (value: string) => void;
|
|
94
102
|
leading?: ReactNode;
|
|
@@ -97,7 +105,7 @@ interface InputProps extends InputBaseProps, Omit<InputHTMLAttributes<HTMLInputE
|
|
|
97
105
|
|
|
98
106
|
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
99
107
|
|
|
100
|
-
interface TextareaProps extends InputBaseProps, Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> {
|
|
108
|
+
interface TextareaProps extends InputBaseProps, InputAffixProps, Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "prefix"> {
|
|
101
109
|
autoResize?: boolean;
|
|
102
110
|
minRows?: number;
|
|
103
111
|
maxRows?: number;
|
|
@@ -106,7 +114,7 @@ interface TextareaProps extends InputBaseProps, Omit<TextareaHTMLAttributes<HTML
|
|
|
106
114
|
|
|
107
115
|
declare const Textarea: react.ForwardRefExoticComponent<TextareaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
108
116
|
|
|
109
|
-
interface SelectProps extends InputBaseProps, Omit<SelectHTMLAttributes<HTMLSelectElement>, "size"> {
|
|
117
|
+
interface SelectProps extends InputBaseProps, InputAffixProps, Omit<SelectHTMLAttributes<HTMLSelectElement>, "size" | "prefix"> {
|
|
110
118
|
list: InputOption[] | InputOptionGroup[];
|
|
111
119
|
placeholder?: string;
|
|
112
120
|
onValueChange?: (value: string) => void;
|
|
@@ -169,6 +177,8 @@ interface SliderBaseProps extends InputBaseProps {
|
|
|
169
177
|
value: number;
|
|
170
178
|
label?: string;
|
|
171
179
|
}[];
|
|
180
|
+
prefix?: ReactNode;
|
|
181
|
+
suffix?: ReactNode;
|
|
172
182
|
}
|
|
173
183
|
interface SliderSingleProps extends SliderBaseProps {
|
|
174
184
|
range?: false;
|
|
@@ -186,6 +196,19 @@ type SliderProps = SliderSingleProps | SliderRangeProps;
|
|
|
186
196
|
|
|
187
197
|
declare const Slider: react.ForwardRefExoticComponent<SliderProps & react.RefAttributes<HTMLInputElement>>;
|
|
188
198
|
|
|
199
|
+
interface MultiSwitchProps<V = string> extends InputBaseProps {
|
|
200
|
+
list: InputOption<V>[];
|
|
201
|
+
value?: V;
|
|
202
|
+
defaultValue?: V;
|
|
203
|
+
onValueChange?: (value: V) => void;
|
|
204
|
+
linear?: boolean;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
declare function MultiSwitch<V = string>({ size, dirty, error, label, description, required, disabled, className, id, name, list, value: controlledValue, defaultValue, onValueChange, linear, }: MultiSwitchProps<V>): react_jsx_runtime.JSX.Element;
|
|
208
|
+
declare namespace MultiSwitch {
|
|
209
|
+
var displayName: string;
|
|
210
|
+
}
|
|
211
|
+
|
|
189
212
|
interface DatePickerBaseProps extends InputBaseProps {
|
|
190
213
|
min?: string;
|
|
191
214
|
max?: string;
|
|
@@ -207,6 +230,7 @@ type DatePickerProps = DatePickerSingleProps | DatePickerRangeProps;
|
|
|
207
230
|
|
|
208
231
|
declare const DatePicker: react.ForwardRefExoticComponent<DatePickerProps & react.RefAttributes<HTMLInputElement>>;
|
|
209
232
|
|
|
233
|
+
type CarouselVariant = "directional" | "wizard";
|
|
210
234
|
interface CarouselContextValue {
|
|
211
235
|
activeIndex: number;
|
|
212
236
|
totalSlides: number;
|
|
@@ -214,22 +238,36 @@ interface CarouselContextValue {
|
|
|
214
238
|
prev: () => void;
|
|
215
239
|
goTo: (index: number) => void;
|
|
216
240
|
registerSlides: (count: number) => void;
|
|
241
|
+
variant: CarouselVariant;
|
|
242
|
+
loop: boolean;
|
|
243
|
+
slideNames: string[];
|
|
244
|
+
registerSlideNames: (names: string[]) => void;
|
|
245
|
+
onFinish?: () => void;
|
|
246
|
+
headless: boolean;
|
|
217
247
|
}
|
|
218
248
|
interface CarouselProps {
|
|
219
249
|
children: ReactNode;
|
|
220
250
|
defaultIndex?: number;
|
|
251
|
+
activeIndex?: number;
|
|
252
|
+
onIndexChange?: (index: number) => void;
|
|
221
253
|
className?: string;
|
|
222
254
|
autoPlay?: boolean;
|
|
223
255
|
interval?: number;
|
|
256
|
+
loop?: boolean;
|
|
257
|
+
variant?: CarouselVariant;
|
|
258
|
+
headless?: boolean;
|
|
259
|
+
onFinish?: () => void;
|
|
224
260
|
}
|
|
225
261
|
interface CarouselSlideProps {
|
|
226
262
|
children: ReactNode;
|
|
227
263
|
className?: string;
|
|
264
|
+
name?: string;
|
|
228
265
|
}
|
|
229
266
|
interface CarouselControlsProps {
|
|
230
267
|
className?: string;
|
|
231
268
|
prevLabel?: ReactNode;
|
|
232
269
|
nextLabel?: ReactNode;
|
|
270
|
+
finishLabel?: ReactNode;
|
|
233
271
|
}
|
|
234
272
|
interface CarouselStepsProps {
|
|
235
273
|
className?: string;
|
|
@@ -237,36 +275,30 @@ interface CarouselStepsProps {
|
|
|
237
275
|
interface CarouselPanelsProps {
|
|
238
276
|
children: ReactNode;
|
|
239
277
|
className?: string;
|
|
278
|
+
transition?: "none" | "fade";
|
|
240
279
|
}
|
|
241
280
|
|
|
242
|
-
declare
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
declare function CarouselSteps({ className }: CarouselStepsProps): react_jsx_runtime.JSX.Element;
|
|
249
|
-
|
|
250
|
-
declare function CarouselRoot({ children, defaultIndex, className, }: CarouselProps): react_jsx_runtime.JSX.Element;
|
|
251
|
-
declare const Carousel: typeof CarouselRoot & {
|
|
252
|
-
Panels: typeof CarouselPanels;
|
|
253
|
-
Slide: typeof CarouselSlide;
|
|
254
|
-
Controls: typeof CarouselControls;
|
|
255
|
-
Steps: typeof CarouselSteps;
|
|
281
|
+
declare const Carousel: react.ForwardRefExoticComponent<CarouselProps & react.RefAttributes<HTMLDivElement>> & {
|
|
282
|
+
Panels: react.ForwardRefExoticComponent<CarouselPanelsProps & react.RefAttributes<HTMLDivElement>>;
|
|
283
|
+
Slide: react.ForwardRefExoticComponent<CarouselSlideProps & react.RefAttributes<HTMLDivElement>>;
|
|
284
|
+
Controls: react.ForwardRefExoticComponent<CarouselControlsProps & react.RefAttributes<HTMLDivElement>>;
|
|
285
|
+
Steps: react.ForwardRefExoticComponent<CarouselStepsProps & react.RefAttributes<HTMLDivElement>>;
|
|
256
286
|
};
|
|
257
287
|
|
|
258
288
|
declare function useCarousel(): CarouselContextValue;
|
|
259
289
|
|
|
260
290
|
interface ColorPickerProps {
|
|
261
|
-
value?:
|
|
262
|
-
defaultValue?:
|
|
263
|
-
onChange?: (color:
|
|
264
|
-
|
|
291
|
+
value?: string;
|
|
292
|
+
defaultValue?: string;
|
|
293
|
+
onChange?: (color: string) => void;
|
|
294
|
+
presets?: string[];
|
|
265
295
|
size?: "sm" | "md" | "lg";
|
|
296
|
+
variant?: "outline" | "filled";
|
|
297
|
+
disabled?: boolean;
|
|
266
298
|
className?: string;
|
|
267
299
|
}
|
|
268
300
|
|
|
269
|
-
declare
|
|
301
|
+
declare const ColorPicker: react.ForwardRefExoticComponent<ColorPickerProps & react.RefAttributes<HTMLDivElement>>;
|
|
270
302
|
|
|
271
303
|
interface EmojiProps {
|
|
272
304
|
name?: string;
|
|
@@ -303,6 +335,15 @@ interface TableRowProps {
|
|
|
303
335
|
children: ReactNode;
|
|
304
336
|
className?: string;
|
|
305
337
|
onClick?: () => void;
|
|
338
|
+
tray?: ReactNode;
|
|
339
|
+
trayTriggerPosition?: "start" | "end" | "hidden";
|
|
340
|
+
expanded?: boolean;
|
|
341
|
+
defaultExpanded?: boolean;
|
|
342
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
343
|
+
}
|
|
344
|
+
interface TableRowTrayProps {
|
|
345
|
+
children: ReactNode;
|
|
346
|
+
className?: string;
|
|
306
347
|
}
|
|
307
348
|
interface TableCellProps {
|
|
308
349
|
children: ReactNode;
|
|
@@ -332,7 +373,7 @@ declare function TableHead({ children, className }: TableHeadProps): react_jsx_r
|
|
|
332
373
|
|
|
333
374
|
declare function TableBody({ children, className }: TableBodyProps): react_jsx_runtime.JSX.Element;
|
|
334
375
|
|
|
335
|
-
declare function TableRow({ children, className, onClick }: TableRowProps): react_jsx_runtime.JSX.Element;
|
|
376
|
+
declare function TableRow({ children, className, onClick, tray, trayTriggerPosition, expanded: controlledExpanded, defaultExpanded, onExpandedChange, }: TableRowProps): react_jsx_runtime.JSX.Element;
|
|
336
377
|
|
|
337
378
|
declare function TableCell({ children, className, header }: TableCellProps): react_jsx_runtime.JSX.Element;
|
|
338
379
|
|
|
@@ -344,6 +385,8 @@ declare function TableSearch({ className, placeholder, }: TableSearchProps): rea
|
|
|
344
385
|
|
|
345
386
|
declare function TableTray({ children, className }: TableTrayProps): react_jsx_runtime.JSX.Element;
|
|
346
387
|
|
|
388
|
+
declare function TableRowTray({ children, className }: TableRowTrayProps): react_jsx_runtime.JSX.Element;
|
|
389
|
+
|
|
347
390
|
declare function TableRoot({ children, className }: TableProps): react_jsx_runtime.JSX.Element;
|
|
348
391
|
declare const Table: typeof TableRoot & {
|
|
349
392
|
Head: typeof TableHead;
|
|
@@ -354,11 +397,1615 @@ declare const Table: typeof TableRoot & {
|
|
|
354
397
|
Pagination: typeof TablePagination;
|
|
355
398
|
Search: typeof TableSearch;
|
|
356
399
|
Tray: typeof TableTray;
|
|
400
|
+
RowTray: typeof TableRowTray;
|
|
357
401
|
};
|
|
358
402
|
|
|
359
|
-
|
|
403
|
+
interface PortalProps {
|
|
404
|
+
children: ReactNode;
|
|
405
|
+
container?: HTMLElement;
|
|
406
|
+
}
|
|
407
|
+
declare function Portal({ children, container }: PortalProps): react.ReactPortal | null;
|
|
360
408
|
|
|
361
|
-
|
|
409
|
+
interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
410
|
+
/** Which heading element to render */
|
|
411
|
+
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
412
|
+
/** Text size */
|
|
413
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
414
|
+
/** Font weight */
|
|
415
|
+
weight?: "normal" | "medium" | "semibold" | "bold";
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
declare const Heading: react.ForwardRefExoticComponent<HeadingProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
419
|
+
|
|
420
|
+
interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
421
|
+
/** Which element to render */
|
|
422
|
+
as?: "p" | "span" | "div" | "label";
|
|
423
|
+
/** Text size */
|
|
424
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
425
|
+
/** Font weight */
|
|
426
|
+
weight?: "normal" | "medium" | "semibold" | "bold";
|
|
427
|
+
/** Text color preset */
|
|
428
|
+
color?: "default" | "muted" | "accent" | "danger" | "success";
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
declare const Text: react.ForwardRefExoticComponent<TextProps & react.RefAttributes<HTMLElement>>;
|
|
432
|
+
|
|
433
|
+
interface SeparatorProps {
|
|
434
|
+
/** Separator direction */
|
|
435
|
+
orientation?: "horizontal" | "vertical";
|
|
436
|
+
/** Optional centered label text */
|
|
437
|
+
label?: string;
|
|
438
|
+
/** Additional CSS classes */
|
|
439
|
+
className?: string;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
declare const Separator: react.ForwardRefExoticComponent<SeparatorProps & react.RefAttributes<HTMLDivElement>>;
|
|
443
|
+
|
|
444
|
+
interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
445
|
+
/** Badge color */
|
|
446
|
+
color?: "zinc" | "red" | "blue" | "green" | "amber" | "violet" | "rose";
|
|
447
|
+
/** Visual variant */
|
|
448
|
+
variant?: "solid" | "outline" | "soft";
|
|
449
|
+
/** Badge size */
|
|
450
|
+
size?: "sm" | "md" | "lg";
|
|
451
|
+
/** Show a small dot indicator before text */
|
|
452
|
+
dot?: boolean;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
declare const Badge: react.ForwardRefExoticComponent<BadgeProps & react.RefAttributes<HTMLSpanElement>>;
|
|
456
|
+
|
|
457
|
+
interface IconProps extends HTMLAttributes<HTMLSpanElement> {
|
|
458
|
+
/** Icon container size */
|
|
459
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
460
|
+
/** Icon name to resolve from the registered icon set (e.g., "rocket", "arrow-right") */
|
|
461
|
+
name?: string;
|
|
462
|
+
/** Which registered icon set to use (defaults to the configured default) */
|
|
463
|
+
iconSet?: string;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<HTMLSpanElement>>;
|
|
467
|
+
|
|
468
|
+
interface IconSet {
|
|
469
|
+
resolve: (name: string) => ComponentType<{
|
|
470
|
+
className?: string;
|
|
471
|
+
size?: number;
|
|
472
|
+
}> | null;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
declare function registerIconSet(name: string, set: IconSet): void;
|
|
476
|
+
declare function configureIcons(options: {
|
|
477
|
+
defaultSet?: string;
|
|
478
|
+
}): void;
|
|
479
|
+
|
|
480
|
+
interface AvatarProps {
|
|
481
|
+
/** Image source URL */
|
|
482
|
+
src?: string;
|
|
483
|
+
/** Alt text for the image */
|
|
484
|
+
alt?: string;
|
|
485
|
+
/** Fallback initials when no image is provided */
|
|
486
|
+
fallback?: string;
|
|
487
|
+
/** Avatar size */
|
|
488
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
489
|
+
/** Online status indicator */
|
|
490
|
+
status?: "online" | "offline" | "busy" | "away";
|
|
491
|
+
/** Additional CSS classes */
|
|
492
|
+
className?: string;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
declare const Avatar: react.ForwardRefExoticComponent<AvatarProps & react.RefAttributes<HTMLDivElement>>;
|
|
496
|
+
|
|
497
|
+
interface SkeletonProps {
|
|
498
|
+
/** Shape of the skeleton placeholder */
|
|
499
|
+
shape?: "rect" | "circle" | "text";
|
|
500
|
+
/** Custom width (CSS value or number in px) */
|
|
501
|
+
width?: string | number;
|
|
502
|
+
/** Custom height (CSS value or number in px) */
|
|
503
|
+
height?: string | number;
|
|
504
|
+
/** Additional CSS classes */
|
|
505
|
+
className?: string;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
declare const Skeleton: react.ForwardRefExoticComponent<SkeletonProps & react.RefAttributes<HTMLDivElement>>;
|
|
509
|
+
|
|
510
|
+
interface ProgressProps {
|
|
511
|
+
value?: number;
|
|
512
|
+
max?: number;
|
|
513
|
+
variant?: "bar" | "circular";
|
|
514
|
+
size?: "sm" | "md" | "lg";
|
|
515
|
+
color?: "blue" | "green" | "amber" | "red" | "violet" | "zinc";
|
|
516
|
+
indeterminate?: boolean;
|
|
517
|
+
showValue?: boolean;
|
|
518
|
+
className?: string;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
declare const Progress: react.ForwardRefExoticComponent<ProgressProps & react.RefAttributes<HTMLDivElement>>;
|
|
522
|
+
|
|
523
|
+
interface BrandProps {
|
|
524
|
+
logo?: ReactNode;
|
|
525
|
+
name?: string;
|
|
526
|
+
tagline?: string;
|
|
527
|
+
size?: "sm" | "md" | "lg";
|
|
528
|
+
className?: string;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
declare const Brand: react.ForwardRefExoticComponent<BrandProps & react.RefAttributes<HTMLDivElement>>;
|
|
532
|
+
|
|
533
|
+
interface ProfileProps {
|
|
534
|
+
src?: string;
|
|
535
|
+
alt?: string;
|
|
536
|
+
fallback?: string;
|
|
537
|
+
name: string;
|
|
538
|
+
subtitle?: string;
|
|
539
|
+
size?: "sm" | "md" | "lg";
|
|
540
|
+
status?: "online" | "offline" | "busy" | "away";
|
|
541
|
+
className?: string;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
declare const Profile: react.ForwardRefExoticComponent<ProfileProps & react.RefAttributes<HTMLDivElement>>;
|
|
545
|
+
|
|
546
|
+
interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
547
|
+
variant?: "outlined" | "elevated" | "flat";
|
|
548
|
+
padding?: "none" | "sm" | "md" | "lg";
|
|
549
|
+
}
|
|
550
|
+
interface CardHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
551
|
+
}
|
|
552
|
+
interface CardBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
553
|
+
}
|
|
554
|
+
interface CardFooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLDivElement>> & {
|
|
558
|
+
Header: react.ForwardRefExoticComponent<CardHeaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
559
|
+
Body: react.ForwardRefExoticComponent<CardBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
560
|
+
Footer: react.ForwardRefExoticComponent<CardFooterProps & react.RefAttributes<HTMLDivElement>>;
|
|
561
|
+
};
|
|
562
|
+
|
|
563
|
+
interface CalloutProps {
|
|
564
|
+
children: ReactNode;
|
|
565
|
+
color?: "blue" | "green" | "amber" | "red" | "zinc";
|
|
566
|
+
icon?: ReactNode;
|
|
567
|
+
dismissible?: boolean;
|
|
568
|
+
onDismiss?: () => void;
|
|
569
|
+
className?: string;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
declare const Callout: react.ForwardRefExoticComponent<CalloutProps & react.RefAttributes<HTMLDivElement>>;
|
|
573
|
+
|
|
574
|
+
interface TimelineProps {
|
|
575
|
+
children: ReactNode;
|
|
576
|
+
className?: string;
|
|
577
|
+
}
|
|
578
|
+
interface TimelineItemProps {
|
|
579
|
+
children: ReactNode;
|
|
580
|
+
icon?: ReactNode;
|
|
581
|
+
color?: "blue" | "green" | "amber" | "red" | "zinc";
|
|
582
|
+
active?: boolean;
|
|
583
|
+
className?: string;
|
|
584
|
+
}
|
|
585
|
+
interface TimelineBlockProps {
|
|
586
|
+
/** Block heading */
|
|
587
|
+
heading?: ReactNode;
|
|
588
|
+
/** Block description / body content */
|
|
589
|
+
children: ReactNode;
|
|
590
|
+
/** Optional icon displayed in the timeline dot */
|
|
591
|
+
icon?: ReactNode;
|
|
592
|
+
/** Dot/icon color */
|
|
593
|
+
color?: "blue" | "green" | "amber" | "red" | "zinc";
|
|
594
|
+
/** Whether this block is the active/current step */
|
|
595
|
+
active?: boolean;
|
|
596
|
+
className?: string;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
declare const Timeline: react.ForwardRefExoticComponent<TimelineProps & react.RefAttributes<HTMLDivElement>> & {
|
|
600
|
+
Item: react.ForwardRefExoticComponent<TimelineItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
601
|
+
Block: react.ForwardRefExoticComponent<TimelineBlockProps & react.RefAttributes<HTMLDivElement>>;
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
interface TooltipProps {
|
|
605
|
+
children: ReactElement;
|
|
606
|
+
content: ReactNode;
|
|
607
|
+
placement?: Placement;
|
|
608
|
+
delay?: number;
|
|
609
|
+
offset?: number;
|
|
610
|
+
className?: string;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefAttributes<HTMLDivElement>>;
|
|
614
|
+
|
|
615
|
+
interface PopoverContextValue {
|
|
616
|
+
open: boolean;
|
|
617
|
+
setOpen: (open: boolean) => void;
|
|
618
|
+
anchorRef: React.RefObject<HTMLElement | null>;
|
|
619
|
+
placement: Placement;
|
|
620
|
+
offset: number;
|
|
621
|
+
}
|
|
622
|
+
interface PopoverProps {
|
|
623
|
+
children: ReactNode;
|
|
624
|
+
open?: boolean;
|
|
625
|
+
defaultOpen?: boolean;
|
|
626
|
+
onOpenChange?: (open: boolean) => void;
|
|
627
|
+
placement?: Placement;
|
|
628
|
+
offset?: number;
|
|
629
|
+
}
|
|
630
|
+
interface PopoverTriggerProps {
|
|
631
|
+
children: ReactNode;
|
|
632
|
+
className?: string;
|
|
633
|
+
}
|
|
634
|
+
interface PopoverContentProps {
|
|
635
|
+
children: ReactNode;
|
|
636
|
+
className?: string;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
declare function PopoverTrigger({ children }: PopoverTriggerProps): ReactElement<Record<string, unknown>, string | react.JSXElementConstructor<any>>;
|
|
640
|
+
declare namespace PopoverTrigger {
|
|
641
|
+
var displayName: string;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
declare function PopoverContent({ children, className }: PopoverContentProps): react_jsx_runtime.JSX.Element | null;
|
|
645
|
+
declare namespace PopoverContent {
|
|
646
|
+
var displayName: string;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
declare function PopoverRoot({ children, open: controlledOpen, defaultOpen, onOpenChange, placement, offset, }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
650
|
+
declare const Popover: typeof PopoverRoot & {
|
|
651
|
+
Trigger: typeof PopoverTrigger;
|
|
652
|
+
Content: typeof PopoverContent;
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
declare function usePopover(): PopoverContextValue;
|
|
656
|
+
|
|
657
|
+
interface DropdownContextValue {
|
|
658
|
+
open: boolean;
|
|
659
|
+
setOpen: (open: boolean) => void;
|
|
660
|
+
anchorRef: React.RefObject<HTMLElement | null>;
|
|
661
|
+
activeIndex: number;
|
|
662
|
+
setActiveIndex: (index: number) => void;
|
|
663
|
+
placement: Placement;
|
|
664
|
+
offset: number;
|
|
665
|
+
}
|
|
666
|
+
interface DropdownProps {
|
|
667
|
+
children: ReactNode;
|
|
668
|
+
placement?: Placement;
|
|
669
|
+
offset?: number;
|
|
670
|
+
}
|
|
671
|
+
interface DropdownTriggerProps {
|
|
672
|
+
children: ReactNode;
|
|
673
|
+
}
|
|
674
|
+
interface DropdownItemsProps {
|
|
675
|
+
children: ReactNode;
|
|
676
|
+
className?: string;
|
|
677
|
+
}
|
|
678
|
+
interface DropdownItemProps {
|
|
679
|
+
children: ReactNode;
|
|
680
|
+
onClick?: () => void;
|
|
681
|
+
disabled?: boolean;
|
|
682
|
+
danger?: boolean;
|
|
683
|
+
className?: string;
|
|
684
|
+
}
|
|
685
|
+
interface DropdownSeparatorProps {
|
|
686
|
+
className?: string;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
declare function DropdownTrigger({ children }: DropdownTriggerProps): ReactElement<Record<string, unknown>, string | react.JSXElementConstructor<any>>;
|
|
690
|
+
declare namespace DropdownTrigger {
|
|
691
|
+
var displayName: string;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
declare function DropdownItems({ children, className }: DropdownItemsProps): react_jsx_runtime.JSX.Element | null;
|
|
695
|
+
declare namespace DropdownItems {
|
|
696
|
+
var displayName: string;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
declare function DropdownItem({ children, onClick, disabled, danger, className, }: DropdownItemProps): react_jsx_runtime.JSX.Element;
|
|
700
|
+
declare namespace DropdownItem {
|
|
701
|
+
var displayName: string;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
declare function DropdownSeparator({ className }: DropdownSeparatorProps): react_jsx_runtime.JSX.Element;
|
|
705
|
+
declare namespace DropdownSeparator {
|
|
706
|
+
var displayName: string;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
declare function DropdownRoot({ children, placement, offset, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
710
|
+
declare const Dropdown: typeof DropdownRoot & {
|
|
711
|
+
Trigger: typeof DropdownTrigger;
|
|
712
|
+
Items: typeof DropdownItems;
|
|
713
|
+
Item: typeof DropdownItem;
|
|
714
|
+
Separator: typeof DropdownSeparator;
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
declare function useDropdown(): DropdownContextValue;
|
|
718
|
+
|
|
719
|
+
interface ContextMenuContextValue {
|
|
720
|
+
open: boolean;
|
|
721
|
+
setOpen: (open: boolean) => void;
|
|
722
|
+
position: {
|
|
723
|
+
x: number;
|
|
724
|
+
y: number;
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
interface ContextMenuProps {
|
|
728
|
+
children: ReactNode;
|
|
729
|
+
}
|
|
730
|
+
interface ContextMenuTriggerProps {
|
|
731
|
+
children: ReactNode;
|
|
732
|
+
className?: string;
|
|
733
|
+
}
|
|
734
|
+
interface ContextMenuContentProps {
|
|
735
|
+
children: ReactNode;
|
|
736
|
+
className?: string;
|
|
737
|
+
}
|
|
738
|
+
interface ContextMenuItemProps {
|
|
739
|
+
children: ReactNode;
|
|
740
|
+
onClick?: () => void;
|
|
741
|
+
disabled?: boolean;
|
|
742
|
+
danger?: boolean;
|
|
743
|
+
className?: string;
|
|
744
|
+
}
|
|
745
|
+
interface ContextMenuSeparatorProps {
|
|
746
|
+
className?: string;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
declare function ContextMenuTrigger({ children, className, }: ContextMenuTriggerProps): react_jsx_runtime.JSX.Element;
|
|
750
|
+
declare namespace ContextMenuTrigger {
|
|
751
|
+
var displayName: string;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
declare function ContextMenuContent({ children, className, }: ContextMenuContentProps): react_jsx_runtime.JSX.Element | null;
|
|
755
|
+
declare namespace ContextMenuContent {
|
|
756
|
+
var displayName: string;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
declare function ContextMenuItem({ children, onClick, disabled, danger, className, }: ContextMenuItemProps): react_jsx_runtime.JSX.Element;
|
|
760
|
+
declare namespace ContextMenuItem {
|
|
761
|
+
var displayName: string;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
declare function ContextMenuSeparator({ className }: ContextMenuSeparatorProps): react_jsx_runtime.JSX.Element;
|
|
765
|
+
declare namespace ContextMenuSeparator {
|
|
766
|
+
var displayName: string;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
declare function ContextMenuRoot({ children }: ContextMenuProps): react_jsx_runtime.JSX.Element;
|
|
770
|
+
declare const ContextMenu: typeof ContextMenuRoot & {
|
|
771
|
+
Trigger: typeof ContextMenuTrigger;
|
|
772
|
+
Content: typeof ContextMenuContent;
|
|
773
|
+
Item: typeof ContextMenuItem;
|
|
774
|
+
Separator: typeof ContextMenuSeparator;
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
declare function useContextMenu(): ContextMenuContextValue;
|
|
778
|
+
|
|
779
|
+
interface ModalContextValue {
|
|
780
|
+
open: boolean;
|
|
781
|
+
close: () => void;
|
|
782
|
+
}
|
|
783
|
+
interface ModalProps {
|
|
784
|
+
children: ReactNode;
|
|
785
|
+
open: boolean;
|
|
786
|
+
onClose: () => void;
|
|
787
|
+
size?: "sm" | "md" | "lg" | "xl" | "full";
|
|
788
|
+
className?: string;
|
|
789
|
+
}
|
|
790
|
+
interface ModalHeaderProps {
|
|
791
|
+
children: ReactNode;
|
|
792
|
+
className?: string;
|
|
793
|
+
}
|
|
794
|
+
interface ModalBodyProps {
|
|
795
|
+
children: ReactNode;
|
|
796
|
+
className?: string;
|
|
797
|
+
}
|
|
798
|
+
interface ModalFooterProps {
|
|
799
|
+
children: ReactNode;
|
|
800
|
+
className?: string;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
declare function ModalHeader({ children, className }: ModalHeaderProps): react_jsx_runtime.JSX.Element;
|
|
804
|
+
declare namespace ModalHeader {
|
|
805
|
+
var displayName: string;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
declare function ModalBody({ children, className }: ModalBodyProps): react_jsx_runtime.JSX.Element;
|
|
809
|
+
declare namespace ModalBody {
|
|
810
|
+
var displayName: string;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
declare function ModalFooter({ children, className }: ModalFooterProps): react_jsx_runtime.JSX.Element;
|
|
814
|
+
declare namespace ModalFooter {
|
|
815
|
+
var displayName: string;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
declare function ModalRoot({ children, open, onClose, size, className, }: ModalProps): react_jsx_runtime.JSX.Element | null;
|
|
819
|
+
declare const Modal: typeof ModalRoot & {
|
|
820
|
+
Header: typeof ModalHeader;
|
|
821
|
+
Body: typeof ModalBody;
|
|
822
|
+
Footer: typeof ModalFooter;
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
declare function useModal(): ModalContextValue;
|
|
826
|
+
|
|
827
|
+
type ToastVariant = "default" | "success" | "error" | "warning" | "info";
|
|
828
|
+
type ToastPosition = "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
829
|
+
interface ToastData {
|
|
830
|
+
id: string;
|
|
831
|
+
title: string;
|
|
832
|
+
description?: string;
|
|
833
|
+
variant?: ToastVariant;
|
|
834
|
+
duration?: number;
|
|
835
|
+
}
|
|
836
|
+
interface ToastContextValue {
|
|
837
|
+
toasts: ToastData[];
|
|
838
|
+
toast: (data: Omit<ToastData, "id">) => string;
|
|
839
|
+
dismiss: (id: string) => void;
|
|
840
|
+
}
|
|
841
|
+
interface ToastProviderProps {
|
|
842
|
+
children: ReactNode;
|
|
843
|
+
position?: ToastPosition;
|
|
844
|
+
maxToasts?: number;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
declare function ToastProvider({ children, position, maxToasts, }: ToastProviderProps): react_jsx_runtime.JSX.Element;
|
|
848
|
+
declare const Toast: {
|
|
849
|
+
Provider: typeof ToastProvider;
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
declare function useToast(): ToastContextValue;
|
|
853
|
+
|
|
854
|
+
interface CommandContextValue {
|
|
855
|
+
open: boolean;
|
|
856
|
+
close: () => void;
|
|
857
|
+
query: string;
|
|
858
|
+
setQuery: (query: string) => void;
|
|
859
|
+
activeIndex: number;
|
|
860
|
+
setActiveIndex: (index: number) => void;
|
|
861
|
+
}
|
|
862
|
+
interface CommandProps {
|
|
863
|
+
children: ReactNode;
|
|
864
|
+
open: boolean;
|
|
865
|
+
onClose: () => void;
|
|
866
|
+
className?: string;
|
|
867
|
+
}
|
|
868
|
+
interface CommandInputProps {
|
|
869
|
+
placeholder?: string;
|
|
870
|
+
className?: string;
|
|
871
|
+
}
|
|
872
|
+
interface CommandListProps {
|
|
873
|
+
children: ReactNode;
|
|
874
|
+
className?: string;
|
|
875
|
+
}
|
|
876
|
+
interface CommandItemProps {
|
|
877
|
+
children: ReactNode;
|
|
878
|
+
value?: string;
|
|
879
|
+
onSelect?: () => void;
|
|
880
|
+
className?: string;
|
|
881
|
+
}
|
|
882
|
+
interface CommandGroupProps {
|
|
883
|
+
children: ReactNode;
|
|
884
|
+
heading?: string;
|
|
885
|
+
className?: string;
|
|
886
|
+
}
|
|
887
|
+
interface CommandEmptyProps {
|
|
888
|
+
children?: ReactNode;
|
|
889
|
+
className?: string;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
declare function CommandInput({ placeholder, className, }: CommandInputProps): react_jsx_runtime.JSX.Element;
|
|
893
|
+
declare namespace CommandInput {
|
|
894
|
+
var displayName: string;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
declare function CommandList({ children, className }: CommandListProps): react_jsx_runtime.JSX.Element;
|
|
898
|
+
declare namespace CommandList {
|
|
899
|
+
var displayName: string;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
declare function CommandItem({ children, value, onSelect, className, }: CommandItemProps): react_jsx_runtime.JSX.Element | null;
|
|
903
|
+
declare namespace CommandItem {
|
|
904
|
+
var displayName: string;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
declare function CommandGroup({ children, heading, className, }: CommandGroupProps): react_jsx_runtime.JSX.Element;
|
|
908
|
+
declare namespace CommandGroup {
|
|
909
|
+
var displayName: string;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
declare function CommandEmpty({ children, className, }: CommandEmptyProps): react_jsx_runtime.JSX.Element;
|
|
913
|
+
declare namespace CommandEmpty {
|
|
914
|
+
var displayName: string;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
declare function CommandRoot({ children, open, onClose, className }: CommandProps): react_jsx_runtime.JSX.Element | null;
|
|
918
|
+
declare const Command: typeof CommandRoot & {
|
|
919
|
+
Input: typeof CommandInput;
|
|
920
|
+
List: typeof CommandList;
|
|
921
|
+
Item: typeof CommandItem;
|
|
922
|
+
Group: typeof CommandGroup;
|
|
923
|
+
Empty: typeof CommandEmpty;
|
|
924
|
+
};
|
|
925
|
+
|
|
926
|
+
declare function useCommand(): CommandContextValue;
|
|
927
|
+
|
|
928
|
+
type TabsVariant = "underline" | "pills" | "boxed";
|
|
929
|
+
interface TabsContextValue {
|
|
930
|
+
activeTab: string;
|
|
931
|
+
setActiveTab: (tab: string) => void;
|
|
932
|
+
variant: TabsVariant;
|
|
933
|
+
}
|
|
934
|
+
interface TabsProps {
|
|
935
|
+
children: ReactNode;
|
|
936
|
+
defaultTab?: string;
|
|
937
|
+
activeTab?: string;
|
|
938
|
+
onTabChange?: (tab: string) => void;
|
|
939
|
+
variant?: TabsVariant;
|
|
940
|
+
className?: string;
|
|
941
|
+
}
|
|
942
|
+
interface TabsListProps {
|
|
943
|
+
children: ReactNode;
|
|
944
|
+
className?: string;
|
|
945
|
+
}
|
|
946
|
+
interface TabsTabProps {
|
|
947
|
+
children: ReactNode;
|
|
948
|
+
value: string;
|
|
949
|
+
disabled?: boolean;
|
|
950
|
+
className?: string;
|
|
951
|
+
}
|
|
952
|
+
interface TabsPanelsProps {
|
|
953
|
+
children: ReactNode;
|
|
954
|
+
className?: string;
|
|
955
|
+
}
|
|
956
|
+
interface TabsPanelProps {
|
|
957
|
+
children: ReactNode;
|
|
958
|
+
value: string;
|
|
959
|
+
className?: string;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
declare function TabsList({ children, className }: TabsListProps): react_jsx_runtime.JSX.Element;
|
|
963
|
+
declare namespace TabsList {
|
|
964
|
+
var displayName: string;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
declare function TabsTab({ children, value, disabled, className, }: TabsTabProps): react_jsx_runtime.JSX.Element;
|
|
968
|
+
declare namespace TabsTab {
|
|
969
|
+
var displayName: string;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
declare function TabsPanels({ children, className }: TabsPanelsProps): react_jsx_runtime.JSX.Element;
|
|
973
|
+
declare namespace TabsPanels {
|
|
974
|
+
var displayName: string;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
declare function TabsPanel({ children, value, className }: TabsPanelProps): react_jsx_runtime.JSX.Element | null;
|
|
978
|
+
declare namespace TabsPanel {
|
|
979
|
+
var displayName: string;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
declare function TabsRoot({ children, defaultTab, activeTab: controlledTab, onTabChange, variant, className, }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
983
|
+
declare const Tabs: typeof TabsRoot & {
|
|
984
|
+
List: typeof TabsList;
|
|
985
|
+
Tab: typeof TabsTab;
|
|
986
|
+
Panels: typeof TabsPanels;
|
|
987
|
+
Panel: typeof TabsPanel;
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
declare function useTabs(): TabsContextValue;
|
|
991
|
+
|
|
992
|
+
interface AccordionContextValue {
|
|
993
|
+
openItems: string[];
|
|
994
|
+
toggle: (value: string) => void;
|
|
995
|
+
multiple: boolean;
|
|
996
|
+
}
|
|
997
|
+
interface AccordionProps {
|
|
998
|
+
children: ReactNode;
|
|
999
|
+
type?: "single" | "multiple";
|
|
1000
|
+
defaultOpen?: string[];
|
|
1001
|
+
className?: string;
|
|
1002
|
+
}
|
|
1003
|
+
interface AccordionItemProps {
|
|
1004
|
+
children: ReactNode;
|
|
1005
|
+
value: string;
|
|
1006
|
+
className?: string;
|
|
1007
|
+
}
|
|
1008
|
+
interface AccordionTriggerProps {
|
|
1009
|
+
children: ReactNode;
|
|
1010
|
+
className?: string;
|
|
1011
|
+
}
|
|
1012
|
+
interface AccordionContentProps {
|
|
1013
|
+
children: ReactNode;
|
|
1014
|
+
className?: string;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
declare function AccordionItem({ children, value, className, }: AccordionItemProps): react_jsx_runtime.JSX.Element;
|
|
1018
|
+
declare namespace AccordionItem {
|
|
1019
|
+
var displayName: string;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
declare function AccordionTrigger({ children, className, }: AccordionTriggerProps): react_jsx_runtime.JSX.Element;
|
|
1023
|
+
declare namespace AccordionTrigger {
|
|
1024
|
+
var displayName: string;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
declare function AccordionContent({ children, className, }: AccordionContentProps): react_jsx_runtime.JSX.Element;
|
|
1028
|
+
declare namespace AccordionContent {
|
|
1029
|
+
var displayName: string;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
declare function AccordionRoot({ children, type, defaultOpen, className, }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
1033
|
+
declare const Accordion: typeof AccordionRoot & {
|
|
1034
|
+
Item: typeof AccordionItem;
|
|
1035
|
+
Trigger: typeof AccordionTrigger;
|
|
1036
|
+
Content: typeof AccordionContent;
|
|
1037
|
+
};
|
|
1038
|
+
|
|
1039
|
+
declare function useAccordion(): AccordionContextValue;
|
|
1040
|
+
|
|
1041
|
+
interface BreadcrumbsProps {
|
|
1042
|
+
children: ReactNode;
|
|
1043
|
+
separator?: ReactNode;
|
|
1044
|
+
shrink?: boolean;
|
|
1045
|
+
className?: string;
|
|
1046
|
+
}
|
|
1047
|
+
interface BreadcrumbsItemProps {
|
|
1048
|
+
children: ReactNode;
|
|
1049
|
+
href?: string;
|
|
1050
|
+
active?: boolean;
|
|
1051
|
+
className?: string;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
declare function BreadcrumbsItem({ children, href, active, className, }: BreadcrumbsItemProps): react_jsx_runtime.JSX.Element;
|
|
1055
|
+
declare namespace BreadcrumbsItem {
|
|
1056
|
+
var displayName: string;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
declare function BreadcrumbsRoot({ children, separator, shrink, className, }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
|
|
1060
|
+
declare const Breadcrumbs: typeof BreadcrumbsRoot & {
|
|
1061
|
+
Item: typeof BreadcrumbsItem;
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
interface NavbarContextValue {
|
|
1065
|
+
mobileOpen: boolean;
|
|
1066
|
+
setMobileOpen: (open: boolean) => void;
|
|
1067
|
+
}
|
|
1068
|
+
interface NavbarProps {
|
|
1069
|
+
children: ReactNode;
|
|
1070
|
+
className?: string;
|
|
1071
|
+
}
|
|
1072
|
+
interface NavbarBrandProps {
|
|
1073
|
+
children: ReactNode;
|
|
1074
|
+
className?: string;
|
|
1075
|
+
}
|
|
1076
|
+
interface NavbarItemsProps {
|
|
1077
|
+
children: ReactNode;
|
|
1078
|
+
className?: string;
|
|
1079
|
+
}
|
|
1080
|
+
interface NavbarItemProps {
|
|
1081
|
+
children: ReactNode;
|
|
1082
|
+
href?: string;
|
|
1083
|
+
active?: boolean;
|
|
1084
|
+
className?: string;
|
|
1085
|
+
}
|
|
1086
|
+
interface NavbarToggleProps {
|
|
1087
|
+
className?: string;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
declare function NavbarBrand({ children, className }: NavbarBrandProps): react_jsx_runtime.JSX.Element;
|
|
1091
|
+
declare namespace NavbarBrand {
|
|
1092
|
+
var displayName: string;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
declare function NavbarItems({ children, className }: NavbarItemsProps): react_jsx_runtime.JSX.Element;
|
|
1096
|
+
declare namespace NavbarItems {
|
|
1097
|
+
var displayName: string;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
declare function NavbarItem({ children, href, active, className, }: NavbarItemProps): react_jsx_runtime.JSX.Element;
|
|
1101
|
+
declare namespace NavbarItem {
|
|
1102
|
+
var displayName: string;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
declare function NavbarToggle({ className }: NavbarToggleProps): react_jsx_runtime.JSX.Element;
|
|
1106
|
+
declare namespace NavbarToggle {
|
|
1107
|
+
var displayName: string;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
declare function NavbarRoot({ children, className }: NavbarProps): react_jsx_runtime.JSX.Element;
|
|
1111
|
+
declare const Navbar: typeof NavbarRoot & {
|
|
1112
|
+
Brand: typeof NavbarBrand;
|
|
1113
|
+
Items: typeof NavbarItems;
|
|
1114
|
+
Item: typeof NavbarItem;
|
|
1115
|
+
Toggle: typeof NavbarToggle;
|
|
1116
|
+
};
|
|
1117
|
+
|
|
1118
|
+
declare function useNavbar(): NavbarContextValue;
|
|
1119
|
+
|
|
1120
|
+
interface PaginationProps {
|
|
1121
|
+
page: number;
|
|
1122
|
+
onPageChange: (page: number) => void;
|
|
1123
|
+
totalPages: number;
|
|
1124
|
+
siblingCount?: number;
|
|
1125
|
+
className?: string;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
declare function Pagination({ page, onPageChange, totalPages, siblingCount, className, }: PaginationProps): react_jsx_runtime.JSX.Element | null;
|
|
1129
|
+
declare namespace Pagination {
|
|
1130
|
+
var displayName: string;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
interface AutocompleteOption {
|
|
1134
|
+
value: string;
|
|
1135
|
+
label: string;
|
|
1136
|
+
disabled?: boolean;
|
|
1137
|
+
}
|
|
1138
|
+
interface AutocompleteProps {
|
|
1139
|
+
value?: string;
|
|
1140
|
+
defaultValue?: string;
|
|
1141
|
+
onChange?: (value: string) => void;
|
|
1142
|
+
onSearch?: (query: string) => void;
|
|
1143
|
+
options: AutocompleteOption[];
|
|
1144
|
+
placeholder?: string;
|
|
1145
|
+
loading?: boolean;
|
|
1146
|
+
emptyMessage?: ReactNode;
|
|
1147
|
+
disabled?: boolean;
|
|
1148
|
+
className?: string;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
declare const Autocomplete: react.ForwardRefExoticComponent<AutocompleteProps & react.RefAttributes<HTMLInputElement>>;
|
|
1152
|
+
|
|
1153
|
+
interface PillboxProps {
|
|
1154
|
+
value?: string[];
|
|
1155
|
+
defaultValue?: string[];
|
|
1156
|
+
onChange?: (values: string[]) => void;
|
|
1157
|
+
placeholder?: string;
|
|
1158
|
+
maxItems?: number;
|
|
1159
|
+
disabled?: boolean;
|
|
1160
|
+
className?: string;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
declare const Pillbox: react.ForwardRefExoticComponent<PillboxProps & react.RefAttributes<HTMLDivElement>>;
|
|
1164
|
+
|
|
1165
|
+
interface OtpInputProps {
|
|
1166
|
+
length?: number;
|
|
1167
|
+
value?: string;
|
|
1168
|
+
onChange?: (value: string) => void;
|
|
1169
|
+
disabled?: boolean;
|
|
1170
|
+
autoFocus?: boolean;
|
|
1171
|
+
className?: string;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
declare const OtpInput: react.ForwardRefExoticComponent<OtpInputProps & react.RefAttributes<HTMLDivElement>>;
|
|
1175
|
+
|
|
1176
|
+
interface FileUploadContextValue {
|
|
1177
|
+
files: File[];
|
|
1178
|
+
addFiles: (files: FileList | File[]) => void;
|
|
1179
|
+
removeFile: (index: number) => void;
|
|
1180
|
+
disabled: boolean;
|
|
1181
|
+
}
|
|
1182
|
+
interface FileUploadProps {
|
|
1183
|
+
children: ReactNode;
|
|
1184
|
+
value?: File[];
|
|
1185
|
+
onChange?: (files: File[]) => void;
|
|
1186
|
+
accept?: string;
|
|
1187
|
+
multiple?: boolean;
|
|
1188
|
+
maxFiles?: number;
|
|
1189
|
+
maxSize?: number;
|
|
1190
|
+
disabled?: boolean;
|
|
1191
|
+
className?: string;
|
|
1192
|
+
}
|
|
1193
|
+
interface FileUploadDropzoneProps {
|
|
1194
|
+
children?: ReactNode;
|
|
1195
|
+
className?: string;
|
|
1196
|
+
}
|
|
1197
|
+
interface FileUploadListProps {
|
|
1198
|
+
thumbnail?: boolean;
|
|
1199
|
+
className?: string;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
declare function FileUploadDropzone({ children, className, }: FileUploadDropzoneProps): react_jsx_runtime.JSX.Element;
|
|
1203
|
+
declare namespace FileUploadDropzone {
|
|
1204
|
+
var displayName: string;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
declare function FileUploadList({ thumbnail, className }: FileUploadListProps): react_jsx_runtime.JSX.Element | null;
|
|
1208
|
+
declare namespace FileUploadList {
|
|
1209
|
+
var displayName: string;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
declare function FileUploadRoot({ children, value, onChange, maxFiles, maxSize, disabled, className, }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
1213
|
+
declare const FileUpload: typeof FileUploadRoot & {
|
|
1214
|
+
Dropzone: typeof FileUploadDropzone;
|
|
1215
|
+
List: typeof FileUploadList;
|
|
1216
|
+
};
|
|
1217
|
+
|
|
1218
|
+
declare function useFileUpload(): FileUploadContextValue;
|
|
1219
|
+
|
|
1220
|
+
interface TimePickerProps {
|
|
1221
|
+
value?: string;
|
|
1222
|
+
defaultValue?: string;
|
|
1223
|
+
onChange?: (value: string) => void;
|
|
1224
|
+
format?: "12h" | "24h";
|
|
1225
|
+
minuteStep?: number;
|
|
1226
|
+
disabled?: boolean;
|
|
1227
|
+
className?: string;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
declare const TimePicker: react.ForwardRefExoticComponent<TimePickerProps & react.RefAttributes<HTMLDivElement>>;
|
|
1231
|
+
|
|
1232
|
+
type CalendarMode = "single" | "range" | "multiple";
|
|
1233
|
+
interface DateRange {
|
|
1234
|
+
start: Date | null;
|
|
1235
|
+
end: Date | null;
|
|
1236
|
+
}
|
|
1237
|
+
interface CalendarProps {
|
|
1238
|
+
mode?: CalendarMode;
|
|
1239
|
+
value?: Date | Date[] | DateRange | null;
|
|
1240
|
+
onChange?: (value: Date | Date[] | DateRange | null) => void;
|
|
1241
|
+
minDate?: Date;
|
|
1242
|
+
maxDate?: Date;
|
|
1243
|
+
disabledDates?: Date[];
|
|
1244
|
+
className?: string;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
declare const Calendar: react.ForwardRefExoticComponent<CalendarProps & react.RefAttributes<HTMLDivElement>>;
|
|
1248
|
+
|
|
1249
|
+
interface ComposerProps {
|
|
1250
|
+
value?: string;
|
|
1251
|
+
defaultValue?: string;
|
|
1252
|
+
onChange?: (value: string) => void;
|
|
1253
|
+
onSubmit?: (value: string) => void;
|
|
1254
|
+
placeholder?: string;
|
|
1255
|
+
actions?: ReactNode;
|
|
1256
|
+
disabled?: boolean;
|
|
1257
|
+
className?: string;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
declare const Composer: react.ForwardRefExoticComponent<ComposerProps & react.RefAttributes<HTMLDivElement>>;
|
|
1261
|
+
|
|
1262
|
+
interface ChartBarData {
|
|
1263
|
+
label: string;
|
|
1264
|
+
value: number;
|
|
1265
|
+
color?: string;
|
|
1266
|
+
}
|
|
1267
|
+
interface ChartBarProps {
|
|
1268
|
+
data: ChartBarData[];
|
|
1269
|
+
height?: number;
|
|
1270
|
+
showValues?: boolean;
|
|
1271
|
+
className?: string;
|
|
1272
|
+
}
|
|
1273
|
+
interface ChartDonutData {
|
|
1274
|
+
label: string;
|
|
1275
|
+
value: number;
|
|
1276
|
+
color?: string;
|
|
1277
|
+
}
|
|
1278
|
+
interface ChartDonutProps {
|
|
1279
|
+
data: ChartDonutData[];
|
|
1280
|
+
size?: number;
|
|
1281
|
+
strokeWidth?: number;
|
|
1282
|
+
showLegend?: boolean;
|
|
1283
|
+
className?: string;
|
|
1284
|
+
}
|
|
1285
|
+
interface ChartSeries {
|
|
1286
|
+
label: string;
|
|
1287
|
+
data: number[];
|
|
1288
|
+
color?: string;
|
|
1289
|
+
}
|
|
1290
|
+
interface ChartCommonProps {
|
|
1291
|
+
className?: string;
|
|
1292
|
+
height?: number;
|
|
1293
|
+
xAxis?: boolean | {
|
|
1294
|
+
label?: string;
|
|
1295
|
+
tickCount?: number;
|
|
1296
|
+
};
|
|
1297
|
+
yAxis?: boolean | {
|
|
1298
|
+
label?: string;
|
|
1299
|
+
tickCount?: number;
|
|
1300
|
+
};
|
|
1301
|
+
grid?: boolean | {
|
|
1302
|
+
horizontal?: boolean;
|
|
1303
|
+
vertical?: boolean;
|
|
1304
|
+
};
|
|
1305
|
+
tooltip?: boolean;
|
|
1306
|
+
animate?: boolean;
|
|
1307
|
+
responsive?: boolean;
|
|
1308
|
+
}
|
|
1309
|
+
interface ChartLineProps extends ChartCommonProps {
|
|
1310
|
+
labels: string[];
|
|
1311
|
+
series: ChartSeries[];
|
|
1312
|
+
curve?: "linear" | "monotone";
|
|
1313
|
+
showDots?: boolean;
|
|
1314
|
+
fill?: boolean;
|
|
1315
|
+
fillOpacity?: number;
|
|
1316
|
+
}
|
|
1317
|
+
type ChartAreaProps = Omit<ChartLineProps, "fill">;
|
|
1318
|
+
interface ChartPieData {
|
|
1319
|
+
label: string;
|
|
1320
|
+
value: number;
|
|
1321
|
+
color?: string;
|
|
1322
|
+
}
|
|
1323
|
+
interface ChartPieProps {
|
|
1324
|
+
data: ChartPieData[];
|
|
1325
|
+
size?: number;
|
|
1326
|
+
showLabels?: boolean;
|
|
1327
|
+
tooltip?: boolean;
|
|
1328
|
+
className?: string;
|
|
1329
|
+
}
|
|
1330
|
+
interface ChartSparklineProps {
|
|
1331
|
+
data: number[];
|
|
1332
|
+
width?: number;
|
|
1333
|
+
height?: number;
|
|
1334
|
+
color?: string;
|
|
1335
|
+
className?: string;
|
|
1336
|
+
}
|
|
1337
|
+
interface ChartHorizontalBarProps {
|
|
1338
|
+
data: ChartBarData[];
|
|
1339
|
+
height?: number;
|
|
1340
|
+
showValues?: boolean;
|
|
1341
|
+
className?: string;
|
|
1342
|
+
}
|
|
1343
|
+
interface ChartStackedBarProps extends ChartCommonProps {
|
|
1344
|
+
labels: string[];
|
|
1345
|
+
series: ChartSeries[];
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
declare function ChartBar({ data, height, showValues, className, }: ChartBarProps): react_jsx_runtime.JSX.Element;
|
|
1349
|
+
declare namespace ChartBar {
|
|
1350
|
+
var displayName: string;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
declare function ChartDonut({ data, size, strokeWidth, showLegend, className, }: ChartDonutProps): react_jsx_runtime.JSX.Element;
|
|
1354
|
+
declare namespace ChartDonut {
|
|
1355
|
+
var displayName: string;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
declare function ChartLine({ labels, series, height, curve, showDots, fill, fillOpacity, xAxis, yAxis, grid, tooltip, animate, responsive, className, }: ChartLineProps): react_jsx_runtime.JSX.Element;
|
|
1359
|
+
declare namespace ChartLine {
|
|
1360
|
+
var displayName: string;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
declare function ChartArea(props: ChartAreaProps): react_jsx_runtime.JSX.Element;
|
|
1364
|
+
declare namespace ChartArea {
|
|
1365
|
+
var displayName: string;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
declare function ChartPie({ data, size, showLabels, tooltip, className, }: ChartPieProps): react_jsx_runtime.JSX.Element;
|
|
1369
|
+
declare namespace ChartPie {
|
|
1370
|
+
var displayName: string;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
declare function ChartSparkline({ data, width, height, color, className, }: ChartSparklineProps): react_jsx_runtime.JSX.Element;
|
|
1374
|
+
declare namespace ChartSparkline {
|
|
1375
|
+
var displayName: string;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
declare function ChartHorizontalBar({ data, height, showValues, className, }: ChartHorizontalBarProps): react_jsx_runtime.JSX.Element;
|
|
1379
|
+
declare namespace ChartHorizontalBar {
|
|
1380
|
+
var displayName: string;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
declare function ChartStackedBar({ labels, series, height, xAxis, yAxis, grid, tooltip, responsive, className, }: ChartStackedBarProps): react_jsx_runtime.JSX.Element;
|
|
1384
|
+
declare namespace ChartStackedBar {
|
|
1385
|
+
var displayName: string;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
declare const Chart: {
|
|
1389
|
+
Bar: typeof ChartBar;
|
|
1390
|
+
Donut: typeof ChartDonut;
|
|
1391
|
+
Line: typeof ChartLine;
|
|
1392
|
+
Area: typeof ChartArea;
|
|
1393
|
+
Pie: typeof ChartPie;
|
|
1394
|
+
Sparkline: typeof ChartSparkline;
|
|
1395
|
+
HorizontalBar: typeof ChartHorizontalBar;
|
|
1396
|
+
StackedBar: typeof ChartStackedBar;
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
/** Props passed to every render-extension component. */
|
|
1400
|
+
interface RenderExtensionProps {
|
|
1401
|
+
/** The inner content of the custom tag (raw string). */
|
|
1402
|
+
content: string;
|
|
1403
|
+
/** Parsed HTML attributes from the opening tag. */
|
|
1404
|
+
attributes: Record<string, string>;
|
|
1405
|
+
}
|
|
1406
|
+
/** Registers a custom tag with a React component for rendering. */
|
|
1407
|
+
interface RenderExtension {
|
|
1408
|
+
/** Tag name to match, e.g. "questions", "thinking". Case-insensitive. */
|
|
1409
|
+
tag: string;
|
|
1410
|
+
/** React component that renders the matched tag. */
|
|
1411
|
+
component: ComponentType<RenderExtensionProps>;
|
|
1412
|
+
/**
|
|
1413
|
+
* Whether this is a block-level element.
|
|
1414
|
+
* Block extensions are wrapped in a `<div>`, inline in a `<span>`.
|
|
1415
|
+
* @default true
|
|
1416
|
+
*/
|
|
1417
|
+
block?: boolean;
|
|
1418
|
+
}
|
|
1419
|
+
/** Register a single render extension globally (available to all ContentRenderer and Editor instances). */
|
|
1420
|
+
declare function registerExtension(extension: RenderExtension): void;
|
|
1421
|
+
/** Register multiple render extensions globally. */
|
|
1422
|
+
declare function registerExtensions(extensions: RenderExtension[]): void;
|
|
1423
|
+
|
|
1424
|
+
interface EditorAction {
|
|
1425
|
+
icon: ReactNode;
|
|
1426
|
+
label: string;
|
|
1427
|
+
command: string;
|
|
1428
|
+
commandArg?: string;
|
|
1429
|
+
active?: boolean;
|
|
1430
|
+
}
|
|
1431
|
+
interface EditorToolbarProps {
|
|
1432
|
+
actions?: EditorAction[];
|
|
1433
|
+
onAction?: (command: string) => void;
|
|
1434
|
+
children?: ReactNode;
|
|
1435
|
+
className?: string;
|
|
1436
|
+
}
|
|
1437
|
+
interface EditorContentProps {
|
|
1438
|
+
className?: string;
|
|
1439
|
+
}
|
|
1440
|
+
interface EditorProps {
|
|
1441
|
+
children: ReactNode;
|
|
1442
|
+
className?: string;
|
|
1443
|
+
value?: string;
|
|
1444
|
+
defaultValue?: string;
|
|
1445
|
+
onChange?: (value: string) => void;
|
|
1446
|
+
outputFormat?: "html" | "markdown";
|
|
1447
|
+
lineSpacing?: number;
|
|
1448
|
+
placeholder?: string;
|
|
1449
|
+
/** Per-instance render extensions. Merged with any globally-registered extensions. */
|
|
1450
|
+
extensions?: RenderExtension[];
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
declare function EditorToolbar({ actions, onAction, children, className, }: EditorToolbarProps): react_jsx_runtime.JSX.Element;
|
|
1454
|
+
declare namespace EditorToolbar {
|
|
1455
|
+
var displayName: string;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
declare function EditorToolbarSeparator(): react_jsx_runtime.JSX.Element;
|
|
1459
|
+
declare namespace EditorToolbarSeparator {
|
|
1460
|
+
var displayName: string;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
declare function EditorContent({ className }: EditorContentProps): react_jsx_runtime.JSX.Element;
|
|
1464
|
+
declare namespace EditorContent {
|
|
1465
|
+
var displayName: string;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
declare function EditorRoot({ children, className, value: controlledValue, defaultValue, onChange, outputFormat, lineSpacing, placeholder, extensions: instanceExtensions, }: EditorProps): react_jsx_runtime.JSX.Element;
|
|
1469
|
+
declare const Editor: typeof EditorRoot & {
|
|
1470
|
+
Toolbar: typeof EditorToolbar & {
|
|
1471
|
+
Separator: typeof EditorToolbarSeparator;
|
|
1472
|
+
};
|
|
1473
|
+
Content: typeof EditorContent;
|
|
1474
|
+
};
|
|
1475
|
+
|
|
1476
|
+
interface EditorContextValue {
|
|
1477
|
+
contentRef: RefObject<HTMLDivElement | null>;
|
|
1478
|
+
exec: (command: string, arg?: string) => void;
|
|
1479
|
+
insertText: (text: string) => void;
|
|
1480
|
+
wrapSelection: (before: string, after: string) => void;
|
|
1481
|
+
outputFormat: "html" | "markdown";
|
|
1482
|
+
lineSpacing: number;
|
|
1483
|
+
placeholder?: string;
|
|
1484
|
+
/** Merged render extensions (global + instance). */
|
|
1485
|
+
extensions: RenderExtension[];
|
|
1486
|
+
/** @internal Called by EditorContent on input events */
|
|
1487
|
+
_onInput: () => void;
|
|
1488
|
+
}
|
|
1489
|
+
declare function useEditor(): EditorContextValue;
|
|
1490
|
+
|
|
1491
|
+
interface ContentRendererProps {
|
|
1492
|
+
value: string;
|
|
1493
|
+
format?: "html" | "markdown" | "auto";
|
|
1494
|
+
lineSpacing?: number;
|
|
1495
|
+
className?: string;
|
|
1496
|
+
/** Per-instance render extensions. Merged with any globally-registered extensions. */
|
|
1497
|
+
extensions?: RenderExtension[];
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
declare function ContentRenderer({ value, format, lineSpacing, className, extensions: instanceExtensions, }: ContentRendererProps): react_jsx_runtime.JSX.Element;
|
|
1501
|
+
declare namespace ContentRenderer {
|
|
1502
|
+
var displayName: string;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
type MenuOrientation = "horizontal" | "vertical";
|
|
1506
|
+
interface MenuProps {
|
|
1507
|
+
children: ReactNode;
|
|
1508
|
+
orientation?: MenuOrientation;
|
|
1509
|
+
className?: string;
|
|
1510
|
+
}
|
|
1511
|
+
interface MenuItemProps {
|
|
1512
|
+
children: ReactNode;
|
|
1513
|
+
href?: string;
|
|
1514
|
+
icon?: ReactNode;
|
|
1515
|
+
active?: boolean;
|
|
1516
|
+
disabled?: boolean;
|
|
1517
|
+
badge?: ReactNode;
|
|
1518
|
+
onClick?: () => void;
|
|
1519
|
+
className?: string;
|
|
1520
|
+
}
|
|
1521
|
+
interface MenuSubmenuProps {
|
|
1522
|
+
children: ReactNode;
|
|
1523
|
+
label: ReactNode;
|
|
1524
|
+
icon?: ReactNode;
|
|
1525
|
+
defaultOpen?: boolean;
|
|
1526
|
+
className?: string;
|
|
1527
|
+
}
|
|
1528
|
+
interface MenuGroupProps {
|
|
1529
|
+
children: ReactNode;
|
|
1530
|
+
label?: string;
|
|
1531
|
+
className?: string;
|
|
1532
|
+
}
|
|
1533
|
+
interface MenuContextValue {
|
|
1534
|
+
orientation: MenuOrientation;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
declare function MenuItem({ children, href, icon, active, disabled, badge, onClick, className, }: MenuItemProps): react_jsx_runtime.JSX.Element;
|
|
1538
|
+
declare namespace MenuItem {
|
|
1539
|
+
var displayName: string;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
declare function MenuSubmenu({ children, label, icon, defaultOpen, className, }: MenuSubmenuProps): react_jsx_runtime.JSX.Element;
|
|
1543
|
+
declare namespace MenuSubmenu {
|
|
1544
|
+
var displayName: string;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
declare function MenuGroup({ children, label, className }: MenuGroupProps): react_jsx_runtime.JSX.Element;
|
|
1548
|
+
declare namespace MenuGroup {
|
|
1549
|
+
var displayName: string;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
declare function MenuRoot({ children, orientation, className }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
1553
|
+
declare const Menu: typeof MenuRoot & {
|
|
1554
|
+
Item: typeof MenuItem;
|
|
1555
|
+
Submenu: typeof MenuSubmenu;
|
|
1556
|
+
Group: typeof MenuGroup;
|
|
1557
|
+
};
|
|
1558
|
+
|
|
1559
|
+
declare function useMenu(): MenuContextValue;
|
|
1560
|
+
|
|
1561
|
+
type SidebarCollapseMode = "icons" | "letters";
|
|
1562
|
+
interface SidebarProps {
|
|
1563
|
+
children: ReactNode;
|
|
1564
|
+
collapsed?: boolean;
|
|
1565
|
+
defaultCollapsed?: boolean;
|
|
1566
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
1567
|
+
/**
|
|
1568
|
+
* How items display when collapsed:
|
|
1569
|
+
* - `"icons"` — show only the icon (falls back to first 3 letters if no icon)
|
|
1570
|
+
* - `"letters"` — show the first 3 letters of the label
|
|
1571
|
+
* @default "icons"
|
|
1572
|
+
*/
|
|
1573
|
+
collapseMode?: SidebarCollapseMode;
|
|
1574
|
+
className?: string;
|
|
1575
|
+
}
|
|
1576
|
+
interface SidebarItemProps {
|
|
1577
|
+
children: ReactNode;
|
|
1578
|
+
href?: string;
|
|
1579
|
+
icon?: ReactNode;
|
|
1580
|
+
active?: boolean;
|
|
1581
|
+
disabled?: boolean;
|
|
1582
|
+
badge?: ReactNode;
|
|
1583
|
+
onClick?: () => void;
|
|
1584
|
+
className?: string;
|
|
1585
|
+
}
|
|
1586
|
+
interface SidebarGroupProps {
|
|
1587
|
+
children: ReactNode;
|
|
1588
|
+
label?: string;
|
|
1589
|
+
className?: string;
|
|
1590
|
+
}
|
|
1591
|
+
interface SidebarToggleProps {
|
|
1592
|
+
className?: string;
|
|
1593
|
+
}
|
|
1594
|
+
interface SidebarSubmenuProps {
|
|
1595
|
+
children: ReactNode;
|
|
1596
|
+
label: string;
|
|
1597
|
+
icon?: ReactNode;
|
|
1598
|
+
defaultOpen?: boolean;
|
|
1599
|
+
className?: string;
|
|
1600
|
+
}
|
|
1601
|
+
interface SidebarContextValue {
|
|
1602
|
+
collapsed: boolean;
|
|
1603
|
+
collapseMode: SidebarCollapseMode;
|
|
1604
|
+
setCollapsed: (collapsed: boolean) => void;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
declare function SidebarItem({ children, href, icon, active, disabled, badge, onClick, className, }: SidebarItemProps): react_jsx_runtime.JSX.Element;
|
|
1608
|
+
declare namespace SidebarItem {
|
|
1609
|
+
var displayName: string;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
declare function SidebarGroup({ children, label, className }: SidebarGroupProps): react_jsx_runtime.JSX.Element;
|
|
1613
|
+
declare namespace SidebarGroup {
|
|
1614
|
+
var displayName: string;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
declare function SidebarSubmenu({ children, label, icon, defaultOpen, className, }: SidebarSubmenuProps): react_jsx_runtime.JSX.Element;
|
|
1618
|
+
declare namespace SidebarSubmenu {
|
|
1619
|
+
var displayName: string;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
declare function SidebarToggle({ className }: SidebarToggleProps): react_jsx_runtime.JSX.Element;
|
|
1623
|
+
declare namespace SidebarToggle {
|
|
1624
|
+
var displayName: string;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
declare function SidebarRoot({ children, collapsed: controlledCollapsed, defaultCollapsed, onCollapsedChange, collapseMode, className, }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1628
|
+
declare const Sidebar: typeof SidebarRoot & {
|
|
1629
|
+
Item: typeof SidebarItem;
|
|
1630
|
+
Group: typeof SidebarGroup;
|
|
1631
|
+
Submenu: typeof SidebarSubmenu;
|
|
1632
|
+
Toggle: typeof SidebarToggle;
|
|
1633
|
+
};
|
|
1634
|
+
|
|
1635
|
+
declare function useSidebar(): SidebarContextValue;
|
|
1636
|
+
|
|
1637
|
+
type MobileMenuVariant = "flyout" | "bottom-bar";
|
|
1638
|
+
type MobileMenuSide = "left" | "right";
|
|
1639
|
+
interface MobileMenuFlyoutProps {
|
|
1640
|
+
children: ReactNode;
|
|
1641
|
+
open: boolean;
|
|
1642
|
+
onClose: () => void;
|
|
1643
|
+
side?: MobileMenuSide;
|
|
1644
|
+
title?: string;
|
|
1645
|
+
className?: string;
|
|
1646
|
+
}
|
|
1647
|
+
interface MobileMenuBottomBarProps {
|
|
1648
|
+
children: ReactNode;
|
|
1649
|
+
className?: string;
|
|
1650
|
+
}
|
|
1651
|
+
interface MobileMenuItemProps {
|
|
1652
|
+
children: ReactNode;
|
|
1653
|
+
href?: string;
|
|
1654
|
+
icon?: ReactNode;
|
|
1655
|
+
active?: boolean;
|
|
1656
|
+
disabled?: boolean;
|
|
1657
|
+
badge?: ReactNode;
|
|
1658
|
+
onClick?: () => void;
|
|
1659
|
+
className?: string;
|
|
1660
|
+
}
|
|
1661
|
+
interface MobileMenuContextValue {
|
|
1662
|
+
variant: MobileMenuVariant;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
declare function MobileMenuFlyout({ children, open, onClose, side, title, className, }: MobileMenuFlyoutProps): react_jsx_runtime.JSX.Element | null;
|
|
1666
|
+
declare namespace MobileMenuFlyout {
|
|
1667
|
+
var displayName: string;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
declare function MobileMenuBottomBar({ children, className }: MobileMenuBottomBarProps): react_jsx_runtime.JSX.Element;
|
|
1671
|
+
declare namespace MobileMenuBottomBar {
|
|
1672
|
+
var displayName: string;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
declare function MobileMenuItem({ children, href, icon, active, disabled, badge, onClick, className, }: MobileMenuItemProps): react_jsx_runtime.JSX.Element;
|
|
1676
|
+
declare namespace MobileMenuItem {
|
|
1677
|
+
var displayName: string;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
declare const MobileMenu: {
|
|
1681
|
+
Flyout: typeof MobileMenuFlyout;
|
|
1682
|
+
BottomBar: typeof MobileMenuBottomBar;
|
|
1683
|
+
Item: typeof MobileMenuItem;
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1686
|
+
declare function useMobileMenu(): MobileMenuContextValue;
|
|
1687
|
+
|
|
1688
|
+
interface KanbanContextValue {
|
|
1689
|
+
onCardMove?: (cardId: string, fromColumn: string, toColumn: string) => void;
|
|
1690
|
+
draggedCard: string | null;
|
|
1691
|
+
setDraggedCard: (id: string | null) => void;
|
|
1692
|
+
dragSource: string | null;
|
|
1693
|
+
setDragSource: (id: string | null) => void;
|
|
1694
|
+
}
|
|
1695
|
+
interface KanbanProps {
|
|
1696
|
+
children: ReactNode;
|
|
1697
|
+
onCardMove?: (cardId: string, fromColumn: string, toColumn: string) => void;
|
|
1698
|
+
className?: string;
|
|
1699
|
+
}
|
|
1700
|
+
interface KanbanColumnProps {
|
|
1701
|
+
children: ReactNode;
|
|
1702
|
+
id: string;
|
|
1703
|
+
title?: string;
|
|
1704
|
+
className?: string;
|
|
1705
|
+
}
|
|
1706
|
+
interface KanbanCardProps {
|
|
1707
|
+
children: ReactNode;
|
|
1708
|
+
id: string;
|
|
1709
|
+
className?: string;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
declare function KanbanColumn({ children, id, title, className, }: KanbanColumnProps): react_jsx_runtime.JSX.Element;
|
|
1713
|
+
declare namespace KanbanColumn {
|
|
1714
|
+
var displayName: string;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
declare function KanbanCard({ children, id, className }: KanbanCardProps): react_jsx_runtime.JSX.Element;
|
|
1718
|
+
declare namespace KanbanCard {
|
|
1719
|
+
var displayName: string;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
/**
|
|
1723
|
+
* Kanban board component (experimental).
|
|
1724
|
+
* Uses HTML5 Drag and Drop API.
|
|
1725
|
+
*/
|
|
1726
|
+
declare function KanbanRoot({ children, onCardMove, className }: KanbanProps): react_jsx_runtime.JSX.Element;
|
|
1727
|
+
declare const Kanban: typeof KanbanRoot & {
|
|
1728
|
+
Column: typeof KanbanColumn;
|
|
1729
|
+
Card: typeof KanbanCard;
|
|
1730
|
+
};
|
|
1731
|
+
|
|
1732
|
+
declare function useKanban(): KanbanContextValue;
|
|
1733
|
+
|
|
1734
|
+
interface ViewportState {
|
|
1735
|
+
panX: number;
|
|
1736
|
+
panY: number;
|
|
1737
|
+
zoom: number;
|
|
1738
|
+
}
|
|
1739
|
+
interface UsePanZoomOptions {
|
|
1740
|
+
viewport: ViewportState;
|
|
1741
|
+
setViewport: (vp: ViewportState | ((prev: ViewportState) => ViewportState)) => void;
|
|
1742
|
+
minZoom: number;
|
|
1743
|
+
maxZoom: number;
|
|
1744
|
+
pannable: boolean;
|
|
1745
|
+
zoomable: boolean;
|
|
1746
|
+
containerRef: React.RefObject<HTMLElement | null>;
|
|
1747
|
+
}
|
|
1748
|
+
interface UsePanZoomReturn {
|
|
1749
|
+
containerProps: {
|
|
1750
|
+
onPointerDown: (e: React.PointerEvent) => void;
|
|
1751
|
+
onPointerMove: (e: React.PointerEvent) => void;
|
|
1752
|
+
onPointerUp: (e: React.PointerEvent) => void;
|
|
1753
|
+
};
|
|
1754
|
+
isPanning: boolean;
|
|
1755
|
+
}
|
|
1756
|
+
declare function usePanZoom({ viewport, setViewport, minZoom, maxZoom, pannable, zoomable, containerRef, }: UsePanZoomOptions): UsePanZoomReturn;
|
|
1757
|
+
|
|
1758
|
+
interface NodeRect {
|
|
1759
|
+
x: number;
|
|
1760
|
+
y: number;
|
|
1761
|
+
width: number;
|
|
1762
|
+
height: number;
|
|
1763
|
+
}
|
|
1764
|
+
interface UseNodeRegistryReturn {
|
|
1765
|
+
registerNode: (id: string, rect: NodeRect) => void;
|
|
1766
|
+
unregisterNode: (id: string) => void;
|
|
1767
|
+
nodeRects: Map<string, NodeRect>;
|
|
1768
|
+
version: number;
|
|
1769
|
+
}
|
|
1770
|
+
declare function useNodeRegistry(): UseNodeRegistryReturn;
|
|
1771
|
+
|
|
1772
|
+
type EdgeAnchor = "top" | "bottom" | "left" | "right" | "center" | "auto";
|
|
1773
|
+
interface CanvasContextValue {
|
|
1774
|
+
viewport: ViewportState;
|
|
1775
|
+
setViewport: (vp: ViewportState | ((prev: ViewportState) => ViewportState)) => void;
|
|
1776
|
+
registerNode: (id: string, rect: NodeRect) => void;
|
|
1777
|
+
unregisterNode: (id: string) => void;
|
|
1778
|
+
nodeRects: Map<string, NodeRect>;
|
|
1779
|
+
registryVersion: number;
|
|
1780
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
1781
|
+
}
|
|
1782
|
+
interface CanvasProps {
|
|
1783
|
+
children: ReactNode;
|
|
1784
|
+
viewport?: ViewportState;
|
|
1785
|
+
defaultViewport?: ViewportState;
|
|
1786
|
+
onViewportChange?: (viewport: ViewportState) => void;
|
|
1787
|
+
minZoom?: number;
|
|
1788
|
+
maxZoom?: number;
|
|
1789
|
+
pannable?: boolean;
|
|
1790
|
+
zoomable?: boolean;
|
|
1791
|
+
gridSize?: number;
|
|
1792
|
+
showGrid?: boolean;
|
|
1793
|
+
className?: string;
|
|
1794
|
+
style?: CSSProperties;
|
|
1795
|
+
}
|
|
1796
|
+
interface CanvasNodeProps {
|
|
1797
|
+
children: ReactNode;
|
|
1798
|
+
id: string;
|
|
1799
|
+
x: number;
|
|
1800
|
+
y: number;
|
|
1801
|
+
className?: string;
|
|
1802
|
+
style?: CSSProperties;
|
|
1803
|
+
}
|
|
1804
|
+
interface CanvasEdgeProps {
|
|
1805
|
+
from: string;
|
|
1806
|
+
to: string;
|
|
1807
|
+
fromAnchor?: EdgeAnchor;
|
|
1808
|
+
toAnchor?: EdgeAnchor;
|
|
1809
|
+
curve?: "bezier" | "step" | "straight";
|
|
1810
|
+
color?: string;
|
|
1811
|
+
strokeWidth?: number;
|
|
1812
|
+
dashed?: boolean;
|
|
1813
|
+
animated?: boolean;
|
|
1814
|
+
label?: ReactNode;
|
|
1815
|
+
className?: string;
|
|
1816
|
+
markerStart?: string;
|
|
1817
|
+
markerEnd?: string;
|
|
1818
|
+
}
|
|
1819
|
+
interface CanvasMinimapProps {
|
|
1820
|
+
width?: number;
|
|
1821
|
+
height?: number;
|
|
1822
|
+
className?: string;
|
|
1823
|
+
}
|
|
1824
|
+
interface CanvasControlsProps {
|
|
1825
|
+
className?: string;
|
|
1826
|
+
showZoomIn?: boolean;
|
|
1827
|
+
showZoomOut?: boolean;
|
|
1828
|
+
showReset?: boolean;
|
|
1829
|
+
showFitAll?: boolean;
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
declare function CanvasNode({ children, id, x, y, className, style }: CanvasNodeProps): react_jsx_runtime.JSX.Element;
|
|
1833
|
+
declare namespace CanvasNode {
|
|
1834
|
+
var displayName: string;
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
declare function CanvasEdge({ from, to, fromAnchor, toAnchor, curve, color, strokeWidth, dashed, animated, label, className, markerStart, markerEnd, }: CanvasEdgeProps): react_jsx_runtime.JSX.Element | null;
|
|
1838
|
+
declare namespace CanvasEdge {
|
|
1839
|
+
var displayName: string;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
declare function CanvasMinimap({ width, height, className }: CanvasMinimapProps): react_jsx_runtime.JSX.Element;
|
|
1843
|
+
declare namespace CanvasMinimap {
|
|
1844
|
+
var displayName: string;
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
declare function CanvasControls({ className, showZoomIn, showZoomOut, showReset, showFitAll, }: CanvasControlsProps): react_jsx_runtime.JSX.Element;
|
|
1848
|
+
declare namespace CanvasControls {
|
|
1849
|
+
var displayName: string;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
declare function CanvasRoot({ children, viewport: controlledViewport, defaultViewport, onViewportChange, minZoom, maxZoom, pannable, zoomable, showGrid, className, style, }: CanvasProps): react_jsx_runtime.JSX.Element;
|
|
1853
|
+
declare const Canvas: typeof CanvasRoot & {
|
|
1854
|
+
Node: typeof CanvasNode;
|
|
1855
|
+
Edge: typeof CanvasEdge;
|
|
1856
|
+
Minimap: typeof CanvasMinimap;
|
|
1857
|
+
Controls: typeof CanvasControls;
|
|
1858
|
+
};
|
|
1859
|
+
|
|
1860
|
+
declare function useCanvas(): CanvasContextValue;
|
|
1861
|
+
|
|
1862
|
+
type DiagramType = "erd" | "flowchart" | "general";
|
|
1863
|
+
type RelationType = "one-to-one" | "one-to-many" | "many-to-many";
|
|
1864
|
+
type ExportFormat = "erd" | "uml" | "dfd";
|
|
1865
|
+
interface DiagramFieldData {
|
|
1866
|
+
name: string;
|
|
1867
|
+
type?: string;
|
|
1868
|
+
primary?: boolean;
|
|
1869
|
+
foreign?: boolean;
|
|
1870
|
+
nullable?: boolean;
|
|
1871
|
+
}
|
|
1872
|
+
interface DiagramEntityData {
|
|
1873
|
+
id: string;
|
|
1874
|
+
name: string;
|
|
1875
|
+
fields?: DiagramFieldData[];
|
|
1876
|
+
x?: number;
|
|
1877
|
+
y?: number;
|
|
1878
|
+
}
|
|
1879
|
+
interface DiagramRelationData {
|
|
1880
|
+
id: string;
|
|
1881
|
+
from: string;
|
|
1882
|
+
to: string;
|
|
1883
|
+
fromField?: string;
|
|
1884
|
+
toField?: string;
|
|
1885
|
+
type: RelationType;
|
|
1886
|
+
label?: string;
|
|
1887
|
+
}
|
|
1888
|
+
interface DiagramSchema {
|
|
1889
|
+
entities: DiagramEntityData[];
|
|
1890
|
+
relations: DiagramRelationData[];
|
|
1891
|
+
}
|
|
1892
|
+
interface DiagramContextValue {
|
|
1893
|
+
diagramType: DiagramType;
|
|
1894
|
+
schema: DiagramSchema;
|
|
1895
|
+
downloadableRef: React.RefObject<boolean>;
|
|
1896
|
+
importableRef: React.RefObject<boolean>;
|
|
1897
|
+
exportFormats: ExportFormat[];
|
|
1898
|
+
onImport?: (schema: DiagramSchema) => void;
|
|
1899
|
+
}
|
|
1900
|
+
interface DiagramProps {
|
|
1901
|
+
children?: ReactNode;
|
|
1902
|
+
schema?: DiagramSchema;
|
|
1903
|
+
type?: DiagramType;
|
|
1904
|
+
viewport?: ViewportState;
|
|
1905
|
+
defaultViewport?: ViewportState;
|
|
1906
|
+
onViewportChange?: (viewport: ViewportState) => void;
|
|
1907
|
+
downloadable?: boolean;
|
|
1908
|
+
importable?: boolean;
|
|
1909
|
+
exportFormats?: ExportFormat[];
|
|
1910
|
+
onImport?: (schema: DiagramSchema) => void;
|
|
1911
|
+
minimap?: boolean;
|
|
1912
|
+
className?: string;
|
|
1913
|
+
}
|
|
1914
|
+
interface DiagramEntityProps {
|
|
1915
|
+
children?: ReactNode;
|
|
1916
|
+
id: string;
|
|
1917
|
+
name: string;
|
|
1918
|
+
x?: number;
|
|
1919
|
+
y?: number;
|
|
1920
|
+
color?: string;
|
|
1921
|
+
className?: string;
|
|
1922
|
+
}
|
|
1923
|
+
interface DiagramFieldProps {
|
|
1924
|
+
name: string;
|
|
1925
|
+
type?: string;
|
|
1926
|
+
primary?: boolean;
|
|
1927
|
+
foreign?: boolean;
|
|
1928
|
+
nullable?: boolean;
|
|
1929
|
+
className?: string;
|
|
1930
|
+
}
|
|
1931
|
+
interface DiagramRelationProps {
|
|
1932
|
+
from: string;
|
|
1933
|
+
to: string;
|
|
1934
|
+
fromField?: string;
|
|
1935
|
+
toField?: string;
|
|
1936
|
+
type: RelationType;
|
|
1937
|
+
label?: string;
|
|
1938
|
+
className?: string;
|
|
1939
|
+
}
|
|
1940
|
+
interface DiagramToolbarProps {
|
|
1941
|
+
className?: string;
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
declare function DiagramEntity({ children, id, name, x, y, color, className, }: DiagramEntityProps): react_jsx_runtime.JSX.Element;
|
|
1945
|
+
declare namespace DiagramEntity {
|
|
1946
|
+
var displayName: string;
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
declare function DiagramField({ name, type, primary, foreign, nullable, className, }: DiagramFieldProps): react_jsx_runtime.JSX.Element;
|
|
1950
|
+
declare namespace DiagramField {
|
|
1951
|
+
var displayName: string;
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
declare function DiagramRelation({ from, to, type, label, className, }: DiagramRelationProps): react_jsx_runtime.JSX.Element;
|
|
1955
|
+
declare namespace DiagramRelation {
|
|
1956
|
+
var displayName: string;
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
declare function DiagramToolbar({ className }: DiagramToolbarProps): react_jsx_runtime.JSX.Element | null;
|
|
1960
|
+
declare namespace DiagramToolbar {
|
|
1961
|
+
var displayName: string;
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
declare function DiagramRoot({ children, schema, type, viewport, defaultViewport, onViewportChange, downloadable, importable, exportFormats, onImport, minimap, className, }: DiagramProps): react_jsx_runtime.JSX.Element;
|
|
1965
|
+
declare const Diagram: typeof DiagramRoot & {
|
|
1966
|
+
Entity: typeof DiagramEntity;
|
|
1967
|
+
Field: typeof DiagramField;
|
|
1968
|
+
Relation: typeof DiagramRelation;
|
|
1969
|
+
Toolbar: typeof DiagramToolbar;
|
|
1970
|
+
};
|
|
1971
|
+
|
|
1972
|
+
declare function useDiagram(): DiagramContextValue;
|
|
1973
|
+
|
|
1974
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
1975
|
+
|
|
1976
|
+
declare function useControllableState<T>(controlledValue: T | undefined, defaultValue: T, onChange?: (value: T) => void): [T, (value: T | ((prev: T) => T)) => void];
|
|
1977
|
+
|
|
1978
|
+
declare function useOutsideClick(ref: RefObject<HTMLElement | null>, handler: (event: MouseEvent | TouchEvent) => void, enabled?: boolean): void;
|
|
1979
|
+
|
|
1980
|
+
declare function useEscapeKey(handler: () => void, enabled?: boolean): void;
|
|
1981
|
+
|
|
1982
|
+
declare function useFocusTrap(ref: RefObject<HTMLElement | null>, enabled?: boolean): void;
|
|
1983
|
+
|
|
1984
|
+
interface FloatingPosition {
|
|
1985
|
+
x: number;
|
|
1986
|
+
y: number;
|
|
1987
|
+
placement: Placement;
|
|
1988
|
+
}
|
|
1989
|
+
interface UseFloatingPositionOptions {
|
|
1990
|
+
placement?: Placement;
|
|
1991
|
+
offset?: number;
|
|
1992
|
+
enabled?: boolean;
|
|
1993
|
+
}
|
|
1994
|
+
declare function useFloatingPosition(anchorRef: RefObject<HTMLElement | null>, floatingRef: RefObject<HTMLElement | null>, options?: UseFloatingPositionOptions): FloatingPosition;
|
|
1995
|
+
|
|
1996
|
+
interface UseAnimationOptions {
|
|
1997
|
+
open: boolean;
|
|
1998
|
+
enterClass: string;
|
|
1999
|
+
exitClass: string;
|
|
2000
|
+
}
|
|
2001
|
+
interface UseAnimationReturn {
|
|
2002
|
+
mounted: boolean;
|
|
2003
|
+
className: string;
|
|
2004
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
2005
|
+
}
|
|
2006
|
+
declare function useAnimation({ open, enterClass, exitClass, }: UseAnimationOptions): UseAnimationReturn;
|
|
2007
|
+
|
|
2008
|
+
declare function useId(prefix?: string): string;
|
|
362
2009
|
|
|
363
2010
|
/**
|
|
364
2011
|
* Simplified emoji data for the picker component.
|
|
@@ -390,4 +2037,4 @@ declare function find(char: string): {
|
|
|
390
2037
|
category: string;
|
|
391
2038
|
} | undefined;
|
|
392
2039
|
|
|
393
|
-
export { Action, type ActionColor, type ActionProps, Carousel, type CarouselContextValue, type CarouselControlsProps, type CarouselPanelsProps, type CarouselProps, type CarouselSlideProps, type CarouselStepsProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type Color, ColorPicker, type ColorPickerProps, DatePicker, type DatePickerProps, EMOJI_DATA, EMOJI_ENTRIES, Emoji, type EmojiProps, EmojiSelect, type EmojiSelectProps, Field, type FieldProps, Input, type InputBaseProps, type InputOption, type InputOptionGroup, type InputProps, RadioGroup, type RadioGroupProps, Select, type SelectProps, type Size, Slider, type SliderProps, Switch, type SwitchProps, Table, type TableBodyProps, type TableCellProps, type TableColumnProps, type TableHeadProps, type TablePaginationProps, type TableProps, type TableRowProps, type TableSearchProps, type TableTrayProps, Textarea, type TextareaProps, type Variant, cn, find, resolve, search, useCarousel, useControllableState };
|
|
2040
|
+
export { Accordion, type AccordionContentProps, type AccordionContextValue, type AccordionItemProps, type AccordionProps, type AccordionTriggerProps, Action, type ActionColor, type ActionProps, type AffixPosition, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, type AvatarProps, Badge, type BadgeProps, Brand, type BrandProps, Breadcrumbs, type BreadcrumbsItemProps, type BreadcrumbsProps, Calendar, type CalendarMode, type CalendarProps, Callout, type CalloutProps, Canvas, type CanvasContextValue, type CanvasControlsProps, type CanvasEdgeProps, type CanvasMinimapProps, type CanvasNodeProps, type CanvasProps, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardProps, Carousel, type CarouselContextValue, type CarouselControlsProps, type CarouselPanelsProps, type CarouselProps, type CarouselSlideProps, type CarouselStepsProps, type CarouselVariant, Chart, type ChartAreaProps, type ChartBarData, type ChartBarProps, type ChartCommonProps, type ChartDonutData, type ChartDonutProps, type ChartHorizontalBarProps, type ChartLineProps, type ChartPieData, type ChartPieProps, type ChartSeries, type ChartSparklineProps, type ChartStackedBarProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type Color, ColorPicker, type ColorPickerProps, Command, type CommandContextValue, type CommandEmptyProps, type CommandGroupProps, type CommandInputProps, type CommandItemProps, type CommandListProps, type CommandProps, Composer, type ComposerProps, ContentRenderer, type ContentRendererProps, ContextMenu, type ContextMenuContentProps, type ContextMenuContextValue, type ContextMenuItemProps, type ContextMenuProps, type ContextMenuSeparatorProps, type ContextMenuTriggerProps, DatePicker, type DatePickerProps, type DateRange, Diagram, type DiagramContextValue, type DiagramEntityData, type DiagramEntityProps, type DiagramFieldData, type DiagramFieldProps, type DiagramProps, type DiagramRelationData, type DiagramRelationProps, type DiagramSchema, type DiagramToolbarProps, type DiagramType, Dropdown, type DropdownContextValue, type DropdownItemProps, type DropdownItemsProps, type DropdownProps, type DropdownSeparatorProps, type DropdownTriggerProps, EMOJI_DATA, EMOJI_ENTRIES, type EdgeAnchor, Editor, type EditorAction, type EditorContentProps, type EditorContextValue, type EditorProps, type EditorToolbarProps, Emoji, type EmojiProps, EmojiSelect, type EmojiSelectProps, type ExportFormat, Field, type FieldProps, FileUpload, type FileUploadContextValue, type FileUploadDropzoneProps, type FileUploadListProps, type FileUploadProps, Heading, type HeadingProps, Icon, type IconProps, type IconSet, Input, type InputAffixProps, type InputBaseProps, type InputOption, type InputOptionGroup, type InputProps, Kanban, type KanbanCardProps, type KanbanColumnProps, type KanbanContextValue, type KanbanProps, Menu, type MenuContextValue, type MenuGroupProps, type MenuItemProps, type MenuOrientation, type MenuProps, type MenuSubmenuProps, MobileMenu, type MobileMenuBottomBarProps, type MobileMenuContextValue, type MobileMenuFlyoutProps, type MobileMenuItemProps, type MobileMenuSide, type MobileMenuVariant, Modal, type ModalBodyProps, type ModalContextValue, type ModalFooterProps, type ModalHeaderProps, type ModalProps, MultiSwitch, type MultiSwitchProps, Navbar, type NavbarBrandProps, type NavbarContextValue, type NavbarItemProps, type NavbarItemsProps, type NavbarProps, type NavbarToggleProps, type NodeRect, OtpInput, type OtpInputProps, Pagination, type PaginationProps, Pillbox, type PillboxProps, type Placement, Popover, type PopoverContentProps, type PopoverContextValue, type PopoverProps, type PopoverTriggerProps, Portal, type PortalProps, Profile, type ProfileProps, Progress, type ProgressProps, RadioGroup, type RadioGroupProps, type RelationType, type RenderExtension, type RenderExtensionProps, Select, type SelectProps, Separator, type SeparatorProps, Sidebar, type SidebarCollapseMode, type SidebarContextValue, type SidebarGroupProps, type SidebarItemProps, type SidebarProps, type SidebarSubmenuProps, type SidebarToggleProps, type Size, Skeleton, type SkeletonProps, Slider, type SliderProps, Switch, type SwitchProps, Table, type TableBodyProps, type TableCellProps, type TableColumnProps, type TableHeadProps, type TablePaginationProps, type TableProps, type TableRowProps, type TableRowTrayProps, type TableSearchProps, type TableTrayProps, Tabs, type TabsContextValue, type TabsListProps, type TabsPanelProps, type TabsPanelsProps, type TabsProps, type TabsTabProps, type TabsVariant, Text, type TextProps, Textarea, type TextareaProps, TimePicker, type TimePickerProps, Timeline, type TimelineBlockProps, type TimelineItemProps, type TimelineProps, Toast, type ToastContextValue, type ToastData, type ToastPosition, type ToastProviderProps, type ToastVariant, Tooltip, type TooltipProps, type Variant, type ViewportState, cn, configureIcons, find, registerExtension, registerExtensions, registerIconSet, resolve, search, useAccordion, useAnimation, useCanvas, useCarousel, useCommand, useContextMenu, useControllableState, useDiagram, useDropdown, useEditor, useEscapeKey, useFileUpload, useFloatingPosition, useFocusTrap, useId, useKanban, useMenu, useMobileMenu, useModal, useNavbar, useNodeRegistry, useOutsideClick, usePanZoom, usePopover, useSidebar, useTabs, useToast };
|