@yenio-pld/blocks 1.1.0 → 1.2.0-rc.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
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { ReactNode, FormEvent, KeyboardEvent, RefObject, CSSProperties, ComponentProps, ImgHTMLAttributes, SyntheticEvent } from 'react';
1
+ import * as react from 'react';
2
+ import { ReactNode, ComponentType, ReactElement, FormEvent, KeyboardEvent, RefObject, CSSProperties, ComponentProps, ImgHTMLAttributes, SyntheticEvent } from 'react';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import { ClassValue } from 'clsx';
@@ -40,62 +40,302 @@ interface LanguageContextValue {
40
40
  * React context for language.
41
41
  * Blocks components will consume this context when available.
42
42
  */
43
- declare const LanguageContext: React.Context<LanguageContextValue | null>;
43
+ declare const LanguageContext: react.Context<LanguageContextValue | null>;
44
44
  /**
45
45
  * Hook to consume the language context.
46
46
  * Returns null if no provider is present (components should fall back to props).
47
47
  */
48
48
  declare function useLanguageContext(): LanguageContextValue | null;
49
49
 
50
- declare function PageTitle({ title, description, }: {
50
+ type PageTitleProps = {
51
51
  title: string;
52
52
  description?: string;
53
- }): React.JSX.Element;
53
+ /** Small line above the title. */
54
+ eyebrow?: ReactNode;
55
+ /** Link or button the app renders. Stacks above the title. */
56
+ back?: ReactNode;
57
+ /** Stacks full-width below `sm`, then sits beside the title. */
58
+ actions?: ReactNode;
59
+ };
60
+ declare function PageTitle({ title, description, eyebrow, back, actions, }: PageTitleProps): react.JSX.Element;
54
61
  declare function Field({ label, children, }: {
55
62
  label: string;
56
63
  children: ReactNode;
57
- }): React.JSX.Element;
58
- declare function ListSkeleton(): React.JSX.Element;
64
+ }): react.JSX.Element;
65
+ declare function ListSkeleton(): react.JSX.Element;
59
66
  declare function TableSkeleton({ columns, rows, }: {
60
67
  columns: number;
61
68
  rows?: number;
62
- }): React.JSX.Element;
69
+ }): react.JSX.Element;
70
+
71
+ type Language = {
72
+ /** Language key/code (e.g., "en", "es") */
73
+ key: string;
74
+ /** Short label kept for callers that still pass segmented copy */
75
+ label: string;
76
+ /** Full native name for the menu (e.g., "English", "Español") */
77
+ nativeName: string;
78
+ };
79
+ type LanguageSwitcherLabels = {
80
+ /** Accessible name for the language trigger */
81
+ language?: string;
82
+ };
83
+ /**
84
+ * Default languages when none are provided via props or context.
85
+ */
86
+ declare const defaultLanguages: Language[];
87
+ type LanguageSwitcherProps = {
88
+ /**
89
+ * Available languages. Optional if using LanguageContext.
90
+ * When context is available, context.languages is used; props override context.
91
+ * Falls back to defaultLanguages if neither provided.
92
+ */
93
+ languages?: Language[];
94
+ /**
95
+ * Current selected language key. Optional if using LanguageContext.
96
+ * When context is available, context.language is used; props override context.
97
+ */
98
+ currentLanguage?: string;
99
+ /**
100
+ * Callback when language changes. Optional if using LanguageContext.
101
+ * When context is available, context.setLanguage is used; props override context.
102
+ */
103
+ onLanguageChange?: (languageKey: string) => void;
104
+ /** Accessible name for the trigger */
105
+ labels?: LanguageSwitcherLabels;
106
+ className?: string;
107
+ /** Size of the trigger */
108
+ size?: "sm" | "md" | "lg";
109
+ /** Shape of the trigger */
110
+ shape?: "rounded" | "squared" | "pill";
111
+ /**
112
+ * Kept for existing callers. Both variants render the languages glyph
113
+ * and open the locale menu.
114
+ */
115
+ variant?: "default" | "mini";
116
+ /** @deprecated The trigger is always the languages glyph. */
117
+ showIcon?: boolean;
118
+ /** Dropdown alignment */
119
+ align?: "start" | "center" | "end";
120
+ /** Dropdown side */
121
+ side?: "top" | "bottom" | "left" | "right";
122
+ /** @deprecated No longer used; the trigger no longer renders a tooltip. */
123
+ tooltipSide?: "top" | "right" | "bottom" | "left";
124
+ /** @deprecated No longer used; the trigger no longer renders a tooltip. */
125
+ tooltipAlign?: "start" | "center" | "end";
126
+ /** @deprecated No longer used; the trigger no longer renders a tooltip. */
127
+ tooltipSideOffset?: number;
128
+ };
129
+ declare function LanguageSwitcher({ languages: propLanguages, currentLanguage: propCurrentLanguage, onLanguageChange: propOnLanguageChange, labels, className, size, shape, align, side, }: LanguageSwitcherProps): react.JSX.Element;
130
+
131
+ /** Fixed row height shared with `DataTableSkeleton` so list swaps do not jump. */
132
+ declare const DATA_TABLE_ROW_CLASS = "h-14";
133
+ /** Any icon component. Avoids pinning a Lucide type across package copies. */
134
+ type ShellIcon = ComponentType<{
135
+ className?: string;
136
+ "aria-hidden"?: boolean | "true" | "false";
137
+ }>;
138
+ /**
139
+ * Props merged onto the element `renderLink` returns.
140
+ * Apps return `<Link href={href} className={className} {...rest}>{children}</Link>`.
141
+ */
142
+ type ShellLinkProps = {
143
+ href: string;
144
+ className?: string;
145
+ children?: ReactNode;
146
+ "aria-current"?: "page";
147
+ onClick?: () => void;
148
+ };
149
+ /** Blocks does not import `next/link`. Apps supply the renderer. */
150
+ type ShellLinkRenderer = (props: ShellLinkProps) => ReactElement;
151
+ declare function renderShellLink({ href, className, children, ...rest }: ShellLinkProps): ReactElement;
152
+ type AppNavItem = {
153
+ label: string;
154
+ href: string;
155
+ icon: ShellIcon;
156
+ /** Computed by the app. The shell does not read the router. */
157
+ active?: boolean;
158
+ };
159
+ type AppNavGroup = {
160
+ label: string;
161
+ items: AppNavItem[];
162
+ };
163
+ type AppShellProps = {
164
+ /** Sidebar header. Usually the mark, product name, and organization. */
165
+ brand: ReactNode;
166
+ nav: AppNavGroup[];
167
+ /** Accessible name for the single sidebar landmark. */
168
+ navLabel?: string;
169
+ sidebarFooter?: ReactNode;
170
+ /** Sticky header end slot (environment select, and similar). */
171
+ headerEnd?: ReactNode;
172
+ /**
173
+ * Initial desktop open state. Read the `sidebar_state` cookie in the
174
+ * server layout and pass it here so the shell does not jump after hydration.
175
+ */
176
+ defaultOpen?: boolean;
177
+ /** Current path. A change closes the mobile sheet. */
178
+ pathname: string;
179
+ renderLink?: ShellLinkRenderer;
180
+ children: ReactNode;
181
+ className?: string;
182
+ };
183
+ declare function AppShell({ brand, nav, navLabel, sidebarFooter, headerEnd, defaultOpen, pathname, renderLink, children, className, }: AppShellProps): react.JSX.Element;
184
+ declare function PageContainer({ children, className, }: {
185
+ children: ReactNode;
186
+ className?: string;
187
+ }): react.JSX.Element;
188
+ type NavTab = {
189
+ label: string;
190
+ href: string;
191
+ active?: boolean;
192
+ };
193
+ type NavTabsProps = {
194
+ tabs: NavTab[];
195
+ /** Accessible name for the sub-route landmark. */
196
+ label?: string;
197
+ renderLink?: ShellLinkRenderer;
198
+ className?: string;
199
+ };
200
+ declare function NavTabs({ tabs, label, renderLink, className, }: NavTabsProps): react.JSX.Element;
201
+ type AccountMenuLabels = {
202
+ menu?: string;
203
+ signOut?: string;
204
+ theme?: string;
205
+ language?: string;
206
+ system?: string;
207
+ light?: string;
208
+ dark?: string;
209
+ };
210
+ type AccountMenuProps = {
211
+ name: string;
212
+ email: string;
213
+ organization?: string;
214
+ imageSrc?: string;
215
+ /** Passed to the avatar image. Empty when the image is decorative. */
216
+ imageAlt?: string;
217
+ labels?: AccountMenuLabels;
218
+ languages?: Language[];
219
+ currentLanguage?: string;
220
+ onLanguageChange?: (language: string) => void;
221
+ onSignOut?: () => void;
222
+ };
223
+ declare function AccountMenu({ name, email, organization, imageSrc, imageAlt, labels: userLabels, languages, currentLanguage, onLanguageChange, onSignOut, }: AccountMenuProps): react.JSX.Element;
224
+ type DataTableColumn<T> = {
225
+ key: string;
226
+ header: ReactNode;
227
+ cell: (row: T) => ReactNode;
228
+ /** Applied to the header and the cell. Use `hidden md:table-cell` to tuck minor columns. */
229
+ className?: string;
230
+ };
231
+ type DataTableProps<T> = {
232
+ columns: DataTableColumn<T>[];
233
+ rows: T[];
234
+ rowKey: (row: T) => string;
235
+ /** Search field or other toolbar controls. Filtering stays in the app. */
236
+ toolbar?: ReactNode;
237
+ emptyTitle: string;
238
+ emptyDescription?: string;
239
+ loading?: boolean;
240
+ skeletonRows?: number;
241
+ /** Omit when there is no next page. Keep it mounted, with `pending`, while a page appends. */
242
+ loadMore?: {
243
+ label: string;
244
+ pending?: boolean;
245
+ onLoadMore: () => void;
246
+ };
247
+ label?: string;
248
+ className?: string;
249
+ };
250
+ declare function DataTable<T>({ columns, rows, rowKey, toolbar, emptyTitle, emptyDescription, loading, skeletonRows, loadMore, label, className, }: DataTableProps<T>): react.JSX.Element;
251
+
252
+ /**
253
+ * Ignore navigation-start signals for the rest of this turn. An in-flight
254
+ * bar is left alone. Used when history changes are not a page load.
255
+ */
256
+ declare function suppressNavigationProgress(): void;
257
+ /**
258
+ * Start the top bar for a navigation that did not come from a link click.
259
+ * `href` is the route React has committed, not `window.location`.
260
+ * No-ops when `href` is that same route, or when progress is suppressed.
261
+ */
262
+ declare function signalNavigationStart(href?: string): void;
263
+ type NavigationProgressProps = {
264
+ /** App-supplied pathname. Blocks does not import `next/navigation`. */
265
+ pathname: string;
266
+ /** Query string without the leading `?`. */
267
+ search?: string;
268
+ /** Translated name for the progressbar. */
269
+ ariaLabel?: string;
270
+ /** Storybook and tests. Skips click listeners and stays visible. */
271
+ forceVisible?: boolean;
272
+ };
273
+ /**
274
+ * Indeterminate bar fixed to the top of the viewport. Apps pass the current
275
+ * route and wrap this in `<Suspense>` when `pathname` or `search` comes from
276
+ * `useSearchParams`. The bar starts on a same-origin link click, back/forward,
277
+ * or {@link signalNavigationStart}, and stays up while a visible
278
+ * `[data-route-loading]` node is on screen.
279
+ */
280
+ declare function NavigationProgress({ pathname, search, ariaLabel, forceVisible, }: NavigationProgressProps): react.JSX.Element | null;
281
+ /** Marks a route `loading.tsx` so the top progress bar stays up until it unmounts. */
282
+ declare function RouteLoading({ children }: {
283
+ children: ReactNode;
284
+ }): react.JSX.Element;
285
+ declare function PageTitleSkeleton({ label, action, }: {
286
+ label: string;
287
+ action?: boolean;
288
+ }): react.JSX.Element;
289
+ declare function DataTableSkeleton({ label, rows, }: {
290
+ label: string;
291
+ rows?: number;
292
+ }): react.JSX.Element;
293
+ declare function DetailPageSkeleton({ label }: {
294
+ label: string;
295
+ }): react.JSX.Element;
296
+ declare function FormCardSkeleton({ label, fields, }: {
297
+ label: string;
298
+ fields?: number;
299
+ }): react.JSX.Element;
300
+ declare function DashboardSkeleton({ label }: {
301
+ label: string;
302
+ }): react.JSX.Element;
63
303
 
