@morze/ui 0.2.12 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,9 +2,10 @@ import { ClassValue } from 'clsx';
2
2
  import * as React from 'react';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantProps } from 'class-variance-authority';
5
- import { Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, Checkbox as Checkbox$1, RadioGroup as RadioGroup$1, Switch as Switch$1, Slider as Slider$1, Label as Label$1, Select as Select$1, Tabs as Tabs$1, Accordion as Accordion$1, Progress as Progress$1, Avatar as Avatar$1, Separator as Separator$1, Dialog as Dialog$1, Popover as Popover$1, DropdownMenu as DropdownMenu$1, Tooltip as Tooltip$1 } from 'radix-ui';
6
- import { D as DataTableLabels } from './types-B8jz2FF9.js';
7
- export { M as MorzeCommonLabels, a as MorzeLocale, d as defaultDataTableLabels, r as resolveLabels } from './types-B8jz2FF9.js';
5
+ import { Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, Checkbox as Checkbox$1, RadioGroup as RadioGroup$1, Switch as Switch$1, Slider as Slider$1, Select as Select$1, Tabs as Tabs$1, Accordion as Accordion$1, Progress as Progress$1, Avatar as Avatar$1, Separator as Separator$1, Dialog as Dialog$1, Popover as Popover$1, DropdownMenu as DropdownMenu$1, Tooltip as Tooltip$1, AlertDialog as AlertDialog$1, ScrollArea as ScrollArea$1, Menubar as Menubar$1, NavigationMenu as NavigationMenu$1, Toast as Toast$1 } from 'radix-ui';
6
+ export { L as Label } from './label-Bf37KoRc.js';
7
+ import { D as DataTableLabels } from './types-B3pfG-Kz.js';
8
+ export { C as Calendar, a as CalendarLabels, b as CalendarProps, c as DateMatcher, d as DateRange, M as MorzeCommonLabels, e as MorzeLocale, f as defaultDataTableLabels, r as resolveLabels } from './types-B3pfG-Kz.js';
8
9
 
9
10
  /**
10
11
  * Class name joiner. Morze UI ships plain, prefixed CSS rather than utility
@@ -107,8 +108,6 @@ declare function Input({ className, type, inputSize, ...props }: InputProps): Re
107
108
 
108
109
  declare function Textarea({ className, ...props }: React.ComponentProps<'textarea'>): React.JSX.Element;
109
110
 
110
- declare function Label({ className, ...props }: React.ComponentProps<typeof Label$1.Root>): React.JSX.Element;
111
-
112
111
  /** Vertical label + control + hint/error stack. */
