@humu-tech/ui 0.2.0 → 0.4.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/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ClassValue } from 'clsx';
2
2
  import * as react from 'react';
3
- import { ReactNode, HTMLAttributes, ComponentPropsWithoutRef, ElementType, InputHTMLAttributes, ButtonHTMLAttributes, ReactElement, SVGAttributes, MouseEvent, TextareaHTMLAttributes, ForwardedRef, AnchorHTMLAttributes } from 'react';
3
+ import { ReactNode, HTMLAttributes, ComponentPropsWithoutRef, ElementType, InputHTMLAttributes, ButtonHTMLAttributes, MouseEvent, ReactElement, SVGAttributes, TextareaHTMLAttributes, ForwardedRef, AnchorHTMLAttributes, Component, ErrorInfo } from 'react';
4
4
  import * as class_variance_authority_types from 'class-variance-authority/types';
5
5
  import * as class_variance_authority from 'class-variance-authority';
6
6
  import { VariantProps } from 'class-variance-authority';
@@ -81,17 +81,17 @@ declare const Avatar: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<
81
81
  } & react.RefAttributes<HTMLSpanElement>>;
82
82
 
83
83
  declare const badgeStyles: (props?: ({
84
- variant?: "default" | "brand" | "success" | "warning" | "danger" | "info" | "solid" | "turtle" | "purple" | null | undefined;
84
+ variant?: "brand" | "turtle" | "purple" | "success" | "warning" | "info" | "default" | "danger" | "solid" | null | undefined;
85
85
  subtle?: boolean | null | undefined;
86
- size?: "sm" | "md" | "lg" | null | undefined;
86
+ size?: "sm" | "lg" | "md" | null | undefined;
87
87
  } & class_variance_authority_types.ClassProp) | undefined) => string;
88
88
  type BadgeProps = ComponentPropsWithoutRef<'span'> & VariantProps<typeof badgeStyles> & {
89
89
  icon?: ReactNode;
90
90
  };