64
304
  declare function LoadingState({ label, className, }: {
65
305
  label?: string;
66
306
  className?: string;
67
- }): React.JSX.Element;
307
+ }): react.JSX.Element;
68
308
  declare function ErrorState({ title, description, action, className, }: {
69
309
  title?: string;
70
310
  description?: string;
71
- action?: React.ReactNode;
311
+ action?: react.ReactNode;
72
312
  className?: string;
73
- }): React.JSX.Element;
313
+ }): react.JSX.Element;
74
314
  /** Accept any icon component with a className prop — avoids LucideIcon
75
315
  * version skew between blocks peers and consuming apps. */
76
- type EmptyStateIcon = React.ComponentType<{
316
+ type EmptyStateIcon = react.ComponentType<{
77
317
  className?: string;
78
318
  "aria-hidden"?: boolean | "true" | "false";
79
319
  }>;
80
320
  type EmptyStateProps = {
81
321
  title: string;
82
322
  description?: string;
83
- action?: React.ReactNode;
323
+ action?: react.ReactNode;
84
324
  icon?: EmptyStateIcon;
85
325
  variant?: "default" | "compact";
86
326
  className?: string;
87
327
  };
88
- declare function EmptyState({ title, description, action, icon: Icon, variant, className, }: EmptyStateProps): React.JSX.Element;
328
+ declare function EmptyState({ title, description, action, icon: Icon, variant, className, }: EmptyStateProps): react.JSX.Element;
89
329
 
90
- declare function Empty({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
91
- declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
330
+ declare function Empty({ className, ...props }: react.ComponentProps<"div">): react.JSX.Element;
331
+ declare function EmptyHeader({ className, ...props }: react.ComponentProps<"div">): react.JSX.Element;
92
332
  declare const emptyMediaVariants: (props?: ({
93
333
  variant?: "default" | "icon" | null | undefined;
94
334
  } & class_variance_authority_types.ClassProp) | undefined) => string;
95
- declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): React.JSX.Element;
96
- declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
97
- declare function EmptyDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
98
- declare function EmptyContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
335
+ declare function EmptyMedia({ className, variant, ...props }: react.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): react.JSX.Element;
336
+ declare function EmptyTitle({ className, ...props }: react.ComponentProps<"div">): react.JSX.Element;
337
+ declare function EmptyDescription({ className, ...props }: react.ComponentProps<"p">): react.JSX.Element;
338
+ declare function EmptyContent({ className, ...props }: react.ComponentProps<"div">): react.JSX.Element;
99
339
 
100
340
  type ConfirmDestructiveDialogProps = {
101
341
  open: boolean;
@@ -110,7 +350,7 @@ type ConfirmDestructiveDialogProps = {
110
350
  * Shared confirm step for destructive actions (delete, mute, etc.).
111
351
  * Prefer this over window.confirm so focus stays in the app and copy is clear.
112
352
  */
113
- declare function ConfirmDestructiveDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, onConfirm, }: ConfirmDestructiveDialogProps): React.JSX.Element;
353
+ declare function ConfirmDestructiveDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, onConfirm, }: ConfirmDestructiveDialogProps): react.JSX.Element;
114
354
 