113
112
  declare function Field({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
114
113
  declare function FieldHint({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
@@ -129,10 +128,21 @@ declare function SelectScrollUpButton({ className, ...props }: React.ComponentPr
129
128
  declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollDownButton>): React.JSX.Element;
130
129
 
131
130
  declare function Tabs({ className, ...props }: React.ComponentProps<typeof Tabs$1.Root>): React.JSX.Element;
132
- declare function TabsList({ className, variant, tone, ...props }: React.ComponentProps<typeof Tabs$1.List> & {
131
+ type TabsListProps = React.ComponentProps<typeof Tabs$1.List> & {
133
132
  variant?: 'default' | 'line';
134
133
  tone?: Tone;
135
- }): React.JSX.Element;
134
+ /**
135
+ * What a row of tabs does when it runs out of room.
136
+ *
137
+ * `wrap` (default) lets it flow onto a second line, `scroll` keeps one line
138
+ * and scrolls it, and `menu` keeps one line and collapses whatever does not
139
+ * fit into a trailing "More" menu.
140
+ */
141
+ overflow?: 'wrap' | 'scroll' | 'menu';
142
+ /** Label on the collapsed-tabs button. Only read when `overflow="menu"`. */
143
+ overflowLabel?: string;
144
+ };
145
+ declare function TabsList({ overflow, overflowLabel, ...props }: TabsListProps): React.JSX.Element;
136
146
  declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof Tabs$1.Trigger>): React.JSX.Element;
137
147
  declare function TabsContent({ className, ...props }: React.ComponentProps<typeof Tabs$1.Content>): React.JSX.Element;
138
148
 
@@ -233,6 +243,334 @@ declare function Tooltip({ ...props }: React.ComponentProps<typeof Tooltip$1.Roo
233
243
  declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof Tooltip$1.Trigger>): React.JSX.Element;
234
244
  declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof Tooltip$1.Content>): React.JSX.Element;
235
245
 
246
+ /** The button props both footer actions accept, minus the ones Radix owns. */
247
+ type ActionLook = {
248
+ variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link';
249
+ size?: 'xs' | 'sm' | 'md' | 'lg';
250
+ tone?: Tone;
251
+ };
252
+ /**
253
+ * A dialog that interrupts to ask. Unlike `Dialog` it carries no close button
254
+ * and Radix blocks light-dismiss — the only ways out are the two footer
255
+ * buttons, which is the whole point of the pattern.
256
+ */
257
+ declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialog$1.Root>): React.JSX.Element;
258
+ declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialog$1.Trigger>): React.JSX.Element;
259
+ declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialog$1.Portal>): React.JSX.Element;
260
+ declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialog$1.Overlay>): React.JSX.Element;
261
+ declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialog$1.Content>): React.JSX.Element;
262
+ declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
263
+ declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
264
+ declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialog$1.Title>): React.JSX.Element;
265
+ declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialog$1.Description>): React.JSX.Element;
266
+ /**
267
+ * The confirming button. It is styled through `buttonVariants` rather than by
268
+ * nesting a `Button`, because Radix needs its own ref and close behaviour on
269
+ * this element. `tone` re-points it exactly as it would a button, so a
270
+ * destructive confirmation is `<AlertDialogAction tone="danger">` and not a
271
+ * differently-shaped component.
272
+ */
273
+ declare function AlertDialogAction({ className, variant, size, tone, ...props }: React.ComponentProps<typeof AlertDialog$1.Action> & ActionLook): React.JSX.Element;
274
+ declare function AlertDialogCancel({ className, variant, size, tone, ...props }: React.ComponentProps<typeof AlertDialog$1.Cancel> & ActionLook): React.JSX.Element;
275
+
276
+ declare function Breadcrumb({ className, ...props }: React.ComponentProps<'nav'>): React.JSX.Element;
277
+ declare function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>): React.JSX.Element;
278
+ declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
279
+ declare function BreadcrumbLink({ className, asChild, ...props }: React.ComponentProps<'a'> & {
280
+ asChild?: boolean;
281
+ }): React.JSX.Element;
282
+ /**
283
+ * The trail's last crumb. It is not a link, but it is the page you are on —
284
+ * `aria-current` is what tells a screen reader that, and `role="link"` keeps
285
+ * it in the same list of link roles as its siblings.
286
+ */
287
+ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
288
+ declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
289
+ /** Collapsed middle of a long trail. Pair it with a menu to reveal the rest. */
290
+ declare function BreadcrumbEllipsis({ className, label, ...props }: React.ComponentProps<'span'> & {
291
+ label?: string;
292
+ }): React.JSX.Element;
293
+
294
+ /**
295
+ * Plain table primitives — the markup layer under a data grid, not a grid
296
+ * itself. `DataTable` is the batteries-included component; these are for the
297
+ * tables an application lays out by hand.
298
+ *
299
+ * The scroll container is part of `Table` rather than something the host wraps
300
+ * around it: a bare `<table>` with a `min-width` pushes the page into a
301
+ * horizontal scroll instead of scrolling itself, which is the single most
302
+ * common way a table breaks a layout.
303
+ */
304
+ declare function Table({ className, containerClassName, containerRef, ...props }: React.ComponentProps<'table'> & {
305
+ containerClassName?: string;
306
+ /**
307
+ * The scrolling element itself. Reach for it when something outside the
308
+ * table has to follow the scroll — a synchronised header, a virtualiser,
309
+ * restoring the position after a refetch. Owning the container would
310
+ * otherwise put it out of the caller's reach entirely.
311
+ */
312
+ containerRef?: React.Ref<HTMLDivElement>;
313
+ }): React.JSX.Element;
314
+ declare function TableHeader({ className, ...props }: React.ComponentProps<'thead'>): React.JSX.Element;
315
+ declare function TableBody({ className, ...props }: React.ComponentProps<'tbody'>): React.JSX.Element;
316
+ declare function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>): React.JSX.Element;
317
+ declare function TableRow({ className, ...props }: React.ComponentProps<'tr'>): React.JSX.Element;
318
+ declare function TableHead({ className, ...props }: React.ComponentProps<'th'>): React.JSX.Element;
319
+ declare function TableCell({ className, ...props }: React.ComponentProps<'td'>): React.JSX.Element;
320
+ declare function TableCaption({ className, ...props }: React.ComponentProps<'caption'>): React.JSX.Element;
321
+
322
+ /**
323
+ * A scroll container with the kit's own scrollbar instead of the platform's.
324
+ *
325
+ * Radix hides the native bar and drives a rendered one, so the track keeps the
326
+ * kit's colours on every platform — including macOS, where the overlay
327
+ * scrollbar is invisible until it moves and a pane gives no hint that it
328
+ * scrolls at all.
329
+ *
330
+ * The vertical bar ships by default; add a horizontal one explicitly:
331
+ *
332
+ * <ScrollArea>
333
+ * {wideContent}
334
+ * <ScrollBar orientation="horizontal" />
335
+ * </ScrollArea>
336
+ */
337
+ declare function ScrollArea({ className, children, viewportClassName, viewportRef, ...props }: React.ComponentProps<typeof ScrollArea$1.Root> & {
338
+ viewportClassName?: string;
339
+ /** The scrolling element itself — for scroll restoration or `scrollTo`. */
340
+ viewportRef?: React.Ref<HTMLDivElement>;
341
+ }): React.JSX.Element;
342
+ declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>): React.JSX.Element;
343
+
344
+ /**
345
+ * The application menu bar — File, Edit, View. It shares every surface and
346
+ * item style with `DropdownMenu`; what it adds is the bar itself and the
347
+ * hand-off between triggers, so moving the pointer across the row opens each
348
+ * menu in turn once one is already open.
349
+ */
350
+ declare function Menubar({ className, ...props }: React.ComponentProps<typeof Menubar$1.Root>): React.JSX.Element;
351
+ declare function MenubarMenu({ ...props }: React.ComponentProps<typeof Menubar$1.Menu>): React.JSX.Element;
352
+ declare function MenubarGroup({ ...props }: React.ComponentProps<typeof Menubar$1.Group>): React.JSX.Element;
353
+ declare function MenubarPortal({ ...props }: React.ComponentProps<typeof Menubar$1.Portal>): React.JSX.Element;
354
+ declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof Menubar$1.RadioGroup>): React.JSX.Element;
355
+ declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof Menubar$1.Trigger>): React.JSX.Element;
356
+ declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof Menubar$1.Content>): React.JSX.Element;
357
+ declare function MenubarItem({ className, inset, variant, ...props }: React.ComponentProps<typeof Menubar$1.Item> & {
358
+ inset?: boolean;
359
+ variant?: 'default' | 'destructive';
360
+ }): React.JSX.Element;
361
+ declare function MenubarCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof Menubar$1.CheckboxItem>): React.JSX.Element;
362
+ declare function MenubarRadioItem({ className, children, ...props }: React.ComponentProps<typeof Menubar$1.RadioItem>): React.JSX.Element;
363
+ declare function MenubarLabel({ className, inset, ...props }: React.ComponentProps<typeof Menubar$1.Label> & {
364
+ inset?: boolean;
365
+ }): React.JSX.Element;
366
+ declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof Menubar$1.Separator>): React.JSX.Element;
367
+ declare function MenubarShortcut({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
368
+ declare function MenubarSub({ ...props }: React.ComponentProps<typeof Menubar$1.Sub>): React.JSX.Element;
369
+ declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof Menubar$1.SubTrigger> & {
370
+ inset?: boolean;
371
+ }): React.JSX.Element;
372
+ declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof Menubar$1.SubContent>): React.JSX.Element;
373
+
374
+ /**
375
+ * Site navigation with drop-down panels — the marketing-header pattern, not
376
+ * the application menu bar (`Menubar`) and not a menu of commands
377
+ * (`DropdownMenu`). Its items are links, so it renders as a `<nav>` and the
378
+ * panels stay in the accessibility tree as regions rather than menus.
379
+ */
380
+ declare function NavigationMenu({ className, children, viewport, ...props }: React.ComponentProps<typeof NavigationMenu$1.Root> & {
381
+ /**
382
+ * Render panels into one shared, animated viewport under the bar (the
383
+ * default), or leave each panel anchored under its own trigger. The shared
384
+ * viewport is what gives the width-and-height morph between panels; turn it
385
+ * off when a panel must escape a clipping ancestor.
386
+ */
387
+ viewport?: boolean;
388
+ }): React.JSX.Element;
389
+ declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.List>): React.JSX.Element;
390
+ declare function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Item>): React.JSX.Element;
391
+ /**
392
+ * Exported so a plain link in the bar can wear the trigger's shape without
393
+ * being one — the row would step otherwise.
394
+ */
395
+ declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
396
+ declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenu$1.Trigger>): React.JSX.Element;
397
+ declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Content>): React.JSX.Element;
398
+ declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Viewport>): React.JSX.Element;
399
+ declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Link>): React.JSX.Element;
400
+ declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Indicator>): React.JSX.Element;
401
+
402
+ type ToastId = string;
403
+ type ToastOptions = {
404
+ title?: React.ReactNode;
405
+ description?: React.ReactNode;
406
+ /** Colour and icon: `danger` for failures, `success` for confirmations. */
407
+ tone?: Tone;
408
+ /** Milliseconds on screen. `Infinity` pins it until dismissed. */
409
+ duration?: number;
410
+ /** A single control — usually an undo or a retry. */
411
+ action?: React.ReactNode;
412
+ onOpenChange?: (open: boolean) => void;
413
+ };
414
+ type ToastRecord = ToastOptions & {
415
+ id: ToastId;
416
+ };
417
+ type ToastHandle = {
418
+ id: ToastId;
419
+ dismiss: () => void;
420
+ update: (options: ToastOptions) => void;
421
+ };
422
+ /**
423
+ * Raise a toast from anywhere — no hook, no context, no provider lookup.
424
+ *
425
+ * toast({ title: 'Saved', tone: 'success' })
426
+ * const t = toast({ title: 'Uploading…', duration: Infinity })
427
+ * t.update({ title: 'Uploaded', tone: 'success', duration: 4000 })
428
+ */
429
+ declare function toast(options: ToastOptions): ToastHandle;
430
+ /** Clears every toast on screen, or one by id. */
431
+ declare function dismiss(id?: ToastId): void;
432
+ /**
433
+ * The same queue, as a hook. Prefer the plain `toast()` — this exists for the
434
+ * cases that need to render the live list (a notification centre, a test).
435
+ */
436
+ declare function useToast(): {
437
+ toasts: ToastRecord[];
438
+ toast: typeof toast;
439
+ dismiss: typeof dismiss;
440
+ };
441
+ declare function ToastProvider({ ...props }: React.ComponentProps<typeof Toast$1.Provider>): React.JSX.Element;
442
+ declare function ToastViewport({ className, ...props }: React.ComponentProps<typeof Toast$1.Viewport>): React.JSX.Element;
443
+ declare function Toast({ className, tone, ...props }: React.ComponentProps<typeof Toast$1.Root> & {
444
+ tone?: Tone;
445
+ }): React.JSX.Element;
446
+ declare function ToastTitle({ className, ...props }: React.ComponentProps<typeof Toast$1.Title>): React.JSX.Element;
447
+ declare function ToastDescription({ className, ...props }: React.ComponentProps<typeof Toast$1.Description>): React.JSX.Element;
448
+ declare function ToastAction({ className, ...props }: React.ComponentProps<typeof Toast$1.Action>): React.JSX.Element;
449
+ declare function ToastClose({ className, label, ...props }: React.ComponentProps<typeof Toast$1.Close> & {
450
+ label?: string;
451
+ }): React.JSX.Element;
452
+ type ToasterProps = {
453
+ /** Default time on screen for a toast that does not set its own. */
454
+ duration?: number;
455
+ /** Which corner the stack grows from. */
456
+ position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
457
+ closeLabel?: string;
458
+ /** Radix hotkey to focus the viewport. Defaults to Radix's F8. */
459
+ hotkey?: string[];
460
+ className?: string;
461
+ };
462
+ /**
463
+ * Mount once, near the root. It renders whatever `toast()` has queued.
464
+ *
465
+ * `Infinity` is translated to a very large finite duration rather than passed
466
+ * through: Radix multiplies the duration by a swipe factor and `Infinity`
467
+ * arithmetic produced a `NaN` timeout that closed the toast immediately.
468
+ */
469
+ declare function Toaster({ duration, position, closeLabel, hotkey, className, }: ToasterProps): React.JSX.Element;
470
+
471
+ /**
472
+ * Chart theming, without a charting dependency.
473
+ *
474
+ * The kit does not draw charts — recharts, visx, uPlot and friends already do,
475
+ * and none of them should be baked into a component kit. What is missing from
476
+ * all of them is the part a design system owns: one place that names the
477
+ * series, gives each a colour that follows the theme, and dresses the tooltip
478
+ * and legend so they read like the rest of the interface.
479
+ *
480
+ * `ChartContainer` publishes each series colour as a CSS custom property
481
+ * scoped to itself, so any library that accepts a CSS colour can consume it:
482
+ *
483
+ * const config = {
484
+ * shipped: { label: 'Shipped', color: 'var(--mz-primary)' },
485
+ * returned: { label: 'Returned', theme: { light: '#c2410c', dark: '#fb923c' } },
486
+ * } satisfies ChartConfig
487
+ *
488
+ * <ChartContainer config={config} className="h-64">
489
+ * <ResponsiveContainer>
490
+ * <BarChart data={rows}>
491
+ * <Bar dataKey="shipped" fill="var(--color-shipped)" />
492
+ * <Tooltip content={<ChartTooltipContent />} />
493
+ * </BarChart>
494
+ * </ResponsiveContainer>
495
+ * </ChartContainer>
496
+ *
497
+ * The responsive wrapper stays the host's: sizing belongs to the charting
498
+ * library, and a container that owned it would only work with one of them.
499
+ */
500
+ type ChartSeriesConfig = {
501
+ label?: React.ReactNode;
502
+ icon?: React.ComponentType<{
503
+ className?: string;
504
+ }>;
505
+ } & ({
506
+ color?: string;
507
+ theme?: never;
508
+ } | {
509
+ color?: never;
510
+ theme: {
511
+ light: string;
512
+ dark: string;
513
+ };
514
+ });
515
+ type ChartConfig = Record<string, ChartSeriesConfig>;
516
+ type ChartContextValue = {
517
+ config: ChartConfig;
518
+ };
519
+ declare function useChart(): ChartContextValue;
520
+ /**
521
+ * The `<style>` element that binds the config to one container.
522
+ *
523
+ * The rules are keyed on the kit's theme selectors as well as `.dark`, so the
524
+ * colours follow both a `MorzeThemeProvider` and a host that toggles a class
525
+ * of its own. Values are filtered to plain CSS colours before they are
526
+ * interpolated — a config is data, and data ends up coming from a server.
527
+ */
528
+ declare function ChartStyle({ id, config }: {
529
+ id: string;
530
+ config: ChartConfig;
531
+ }): React.JSX.Element | null;
532
+ declare function ChartContainer({ id, className, children, config, ...props }: React.ComponentProps<'div'> & {
533
+ config: ChartConfig;
534
+ }): React.JSX.Element;
535
+ /**
536
+ * One series at one point, in the shape charting libraries hand to a custom
537
+ * tooltip. Typed structurally on purpose: it matches recharts without the kit
538
+ * importing it, and anything with the same fields works too.
539
+ */
540
+ type ChartPayloadItem = {
541
+ dataKey?: string | number;
542
+ name?: string | number;
543
+ value?: number | string;
544
+ color?: string;
545
+ fill?: string;
546
+ payload?: Record<string, unknown>;
547
+ };
548
+ type ChartTooltipContentProps = {
549
+ active?: boolean;
550
+ payload?: ChartPayloadItem[];
551
+ label?: React.ReactNode;
552
+ /** Renders the group heading; receives the raw label and the payload. */
553
+ labelFormatter?: (label: React.ReactNode, payload: ChartPayloadItem[]) => React.ReactNode;
554
+ formatter?: (value: ChartPayloadItem['value'], name: React.ReactNode, item: ChartPayloadItem) => React.ReactNode;
555
+ hideLabel?: boolean;
556
+ hideIndicator?: boolean;
557
+ indicator?: 'dot' | 'line' | 'dashed';
558
+ /** Field naming each item's series — for charts keyed inside the datum. */
559
+ nameKey?: string;
560
+ /** Same, for the group heading. */
561
+ labelKey?: string;
562
+ className?: string;
563
+ };
564
+ declare function ChartTooltipContent({ active, payload, label, labelFormatter, formatter, hideLabel, hideIndicator, indicator, nameKey, labelKey, className, }: ChartTooltipContentProps): React.JSX.Element | null;
565
+ type ChartLegendContentProps = {
566
+ payload?: ChartPayloadItem[];
567
+ hideIcon?: boolean;
568
+ /** Field naming each item's series — see `ChartTooltipContentProps`. */
569
+ nameKey?: string;
570
+ className?: string;
571
+ };
572
+ declare function ChartLegendContent({ payload, hideIcon, nameKey, className, }: ChartLegendContentProps): React.JSX.Element | null;
573
+
236
574
  declare function Sheet({ ...props }: React.ComponentProps<typeof Dialog$1.Root>): React.JSX.Element;