91
91
  declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & VariantProps<(props?: ({
92
- variant?: "default" | "brand" | "success" | "warning" | "danger" | "info" | "solid" | "turtle" | "purple" | null | undefined;
92
+ variant?: "brand" | "turtle" | "purple" | "success" | "warning" | "info" | "default" | "danger" | "solid" | null | undefined;
93
93
  subtle?: boolean | null | undefined;
94
- size?: "sm" | "md" | "lg" | null | undefined;
94
+ size?: "sm" | "lg" | "md" | null | undefined;
95
95
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
96
96
  icon?: ReactNode;
97
97
  } & react.RefAttributes<HTMLSpanElement>>;
@@ -116,8 +116,8 @@ type BreadcrumbProps = {
116
116
  declare function Breadcrumb({ items, className, linkComponent, }: BreadcrumbProps): react.JSX.Element;
117
117
 
118
118
  declare const Button: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Omit<class_variance_authority.VariantProps<(props?: ({
119
- variant?: "link" | "success" | "warning" | "danger" | "info" | "primary" | "secondary" | "ghost" | "destructive" | null | undefined;
120
- size?: "sm" | "md" | "lg" | null | undefined;
119
+ variant?: "success" | "warning" | "info" | "link" | "danger" | "primary" | "secondary" | "ghost" | "destructive" | null | undefined;
120
+ size?: "sm" | "lg" | "md" | null | undefined;
121
121
  iconOnly?: boolean | null | undefined;
122
122
  } & class_variance_authority_types.ClassProp) | undefined) => string>, "iconOnly"> & {
123
123
  leftIcon?: react.ReactNode;
@@ -128,8 +128,8 @@ declare const Button: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLPro
128
128
  } & react.RefAttributes<HTMLButtonElement>>;
129
129
 
130
130
  declare const buttonStyles: (props?: ({
131
- variant?: "link" | "success" | "warning" | "danger" | "info" | "primary" | "secondary" | "ghost" | "destructive" | null | undefined;
132
- size?: "sm" | "md" | "lg" | null | undefined;
131
+ variant?: "success" | "warning" | "info" | "link" | "danger" | "primary" | "secondary" | "ghost" | "destructive" | null | undefined;
132
+ size?: "sm" | "lg" | "md" | null | undefined;
133
133
  iconOnly?: boolean | null | undefined;
134
134
  } & class_variance_authority_types.ClassProp) | undefined) => string;
135
135
 
@@ -143,7 +143,7 @@ type ButtonProps = ComponentPropsWithoutRef<'button'> & Omit<VariantProps<typeof
143
143
 
144
144
  declare const cardStyles: (props?: ({
145
145
  variant?: "default" | "elevated" | "interactive" | null | undefined;
146
- padding?: "none" | "sm" | "md" | "lg" | null | undefined;
146
+ padding?: "sm" | "lg" | "none" | "md" | null | undefined;
147
147
  } & class_variance_authority_types.ClassProp) | undefined) => string;
148
148
 
149
149
  type CardProps = ComponentPropsWithoutRef<'div'> & VariantProps<typeof cardStyles> & {
@@ -151,7 +151,7 @@ type CardProps = ComponentPropsWithoutRef<'div'> & VariantProps<typeof cardStyle
151
151
  };
152
152
  declare const Card: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & VariantProps<(props?: ({
153
153
  variant?: "default" | "elevated" | "interactive" | null | undefined;
154
- padding?: "none" | "sm" | "md" | "lg" | null | undefined;
154
+ padding?: "sm" | "lg" | "none" | "md" | null | undefined;
155
155
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
156
156
  asChild?: boolean;
157
157
  } & react.RefAttributes<HTMLDivElement>> & {
@@ -172,6 +172,7 @@ declare const MaskedInput: react.ForwardRefExoticComponent<Omit<react.InputHTMLA
172
172
  floating?: boolean;
173
173
  size?: "sm" | "md" | "lg";
174
174
  surface?: "light" | "dark";
175
+ containerClassName?: string;
175
176
  normalizeRaw?: (raw: string) => string;
176
177
  } & react.RefAttributes<HTMLInputElement>>;
177
178
 
@@ -185,6 +186,7 @@ type MaskedInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'o
185
186
  floating?: boolean;
186
187
  size?: 'sm' | 'md' | 'lg';
187
188
  surface?: 'light' | 'dark';
189
+ containerClassName?: string;
188
190
  normalizeRaw?: (raw: string) => string;
189
191
  };
190
192
 
@@ -224,7 +226,19 @@ type ComboboxItem = {
224
226
  description?: string;
225
227
  disabled?: boolean;
226
228
  };
227
- type ComboboxProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onChange'> & {
229
+ type ComboboxSelectionIndicator = 'check' | 'checkbox' | 'radio';
230
+ type ComboboxListAction = {
231
+ label: string;
232
+ icon?: ReactNode;
233
+ onClick: () => void;
234
+ };
235
+ type ComboboxRenderItemState = {
236
+ selected: boolean;
237
+ highlighted: boolean;
238
+ disabled: boolean;
239
+ };
240
+ type ComboboxRenderItem = (item: ComboboxItem, state: ComboboxRenderItemState) => ReactNode;
241
+ type ComboboxProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onChange' | 'defaultValue'> & {
228
242
  items: ComboboxItem[];
229
243
  value?: string;
230
244
  defaultValue?: string;
@@ -238,11 +252,23 @@ type ComboboxProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onChange
238
252
  disabled?: boolean;
239
253
  loading?: boolean;
240
254
  emptyMessage?: string;
255
+ emptyDescription?: string;
241
256
  allowClear?: boolean;
242
257
  allowScrollSelection?: boolean;
258
+ listTitle?: string;
259
+ listBadge?: string;
260
+ selectionIndicator?: Exclude<ComboboxSelectionIndicator, 'checkbox'>;
261
+ renderItem?: ComboboxRenderItem;
262
+ listAction?: ComboboxListAction;
263
+ showFooter?: boolean;
264
+ showSearchIcon?: boolean;
265
+ open?: boolean;
266
+ defaultOpen?: boolean;
267
+ onOpenChange?: (open: boolean) => void;
268
+ contentClassName?: string;
243
269
  };
244
270
 
245
- declare const Combobox: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLDivElement>, "children" | "onChange"> & {
271
+ declare const Combobox: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLDivElement>, "children" | "defaultValue" | "onChange"> & {
246
272
  items: ComboboxItem[];
247
273
  value?: string;
248
274
  defaultValue?: string;
@@ -256,9 +282,21 @@ declare const Combobox: react.ForwardRefExoticComponent<Omit<react.HTMLAttribute
256
282
  disabled?: boolean;
257
283
  loading?: boolean;
258
284
  emptyMessage?: string;
285
+ emptyDescription?: string;
259
286
  allowClear?: boolean;
260
287
  allowScrollSelection?: boolean;
261
- } & react.RefAttributes<HTMLButtonElement>>;
288
+ listTitle?: string;
289
+ listBadge?: string;
290
+ selectionIndicator?: Exclude<ComboboxSelectionIndicator, "checkbox">;
291
+ renderItem?: ComboboxRenderItem;
292
+ listAction?: ComboboxListAction;
293
+ showFooter?: boolean;
294
+ showSearchIcon?: boolean;
295
+ open?: boolean;
296
+ defaultOpen?: boolean;
297
+ onOpenChange?: (open: boolean) => void;
298
+ contentClassName?: string;
299
+ } & react.RefAttributes<HTMLInputElement>>;
262
300
 
263
301
  type ConfirmDialogVariant = 'danger' | 'warn' | 'info';
264
302
  type ConfirmDialogProps = {
@@ -343,7 +381,7 @@ declare const DateRangeInput: react.ForwardRefExoticComponent<Omit<react.ButtonH
343
381
  } & react.RefAttributes<HTMLButtonElement>>;
344
382
 
345
383
  declare const dialogContentStyles: (props?: ({
346
- size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "full" | null | undefined;
384
+ size?: "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "md" | "full" | null | undefined;
347
385
  } & class_variance_authority_types.ClassProp) | undefined) => string;
348
386
 
349
387
  type DialogProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Root> & {
@@ -360,7 +398,7 @@ declare const DialogRoot: typeof DialogRootBase & {
360
398
  Trigger: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
361
399
  Close: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogCloseProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
362
400
  Content: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
363
- size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "full" | null | undefined;
401
+ size?: "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "md" | "full" | null | undefined;
364
402
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
365
403
  hideCloseButton?: boolean;
366
404
  } & react.RefAttributes<HTMLDivElement>>;
@@ -374,10 +412,36 @@ declare const DialogRoot: typeof DialogRootBase & {
374
412
  Description: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
375
413
  };
376
414
 
377
- type DocumentInputProps = Omit<MaskedInputProps, 'mask'>;
378
- declare function DocumentInput({ normalizeRaw, ...props }: DocumentInputProps): react.JSX.Element;
415
+ type DocumentInputType = 'any' | 'cpf' | 'cnpj';
416
+ type DocumentInputProps = Omit<MaskedInputProps, 'mask'> & {
417
+ documentType?: DocumentInputType;
418
+ };
419
+ declare function normalizeDocument(value?: string | null): string;
420
+ declare function DocumentInput({ normalizeRaw, documentType, ...props }: DocumentInputProps): react.JSX.Element;
421
+
422
+ type DownloadableFile = {
423
+ fileName: string;
424
+ fileType?: string;
425
+ base64?: string;
426
+ blob?: Blob;
427
+ url?: string;
428
+ };
429
+ declare function downloadFile({ fileName, fileType, base64, blob, url, }: DownloadableFile): void;
430
+
431
+ type DownloadButtonProps = Omit<ButtonProps, 'onClick' | 'loading'> & {
432
+ getFile: () => Promise<DownloadableFile>;
433
+ onError?: (error: unknown) => void;
434
+ onDownloaded?: (file: DownloadableFile) => void;
435
+ onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
436
+ };
437
+ declare const DownloadButton: react.ForwardRefExoticComponent<Omit<ButtonProps, "onClick" | "loading"> & {
438
+ getFile: () => Promise<DownloadableFile>;
439
+ onError?: (error: unknown) => void;
440
+ onDownloaded?: (file: DownloadableFile) => void;
441
+ onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
442
+ } & react.RefAttributes<HTMLButtonElement>>;
379
443
 
380
- type DrawerSide = 'right' | 'left' | 'bottom';
444
+ type DrawerSide = 'right' | 'left' | 'top' | 'bottom';
381
445
  type DrawerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
382
446
  type DrawerProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Root> & {
383
447
  children?: ReactNode;
@@ -387,6 +451,9 @@ type DrawerContentProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Conten
387
451
  size?: DrawerSize;
388
452
  hideCloseButton?: boolean;
389
453
  };
454
+ type DrawerFooterProps = ComponentPropsWithoutRef<'div'> & {
455
+ status?: ReactNode;
456
+ };
390
457
 
391
458
  declare function DrawerRootBase({ children, ...props }: DrawerProps): react.JSX.Element;
392
459
  declare namespace DrawerRootBase {
@@ -402,7 +469,9 @@ declare const DrawerRoot: typeof DrawerRootBase & {
402
469
  } & react.RefAttributes<HTMLDivElement>>;
403
470
  Header: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
404
471
  Body: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
405
- Footer: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
472
+ Footer: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
473
+ status?: react.ReactNode;
474
+ } & react.RefAttributes<HTMLDivElement>>;
406
475
  Title: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
407
476
  Description: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
408
477
  };
@@ -461,11 +530,13 @@ type CopyButtonProps = Omit<ComponentPropsWithoutRef<'button'>, 'children'> & {
461
530
  textToCopy: string;
462
531
  children?: ReactNode;
463
532
  unstyled?: boolean;
533
+ size?: 'sm' | 'md';
464
534
  };
465
535
  declare const CopyButton: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "children"> & {
466
536
  textToCopy: string;
467
537
  children?: ReactNode;
468
538
  unstyled?: boolean;
539
+ size?: "sm" | "md";
469
540
  } & react.RefAttributes<HTMLButtonElement>>;
470
541
 
471
542
  type FilePreviewContentProps = {
@@ -476,8 +547,11 @@ type FilePreviewContentProps = {
476
547
  declare function FilePreviewContent({ source, mimeType, name, }: FilePreviewContentProps): react.JSX.Element;
477
548
 
478
549
  type CommonProps = {
479
- trigger: ReactNode;
550
+ trigger?: ReactNode;
480
551
  title?: string;
552
+ open?: boolean;
553
+ defaultOpen?: boolean;
554
+ onOpenChange?: (open: boolean) => void;
481
555
  };
482
556
  type FileProps = CommonProps & {
483
557
  file: File;
@@ -487,9 +561,45 @@ type SourceProps = CommonProps & {
487
561
  mimeType: string;
488
562
  name?: string;
489
563
  };
490
- type FilePreviewDialogProps = FileProps | SourceProps;
564
+ type ContentProps = CommonProps & {
565
+ children: ReactNode;
566
+ };
567
+ type FilePreviewDialogProps = FileProps | SourceProps | ContentProps;
491
568
  declare function FilePreviewDialog(props: FilePreviewDialogProps): react.JSX.Element;
492
569
 
570
+ type FileViewCardField = {
571
+ label: ReactNode;
572
+ value: ReactNode;
573
+ };
574
+ type FileViewCardProps = Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
575
+ size?: 'sm' | 'lg';
576
+ name: ReactNode;
577
+ description?: ReactNode;
578
+ descriptionClassName?: string;
579
+ thumbnail?: ReactNode;
580
+ status?: ReactNode;
581
+ fields?: FileViewCardField[];
582
+ viewLabel?: string;
583
+ viewAriaLabel?: string;
584
+ onView?: () => void;
585
+ renderView?: (trigger: ReactElement) => ReactNode;
586
+ actions?: ReactNode;
587
+ };
588
+ declare const FileViewCard: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
589
+ size?: "sm" | "lg";
590
+ name: ReactNode;
591
+ description?: ReactNode;
592
+ descriptionClassName?: string;
593
+ thumbnail?: ReactNode;
594
+ status?: ReactNode;
595
+ fields?: FileViewCardField[];
596
+ viewLabel?: string;
597
+ viewAriaLabel?: string;
598
+ onView?: () => void;
599
+ renderView?: (trigger: ReactElement) => ReactNode;
600
+ actions?: ReactNode;
601
+ } & react.RefAttributes<HTMLDivElement>>;
602
+
493
603
  type DocumentUploadCardTone = 'neutral' | 'success' | 'warning' | 'danger';
494
604
  type DocumentUploadCardSentFile = {
495
605
  name: string;
@@ -500,6 +610,8 @@ type DocumentUploadCardSentFile = {
500
610
  previewUrl?: string;
501
611
  previewMimeType?: string;
502
612
  renderPreview?: (trigger: ReactElement) => ReactNode;
613
+ status?: ReactNode;
614
+ fields?: FileViewCardField[];
503
615
  };
504
616
  type DocumentUploadCardProps = {
505
617
  label: string;
@@ -523,9 +635,12 @@ type DocumentUploadCardProps = {
523
635
  replaceLabel?: string;
524
636
  removeLabel?: string;
525
637
  previewLabel?: string;
638
+ replaceText?: string;
639
+ removeText?: string;
640
+ viewText?: string;
526
641
  className?: string;
527
642
  };
528
- declare function DocumentUploadCard({ label, hint, error, file, onSelect, accept, maxSize, validate, onValidationError, sent, dropzonePlaceholder, dropzoneHint, showLabel, required, icon, bordered, size, selectLabel, replaceLabel, removeLabel, previewLabel, className, }: DocumentUploadCardProps): react.JSX.Element;
643
+ declare function DocumentUploadCard({ label, hint, error, file, onSelect, accept, maxSize, validate, onValidationError, sent, dropzonePlaceholder, dropzoneHint, showLabel, required, icon, bordered, size, selectLabel, replaceLabel, removeLabel, previewLabel, replaceText, removeText, viewText, className, }: DocumentUploadCardProps): react.JSX.Element;
529
644
 
530
645
  type FileThumbnailProps = {
531
646
  /** Direct image URL. Takes precedence over `loadPreview`. */
@@ -558,6 +673,10 @@ declare const FileUpload: react.ForwardRefExoticComponent<Omit<react.HTMLAttribu
558
673
  dropzoneHint?: react.ReactNode;
559
674
  required?: boolean;
560
675
  icon?: react.ReactNode;
676
+ fileDescription?: react.ReactNode;
677
+ replaceLabel?: string;
678
+ removeLabel?: string;
679
+ showFileInfo?: boolean;
561
680
  } & react.RefAttributes<HTMLDivElement>>;
562
681
 
563
682
  type FileUploadProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children' | 'onDrop'> & {
@@ -576,10 +695,14 @@ type FileUploadProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'childr
576
695
  dropzoneHint?: ReactNode;
577
696
  required?: boolean;
578
697
  icon?: ReactNode;
698
+ fileDescription?: ReactNode;
699
+ replaceLabel?: string;
700
+ removeLabel?: string;
701
+ showFileInfo?: boolean;
579
702
  };
580
703
 
581
704
  declare const infoBoxStyles: (props?: ({
582
- variant?: "default" | "success" | "warning" | "danger" | "info" | "turtle" | "purple" | null | undefined;
705
+ variant?: "turtle" | "purple" | "success" | "warning" | "info" | "default" | "danger" | null | undefined;
583
706
  } & class_variance_authority_types.ClassProp) | undefined) => string;
584
707
  type InfoBoxVariant = NonNullable<VariantProps<typeof infoBoxStyles>['variant']>;
585
708
  type InfoBoxProps = Omit<ComponentPropsWithoutRef<'div'>, 'title'> & VariantProps<typeof infoBoxStyles> & {
@@ -592,7 +715,7 @@ type InfoBoxProps = Omit<ComponentPropsWithoutRef<'div'>, 'title'> & VariantProp
592
715
  closeLabel?: string;
593
716
  };
594
717
  declare const InfoBox: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "title"> & VariantProps<(props?: ({
595
- variant?: "default" | "success" | "warning" | "danger" | "info" | "turtle" | "purple" | null | undefined;
718
+ variant?: "turtle" | "purple" | "success" | "warning" | "info" | "default" | "danger" | null | undefined;
596
719
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
597
720
  title?: ReactNode;
598
721
  icon?: ReactNode;
@@ -605,7 +728,7 @@ declare const InfoBox: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedH
605
728
 
606
729
  type FormAlertProps = InfoBoxProps;
607
730
  declare const FormAlert: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "title"> & class_variance_authority.VariantProps<(props?: ({
608
- variant?: "default" | "success" | "warning" | "danger" | "info" | "turtle" | "purple" | null | undefined;
731
+ variant?: "turtle" | "purple" | "success" | "warning" | "info" | "default" | "danger" | null | undefined;
609
732
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
610
733
  title?: react.ReactNode;
611
734
  icon?: react.ReactNode;
@@ -712,7 +835,7 @@ declare const ProgressTitle: react.ForwardRefExoticComponent<Omit<Omit<react.Det
712
835
  progressLabel?: string;
713
836
  } & react.RefAttributes<HTMLDivElement>>;
714
837
 
715
- type ChecklistStatus = 'approved' | 'review' | 'pending';
838
+ type ChecklistStatus = 'approved' | 'review' | 'pending' | 'critical' | 'active';
716
839
  type ChecklistItem = {
717
840
  id: string;
718
841
  label: ReactNode;
@@ -722,29 +845,35 @@ type ChecklistItem = {
722
845
  };
723
846
  type ChecklistProps = Omit<ComponentPropsWithoutRef<'ul'>, 'children'> & {
724
847
  items: ChecklistItem[];
848
+ variant?: 'card' | 'compact';
849
+ showAction?: boolean;
725
850
  };
726
851
  declare const Checklist: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref">, "children"> & {
727
852
  items: ChecklistItem[];
853
+ variant?: "card" | "compact";
854
+ showAction?: boolean;
728
855
  } & react.RefAttributes<HTMLUListElement>>;
729
856
 
730
857
  type FullScreenLoadingProps = {
731
858
  message?: ReactNode;
859
+ label?: string;
860
+ opaque?: boolean;
732
861
  className?: string;
733
862
  };
734
- declare function FullScreenLoading({ message, className, }: FullScreenLoadingProps): react.JSX.Element;
863
+ declare function FullScreenLoading({ message, label, opaque, className, }: FullScreenLoadingProps): react.JSX.Element;
735
864
  declare namespace FullScreenLoading {
736
865
  var displayName: string;
737
866
  }
738
867
 
739
868
  declare const headingStyles: (props?: ({
740
- size?: "sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl" | null | undefined;
869
+ size?: "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "md" | null | undefined;
741
870
  } & class_variance_authority_types.ClassProp) | undefined) => string;
742
871
  type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
743
872
  type HeadingProps = ComponentPropsWithoutRef<'h1'> & VariantProps<typeof headingStyles> & {
744
873
  level?: HeadingLevel;
745
874
  };
746
875
  declare const Heading: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & VariantProps<(props?: ({
747
- size?: "sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl" | null | undefined;
876
+ size?: "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "md" | null | undefined;
748
877
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
749
878
  level?: HeadingLevel;
750
879
  } & react.RefAttributes<HTMLHeadingElement>>;
@@ -778,6 +907,8 @@ type ImageUploadProps = {
778
907
  required?: boolean;
779
908
  selectLabel?: string;
780
909
  changeLabel?: string;
910
+ removeLabel?: string;
911
+ hint?: ReactNode;
781
912
  removeConfirmTitle?: string;
782
913
  removeConfirmDescription?: string;
783
914
  removeConfirmLabel?: string;
@@ -788,7 +919,7 @@ type ImageUploadProps = {
788
919
  declare const ImageUpload: react.ForwardRefExoticComponent<ImageUploadProps & react.RefAttributes<HTMLInputElement>>;
789
920
 
790
921
  declare const inputContainerStyles: (props?: ({
791
- size?: "sm" | "md" | "lg" | null | undefined;
922
+ size?: "sm" | "lg" | "md" | null | undefined;
792
923
  hasError?: boolean | null | undefined;
793
924
  hasIcon?: boolean | null | undefined;
794
925
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -802,9 +933,10 @@ type InputProps = Omit<ComponentPropsWithoutRef<'input'>, 'size'> & Pick<Variant
802
933
  required?: boolean;
803
934
  floating?: boolean;
804
935
  surface?: 'light' | 'dark';
936
+ containerClassName?: string;
805
937
  };
806
938
  declare const Input: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size"> & Pick<VariantProps<(props?: ({
807
- size?: "sm" | "md" | "lg" | null | undefined;
939
+ size?: "sm" | "lg" | "md" | null | undefined;
808
940
  hasError?: boolean | null | undefined;
809
941
  hasIcon?: boolean | null | undefined;
810
942
  } & class_variance_authority_types.ClassProp) | undefined) => string>, "size"> & {
@@ -816,6 +948,7 @@ declare const Input: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTM
816
948
  required?: boolean;
817
949
  floating?: boolean;
818
950
  surface?: "light" | "dark";
951
+ containerClassName?: string;
819
952
  } & react.RefAttributes<HTMLInputElement>>;
820
953
 
821
954
  type LabelProps = ComponentPropsWithoutRef<'label'> & {
@@ -839,7 +972,10 @@ type MultiComboboxItem = {
839
972
  description?: string;
840
973
  disabled?: boolean;
841
974
  };
842
- type MultiComboboxProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onChange'> & {
975
+ type MultiComboboxSelectAll = boolean | {
976
+ label?: string;
977
+ };
978
+ type MultiComboboxProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onChange' | 'defaultValue'> & {
843
979
  items: MultiComboboxItem[];
844
980
  value?: string[];
845
981
  defaultValue?: string[];
@@ -853,11 +989,23 @@ type MultiComboboxProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onC
853
989
  disabled?: boolean;
854
990
  loading?: boolean;
855
991
  emptyMessage?: string;
992
+ emptyDescription?: string;
856
993
  maxChipsVisible?: number;
857
994
  contentClassName?: string;
995
+ listTitle?: string;
996
+ listBadge?: string;
997
+ selectionIndicator?: Exclude<ComboboxSelectionIndicator, 'radio'>;
998
+ selectAll?: MultiComboboxSelectAll;
999
+ renderItem?: ComboboxRenderItem;
1000
+ listAction?: ComboboxListAction;
1001
+ showFooter?: boolean;
1002
+ showSearchIcon?: boolean;
1003
+ open?: boolean;
1004
+ defaultOpen?: boolean;
1005
+ onOpenChange?: (open: boolean) => void;
858
1006
  };
859
1007
 
860
- declare const MultiCombobox: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLDivElement>, "children" | "onChange"> & {
1008
+ declare const MultiCombobox: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLDivElement>, "children" | "defaultValue" | "onChange"> & {
861
1009
  items: MultiComboboxItem[];
862
1010
  value?: string[];
863
1011
  defaultValue?: string[];
@@ -871,9 +1019,21 @@ declare const MultiCombobox: react.ForwardRefExoticComponent<Omit<react.HTMLAttr
871
1019
  disabled?: boolean;
872
1020
  loading?: boolean;
873
1021
  emptyMessage?: string;
1022
+ emptyDescription?: string;
874
1023
  maxChipsVisible?: number;
875
1024
  contentClassName?: string;
876
- } & react.RefAttributes<HTMLButtonElement>>;
1025
+ listTitle?: string;
1026
+ listBadge?: string;
1027
+ selectionIndicator?: Exclude<ComboboxSelectionIndicator, "radio">;
1028
+ selectAll?: MultiComboboxSelectAll;
1029
+ renderItem?: ComboboxRenderItem;
1030
+ listAction?: ComboboxListAction;
1031
+ showFooter?: boolean;
1032
+ showSearchIcon?: boolean;
1033
+ open?: boolean;
1034
+ defaultOpen?: boolean;
1035
+ onOpenChange?: (open: boolean) => void;
1036
+ } & react.RefAttributes<HTMLInputElement>>;
877
1037
 
878
1038
  type OtpInputProps = {
879
1039
  value?: string;
@@ -897,6 +1057,45 @@ declare const OtpInput: react.ForwardRefExoticComponent<OtpInputProps & react.Re
897
1057
  type PasswordInputProps = Omit<InputProps, 'type' | 'rightIcon'>;
898
1058
  declare const PasswordInput: react.ForwardRefExoticComponent<PasswordInputProps & react.RefAttributes<HTMLInputElement>>;
899
1059
 
1060
+ type PasswordPromptDialogProps = {
1061
+ open?: boolean;
1062
+ defaultOpen?: boolean;
1063
+ onOpenChange?: (open: boolean) => void;
1064
+ title: string;
1065
+ description?: ReactNode;
1066
+ confirmLabel?: string;
1067
+ cancelLabel?: string;
1068
+ label?: string;
1069
+ placeholder?: string;
1070
+ autoComplete?: string;
1071
+ maxLength?: number;
1072
+ error?: string;
1073
+ loading?: boolean;
1074
+ closeOnConfirm?: boolean;
1075
+ trigger?: ReactNode;
1076
+ onConfirm: (password: string) => void;
1077
+ };
1078
+ declare function PasswordPromptDialog({ open, defaultOpen, onOpenChange, title, description, confirmLabel, cancelLabel, label, placeholder, autoComplete, maxLength, error, loading, closeOnConfirm, trigger, onConfirm, }: PasswordPromptDialogProps): react.JSX.Element;
1079
+
1080
+ type PasswordRule = {
1081
+ id: string;
1082
+ label: string;
1083
+ test: (value: string) => boolean;
1084
+ };
1085
+ declare const PASSWORD_MIN_LENGTH = 8;
1086
+ declare const DEFAULT_PASSWORD_RULES: ReadonlyArray<PasswordRule>;
1087
+ declare function meetsPasswordRules(value: string, rules?: ReadonlyArray<PasswordRule>): boolean;
1088
+
1089
+ type PasswordRequirementsProps = {
1090
+ value: string;
1091
+ rules?: ReadonlyArray<PasswordRule>;
1092
+ title?: ReactNode;
1093
+ showProgress?: boolean;
1094
+ metLabel?: string;
1095
+ className?: string;
1096
+ };
1097
+ declare function PasswordRequirements({ value, rules, title, showProgress, metLabel, className, }: PasswordRequirementsProps): react.JSX.Element;
1098
+
900
1099
  type PercentInputProps = Omit<InputProps, 'value' | 'onChange'> & {
901
1100
  value?: string;
902
1101
  onValueChange?: (formatted: string, raw: string) => void;
@@ -904,10 +1103,11 @@ type PercentInputProps = Omit<InputProps, 'value' | 'onChange'> & {
904
1103
  declare function PercentInput({ value, onValueChange, ...props }: PercentInputProps): react.JSX.Element;
905
1104
 
906
1105
  type PhoneInputProps = Omit<MaskedInputProps, 'mask'>;
907
- declare function PhoneInput(props: PhoneInputProps): react.JSX.Element;
1106
+ declare function brazilianPhoneDigits(value: string): string;
1107
+ declare function PhoneInput({ normalizeRaw, ...props }: PhoneInputProps): react.JSX.Element;
908
1108
 
909
1109
  declare const popoverContentStyles: (props?: ({
910
- size?: "auto" | "sm" | "md" | "lg" | null | undefined;
1110
+ size?: "sm" | "lg" | "auto" | "md" | null | undefined;
911
1111
  } & class_variance_authority_types.ClassProp) | undefined) => string;
912
1112
 
913
1113
  type PopoverProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> & {
@@ -923,7 +1123,7 @@ declare const Popover: typeof PopoverRoot & {
923
1123
  Anchor: react.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverAnchorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
924
1124
  Close: react.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverCloseProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
925
1125
  Content: react.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
926
- size?: "auto" | "sm" | "md" | "lg" | null | undefined;
1126
+ size?: "sm" | "lg" | "auto" | "md" | null | undefined;
927
1127
  } & class_variance_authority_types.ClassProp) | undefined) => string> & react.RefAttributes<HTMLDivElement>>;
928
1128
  };
929
1129
 
@@ -989,19 +1189,19 @@ declare const Stepper: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes
989
1189
  } & react.RefAttributes<HTMLOListElement>>;
990
1190
 
991
1191
  declare const skeletonStyles: (props?: ({
992
- shape?: "text" | "circle" | "rect" | null | undefined;
1192
+ shape?: "text" | "circle" | "rect" | "field" | null | undefined;
993
1193
  } & class_variance_authority_types.ClassProp) | undefined) => string;
994
1194
  type SkeletonProps = ComponentPropsWithoutRef<'div'> & VariantProps<typeof skeletonStyles> & {
995
1195
  loading?: boolean;
996
1196
  };
997
1197
  declare const Skeleton: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & VariantProps<(props?: ({
998
- shape?: "text" | "circle" | "rect" | null | undefined;
1198
+ shape?: "text" | "circle" | "rect" | "field" | null | undefined;
999
1199
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
1000
1200
  loading?: boolean;
1001
1201
  } & react.RefAttributes<HTMLDivElement>>;
1002
1202
 
1003
1203
  declare const spinnerStyles: (props?: ({
1004
- size?: "sm" | "md" | "lg" | null | undefined;
1204
+ size?: "sm" | "lg" | "md" | null | undefined;
1005
1205
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1006
1206
  type SpinnerProps = VariantProps<typeof spinnerStyles> & {
1007
1207
  label?: string;
@@ -1025,15 +1225,21 @@ declare function Sparkline({ values, color, height, width, variant, ariaLabel, c
1025
1225
  type SparklineBadgeDirection = 'up' | 'down' | 'flat';
1026
1226
  type SparklineBadgeTone = 'auto' | 'success' | 'danger' | 'muted' | 'warning' | 'info';
1027
1227
  type SparklineBadgeProps = Omit<HTMLAttributes<HTMLSpanElement>, 'children'> & {
1028
- value: string;
1029
- direction: SparklineBadgeDirection;
1228
+ value?: ReactNode;
1229
+ direction?: SparklineBadgeDirection;
1230
+ isNew?: boolean;
1231
+ newLabel?: ReactNode;
1232
+ srPrefix?: string;
1030
1233
  tone?: SparklineBadgeTone;
1031
1234
  size?: 'sm' | 'md';
1032
1235
  };
1033
1236
 
1034
1237
  declare const SparklineBadge: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLSpanElement>, "children"> & {
1035
- value: string;
1036
- direction: SparklineBadgeDirection;
1238
+ value?: react.ReactNode;
1239
+ direction?: SparklineBadgeDirection;
1240
+ isNew?: boolean;
1241
+ newLabel?: react.ReactNode;
1242
+ srPrefix?: string;
1037
1243
  tone?: SparklineBadgeTone;
1038
1244
  size?: "sm" | "md";
1039
1245
  } & react.RefAttributes<HTMLSpanElement>>;
@@ -1055,6 +1261,8 @@ type TabsTriggerProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> &
1055
1261
  icon?: ReactNode;
1056
1262
  count?: ReactNode;
1057
1263
  tone?: TabsTriggerTone;
1264
+ hasError?: boolean;
1265
+ errorLabel?: string;
1058
1266
  };
1059
1267
  type TabsProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Root> & {
1060
1268
  children?: ReactNode;
@@ -1074,6 +1282,8 @@ declare const Tabs: typeof TabsRoot & {
1074
1282
  icon?: ReactNode;
1075
1283
  count?: ReactNode;
1076
1284
  tone?: TabsTriggerTone;
1285
+ hasError?: boolean;
1286
+ errorLabel?: string;
1077
1287
  } & react.RefAttributes<HTMLButtonElement>>;
1078
1288
  Content: react.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1079
1289
  };
@@ -1087,7 +1297,7 @@ type ThemeToggleProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'
1087
1297
  };
1088
1298
 
1089
1299
  declare const textStyles: (props?: ({
1090
- size?: "sm" | "lg" | "base" | "xs" | null | undefined;
1300
+ size?: "base" | "xs" | "sm" | "lg" | null | undefined;
1091
1301
  color?: "default" | "danger" | "subtle" | "muted" | null | undefined;
1092
1302
  weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
1093
1303
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -1517,6 +1727,9 @@ type NotificationCenterProps = {
1517
1727
  onMarkAllRead?: () => void;
1518
1728
  onItemClick?: (notification: Notification) => void;
1519
1729
  emptyMessage?: string;
1730
+ emptyDescription?: ReactNode;
1731
+ emptyIcon?: ReactNode;
1732
+ emptyState?: ReactNode;
1520
1733
  triggerAriaLabel?: string;
1521
1734
  relativeTime?: (iso: string) => string;
1522
1735
  };
@@ -1593,9 +1806,11 @@ declare const ErrorPageLayout: react.ForwardRefExoticComponent<Omit<PublicPageLa
1593
1806
  primaryAction?: {
1594
1807
  label: string;
1595
1808
  onClick: () => void;
1809
+ icon?: react.ReactNode;
1596
1810
  } | {
1597
1811
  label: string;
1598
1812
  href: string;
1813
+ icon?: react.ReactNode;
1599
1814
  };
1600
1815
  illustration?: react.ReactNode;
1601
1816
  } & react.RefAttributes<HTMLDivElement>>;
@@ -1607,9 +1822,11 @@ type ErrorPageLayoutProps = Omit<PublicPageLayoutProps, 'children'> & {
1607
1822
  primaryAction?: {
1608
1823
  label: string;
1609
1824
  onClick: () => void;
1825
+ icon?: ReactNode;
1610
1826
  } | {
1611
1827
  label: string;
1612
1828
  href: string;
1829
+ icon?: ReactNode;
1613
1830
  };
1614
1831
  illustration?: ReactNode;
1615
1832
  };
@@ -1837,7 +2054,7 @@ type EmptyStateProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'title'
1837
2054
  action?: ReactNode;
1838
2055
  };
1839
2056
 
1840
- declare const EmptyState: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLDivElement>, "children" | "title"> & {
2057
+ declare const EmptyState: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLDivElement>, "title" | "children"> & {
1841
2058
  variant?: EmptyStateVariant;
1842
2059
  icon?: react.ReactNode;
1843
2060
  title: react.ReactNode;
@@ -1845,23 +2062,161 @@ declare const EmptyState: react.ForwardRefExoticComponent<Omit<react.HTMLAttribu
1845
2062
  action?: react.ReactNode;
1846
2063
  } & react.RefAttributes<HTMLDivElement>>;
1847
2064
 
2065
+ type ActionBarProps = Omit<ComponentPropsWithoutRef<'section'>, 'children'> & {
2066
+ start?: ReactNode;
2067
+ end?: ReactNode;
2068
+ children?: ReactNode;
2069
+ sticky?: boolean;
2070
+ };
2071
+ declare const ActionBar: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "children"> & {
2072
+ start?: ReactNode;
2073
+ end?: ReactNode;
2074
+ children?: ReactNode;
2075
+ sticky?: boolean;
2076
+ } & react.RefAttributes<HTMLElement>>;
2077
+
2078
+ type CookieConsentProps = {
2079
+ cookieName: string;
2080
+ message?: ReactNode;
2081
+ policyLink?: ReactNode;
2082
+ acceptLabel?: string;
2083
+ maxAgeDays?: number;
2084
+ onAccept?: () => void;
2085
+ className?: string;
2086
+ };
2087
+ declare function CookieConsent({ cookieName, message, policyLink, acceptLabel, maxAgeDays, onAccept, className, }: CookieConsentProps): react.JSX.Element | null;
2088
+
2089
+ type ErrorBoundaryProps = {
2090
+ children: ReactNode;
2091
+ fallback?: (reset: () => void, error: Error | null) => ReactNode;
2092
+ onError?: (error: Error, info: ErrorInfo) => void;
2093
+ onReset?: () => void;
2094
+ title?: string;
2095
+ description?: string;
2096
+ retryLabel?: string;
2097
+ };
2098
+ type ErrorBoundaryState = {
2099
+ error: Error | null;
2100
+ };
2101
+ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
2102
+ static displayName: string;
2103
+ state: ErrorBoundaryState;
2104
+ static getDerivedStateFromError(error: Error): ErrorBoundaryState;
2105
+ componentDidCatch(error: Error, info: ErrorInfo): void;
2106
+ reset: () => void;
2107
+ render(): string | number | boolean | Iterable<ReactNode> | react.JSX.Element | null | undefined;
2108
+ }
2109
+
2110
+ type QuickFilterItem = {
2111
+ id: string;
2112
+ label: string;
2113
+ icon?: ReactNode;
2114
+ tone?: ToggleChipTone;
2115
+ count?: number;
2116
+ priority?: 0 | 1 | 2 | 3;
2117
+ };
2118
+ type QuickFiltersProps = {
2119
+ items: QuickFilterItem[];
2120
+ value: string | null;
2121
+ onValueChange: (id: string | null) => void;
2122
+ moreLabel?: string;
2123
+ };
2124
+ declare function QuickFilters({ items, value, onValueChange, moreLabel, }: QuickFiltersProps): react.JSX.Element | null;
2125
+
2126
+ type SectionHeadingProps = Omit<ComponentPropsWithoutRef<'div'>, 'title'> & {
2127
+ title: ReactNode;
2128
+ description?: ReactNode;
2129
+ level?: 2 | 3 | 4 | 5;
2130
+ actions?: ReactNode;
2131
+ divider?: boolean;
2132
+ };
2133
+ declare const SectionHeading: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "title"> & {
2134
+ title: ReactNode;
2135
+ description?: ReactNode;
2136
+ level?: 2 | 3 | 4 | 5;
2137
+ actions?: ReactNode;
2138
+ divider?: boolean;
2139
+ } & react.RefAttributes<HTMLDivElement>>;
2140
+
2141
+ type SpeedometerProps = {
2142
+ value: number;
2143
+ min: number;
2144
+ max: number;
2145
+ label?: string;
2146
+ isReverse?: boolean;
2147
+ segments?: string[];
2148
+ stops?: number[];
2149
+ formatValue?: (value: number) => ReactNode;
2150
+ className?: string;
2151
+ };
2152
+ declare function Speedometer({ value, min, max, label, isReverse, segments, stops, formatValue, className, }: SpeedometerProps): react.JSX.Element;
2153
+
2154
+ type StatusBadgeMeta = {
2155
+ label: ReactNode;
2156
+ variant: NonNullable<BadgeProps['variant']>;
2157
+ subtle?: boolean;
2158
+ description?: ReactNode;
2159
+ icon?: ReactNode;
2160
+ };
2161
+ type StatusBadgeMap<S extends string = string> = Record<S, StatusBadgeMeta>;
2162
+ type StatusBadgeProps<S extends string = string> = {
2163
+ status: NoInfer<S> | (string & {});
2164
+ map: Partial<StatusBadgeMap<S>>;
2165
+ size?: BadgeProps['size'];
2166
+ tooltip?: boolean;
2167
+ icon?: ReactNode;
2168
+ unknownLabel?: (status: string) => ReactNode;
2169
+ onUnknownStatus?: (status: string) => void;
2170
+ className?: string;
2171
+ };
2172
+ declare function StatusBadge<S extends string = string>({ status, map, size, tooltip, icon, unknownLabel, onUnknownStatus, className, }: StatusBadgeProps<S>): react.JSX.Element;
2173
+
2174
+ type ToggleTileProps = {
2175
+ label: ReactNode;
2176
+ helper?: string;
2177
+ checked: boolean;
2178
+ onCheckedChange: (checked: boolean) => void;
2179
+ disabled?: boolean;
2180
+ id?: string;
2181
+ 'aria-label'?: string;
2182
+ as?: 'li' | 'div';
2183
+ className?: string;
2184
+ };
2185
+ declare const ToggleTile: react.ForwardRefExoticComponent<ToggleTileProps & react.RefAttributes<HTMLElement>>;
2186
+
1848
2187
  type WizardShellStep = {
1849
2188
  id: string;
1850
2189
  label: string;
1851
2190
  description?: string;
1852
2191
  state: StepState;
1853
2192
  optional?: boolean;
2193
+ disabled?: boolean;
1854
2194
  };
1855
2195
  type WizardShellProps = {
1856
2196
  steps: WizardShellStep[];
1857
2197
  currentStepId: string;
1858
2198
  onStepChange?: (stepId: string) => void;
1859
2199
  title: string;
1860
- subtitle?: string;
2200
+ subtitle?: ReactNode;
1861
2201
  children: ReactNode;
1862
2202
  aside?: ReactNode;
1863
2203
  footer?: ReactNode;
1864
2204
  className?: string;
2205
+ layout?: 'card' | 'page';
2206
+ onBack?: () => void;
2207
+ backLabel?: string;
2208
+ headerActions?: ReactNode;
2209
+ stepsLabel?: string;
2210
+ contentLabel?: string;
2211
+ contentBordered?: boolean;
2212
+ footerStart?: ReactNode;
2213
+ footerEnd?: ReactNode;
2214
+ footerLabel?: string;
2215
+ stickyFooter?: boolean;
2216
+ asideTitle?: string;
2217
+ asideCollapsible?: boolean;
2218
+ asideCollapsedContent?: ReactNode;
2219
+ asideDefaultCollapsed?: boolean;
1865
2220
  };
1866
2221
 
1867
2222
  declare function WizardShell(props: WizardShellProps): react.JSX.Element;
@@ -1889,9 +2244,16 @@ type DataFieldProps = {
1889
2244
  value: ReactNode;
1890
2245
  icon?: ReactNode;
1891
2246
  hint?: ReactNode;
2247
+ emphasis?: boolean;
2248
+ mono?: boolean;
2249
+ numeric?: boolean;
2250
+ truncate?: boolean;
2251
+ as?: 'div' | 'span';
2252
+ emptyValue?: ReactNode;
2253
+ valueClassName?: string;
1892
2254
  className?: string;
1893
2255
  };
1894
- declare function DataField({ label, value, icon, hint, className, }: DataFieldProps): react.JSX.Element;
2256
+ declare function DataField({ label, value, icon, hint, emphasis, mono, numeric, truncate, as: Tag, emptyValue, valueClassName, className, }: DataFieldProps): react.JSX.Element;
1895
2257
 
1896
2258
  type FilterFieldBase = {
1897
2259
  name: string;
@@ -1947,6 +2309,17 @@ type FilterBarProps = {
1947
2309
 
1948
2310
  declare function FilterBar({ fields, values: controlledValues, defaultValues, activeCount, onApply, onClear, title, applyLabel, clearLabel, className, defaultOpen, hideTrigger, open: controlledOpen, onOpenChange, }: FilterBarProps): react.JSX.Element;
1949
2311
 
2312
+ type FilterToolbarProps = HTMLAttributes<HTMLDivElement> & {
2313
+ onClearAll?: () => void;
2314
+ showClearAll?: boolean;
2315
+ clearAllLabel?: string;
2316
+ };
2317
+ declare const FilterToolbar: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
2318
+ onClearAll?: () => void;
2319
+ showClearAll?: boolean;
2320
+ clearAllLabel?: string;
2321
+ } & react.RefAttributes<HTMLDivElement>>;
2322
+
1950
2323
  type FormSectionProps = {
1951
2324
  id: string;
1952
2325
  icon: ReactNode;
@@ -2130,10 +2503,12 @@ declare const TimelineItem: react.ForwardRefExoticComponent<Omit<Omit<react.Deta
2130
2503
  } & react.RefAttributes<HTMLLIElement>>;
2131
2504
  type TimelineDaySeparatorProps = ComponentPropsWithoutRef<'li'> & {
2132
2505
  label: ReactNode;
2506
+ as?: 'li' | 'div';
2133
2507
  };
2134
2508
  declare const TimelineDaySeparator: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
2135
2509
  label: ReactNode;
2136
- } & react.RefAttributes<HTMLLIElement>>;
2510
+ as?: "li" | "div";
2511
+ } & react.RefAttributes<HTMLElement>>;
2137
2512
  type TimelineSectionProps = Omit<ComponentPropsWithoutRef<'section'>, 'title'> & {
2138
2513
  title: ReactNode;
2139
2514
  };
@@ -2141,4 +2516,4 @@ declare const TimelineSection: react.ForwardRefExoticComponent<Omit<Omit<react.D
2141
2516
  title: ReactNode;
2142
2517
  } & react.RefAttributes<HTMLElement>>;
2143
2518
 
2144
- export { AppShell, type AppShellProps, Avatar, type AvatarColor, type AvatarProps, type AvatarSize, type AvatarTone, Badge, type BadgeProps, type BadgeVariant, Box, type BoxProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, Card, type CardProps, CepInput, type CepInputProps, ChartTimeSeries, type ChartTimeSeriesPoint, type ChartTimeSeriesProps, Checkbox, type CheckboxProps, Checklist, type ChecklistItem, type ChecklistProps, type ChecklistStatus, ColorPicker, type ColorPickerProps, Combobox, type ComboboxItem, type ComboboxProps, type CommandGroup, type CommandItem, CommandPalette, type CommandPaletteProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogVariant, ContentCard, type ContentCardProps, ContextMenu, type ContextMenuContentProps, type ContextMenuItemProps, type ContextMenuProps, CopyButton, type CopyButtonProps, DSAccordion, type DSAccordionRootProps, type DSAccordionTriggerProps, DashboardBlock, type DashboardBlockData, type DashboardBlockProps, type DashboardReason, DataField, type DataFieldProps, DataTable, DataTableActionButton, type DataTableActionButtonProps, type DataTableColumn, type DataTableDensity, DataTableDocumentCell, type DataTableDocumentCellProps, DataTableLinkCell, type DataTableLinkCellProps, DataTablePagination, type DataTablePaginationProps, type DataTableProps, type DataTableSortDirection, DataTableTextCell, type DataTableTextCellProps, DateInput, type DateInputProps, type DateRange, type DateRangeFilterField, DateRangeInput, type DateRangeInputProps, DefaultLink, type DetailsDialog, DialogRoot as Dialog, type DialogContentProps, type DialogProps, DocumentInput, type DocumentInputProps, DocumentUploadCard, type DocumentUploadCardProps, type DocumentUploadCardSentFile, type DocumentUploadCardTone, DonutChart, type DonutChartProps, type DonutChartSlice, DrawerRoot as Drawer, type DrawerContentProps, type DrawerProps, type DrawerSide, type DrawerSize, Dropdown, type DropdownCheckboxItemProps, type DropdownContentProps, type DropdownItemProps, type DropdownProps, type DsLinkComponent, EmptyState, type EmptyStateProps, type EmptyStateVariant, ErrorPageLayout, type ErrorPageLayoutProps, FieldsCard, type FieldsCardField, type FieldsCardProps, type FieldsCardVariant, FileInfoCard, type FileInfoCardProps, FilePreviewContent, type FilePreviewContentProps, FilePreviewDialog, type FilePreviewDialogProps, FileThumbnail, type FileThumbnailProps, FileUpload, type FileUploadProps, FilterBar, type FilterBarProps, FilterBar as FilterBarV2, type FilterBarProps as FilterBarV2Props, type FilterField, type FilterFormValues, FormAlert, type FormAlertProps, type FormAsideSection, FormSection, type FormSectionProps, FormWithAside, type FormWithAsideProps, FullScreenLoading, type FullScreenLoadingProps, Heading, type HeadingProps, HelpHint, type HelpHintProps, type HelpHintSize, HorizontalBarChart, type HorizontalBarChartProps, type HorizontalBarItem, ImageUpload, type ImageUploadPreviewBg, type ImageUploadProps, InfoBox, type InfoBoxProps, type InfoBoxVariant, Input, type InputProps, KpiCard, type KpiCardProgress, type KpiCardProgressTone, type KpiCardProps, type KpiCardVariant, KpiHero, type KpiHeroProps, type KpiHeroTone, type KpiHeroTrend, type KpiHeroTrendDirection, Label, type LabelProps, type LegalDocumentContent, LegalDocumentRenderer, type LegalDocumentRendererProps, LineChart, type LineChartProps, type LineSeries, Logo, type LogoProps, type LogoTone, type LogoVariant, type MaskFilterField, MaskedInput, type MaskedInputProps, MoneyInput, type MoneyInputProps, MultiCombobox, type MultiComboboxItem, type MultiComboboxProps, type MultiSelectFilterField, NavigatorTile, NavigatorTileGrid, type NavigatorTileGridProps, type NavigatorTileProps, type Notification, NotificationCenter, type NotificationCenterProps, type NotificationSeverity, type NumberRangeFilterField, OtpInput, type OtpInputProps, PageTitle, type PageTitleInfoItem, type PageTitleProps, PanelCard, type PanelCardProps, PasswordInput, type PasswordInputProps, PercentInput, type PercentInputProps, PhoneInput, type PhoneInputProps, Popover, type PopoverContentProps, type PopoverProps, Progress, type ProgressItem, type ProgressProps, ProgressTitle, type ProgressTitleProps, PublicPageLayout, type PublicPageLayoutProps, RadioGroup, type RadioGroupProps, type ReadOnlyColumn, ReadOnlyDataView, type ReadOnlyDataViewProps, type ResolvedTheme, SectionCard, type SectionCardProps, type SelectFilterField, SelectableCard, type SelectableCardIndicator, type SelectableCardProps, Separator, type SeparatorProps, Sidebar, type SidebarGroup, type SidebarItem, type SidebarProps, Skeleton, type SkeletonProps, type SortDirection$1 as SortDirection, SortableColumnHeader, type SortableColumnHeaderProps, Sparkline, SparklineBadge, type SparklineBadgeDirection, type SparklineBadgeProps, type SparklineBadgeTone, type SparklineProps, Spinner, type SpinnerProps, type StackSeries, StackedBarChart, type StackedBarChartProps, type StepState, Stepper, type StepperProps, type StepperStep, SuspenseSkeleton, Switch, type SwitchProps, THEME_STORAGE_KEY, Tabs, type TabsListProps, type TabsProps, type TabsTriggerProps, type TabsTriggerTone, type TabsVariant, Text, TextArea, type TextAreaProps, type TextFilterField, type TextProps, type ThemeContextValue, type ThemeOptions, type ThemePreference, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, Timeline, TimelineDaySeparator, type TimelineDaySeparatorProps, TimelineItem, type TimelineItemProps, type TimelineProps, TimelineSection, type TimelineSectionProps, type TimelineTone, TitleSelect, type TitleSelectOption, type TitleSelectProps, type ToastOptions, type ToastRecord, type ToastVariant, Toaster, type ToasterProps, ToggleChip, type ToggleChipProps, type ToggleChipTone, Tooltip, type TooltipProps, Topbar, TopbarIconButton, type TopbarIconButtonProps, type TopbarProps, TopbarSearchButton, type TopbarSearchButtonProps, TutorialCard, type TutorialCardProps, WizardShell, type WizardShellProps, type WizardShellStep, WorkflowDesigner, type WorkflowDesignerProps, type WorkflowEdge, type WorkflowEdgeTrigger, type WorkflowNode, type WorkflowNodeAction, type WorkflowNodeKind, type WorkflowNodeRule, cn, dismissToast, getShortcutKeys, getShortcutLabel, getThemeBootstrapScript, isImageFile, isMacOS, isPdfFile, toast, useTheme, useToast };
2519
+ export { ActionBar, type ActionBarProps, AppShell, type AppShellProps, Avatar, type AvatarColor, type AvatarProps, type AvatarSize, type AvatarTone, Badge, type BadgeProps, type BadgeVariant, Box, type BoxProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, Card, type CardProps, CepInput, type CepInputProps, ChartTimeSeries, type ChartTimeSeriesPoint, type ChartTimeSeriesProps, Checkbox, type CheckboxProps, Checklist, type ChecklistItem, type ChecklistProps, type ChecklistStatus, ColorPicker, type ColorPickerProps, Combobox, type ComboboxItem, type ComboboxListAction, type ComboboxProps, type ComboboxRenderItem, type ComboboxRenderItemState, type ComboboxSelectionIndicator, type CommandGroup, type CommandItem, CommandPalette, type CommandPaletteProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogVariant, ContentCard, type ContentCardProps, ContextMenu, type ContextMenuContentProps, type ContextMenuItemProps, type ContextMenuProps, CookieConsent, type CookieConsentProps, CopyButton, type CopyButtonProps, DEFAULT_PASSWORD_RULES, DSAccordion, type DSAccordionRootProps, type DSAccordionTriggerProps, DashboardBlock, type DashboardBlockData, type DashboardBlockProps, type DashboardReason, DataField, type DataFieldProps, DataTable, DataTableActionButton, type DataTableActionButtonProps, type DataTableColumn, type DataTableDensity, DataTableDocumentCell, type DataTableDocumentCellProps, DataTableLinkCell, type DataTableLinkCellProps, DataTablePagination, type DataTablePaginationProps, type DataTableProps, type DataTableSortDirection, DataTableTextCell, type DataTableTextCellProps, DateInput, type DateInputProps, type DateRange, type DateRangeFilterField, DateRangeInput, type DateRangeInputProps, DefaultLink, type DetailsDialog, DialogRoot as Dialog, type DialogContentProps, type DialogProps, DocumentInput, type DocumentInputProps, type DocumentInputType, DocumentUploadCard, type DocumentUploadCardProps, type DocumentUploadCardSentFile, type DocumentUploadCardTone, DonutChart, type DonutChartProps, type DonutChartSlice, DownloadButton, type DownloadButtonProps, type DownloadableFile, DrawerRoot as Drawer, type DrawerContentProps, type DrawerFooterProps, type DrawerProps, type DrawerSide, type DrawerSize, Dropdown, type DropdownCheckboxItemProps, type DropdownContentProps, type DropdownItemProps, type DropdownProps, type DsLinkComponent, EmptyState, type EmptyStateProps, type EmptyStateVariant, ErrorBoundary, type ErrorBoundaryProps, ErrorPageLayout, type ErrorPageLayoutProps, FieldsCard, type FieldsCardField, type FieldsCardProps, type FieldsCardVariant, FileInfoCard, type FileInfoCardProps, FilePreviewContent, type FilePreviewContentProps, FilePreviewDialog, type FilePreviewDialogProps, FileThumbnail, type FileThumbnailProps, FileUpload, type FileUploadProps, FileViewCard, type FileViewCardField, type FileViewCardProps, FilterBar, type FilterBarProps, FilterBar as FilterBarV2, type FilterBarProps as FilterBarV2Props, type FilterField, type FilterFormValues, FilterToolbar, type FilterToolbarProps, FormAlert, type FormAlertProps, type FormAsideSection, FormSection, type FormSectionProps, FormWithAside, type FormWithAsideProps, FullScreenLoading, type FullScreenLoadingProps, Heading, type HeadingProps, HelpHint, type HelpHintProps, type HelpHintSize, HorizontalBarChart, type HorizontalBarChartProps, type HorizontalBarItem, ImageUpload, type ImageUploadPreviewBg, type ImageUploadProps, InfoBox, type InfoBoxProps, type InfoBoxVariant, Input, type InputProps, KpiCard, type KpiCardProgress, type KpiCardProgressTone, type KpiCardProps, type KpiCardVariant, KpiHero, type KpiHeroProps, type KpiHeroTone, type KpiHeroTrend, type KpiHeroTrendDirection, Label, type LabelProps, type LegalDocumentContent, LegalDocumentRenderer, type LegalDocumentRendererProps, LineChart, type LineChartProps, type LineSeries, Logo, type LogoProps, type LogoTone, type LogoVariant, type MaskFilterField, MaskedInput, type MaskedInputProps, MoneyInput, type MoneyInputProps, MultiCombobox, type MultiComboboxItem, type MultiComboboxProps, type MultiComboboxSelectAll, type MultiSelectFilterField, NavigatorTile, NavigatorTileGrid, type NavigatorTileGridProps, type NavigatorTileProps, type Notification, NotificationCenter, type NotificationCenterProps, type NotificationSeverity, type NumberRangeFilterField, OtpInput, type OtpInputProps, PASSWORD_MIN_LENGTH, PageTitle, type PageTitleInfoItem, type PageTitleProps, PanelCard, type PanelCardProps, PasswordInput, type PasswordInputProps, PasswordPromptDialog, type PasswordPromptDialogProps, PasswordRequirements, type PasswordRequirementsProps, type PasswordRule, PercentInput, type PercentInputProps, PhoneInput, type PhoneInputProps, Popover, type PopoverContentProps, type PopoverProps, Progress, type ProgressItem, type ProgressProps, ProgressTitle, type ProgressTitleProps, PublicPageLayout, type PublicPageLayoutProps, type QuickFilterItem, QuickFilters, type QuickFiltersProps, RadioGroup, type RadioGroupProps, type ReadOnlyColumn, ReadOnlyDataView, type ReadOnlyDataViewProps, type ResolvedTheme, SectionCard, type SectionCardProps, SectionHeading, type SectionHeadingProps, type SelectFilterField, SelectableCard, type SelectableCardIndicator, type SelectableCardProps, Separator, type SeparatorProps, Sidebar, type SidebarGroup, type SidebarItem, type SidebarProps, Skeleton, type SkeletonProps, type SortDirection$1 as SortDirection, SortableColumnHeader, type SortableColumnHeaderProps, Sparkline, SparklineBadge, type SparklineBadgeDirection, type SparklineBadgeProps, type SparklineBadgeTone, type SparklineProps, Speedometer, type SpeedometerProps, Spinner, type SpinnerProps, type StackSeries, StackedBarChart, type StackedBarChartProps, StatusBadge, type StatusBadgeMap, type StatusBadgeMeta, type StatusBadgeProps, type StepState, Stepper, type StepperProps, type StepperStep, SuspenseSkeleton, Switch, type SwitchProps, THEME_STORAGE_KEY, Tabs, type TabsListProps, type TabsProps, type TabsTriggerProps, type TabsTriggerTone, type TabsVariant, Text, TextArea, type TextAreaProps, type TextFilterField, type TextProps, type ThemeContextValue, type ThemeOptions, type ThemePreference, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, Timeline, TimelineDaySeparator, type TimelineDaySeparatorProps, TimelineItem, type TimelineItemProps, type TimelineProps, TimelineSection, type TimelineSectionProps, type TimelineTone, TitleSelect, type TitleSelectOption, type TitleSelectProps, type ToastOptions, type ToastRecord, type ToastVariant, Toaster, type ToasterProps, ToggleChip, type ToggleChipProps, type ToggleChipTone, ToggleTile, type ToggleTileProps, Tooltip, type TooltipProps, Topbar, TopbarIconButton, type TopbarIconButtonProps, type TopbarProps, TopbarSearchButton, type TopbarSearchButtonProps, TutorialCard, type TutorialCardProps, WizardShell, type WizardShellProps, type WizardShellStep, WorkflowDesigner, type WorkflowDesignerProps, type WorkflowEdge, type WorkflowEdgeTrigger, type WorkflowNode, type WorkflowNodeAction, type WorkflowNodeKind, type WorkflowNodeRule, brazilianPhoneDigits, cn, dismissToast, downloadFile, getShortcutKeys, getShortcutLabel, getThemeBootstrapScript, isImageFile, isMacOS, isPdfFile, meetsPasswordRules, normalizeDocument, toast, useTheme, useToast };