115
355
  type NotificationBellItem = {
116
356
  id: string;
@@ -137,7 +377,7 @@ type NotificationBellProps = {
137
377
  align?: "start" | "end";
138
378
  className?: string;
139
379
  };
140
- declare function NotificationBell({ items, unreadCount, isLoading, labels: labelOverrides, viewAllHref, formatTime, onOpenChange, align, className, }: NotificationBellProps): React.JSX.Element;
380
+ declare function NotificationBell({ items, unreadCount, isLoading, labels: labelOverrides, viewAllHref, formatTime, onOpenChange, align, className, }: NotificationBellProps): react.JSX.Element;
141
381
 
142
382
  type EditableSectionMode = "reading" | "editing" | "saving";
143
383
  type EditableSectionLabels = {
@@ -268,7 +508,7 @@ type EditableSectionProps = UseEditableSectionOptions & {
268
508
  *
269
509
  * Does not render a Card — place `actions` wherever your layout needs them.
270
510
  */
271
- declare function EditableSection({ readView, editView, children, className, ...options }: EditableSectionProps): React.JSX.Element;
511
+ declare function EditableSection({ readView, editView, children, className, ...options }: EditableSectionProps): react.JSX.Element;
272
512
 
273
513
  /**
274
514
  * Read-mode description list. Column grid and label placement match the
@@ -276,7 +516,7 @@ declare function EditableSection({ readView, editView, children, className, ...o
276
516
  * so labels and values keep the same x-position across modes.
277
517
  */
278
518
  type DataListProps = ComponentProps<"dl">;
279
- declare function DataList({ className, ...props }: DataListProps): React.JSX.Element;
519
+ declare function DataList({ className, ...props }: DataListProps): react.JSX.Element;
280
520
  type DataListItemProps = {
281
521
  label: ReactNode;
282
522
  children?: ReactNode;
@@ -286,7 +526,7 @@ type DataListItemProps = {
286
526
  labelClassName?: string;
287
527
  valueClassName?: string;
288
528
  };
289
- declare function DataListItem({ label, children, empty, className, labelClassName, valueClassName, }: DataListItemProps): React.JSX.Element;
529
+ declare function DataListItem({ label, children, empty, className, labelClassName, valueClassName, }: DataListItemProps): react.JSX.Element;
290
530
 
291
531
  type FieldMessageProps = Omit<ComponentProps<"p">, "children"> & {
292
532
  children?: ReactNode;
@@ -301,7 +541,7 @@ type FieldMessageProps = Omit<ComponentProps<"p">, "children"> & {
301
541
  * so async errors do not shift fields under the pointer (CLS outside the
302
542
  * 500ms input exclusion window).
303
543
  */
304
- declare function FieldMessage({ id, children, className, ...props }: FieldMessageProps): React.JSX.Element;
544
+ declare function FieldMessage({ id, children, className, ...props }: FieldMessageProps): react.JSX.Element;
305
545
 
306
546
  type SafeImageProps = Omit<ImgHTMLAttributes<HTMLImageElement>, "src" | "onError"> & {
307
547
  src?: string | null;
@@ -313,7 +553,7 @@ type SafeImageProps = Omit<ImgHTMLAttributes<HTMLImageElement>, "src" | "onError
313
553
  * `<img>` that swaps to `fallback` when the source is missing or fails to load,
314
554
  * so the browser never shows its default broken-image glyph.
315
555
  */
316
- declare function SafeImage({ src, fallback, alt, onError, ...imgProps }: SafeImageProps): React.JSX.Element;
556
+ declare function SafeImage({ src, fallback, alt, onError, ...imgProps }: SafeImageProps): react.JSX.Element;
317
557
 
318
558
  type ThemeSwitcherLabels = {
319
559
  /** Accessible name for the theme trigger */
@@ -349,67 +589,7 @@ type ThemeSwitcherProps = {
349
589
  /** Translation labels - consumers can pass their own t() values */
350
590
  labels?: ThemeSwitcherLabels;
351
591
  };
352
- declare function ThemeSwitcher({ className, size, shape, align, side, labels: userLabels, }: ThemeSwitcherProps): React.JSX.Element;
353
-
354
- type Language = {
355
- /** Language key/code (e.g., "en", "es") */
356
- key: string;
357
- /** Short label kept for callers that still pass segmented copy */
358
- label: string;
359
- /** Full native name for the menu (e.g., "English", "Español") */
360
- nativeName: string;
361
- };
362
- type LanguageSwitcherLabels = {
363
- /** Accessible name for the language trigger */
364
- language?: string;
365
- };
366
- /**
367
- * Default languages when none are provided via props or context.
368
- */
369
- declare const defaultLanguages: Language[];
370
- type LanguageSwitcherProps = {
371
- /**
372
- * Available languages. Optional if using LanguageContext.
373
- * When context is available, context.languages is used; props override context.
374
- * Falls back to defaultLanguages if neither provided.
375
- */
376
- languages?: Language[];
377
- /**
378
- * Current selected language key. Optional if using LanguageContext.
379
- * When context is available, context.language is used; props override context.
380
- */
381
- currentLanguage?: string;
382
- /**
383
- * Callback when language changes. Optional if using LanguageContext.
384
- * When context is available, context.setLanguage is used; props override context.
385
- */
386
- onLanguageChange?: (languageKey: string) => void;
387
- /** Accessible name for the trigger */
388
- labels?: LanguageSwitcherLabels;
389
- className?: string;
390
- /** Size of the trigger */
391
- size?: "sm" | "md" | "lg";
392
- /** Shape of the trigger */
393
- shape?: "rounded" | "squared" | "pill";
394
- /**
395
- * Kept for existing callers. Both variants render the languages glyph
396
- * and open the locale menu.
397
- */
398
- variant?: "default" | "mini";
399
- /** @deprecated The trigger is always the languages glyph. */
400
- showIcon?: boolean;
401
- /** Dropdown alignment */
402
- align?: "start" | "center" | "end";
403
- /** Dropdown side */
404
- side?: "top" | "bottom" | "left" | "right";
405
- /** @deprecated No longer used; the trigger no longer renders a tooltip. */
406
- tooltipSide?: "top" | "right" | "bottom" | "left";
407
- /** @deprecated No longer used; the trigger no longer renders a tooltip. */
408
- tooltipAlign?: "start" | "center" | "end";
409
- /** @deprecated No longer used; the trigger no longer renders a tooltip. */
410
- tooltipSideOffset?: number;
411
- };
412
- declare function LanguageSwitcher({ languages: propLanguages, currentLanguage: propCurrentLanguage, onLanguageChange: propOnLanguageChange, labels, className, size, shape, align, side, }: LanguageSwitcherProps): React.JSX.Element;
592
+ declare function ThemeSwitcher({ className, size, shape, align, side, labels: userLabels, }: ThemeSwitcherProps): react.JSX.Element;
413
593
 
414
594
  type AvatarEditorLabels = {
415
595
  uploadAria?: string;
@@ -448,7 +628,7 @@ interface AvatarEditorProps {
448
628
  /** Override English chrome strings */
449
629
  labels?: AvatarEditorLabels;
450
630
  }
451
- declare function AvatarEditor({ value: _value, onChange, size, showGrid: initialShowGrid, outputSize, outputFormat, outputQuality, className, controlSize, labels, }: AvatarEditorProps): React.JSX.Element;
631
+ declare function AvatarEditor({ value: _value, onChange, size, showGrid: initialShowGrid, outputSize, outputFormat, outputQuality, className, controlSize, labels, }: AvatarEditorProps): react.JSX.Element;
452
632
 
453
633
  interface AvatarEditorDialogProps {
454
634
  /** Current avatar URL or data URL */
@@ -486,7 +666,7 @@ interface AvatarEditorDialogProps {
486
666
  /** Override AvatarEditor chrome strings */
487
667
  editorLabels?: AvatarEditorLabels;
488
668
  }
489
- declare function AvatarEditorDialog({ value, onChange, onSave, displaySize, editorSize, outputSize, placeholder, editLabel, dialogTitle, acceptText, cancelText, savingText, savedText, successMessage, errorMessage, className, editorLabels, }: AvatarEditorDialogProps): React.JSX.Element;
669
+ declare function AvatarEditorDialog({ value, onChange, onSave, displaySize, editorSize, outputSize, placeholder, editLabel, dialogTitle, acceptText, cancelText, savingText, savedText, successMessage, errorMessage, className, editorLabels, }: AvatarEditorDialogProps): react.JSX.Element;
490
670
 
491
671
  type MultipartUploadPart = {
492
672
  partNumber: number;
@@ -548,7 +728,7 @@ type FileDropzoneProps = {
548
728
  onReject?: (reason: "type" | "size") => void;
549
729
  className?: string;
550
730
  };
551
- declare function FileDropzone({ accept, maxSize, disabled, labels: labelOverrides, onFile, onReject, className, }: FileDropzoneProps): React.JSX.Element;
731
+ declare function FileDropzone({ accept, maxSize, disabled, labels: labelOverrides, onFile, onReject, className, }: FileDropzoneProps): react.JSX.Element;
552
732
 
553
733
  type FileUploadTrayProps = {
554
734
  jobs: UploadJob[];
@@ -558,7 +738,7 @@ type FileUploadTrayProps = {
558
738
  onCancel: (id: string) => void;
559
739
  className?: string;
560
740
  };
561
- declare function FileUploadTray({ jobs, labels: labelOverrides, onPause, onResume, onCancel, className, }: FileUploadTrayProps): React.JSX.Element | null;
741
+ declare function FileUploadTray({ jobs, labels: labelOverrides, onPause, onResume, onCancel, className, }: FileUploadTrayProps): react.JSX.Element | null;
562
742
 
563
743
  type FileUploadMenuProps = {
564
744
  jobs: UploadJob[];
@@ -571,7 +751,7 @@ type FileUploadMenuProps = {
571
751
  align?: "start" | "end";
572
752
  className?: string;
573
753
  };
574
- declare function FileUploadMenu({ jobs, labels: labelOverrides, onPause, onResume, onCancel, open, onOpenChange, align, className, }: FileUploadMenuProps): React.JSX.Element | null;
754
+ declare function FileUploadMenu({ jobs, labels: labelOverrides, onPause, onResume, onCancel, open, onOpenChange, align, className, }: FileUploadMenuProps): react.JSX.Element | null;
575
755
 
576
756
  type CreateMultipartUploadControllerOptions = {
577
757
  file: Blob;
@@ -610,30 +790,30 @@ declare function cn(...inputs: ClassValue[]): string;
610
790
 
611
791
  type StatHighlightCardProps = {
612
792
  label: string;
613
- value: React.ReactNode;
793
+ value: react.ReactNode;
614
794
  hint?: string;
615
795
  delta?: string;
616
796
  deltaTone?: "up" | "down" | "neutral";
617
797
  className?: string;
618
798
  };
619
- declare function StatHighlightCard({ label, value, hint, delta, deltaTone, className, }: StatHighlightCardProps): React.JSX.Element;
799
+ declare function StatHighlightCard({ label, value, hint, delta, deltaTone, className, }: StatHighlightCardProps): react.JSX.Element;
620
800
 
621
801
  type MetricChartCardProps = {
622
802
  title: string;
623
803
  description?: string;
624
- action?: React.ReactNode;
625
- children: React.ReactNode;
804
+ action?: react.ReactNode;
805
+ children: react.ReactNode;
626
806
  className?: string;
627
807
  };
628
- declare function MetricChartCard({ title, description, action, children, className, }: MetricChartCardProps): React.JSX.Element;
808
+ declare function MetricChartCard({ title, description, action, children, className, }: MetricChartCardProps): react.JSX.Element;
629
809
 
630
810
  type SparklineStatProps = {
631
811
  label: string;
632
- value: React.ReactNode;
812
+ value: react.ReactNode;
633
813
  points: number[];
634
814
  className?: string;
635
815
  };
636
- declare function SparklineStat({ label, value, points, className, }: SparklineStatProps): React.JSX.Element;
816
+ declare function SparklineStat({ label, value, points, className, }: SparklineStatProps): react.JSX.Element;
637
817
 
638
818
  declare const TIME_RANGE_OPTIONS: readonly ["day", "week", "month", "year"];
639
819
  type TimeRange = (typeof TIME_RANGE_OPTIONS)[number];
@@ -644,50 +824,50 @@ type TimeRangePickerProps = {
644
824
  labels?: TimeRangePickerLabels;
645
825
  className?: string;
646
826
  };
647
- declare function TimeRangePicker({ value, onChange, labels, className, }: TimeRangePickerProps): React.JSX.Element;
827
+ declare function TimeRangePicker({ value, onChange, labels, className, }: TimeRangePickerProps): react.JSX.Element;
648
828
 
649
829
  type DimensionBreakdownRow = {
650
830
  id: string;
651
831
  label: string;
652
- value: React.ReactNode;
832
+ value: react.ReactNode;
653
833
  share?: string;
654
834
  };
655
835
  type DimensionBreakdownTableProps = {
656
836
  title?: string;
657
837
  rows: DimensionBreakdownRow[];
658
- empty?: React.ReactNode;
838
+ empty?: react.ReactNode;
659
839
  className?: string;
660
840
  };
661
- declare function DimensionBreakdownTable({ title, rows, empty, className, }: DimensionBreakdownTableProps): React.JSX.Element;
841
+ declare function DimensionBreakdownTable({ title, rows, empty, className, }: DimensionBreakdownTableProps): react.JSX.Element;
662
842
 
663
843
  type CostBreakdownItem = {
664
844
  id: string;
665
845
  label: string;
666
- amount: React.ReactNode;
846
+ amount: react.ReactNode;
667
847
  basis?: string;
668
848
  };
669
849
  type CostBreakdownCardProps = {
670
850
  title: string;
671
- total?: React.ReactNode;
851
+ total?: react.ReactNode;
672
852
  items: CostBreakdownItem[];
673
853
  className?: string;
674
854
  };
675
- declare function CostBreakdownCard({ title, total, items, className, }: CostBreakdownCardProps): React.JSX.Element;
855
+ declare function CostBreakdownCard({ title, total, items, className, }: CostBreakdownCardProps): react.JSX.Element;
676
856
 
677
857
  type MetricEmptyStateProps = {
678
858
  title: string;
679
859
  description?: string;
680
- action?: React.ReactNode;
860
+ action?: react.ReactNode;
681
861
  icon?: EmptyStateIcon;
682
862
  className?: string;
683
863
  };
684
- declare function MetricEmptyState({ title, description, action, icon, className, }: MetricEmptyStateProps): React.JSX.Element;
864
+ declare function MetricEmptyState({ title, description, action, icon, className, }: MetricEmptyStateProps): react.JSX.Element;
685
865
 
686
866
  type MetricSkeletonProps = {
687
867
  className?: string;
688
868
  bars?: number;
689
869
  };
690
- declare function MetricSkeleton({ className, bars }: MetricSkeletonProps): React.JSX.Element;
870
+ declare function MetricSkeleton({ className, bars }: MetricSkeletonProps): react.JSX.Element;
691
871
 
692
872
  type CookieConsentBannerLabels = {
693
873
  message: string;
@@ -704,7 +884,7 @@ type CookieConsentBannerProps = {
704
884
  variant?: "default" | "embed";
705
885
  className?: string;
706
886
  };
707
- declare function CookieConsentBanner({ domain, policyHref, labels, onChoice, variant, className, }: CookieConsentBannerProps): React.JSX.Element | null;
887
+ declare function CookieConsentBanner({ domain, policyHref, labels, onChoice, variant, className, }: CookieConsentBannerProps): react.JSX.Element | null;
708
888
 
709
889
  type LegalAcceptDialogLabels = {
710
890
  title: string;
@@ -723,7 +903,7 @@ type LegalAcceptDialogProps = {
723
903
  labels?: Partial<LegalAcceptDialogLabels>;
724
904
  onAccept: () => void;
725
905
  };
726
- declare function LegalAcceptDialog({ open, termsHref, privacyHref, summary, accepting, labels, onAccept, }: LegalAcceptDialogProps): React.JSX.Element;
906
+ declare function LegalAcceptDialog({ open, termsHref, privacyHref, summary, accepting, labels, onAccept, }: LegalAcceptDialogProps): react.JSX.Element;
727
907
 
728
908
  type LegalAcceptCheckboxLabels = {
729
909
  label: string;
@@ -741,13 +921,13 @@ type LegalAcceptCheckboxProps = {
741
921
  disabled?: boolean;
742
922
  className?: string;
743
923
  };
744
- declare function LegalAcceptCheckbox({ id, checked, onCheckedChange, termsHref, privacyHref, labels, disabled, className, }: LegalAcceptCheckboxProps): React.JSX.Element;
924
+ declare function LegalAcceptCheckbox({ id, checked, onCheckedChange, termsHref, privacyHref, labels, disabled, className, }: LegalAcceptCheckboxProps): react.JSX.Element;
745
925
 
746
926
  type LegalMarkdownProps = {
747
927
  markdown: string;
748
928
  className?: string;
749
929
  };
750
- declare function LegalMarkdown({ markdown, className }: LegalMarkdownProps): React.JSX.Element;
930
+ declare function LegalMarkdown({ markdown, className }: LegalMarkdownProps): react.JSX.Element;
751
931
 
752
932
  type AuditActor = {
753
933
  kind: string;
@@ -781,7 +961,7 @@ type AuditTimelineProps = {
781
961
  className?: string;
782
962
  formatOccurredAt?: (occurredAt: number) => string;
783
963
  };
784
- declare function AuditTimeline({ items, labels, emptyAction, className, formatOccurredAt: format, }: AuditTimelineProps): React.JSX.Element;
964
+ declare function AuditTimeline({ items, labels, emptyAction, className, formatOccurredAt: format, }: AuditTimelineProps): react.JSX.Element;
785
965
 
786
966
  type RiskSeverity = "low" | "medium" | "high";
787
967
  type RiskBadgeLabels = {
@@ -798,7 +978,7 @@ type RiskBadgeProps = {
798
978
  labels?: Partial<RiskBadgeLabels>;
799
979
  className?: string;
800
980
  };
801
- declare function RiskBadge({ severity, smeVerified, labels, className, }: RiskBadgeProps): React.JSX.Element;
981
+ declare function RiskBadge({ severity, smeVerified, labels, className, }: RiskBadgeProps): react.JSX.Element;
802
982
 
803
983
  type EntityGraphNode = {
804
984
  id: string;
@@ -827,7 +1007,7 @@ type EntityGraphProps = {
827
1007
  emptyAction?: ReactNode;
828
1008
  className?: string;
829
1009
  };
830
- declare function EntityGraph({ nodes, edges, labels, emptyAction, className, }: EntityGraphProps): React.JSX.Element;
1010
+ declare function EntityGraph({ nodes, edges, labels, emptyAction, className, }: EntityGraphProps): react.JSX.Element;
831
1011
 
832
1012
  type MatchReviewSource = {
833
1013
  url: string;
@@ -868,6 +1048,6 @@ type MatchReviewProps = {
868
1048
  };
869
1049
  declare function sourceUrlIsHttps(url: string): boolean;
870
1050
  declare function matchClaimIsUnverified(hit: MatchReviewHit): boolean;
871
- declare function MatchReview({ hit, onResolve, labels, sourceLabels, emptyAction, className, }: MatchReviewProps): React.JSX.Element;
1051
+ declare function MatchReview({ hit, onResolve, labels, sourceLabels, emptyAction, className, }: MatchReviewProps): react.JSX.Element;
872
1052
 
873
- export { type AuditActor, type AuditSubject, AuditTimeline, type AuditTimelineItem, type AuditTimelineLabels, type AuditTimelineProps, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type ControlKind, CookieConsentBanner, type CookieConsentBannerLabels, type CookieConsentBannerProps, CookieConsentValue, CostBreakdownCard, type CostBreakdownCardProps, type CostBreakdownItem, type CreateMultipartUploadControllerOptions, DEFAULT_AUDIT_TIMELINE_LABELS, DEFAULT_COOKIE_CONSENT_BANNER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_ENTITY_GRAPH_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DEFAULT_LEGAL_ACCEPT_CHECKBOX_LABELS, DEFAULT_LEGAL_ACCEPT_DIALOG_LABELS, DEFAULT_MATCH_REVIEW_LABELS, DEFAULT_NOTIFICATION_BELL_LABELS, DEFAULT_RISK_BADGE_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DimensionBreakdownRow, DimensionBreakdownTable, type DimensionBreakdownTableProps, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, EntityGraph, type EntityGraphEdge, type EntityGraphLabels, type EntityGraphNode, type EntityGraphProps, ErrorState, Field, FieldMessage, type FieldMessageProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, FileUploadMenu, type FileUploadMenuProps, FileUploadTray, type FileUploadTrayLabels, type FileUploadTrayProps, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LegalAcceptCheckbox, type LegalAcceptCheckboxLabels, type LegalAcceptCheckboxProps, LegalAcceptDialog, type LegalAcceptDialogLabels, type LegalAcceptDialogProps, LegalMarkdown, type LegalMarkdownProps, ListSkeleton, LoadingState, MatchReview, type MatchReviewHit, type MatchReviewLabels, type MatchReviewProps, type MatchReviewSource, type MatchReviewStatus, MetricChartCard, type MetricChartCardProps, MetricEmptyState, type MetricEmptyStateProps, MetricSkeleton, type MetricSkeletonProps, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, PageTitle, type PartRange, RiskBadge, type RiskBadgeLabels, type RiskBadgeProps, type RiskSeverity, SafeImage, type SafeImageProps, SparklineStat, type SparklineStatProps, StatHighlightCard, type StatHighlightCardProps, TIME_RANGE_OPTIONS, TableSkeleton, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type TimeRange, TimeRangePicker, type TimeRangePickerLabels, type TimeRangePickerProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, cn, createMultipartUploadController, defaultLanguages, fileMatchesAccept, matchClaimIsUnverified, partRanges, progressFromBytes, sourceUrlIsHttps, useEditableSection, useLanguageContext, useMediaQuery };
1053
+ export { AccountMenu, type AccountMenuLabels, type AccountMenuProps, type AppNavGroup, type AppNavItem, AppShell, type AppShellProps, type AuditActor, type AuditSubject, AuditTimeline, type AuditTimelineItem, type AuditTimelineLabels, type AuditTimelineProps, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type ControlKind, CookieConsentBanner, type CookieConsentBannerLabels, type CookieConsentBannerProps, CookieConsentValue, CostBreakdownCard, type CostBreakdownCardProps, type CostBreakdownItem, type CreateMultipartUploadControllerOptions, DATA_TABLE_ROW_CLASS, DEFAULT_AUDIT_TIMELINE_LABELS, DEFAULT_COOKIE_CONSENT_BANNER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_ENTITY_GRAPH_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DEFAULT_LEGAL_ACCEPT_CHECKBOX_LABELS, DEFAULT_LEGAL_ACCEPT_DIALOG_LABELS, DEFAULT_MATCH_REVIEW_LABELS, DEFAULT_NOTIFICATION_BELL_LABELS, DEFAULT_RISK_BADGE_LABELS, DashboardSkeleton, DataList, DataListItem, type DataListItemProps, type DataListProps, DataTable, type DataTableColumn, type DataTableProps, DataTableSkeleton, DetailPageSkeleton, type DimensionBreakdownRow, DimensionBreakdownTable, type DimensionBreakdownTableProps, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, EntityGraph, type EntityGraphEdge, type EntityGraphLabels, type EntityGraphNode, type EntityGraphProps, ErrorState, Field, FieldMessage, type FieldMessageProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, FileUploadMenu, type FileUploadMenuProps, FileUploadTray, type FileUploadTrayLabels, type FileUploadTrayProps, FormCardSkeleton, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LegalAcceptCheckbox, type LegalAcceptCheckboxLabels, type LegalAcceptCheckboxProps, LegalAcceptDialog, type LegalAcceptDialogLabels, type LegalAcceptDialogProps, LegalMarkdown, type LegalMarkdownProps, ListSkeleton, LoadingState, MatchReview, type MatchReviewHit, type MatchReviewLabels, type MatchReviewProps, type MatchReviewSource, type MatchReviewStatus, MetricChartCard, type MetricChartCardProps, MetricEmptyState, type MetricEmptyStateProps, MetricSkeleton, type MetricSkeletonProps, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, type NavTab, NavTabs, type NavTabsProps, NavigationProgress, type NavigationProgressProps, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, PageContainer, PageTitle, type PageTitleProps, PageTitleSkeleton, type PartRange, RiskBadge, type RiskBadgeLabels, type RiskBadgeProps, type RiskSeverity, RouteLoading, SafeImage, type SafeImageProps, type ShellIcon, type ShellLinkProps, type ShellLinkRenderer, SparklineStat, type SparklineStatProps, StatHighlightCard, type StatHighlightCardProps, TIME_RANGE_OPTIONS, TableSkeleton, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type TimeRange, TimeRangePicker, type TimeRangePickerLabels, type TimeRangePickerProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, cn, createMultipartUploadController, defaultLanguages, fileMatchesAccept, matchClaimIsUnverified, partRanges, progressFromBytes, renderShellLink, signalNavigationStart, sourceUrlIsHttps, suppressNavigationProgress, useEditableSection, useLanguageContext, useMediaQuery };