237
575
  declare function SheetTrigger({ ...props }: React.ComponentProps<typeof Dialog$1.Trigger>): React.JSX.Element;
238
576
  declare function SheetClose({ ...props }: React.ComponentProps<typeof Dialog$1.Close>): React.JSX.Element;
@@ -729,4 +1067,4 @@ declare function pageCount(total: number | undefined, pageSize: number): number;
729
1067
  declare function serializeSort(sort: DataTableSort[]): string;
730
1068
  declare function parseSort(raw: string | null): DataTableSort[];
731
1069
 
732
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Button, type ButtonProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, ColumnFilter, type ColumnFilterDef, type ColumnLayout, ColumnManager, type CustomFilterContext, DataTable, type DataTableColumn, type DataTableFilters, DataTableLabels, DataTablePagination, type DataTableProps, type DataTableQuery, type DataTableSort, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditableDef, Field, FieldError, FieldHint, FilterChip, type FilterValue, Input, type InputProps, Label, type MorzeTheme, MorzeThemeProvider, type MorzeThemeProviderProps, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, type RowAttributes, type RowSelectionState, type SavedView, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOptionDef, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarPanel, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, type SortDir, Spinner, Switch, type SwitchProps, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, ToggleGroup, ToggleGroupItem, type Tone, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseSavedViewsOptions, type UseTableQueryOptions, activeFilters, badgeVariants, buttonVariants, cn, emptyQuery, isFilterActive, pageCount, parseSort, serializeSort, setFilter, sortStateOf, toggleSort, toggleVariants, useColumnLayout, useIsMobile, useMorzeTheme, useRowSelection, useSavedViews, useSidebar, useTableQuery };
1070
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartConfig, ChartContainer, ChartLegendContent, type ChartLegendContentProps, type ChartPayloadItem, type ChartSeriesConfig, ChartStyle, ChartTooltipContent, type ChartTooltipContentProps, Checkbox, type CheckboxProps, ColumnFilter, type ColumnFilterDef, type ColumnLayout, ColumnManager, type CustomFilterContext, DataTable, type DataTableColumn, type DataTableFilters, DataTableLabels, DataTablePagination, type DataTableProps, type DataTableQuery, type DataTableSort, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditableDef, Field, FieldError, FieldHint, FilterChip, type FilterValue, Input, type InputProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, type MorzeTheme, MorzeThemeProvider, type MorzeThemeProviderProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, type RowAttributes, type RowSelectionState, type SavedView, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOptionDef, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarPanel, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, type SortDir, Spinner, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, Textarea, Toast, ToastAction, ToastClose, ToastDescription, type ToastHandle, type ToastOptions, ToastProvider, type ToastRecord, ToastTitle, ToastViewport, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type Tone, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseSavedViewsOptions, type UseTableQueryOptions, activeFilters, badgeVariants, buttonVariants, cn, dismiss, emptyQuery, isFilterActive, navigationMenuTriggerStyle, pageCount, parseSort, serializeSort, setFilter, sortStateOf, toast, toggleSort, toggleVariants, useChart, useColumnLayout, useIsMobile, useMorzeTheme, useRowSelection, useSavedViews, useSidebar, useTableQuery, useToast };