@humu-tech/ui 0.1.25 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +258 -89
- package/dist/DateInput-HC45BUBP.css +105 -0
- package/dist/DateRangeInput-TBELV5TN.css +143 -0
- package/dist/Sidebar-RBBNUVDV.css +7 -0
- package/dist/index.d.mts +493 -57
- package/dist/index.d.ts +493 -57
- package/dist/index.js +5234 -2944
- package/dist/index.mjs +5227 -2911
- package/dist/tailwind-preset.js +122 -0
- package/dist/tailwind-preset.mjs +122 -0
- package/dist/tokens/colors.css +55 -55
- package/dist/tokens/elevation.css +10 -5
- package/dist/tokens/motion.css +23 -14
- package/dist/tokens/primitives.css +94 -0
- package/dist/tokens/primitives.d.mts +2 -0
- package/dist/tokens/primitives.d.ts +2 -0
- package/dist/tokens/semantic.css +166 -0
- package/dist/tokens/semantic.d.mts +2 -0
- package/dist/tokens/semantic.d.ts +2 -0
- package/dist/tokens/spacing.css +1 -17
- package/dist/tokens/surfaces.css +64 -98
- package/dist/tokens/typography.css +44 -23
- package/dist/tokens.css +10 -7
- package/package.json +40 -21
- package/dist/DateInput-ASNJQV43.css +0 -105
- package/dist/DateRangeInput-PC5F3TTS.css +0 -143
- package/dist/Sidebar-4ILVFQI5.css +0 -44
package/dist/index.d.ts
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, TextareaHTMLAttributes, ForwardedRef } from 'react';
|
|
3
|
+
import { ReactNode, HTMLAttributes, ComponentPropsWithoutRef, ElementType, InputHTMLAttributes, ButtonHTMLAttributes, ReactElement, SVGAttributes, MouseEvent, TextareaHTMLAttributes, ForwardedRef, AnchorHTMLAttributes } 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';
|
|
@@ -27,9 +27,6 @@ type DsLinkComponent = React.ComponentType<{
|
|
|
27
27
|
}>;
|
|
28
28
|
declare const DefaultLink: DsLinkComponent;
|
|
29
29
|
|
|
30
|
-
type DsV2Theme = 'light' | 'dark';
|
|
31
|
-
declare function useDsV2Theme(): DsV2Theme;
|
|
32
|
-
|
|
33
30
|
type SuspenseSkeletonProps = {
|
|
34
31
|
label?: string;
|
|
35
32
|
};
|
|
@@ -42,7 +39,32 @@ declare function getShortcutKeys(key: string): string[];
|
|
|
42
39
|
declare function isImageFile(mimeType?: string, fileName?: string): boolean;
|
|
43
40
|
declare function isPdfFile(mimeType?: string, fileName?: string): boolean;
|
|
44
41
|
|
|
45
|
-
type
|
|
42
|
+
type ThemePreference = 'light' | 'dark' | 'system';
|
|
43
|
+
type ResolvedTheme = Exclude<ThemePreference, 'system'>;
|
|
44
|
+
type ThemeOptions = {
|
|
45
|
+
storageKey?: string;
|
|
46
|
+
defaultPreference?: ThemePreference;
|
|
47
|
+
};
|
|
48
|
+
declare const THEME_STORAGE_KEY = "theme-preference";
|
|
49
|
+
|
|
50
|
+
type ThemeContextValue = {
|
|
51
|
+
preference: ThemePreference;
|
|
52
|
+
theme: ResolvedTheme;
|
|
53
|
+
setPreference: (preference: ThemePreference) => void;
|
|
54
|
+
cyclePreference: () => void;
|
|
55
|
+
};
|
|
56
|
+
type ThemeProviderProps = ThemeOptions & {
|
|
57
|
+
children: ReactNode;
|
|
58
|
+
};
|
|
59
|
+
declare function ThemeProvider({ children, storageKey, defaultPreference, }: Readonly<ThemeProviderProps>): react.JSX.Element;
|
|
60
|
+
|
|
61
|
+
declare function useTheme(): ThemeContextValue;
|
|
62
|
+
|
|
63
|
+
declare function getThemeBootstrapScript({ storageKey, defaultPreference, }?: ThemeOptions): string;
|
|
64
|
+
|
|
65
|
+
type AvatarColor = 'brand' | 'brand-subtle' | 'success' | 'warning' | 'danger' | 'info';
|
|
66
|
+
type AvatarLegacyTone = 'blue' | 'orange' | 'green' | 'lime' | 'red';
|
|
67
|
+
type AvatarTone = 'auto' | AvatarColor | AvatarLegacyTone;
|
|
46
68
|
type AvatarSize = 'sm' | 'md' | 'lg';
|
|
47
69
|
type AvatarProps = Omit<HTMLAttributes<HTMLSpanElement>, 'children'> & {
|
|
48
70
|
name: string;
|
|
@@ -59,14 +81,20 @@ declare const Avatar: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<
|
|
|
59
81
|
} & react.RefAttributes<HTMLSpanElement>>;
|
|
60
82
|
|
|
61
83
|
declare const badgeStyles: (props?: ({
|
|
62
|
-
variant?: "default" | "success" | "warning" | "danger" | "info" | "solid" | null | undefined;
|
|
84
|
+
variant?: "default" | "brand" | "success" | "warning" | "danger" | "info" | "solid" | "turtle" | "purple" | null | undefined;
|
|
85
|
+
subtle?: boolean | null | undefined;
|
|
63
86
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
64
87
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
65
|
-
type BadgeProps = ComponentPropsWithoutRef<'span'> & VariantProps<typeof badgeStyles
|
|
88
|
+
type BadgeProps = ComponentPropsWithoutRef<'span'> & VariantProps<typeof badgeStyles> & {
|
|
89
|
+
icon?: ReactNode;
|
|
90
|
+
};
|
|
66
91
|
declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & VariantProps<(props?: ({
|
|
67
|
-
variant?: "default" | "success" | "warning" | "danger" | "info" | "solid" | null | undefined;
|
|
92
|
+
variant?: "default" | "brand" | "success" | "warning" | "danger" | "info" | "solid" | "turtle" | "purple" | null | undefined;
|
|
93
|
+
subtle?: boolean | null | undefined;
|
|
68
94
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
69
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> &
|
|
95
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
96
|
+
icon?: ReactNode;
|
|
97
|
+
} & react.RefAttributes<HTMLSpanElement>>;
|
|
70
98
|
|
|
71
99
|
type BoxProps = {
|
|
72
100
|
as?: ElementType;
|
|
@@ -87,24 +115,28 @@ type BreadcrumbProps = {
|
|
|
87
115
|
|
|
88
116
|
declare function Breadcrumb({ items, className, linkComponent, }: BreadcrumbProps): react.JSX.Element;
|
|
89
117
|
|
|
90
|
-
declare const Button: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & class_variance_authority.VariantProps<(props?: ({
|
|
91
|
-
variant?: "primary" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
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;
|
|
92
120
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
93
|
-
|
|
121
|
+
iconOnly?: boolean | null | undefined;
|
|
122
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "iconOnly"> & {
|
|
94
123
|
leftIcon?: react.ReactNode;
|
|
95
124
|
rightIcon?: react.ReactNode;
|
|
125
|
+
icon?: react.ReactNode;
|
|
96
126
|
loading?: boolean;
|
|
97
127
|
asChild?: boolean;
|
|
98
128
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
99
129
|
|
|
100
130
|
declare const buttonStyles: (props?: ({
|
|
101
|
-
variant?: "primary" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
131
|
+
variant?: "link" | "success" | "warning" | "danger" | "info" | "primary" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
102
132
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
133
|
+
iconOnly?: boolean | null | undefined;
|
|
103
134
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
104
135
|
|
|
105
|
-
type ButtonProps = ComponentPropsWithoutRef<'button'> & VariantProps<typeof buttonStyles> & {
|
|
136
|
+
type ButtonProps = ComponentPropsWithoutRef<'button'> & Omit<VariantProps<typeof buttonStyles>, 'iconOnly'> & {
|
|
106
137
|
leftIcon?: ReactNode;
|
|
107
138
|
rightIcon?: ReactNode;
|
|
139
|
+
icon?: ReactNode;
|
|
108
140
|
loading?: boolean;
|
|
109
141
|
asChild?: boolean;
|
|
110
142
|
};
|
|
@@ -130,7 +162,7 @@ declare const Card: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps
|
|
|
130
162
|
Footer: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
131
163
|
};
|
|
132
164
|
|
|
133
|
-
declare const MaskedInput: react.ForwardRefExoticComponent<Omit<react.InputHTMLAttributes<HTMLInputElement>, "
|
|
165
|
+
declare const MaskedInput: react.ForwardRefExoticComponent<Omit<react.InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "onChange"> & {
|
|
134
166
|
mask: string | string[];
|
|
135
167
|
value?: string;
|
|
136
168
|
onValueChange?: (formatted: string, raw: string) => void;
|
|
@@ -138,11 +170,12 @@ declare const MaskedInput: react.ForwardRefExoticComponent<Omit<react.InputHTMLA
|
|
|
138
170
|
helper?: string;
|
|
139
171
|
error?: string;
|
|
140
172
|
floating?: boolean;
|
|
173
|
+
size?: "sm" | "md" | "lg";
|
|
141
174
|
surface?: "light" | "dark";
|
|
142
175
|
normalizeRaw?: (raw: string) => string;
|
|
143
176
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
144
177
|
|
|
145
|
-
type MaskedInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> & {
|
|
178
|
+
type MaskedInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'size'> & {
|
|
146
179
|
mask: string | string[];
|
|
147
180
|
value?: string;
|
|
148
181
|
onValueChange?: (formatted: string, raw: string) => void;
|
|
@@ -150,6 +183,7 @@ type MaskedInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'o
|
|
|
150
183
|
helper?: string;
|
|
151
184
|
error?: string;
|
|
152
185
|
floating?: boolean;
|
|
186
|
+
size?: 'sm' | 'md' | 'lg';
|
|
153
187
|
surface?: 'light' | 'dark';
|
|
154
188
|
normalizeRaw?: (raw: string) => string;
|
|
155
189
|
};
|
|
@@ -228,16 +262,20 @@ declare const Combobox: react.ForwardRefExoticComponent<Omit<react.HTMLAttribute
|
|
|
228
262
|
|
|
229
263
|
type ConfirmDialogVariant = 'danger' | 'warn' | 'info';
|
|
230
264
|
type ConfirmDialogProps = {
|
|
231
|
-
trigger
|
|
265
|
+
trigger?: ReactNode;
|
|
266
|
+
open?: boolean;
|
|
267
|
+
onOpenChange?: (open: boolean) => void;
|
|
232
268
|
title: string;
|
|
233
269
|
description?: ReactNode;
|
|
270
|
+
children?: ReactNode;
|
|
234
271
|
confirmLabel?: string;
|
|
235
272
|
cancelLabel?: string;
|
|
236
273
|
variant?: ConfirmDialogVariant;
|
|
237
274
|
onConfirm: () => void | Promise<void>;
|
|
238
275
|
disabled?: boolean;
|
|
276
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
239
277
|
};
|
|
240
|
-
declare function ConfirmDialog({ trigger, title, description, confirmLabel, cancelLabel, variant, onConfirm, disabled, }: ConfirmDialogProps): react.JSX.Element;
|
|
278
|
+
declare function ConfirmDialog({ trigger, open: openProp, onOpenChange, title, description, children, confirmLabel, cancelLabel, variant, onConfirm, disabled, onCloseAutoFocus, }: ConfirmDialogProps): react.JSX.Element;
|
|
241
279
|
|
|
242
280
|
type DateInputProps = Omit<ComponentPropsWithoutRef<'input'>, 'value' | 'defaultValue' | 'onChange' | 'size'> & {
|
|
243
281
|
value?: Date;
|
|
@@ -256,7 +294,7 @@ type DateInputProps = Omit<ComponentPropsWithoutRef<'input'>, 'value' | 'default
|
|
|
256
294
|
locale?: typeof ptBR;
|
|
257
295
|
closeLabel?: string;
|
|
258
296
|
};
|
|
259
|
-
declare const DateInput: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "
|
|
297
|
+
declare const DateInput: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "value" | "defaultValue" | "onChange"> & {
|
|
260
298
|
value?: Date;
|
|
261
299
|
defaultValue?: Date;
|
|
262
300
|
onValueChange?: (value: Date | undefined) => void;
|
|
@@ -291,7 +329,7 @@ type DateRangeInputProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'
|
|
|
291
329
|
closeLabel?: string;
|
|
292
330
|
};
|
|
293
331
|
|
|
294
|
-
declare const DateRangeInput: react.ForwardRefExoticComponent<Omit<react.ButtonHTMLAttributes<HTMLButtonElement>, "
|
|
332
|
+
declare const DateRangeInput: react.ForwardRefExoticComponent<Omit<react.ButtonHTMLAttributes<HTMLButtonElement>, "value" | "defaultValue" | "onChange"> & {
|
|
295
333
|
value?: DateRange;
|
|
296
334
|
defaultValue?: DateRange;
|
|
297
335
|
onChange?: (range: DateRange) => void;
|
|
@@ -329,7 +367,10 @@ declare const DialogRoot: typeof DialogRootBase & {
|
|
|
329
367
|
Header: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
330
368
|
Body: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
331
369
|
Footer: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
332
|
-
Title: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>, "ref"> &
|
|
370
|
+
Title: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>, "ref"> & {
|
|
371
|
+
icon?: ReactNode;
|
|
372
|
+
iconClassName?: string;
|
|
373
|
+
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
333
374
|
Description: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
|
|
334
375
|
};
|
|
335
376
|
|
|
@@ -375,6 +416,7 @@ type DropdownProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root>
|
|
|
375
416
|
};
|
|
376
417
|
type DropdownContentProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>;
|
|
377
418
|
type DropdownItemProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & VariantProps<typeof dropdownItemStyles>;
|
|
419
|
+
type DropdownCheckboxItemProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>;
|
|
378
420
|
declare function DropdownRoot({ children, ...props }: DropdownProps): react.JSX.Element;
|
|
379
421
|
declare namespace DropdownRoot {
|
|
380
422
|
var displayName: string;
|
|
@@ -385,6 +427,7 @@ declare const Dropdown: typeof DropdownRoot & {
|
|
|
385
427
|
Item: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
386
428
|
variant?: "default" | "danger" | null | undefined;
|
|
387
429
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & react.RefAttributes<HTMLDivElement>>;
|
|
430
|
+
CheckboxItem: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
388
431
|
Label: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
389
432
|
Separator: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
390
433
|
Group: react.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -447,6 +490,17 @@ type SourceProps = CommonProps & {
|
|
|
447
490
|
type FilePreviewDialogProps = FileProps | SourceProps;
|
|
448
491
|
declare function FilePreviewDialog(props: FilePreviewDialogProps): react.JSX.Element;
|
|
449
492
|
|
|
493
|
+
type DocumentUploadCardTone = 'neutral' | 'success' | 'warning' | 'danger';
|
|
494
|
+
type DocumentUploadCardSentFile = {
|
|
495
|
+
name: string;
|
|
496
|
+
detail?: ReactNode;
|
|
497
|
+
tone?: DocumentUploadCardTone;
|
|
498
|
+
thumbnail?: ReactNode;
|
|
499
|
+
thumbnailUrl?: string;
|
|
500
|
+
previewUrl?: string;
|
|
501
|
+
previewMimeType?: string;
|
|
502
|
+
renderPreview?: (trigger: ReactElement) => ReactNode;
|
|
503
|
+
};
|
|
450
504
|
type DocumentUploadCardProps = {
|
|
451
505
|
label: string;
|
|
452
506
|
hint?: ReactNode;
|
|
@@ -457,8 +511,21 @@ type DocumentUploadCardProps = {
|
|
|
457
511
|
maxSize?: number;
|
|
458
512
|
validate?: (file: File) => string | null;
|
|
459
513
|
onValidationError?: (message: string) => void;
|
|
514
|
+
sent?: DocumentUploadCardSentFile | null;
|
|
515
|
+
dropzonePlaceholder?: ReactNode;
|
|
516
|
+
dropzoneHint?: ReactNode;
|
|
517
|
+
showLabel?: boolean;
|
|
518
|
+
required?: boolean;
|
|
519
|
+
icon?: ReactNode;
|
|
520
|
+
bordered?: boolean;
|
|
521
|
+
size?: 'default' | 'compact';
|
|
522
|
+
selectLabel?: string;
|
|
523
|
+
replaceLabel?: string;
|
|
524
|
+
removeLabel?: string;
|
|
525
|
+
previewLabel?: string;
|
|
526
|
+
className?: string;
|
|
460
527
|
};
|
|
461
|
-
declare function DocumentUploadCard({ label, hint, error, file, onSelect, accept, maxSize, validate, onValidationError, }: DocumentUploadCardProps): react.JSX.Element;
|
|
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;
|
|
462
529
|
|
|
463
530
|
type FileThumbnailProps = {
|
|
464
531
|
/** Direct image URL. Takes precedence over `loadPreview`. */
|
|
@@ -488,6 +555,9 @@ declare const FileUpload: react.ForwardRefExoticComponent<Omit<react.HTMLAttribu
|
|
|
488
555
|
files?: File[];
|
|
489
556
|
onFileRemove?: (file: File, index: number) => void;
|
|
490
557
|
dropzonePlaceholder?: react.ReactNode;
|
|
558
|
+
dropzoneHint?: react.ReactNode;
|
|
559
|
+
required?: boolean;
|
|
560
|
+
icon?: react.ReactNode;
|
|
491
561
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
492
562
|
|
|
493
563
|
type FileUploadProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children' | 'onDrop'> & {
|
|
@@ -503,24 +573,160 @@ type FileUploadProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'childr
|
|
|
503
573
|
files?: File[];
|
|
504
574
|
onFileRemove?: (file: File, index: number) => void;
|
|
505
575
|
dropzonePlaceholder?: ReactNode;
|
|
576
|
+
dropzoneHint?: ReactNode;
|
|
577
|
+
required?: boolean;
|
|
578
|
+
icon?: ReactNode;
|
|
506
579
|
};
|
|
507
580
|
|
|
508
|
-
declare const
|
|
509
|
-
variant?: "success" | "warning" | "danger" | "info" | null | undefined;
|
|
581
|
+
declare const infoBoxStyles: (props?: ({
|
|
582
|
+
variant?: "default" | "success" | "warning" | "danger" | "info" | "turtle" | "purple" | null | undefined;
|
|
510
583
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
511
|
-
type
|
|
584
|
+
type InfoBoxVariant = NonNullable<VariantProps<typeof infoBoxStyles>['variant']>;
|
|
585
|
+
type InfoBoxProps = Omit<ComponentPropsWithoutRef<'div'>, 'title'> & VariantProps<typeof infoBoxStyles> & {
|
|
512
586
|
title?: ReactNode;
|
|
513
587
|
icon?: ReactNode;
|
|
514
588
|
hideIcon?: boolean;
|
|
589
|
+
action?: ReactNode;
|
|
590
|
+
actionPlacement?: 'end' | 'bottom';
|
|
591
|
+
onClose?: () => void;
|
|
592
|
+
closeLabel?: string;
|
|
515
593
|
};
|
|
516
|
-
declare const
|
|
517
|
-
variant?: "success" | "warning" | "danger" | "info" | null | undefined;
|
|
594
|
+
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;
|
|
518
596
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
519
597
|
title?: ReactNode;
|
|
520
598
|
icon?: ReactNode;
|
|
521
599
|
hideIcon?: boolean;
|
|
600
|
+
action?: ReactNode;
|
|
601
|
+
actionPlacement?: "end" | "bottom";
|
|
602
|
+
onClose?: () => void;
|
|
603
|
+
closeLabel?: string;
|
|
604
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
605
|
+
|
|
606
|
+
type FormAlertProps = InfoBoxProps;
|
|
607
|
+
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;
|
|
609
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
610
|
+
title?: react.ReactNode;
|
|
611
|
+
icon?: react.ReactNode;
|
|
612
|
+
hideIcon?: boolean;
|
|
613
|
+
action?: react.ReactNode;
|
|
614
|
+
actionPlacement?: "end" | "bottom";
|
|
615
|
+
onClose?: () => void;
|
|
616
|
+
closeLabel?: string;
|
|
617
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
618
|
+
|
|
619
|
+
type LogoVariant = 'full' | 'symbol';
|
|
620
|
+
type LogoTone = 'color' | 'mono';
|
|
621
|
+
type LogoProps = Omit<SVGAttributes<SVGSVGElement>, 'children'> & {
|
|
622
|
+
variant?: LogoVariant;
|
|
623
|
+
tone?: LogoTone;
|
|
624
|
+
title?: string;
|
|
625
|
+
};
|
|
626
|
+
declare const Logo: react.ForwardRefExoticComponent<Omit<SVGAttributes<SVGSVGElement>, "children"> & {
|
|
627
|
+
variant?: LogoVariant;
|
|
628
|
+
tone?: LogoTone;
|
|
629
|
+
title?: string;
|
|
630
|
+
} & react.RefAttributes<SVGSVGElement>>;
|
|
631
|
+
|
|
632
|
+
type ContentCardProps = Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
633
|
+
label: ReactNode;
|
|
634
|
+
};
|
|
635
|
+
declare const ContentCard: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
636
|
+
label: ReactNode;
|
|
637
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
638
|
+
|
|
639
|
+
type FieldsCardVariant = 'compact' | 'large';
|
|
640
|
+
type FieldsCardField = {
|
|
641
|
+
id?: string;
|
|
642
|
+
label: ReactNode;
|
|
643
|
+
value: ReactNode;
|
|
644
|
+
};
|
|
645
|
+
type FieldsCardProps = Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
646
|
+
fields: FieldsCardField[];
|
|
647
|
+
variant?: FieldsCardVariant;
|
|
648
|
+
title?: ReactNode;
|
|
649
|
+
count?: number;
|
|
650
|
+
countLabel?: string;
|
|
651
|
+
};
|
|
652
|
+
declare const FieldsCard: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
653
|
+
fields: FieldsCardField[];
|
|
654
|
+
variant?: FieldsCardVariant;
|
|
655
|
+
title?: ReactNode;
|
|
656
|
+
count?: number;
|
|
657
|
+
countLabel?: string;
|
|
522
658
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
523
659
|
|
|
660
|
+
type FileInfoCardProps = Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
661
|
+
thumbnail?: ReactNode;
|
|
662
|
+
label: ReactNode;
|
|
663
|
+
name: ReactNode;
|
|
664
|
+
detailLabel?: ReactNode;
|
|
665
|
+
detail?: ReactNode;
|
|
666
|
+
onView?: () => void;
|
|
667
|
+
viewLabel?: string;
|
|
668
|
+
size?: 'lg' | 'sm';
|
|
669
|
+
badge?: ReactNode;
|
|
670
|
+
};
|
|
671
|
+
declare const FileInfoCard: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
672
|
+
thumbnail?: ReactNode;
|
|
673
|
+
label: ReactNode;
|
|
674
|
+
name: ReactNode;
|
|
675
|
+
detailLabel?: ReactNode;
|
|
676
|
+
detail?: ReactNode;
|
|
677
|
+
onView?: () => void;
|
|
678
|
+
viewLabel?: string;
|
|
679
|
+
size?: "lg" | "sm";
|
|
680
|
+
badge?: ReactNode;
|
|
681
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
682
|
+
|
|
683
|
+
type ProgressItem = {
|
|
684
|
+
id: string;
|
|
685
|
+
label: ReactNode;
|
|
686
|
+
value: number;
|
|
687
|
+
description?: ReactNode;
|
|
688
|
+
};
|
|
689
|
+
type ProgressProps = Omit<ComponentPropsWithoutRef<'ul'>, 'children'> & {
|
|
690
|
+
items: ProgressItem[];
|
|
691
|
+
showValue?: boolean;
|
|
692
|
+
};
|
|
693
|
+
declare const Progress: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref">, "children"> & {
|
|
694
|
+
items: ProgressItem[];
|
|
695
|
+
showValue?: boolean;
|
|
696
|
+
} & react.RefAttributes<HTMLUListElement>>;
|
|
697
|
+
|
|
698
|
+
type ProgressTitleProps = Omit<ComponentPropsWithoutRef<'div'>, 'title'> & {
|
|
699
|
+
value: number;
|
|
700
|
+
title?: ReactNode;
|
|
701
|
+
description?: ReactNode;
|
|
702
|
+
size?: number;
|
|
703
|
+
strokeWidth?: number;
|
|
704
|
+
progressLabel?: string;
|
|
705
|
+
};
|
|
706
|
+
declare const ProgressTitle: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "title"> & {
|
|
707
|
+
value: number;
|
|
708
|
+
title?: ReactNode;
|
|
709
|
+
description?: ReactNode;
|
|
710
|
+
size?: number;
|
|
711
|
+
strokeWidth?: number;
|
|
712
|
+
progressLabel?: string;
|
|
713
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
714
|
+
|
|
715
|
+
type ChecklistStatus = 'approved' | 'review' | 'pending';
|
|
716
|
+
type ChecklistItem = {
|
|
717
|
+
id: string;
|
|
718
|
+
label: ReactNode;
|
|
719
|
+
status: ChecklistStatus;
|
|
720
|
+
actionLabel?: ReactNode;
|
|
721
|
+
onSelect?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
722
|
+
};
|
|
723
|
+
type ChecklistProps = Omit<ComponentPropsWithoutRef<'ul'>, 'children'> & {
|
|
724
|
+
items: ChecklistItem[];
|
|
725
|
+
};
|
|
726
|
+
declare const Checklist: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref">, "children"> & {
|
|
727
|
+
items: ChecklistItem[];
|
|
728
|
+
} & react.RefAttributes<HTMLUListElement>>;
|
|
729
|
+
|
|
524
730
|
type FullScreenLoadingProps = {
|
|
525
731
|
message?: ReactNode;
|
|
526
732
|
className?: string;
|
|
@@ -531,14 +737,14 @@ declare namespace FullScreenLoading {
|
|
|
531
737
|
}
|
|
532
738
|
|
|
533
739
|
declare const headingStyles: (props?: ({
|
|
534
|
-
size?: "sm" | "md" | "lg" | "
|
|
740
|
+
size?: "sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
535
741
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
536
742
|
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
537
743
|
type HeadingProps = ComponentPropsWithoutRef<'h1'> & VariantProps<typeof headingStyles> & {
|
|
538
744
|
level?: HeadingLevel;
|
|
539
745
|
};
|
|
540
746
|
declare const Heading: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & VariantProps<(props?: ({
|
|
541
|
-
size?: "sm" | "md" | "lg" | "
|
|
747
|
+
size?: "sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
542
748
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
543
749
|
level?: HeadingLevel;
|
|
544
750
|
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -584,6 +790,7 @@ declare const ImageUpload: react.ForwardRefExoticComponent<ImageUploadProps & re
|
|
|
584
790
|
declare const inputContainerStyles: (props?: ({
|
|
585
791
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
586
792
|
hasError?: boolean | null | undefined;
|
|
793
|
+
hasIcon?: boolean | null | undefined;
|
|
587
794
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
588
795
|
|
|
589
796
|
type InputProps = Omit<ComponentPropsWithoutRef<'input'>, 'size'> & Pick<VariantProps<typeof inputContainerStyles>, 'size'> & {
|
|
@@ -599,6 +806,7 @@ type InputProps = Omit<ComponentPropsWithoutRef<'input'>, 'size'> & Pick<Variant
|
|
|
599
806
|
declare const Input: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size"> & Pick<VariantProps<(props?: ({
|
|
600
807
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
601
808
|
hasError?: boolean | null | undefined;
|
|
809
|
+
hasIcon?: boolean | null | undefined;
|
|
602
810
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "size"> & {
|
|
603
811
|
label?: string;
|
|
604
812
|
helper?: string;
|
|
@@ -612,9 +820,11 @@ declare const Input: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTM
|
|
|
612
820
|
|
|
613
821
|
type LabelProps = ComponentPropsWithoutRef<'label'> & {
|
|
614
822
|
required?: boolean;
|
|
823
|
+
error?: boolean;
|
|
615
824
|
};
|
|
616
825
|
declare const Label: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
617
826
|
required?: boolean;
|
|
827
|
+
error?: boolean;
|
|
618
828
|
} & react.RefAttributes<HTMLLabelElement>>;
|
|
619
829
|
|
|
620
830
|
type MoneyInputProps = Omit<InputProps, 'value' | 'onChange'> & {
|
|
@@ -673,10 +883,14 @@ type OtpInputProps = {
|
|
|
673
883
|
name?: string;
|
|
674
884
|
length?: number;
|
|
675
885
|
surface?: 'light' | 'dark';
|
|
886
|
+
label?: string;
|
|
887
|
+
required?: boolean;
|
|
888
|
+
helper?: string;
|
|
676
889
|
error?: string;
|
|
677
890
|
disabled?: boolean;
|
|
678
891
|
autoFocus?: boolean;
|
|
679
892
|
className?: string;
|
|
893
|
+
ariaLabel?: string;
|
|
680
894
|
};
|
|
681
895
|
declare const OtpInput: react.ForwardRefExoticComponent<OtpInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
682
896
|
|
|
@@ -716,6 +930,7 @@ declare const Popover: typeof PopoverRoot & {
|
|
|
716
930
|
type RadioItem = {
|
|
717
931
|
value: string;
|
|
718
932
|
label: ReactNode;
|
|
933
|
+
helper?: ReactNode;
|
|
719
934
|
disabled?: boolean;
|
|
720
935
|
};
|
|
721
936
|
type RadioGroupProps = ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> & {
|
|
@@ -735,6 +950,20 @@ declare const RadioGroup: react.ForwardRefExoticComponent<Omit<RadioGroupPrimiti
|
|
|
735
950
|
orientation?: "horizontal" | "vertical";
|
|
736
951
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
737
952
|
|
|
953
|
+
type SelectableCardIndicator = 'checkbox' | 'radio' | 'none';
|
|
954
|
+
type SelectableCardProps = Omit<ComponentPropsWithoutRef<'button'>, 'onChange'> & {
|
|
955
|
+
selected?: boolean;
|
|
956
|
+
defaultSelected?: boolean;
|
|
957
|
+
onSelectedChange?: (selected: boolean) => void;
|
|
958
|
+
indicator?: SelectableCardIndicator;
|
|
959
|
+
};
|
|
960
|
+
declare const SelectableCard: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "onChange"> & {
|
|
961
|
+
selected?: boolean;
|
|
962
|
+
defaultSelected?: boolean;
|
|
963
|
+
onSelectedChange?: (selected: boolean) => void;
|
|
964
|
+
indicator?: SelectableCardIndicator;
|
|
965
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
966
|
+
|
|
738
967
|
type SeparatorProps = ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>;
|
|
739
968
|
declare const Separator: react.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
740
969
|
|
|
@@ -745,15 +974,18 @@ type StepperStep = {
|
|
|
745
974
|
description?: string;
|
|
746
975
|
state: StepState;
|
|
747
976
|
optional?: boolean;
|
|
977
|
+
disabled?: boolean;
|
|
748
978
|
};
|
|
749
979
|
type StepperProps = Omit<HTMLAttributes<HTMLOListElement>, 'children'> & {
|
|
750
980
|
steps: StepperStep[];
|
|
751
981
|
orientation?: 'horizontal' | 'vertical';
|
|
982
|
+
onStepClick?: (id: string) => void;
|
|
752
983
|
};
|
|
753
984
|
|
|
754
985
|
declare const Stepper: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLOListElement>, "children"> & {
|
|
755
986
|
steps: StepperStep[];
|
|
756
987
|
orientation?: "horizontal" | "vertical";
|
|
988
|
+
onStepClick?: (id: string) => void;
|
|
757
989
|
} & react.RefAttributes<HTMLOListElement>>;
|
|
758
990
|
|
|
759
991
|
declare const skeletonStyles: (props?: ({
|
|
@@ -818,9 +1050,18 @@ declare const Switch: react.ForwardRefExoticComponent<Omit<SwitchPrimitive.Switc
|
|
|
818
1050
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
819
1051
|
|
|
820
1052
|
type TabsVariant = 'pill' | 'underline';
|
|
1053
|
+
type TabsTriggerTone = 'brand' | 'brand-subtle' | 'success' | 'warning' | 'danger' | 'info' | 'turtle' | 'purple';
|
|
1054
|
+
type TabsTriggerProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> & {
|
|
1055
|
+
icon?: ReactNode;
|
|
1056
|
+
count?: ReactNode;
|
|
1057
|
+
tone?: TabsTriggerTone;
|
|
1058
|
+
};
|
|
821
1059
|
type TabsProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Root> & {
|
|
822
1060
|
children?: ReactNode;
|
|
823
1061
|
};
|
|
1062
|
+
type TabsListProps = ComponentPropsWithoutRef<typeof TabsPrimitive.List> & {
|
|
1063
|
+
variant?: TabsVariant;
|
|
1064
|
+
};
|
|
824
1065
|
declare function TabsRoot({ children, className, ...props }: TabsProps): react.JSX.Element;
|
|
825
1066
|
declare namespace TabsRoot {
|
|
826
1067
|
var displayName: string;
|
|
@@ -829,28 +1070,25 @@ declare const Tabs: typeof TabsRoot & {
|
|
|
829
1070
|
List: react.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
830
1071
|
variant?: TabsVariant;
|
|
831
1072
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
832
|
-
Trigger: react.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> &
|
|
1073
|
+
Trigger: react.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
1074
|
+
icon?: ReactNode;
|
|
1075
|
+
count?: ReactNode;
|
|
1076
|
+
tone?: TabsTriggerTone;
|
|
1077
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
833
1078
|
Content: react.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
834
1079
|
};
|
|
835
1080
|
|
|
836
1081
|
declare const ThemeToggle: react.ForwardRefExoticComponent<Omit<react.ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
837
1082
|
size?: "sm" | "md" | "lg";
|
|
838
|
-
ariaLabelLight?: string;
|
|
839
|
-
ariaLabelDark?: string;
|
|
840
|
-
storageKey?: string;
|
|
841
1083
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
842
1084
|
|
|
843
|
-
type ThemeMode = 'light' | 'dark';
|
|
844
1085
|
type ThemeToggleProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> & {
|
|
845
1086
|
size?: 'sm' | 'md' | 'lg';
|
|
846
|
-
ariaLabelLight?: string;
|
|
847
|
-
ariaLabelDark?: string;
|
|
848
|
-
storageKey?: string;
|
|
849
1087
|
};
|
|
850
1088
|
|
|
851
1089
|
declare const textStyles: (props?: ({
|
|
852
1090
|
size?: "sm" | "lg" | "base" | "xs" | null | undefined;
|
|
853
|
-
color?: "default" | "danger" | "
|
|
1091
|
+
color?: "default" | "danger" | "subtle" | "muted" | null | undefined;
|
|
854
1092
|
weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
|
|
855
1093
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
856
1094
|
type TextProps = (ComponentPropsWithoutRef<'p'> & VariantProps<typeof textStyles> & {
|
|
@@ -876,6 +1114,24 @@ type TextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
|
876
1114
|
required?: boolean;
|
|
877
1115
|
};
|
|
878
1116
|
|
|
1117
|
+
type ToggleChipTone = TabsTriggerTone;
|
|
1118
|
+
type ToggleChipProps = Omit<ComponentPropsWithoutRef<'button'>, 'onChange'> & {
|
|
1119
|
+
pressed?: boolean;
|
|
1120
|
+
defaultPressed?: boolean;
|
|
1121
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
1122
|
+
tone?: ToggleChipTone;
|
|
1123
|
+
icon?: ReactNode;
|
|
1124
|
+
count?: ReactNode;
|
|
1125
|
+
};
|
|
1126
|
+
declare const ToggleChip: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "onChange"> & {
|
|
1127
|
+
pressed?: boolean;
|
|
1128
|
+
defaultPressed?: boolean;
|
|
1129
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
1130
|
+
tone?: ToggleChipTone;
|
|
1131
|
+
icon?: ReactNode;
|
|
1132
|
+
count?: ReactNode;
|
|
1133
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1134
|
+
|
|
879
1135
|
type TooltipProps = {
|
|
880
1136
|
content: ReactNode;
|
|
881
1137
|
children: ReactNode;
|
|
@@ -906,7 +1162,7 @@ type ToasterProps = {
|
|
|
906
1162
|
};
|
|
907
1163
|
declare function Toaster({ duration, visibleToasts, expand, position, className, }: ToasterProps): react.JSX.Element;
|
|
908
1164
|
|
|
909
|
-
type ToastVariant = 'default' | 'success' | 'warning' | 'danger' | 'info';
|
|
1165
|
+
type ToastVariant = 'default' | 'success' | 'warning' | 'danger' | 'info' | 'turtle' | 'purple';
|
|
910
1166
|
type ToastOptions = {
|
|
911
1167
|
title?: ReactNode;
|
|
912
1168
|
description?: ReactNode;
|
|
@@ -923,6 +1179,8 @@ type ToastFn = {
|
|
|
923
1179
|
warning: (input: string | ToastOptions) => string;
|
|
924
1180
|
danger: (input: string | ToastOptions) => string;
|
|
925
1181
|
info: (input: string | ToastOptions) => string;
|
|
1182
|
+
turtle: (input: string | ToastOptions) => string;
|
|
1183
|
+
purple: (input: string | ToastOptions) => string;
|
|
926
1184
|
};
|
|
927
1185
|
declare const toast: ToastFn;
|
|
928
1186
|
declare function dismissToast(id: string): void;
|
|
@@ -931,6 +1189,21 @@ declare function useToast(): {
|
|
|
931
1189
|
dismiss: (id: string) => void;
|
|
932
1190
|
};
|
|
933
1191
|
|
|
1192
|
+
type TitleSelectOption = {
|
|
1193
|
+
value: string;
|
|
1194
|
+
label: ReactNode;
|
|
1195
|
+
};
|
|
1196
|
+
type TitleSelectProps = {
|
|
1197
|
+
options: TitleSelectOption[];
|
|
1198
|
+
value: string;
|
|
1199
|
+
onValueChange?: (value: string) => void;
|
|
1200
|
+
icon?: ReactNode;
|
|
1201
|
+
iconClassName?: string;
|
|
1202
|
+
'aria-label'?: string;
|
|
1203
|
+
className?: string;
|
|
1204
|
+
};
|
|
1205
|
+
declare const TitleSelect: react.ForwardRefExoticComponent<TitleSelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
1206
|
+
|
|
934
1207
|
type SidebarItem = {
|
|
935
1208
|
id: string;
|
|
936
1209
|
label: string;
|
|
@@ -953,10 +1226,13 @@ type SidebarProps = Omit<HTMLAttributes<HTMLElement>, 'children'> & {
|
|
|
953
1226
|
renderLink?: (item: SidebarItem, children: ReactNode) => ReactNode;
|
|
954
1227
|
linkComponent?: DsLinkComponent;
|
|
955
1228
|
headerSlot?: ReactNode;
|
|
1229
|
+
collapsedHeaderSlot?: ReactNode;
|
|
956
1230
|
ariaLabel?: string;
|
|
957
1231
|
collapsedWidth?: string;
|
|
958
1232
|
expandedWidth?: string;
|
|
959
1233
|
enableShortcut?: boolean;
|
|
1234
|
+
collapseLabel?: string;
|
|
1235
|
+
expandLabel?: string;
|
|
960
1236
|
};
|
|
961
1237
|
|
|
962
1238
|
declare const Sidebar: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLElement>, "children"> & {
|
|
@@ -968,10 +1244,13 @@ declare const Sidebar: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes
|
|
|
968
1244
|
renderLink?: (item: SidebarItem, children: ReactNode) => ReactNode;
|
|
969
1245
|
linkComponent?: DsLinkComponent;
|
|
970
1246
|
headerSlot?: ReactNode;
|
|
1247
|
+
collapsedHeaderSlot?: ReactNode;
|
|
971
1248
|
ariaLabel?: string;
|
|
972
1249
|
collapsedWidth?: string;
|
|
973
1250
|
expandedWidth?: string;
|
|
974
1251
|
enableShortcut?: boolean;
|
|
1252
|
+
collapseLabel?: string;
|
|
1253
|
+
expandLabel?: string;
|
|
975
1254
|
} & react.RefAttributes<HTMLElement>>;
|
|
976
1255
|
|
|
977
1256
|
type AppShellProps = {
|
|
@@ -985,14 +1264,15 @@ type AppShellProps = {
|
|
|
985
1264
|
themeToggle?: ReactNode;
|
|
986
1265
|
userMenu?: ReactNode;
|
|
987
1266
|
headerSlot?: ReactNode;
|
|
1267
|
+
collapsedHeaderSlot?: ReactNode;
|
|
988
1268
|
defaultSidebarCollapsed?: boolean;
|
|
989
1269
|
};
|
|
990
|
-
declare function AppShell({ children, sidebarGroups, currentPath, linkComponent, pageTitle, searchTrigger, notificationCenter, themeToggle, userMenu, headerSlot, defaultSidebarCollapsed, }: AppShellProps): react.JSX.Element;
|
|
1270
|
+
declare function AppShell({ children, sidebarGroups, currentPath, linkComponent, pageTitle, searchTrigger, notificationCenter, themeToggle, userMenu, headerSlot, collapsedHeaderSlot, defaultSidebarCollapsed, }: AppShellProps): react.JSX.Element;
|
|
991
1271
|
declare namespace AppShell {
|
|
992
1272
|
var displayName: string;
|
|
993
1273
|
}
|
|
994
1274
|
|
|
995
|
-
type KpiHeroTone = 'brand' | 'info' | '
|
|
1275
|
+
type KpiHeroTone = 'brand' | 'success' | 'warning' | 'error' | 'info' | 'turtle' | 'purple' | 'warn' | 'danger';
|
|
996
1276
|
type KpiHeroTrendDirection = 'up' | 'down' | 'flat';
|
|
997
1277
|
type KpiHeroTrend = {
|
|
998
1278
|
direction: KpiHeroTrendDirection;
|
|
@@ -1004,14 +1284,19 @@ type KpiHeroProps = {
|
|
|
1004
1284
|
sub?: ReactNode;
|
|
1005
1285
|
trend?: KpiHeroTrend;
|
|
1006
1286
|
icon: ReactNode;
|
|
1287
|
+
prefix?: ReactNode;
|
|
1288
|
+
badge?: ReactNode;
|
|
1289
|
+
loading?: boolean;
|
|
1007
1290
|
tone: KpiHeroTone;
|
|
1008
1291
|
sparkline?: number[];
|
|
1009
1292
|
to?: string;
|
|
1010
1293
|
cta?: string;
|
|
1011
1294
|
linkComponent?: DsLinkComponent;
|
|
1295
|
+
onSelect?: () => void;
|
|
1296
|
+
selected?: boolean;
|
|
1012
1297
|
};
|
|
1013
1298
|
|
|
1014
|
-
declare function KpiHero({ label, value, sub, trend, icon, tone, sparkline, to, cta, linkComponent, }: KpiHeroProps): react.JSX.Element;
|
|
1299
|
+
declare function KpiHero({ label, value, sub, trend, icon, tone, prefix, badge, loading, sparkline, to, cta, linkComponent, onSelect, selected, }: KpiHeroProps): react.JSX.Element;
|
|
1015
1300
|
|
|
1016
1301
|
type DashboardReason = 'permission_denied' | 'not_applicable_for_scope' | 'source_data_missing' | 'not_implemented' | 'invalid_period';
|
|
1017
1302
|
type DashboardBlockData = {
|
|
@@ -1081,6 +1366,39 @@ type DataTableComponent = <T>(props: DataTableProps<T> & {
|
|
|
1081
1366
|
}) => ReactNode;
|
|
1082
1367
|
declare const DataTable: DataTableComponent;
|
|
1083
1368
|
|
|
1369
|
+
type DataTableTextCellProps = Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
1370
|
+
title?: ReactNode;
|
|
1371
|
+
info?: ReactNode;
|
|
1372
|
+
};
|
|
1373
|
+
declare const DataTableTextCell: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
1374
|
+
title?: ReactNode;
|
|
1375
|
+
info?: ReactNode;
|
|
1376
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
1377
|
+
type DataTableLinkCellProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1378
|
+
hideIcon?: boolean;
|
|
1379
|
+
asChild?: boolean;
|
|
1380
|
+
};
|
|
1381
|
+
declare const DataTableLinkCell: react.ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1382
|
+
hideIcon?: boolean;
|
|
1383
|
+
asChild?: boolean;
|
|
1384
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
1385
|
+
type DataTableDocumentCellProps = Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
1386
|
+
thumbnail?: ReactNode;
|
|
1387
|
+
title: ReactNode;
|
|
1388
|
+
};
|
|
1389
|
+
declare const DataTableDocumentCell: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
1390
|
+
thumbnail?: ReactNode;
|
|
1391
|
+
title: ReactNode;
|
|
1392
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
1393
|
+
type DataTableActionButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1394
|
+
'aria-label': string;
|
|
1395
|
+
asChild?: boolean;
|
|
1396
|
+
};
|
|
1397
|
+
declare const DataTableActionButton: react.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1398
|
+
'aria-label': string;
|
|
1399
|
+
asChild?: boolean;
|
|
1400
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1401
|
+
|
|
1084
1402
|
declare const DataTablePagination: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLElement>, "children"> & {
|
|
1085
1403
|
page: number;
|
|
1086
1404
|
perPage: number;
|
|
@@ -1094,6 +1412,9 @@ declare const DataTablePagination: react.ForwardRefExoticComponent<Omit<react.HT
|
|
|
1094
1412
|
perPageLabel?: string;
|
|
1095
1413
|
prevAriaLabel?: string;
|
|
1096
1414
|
nextAriaLabel?: string;
|
|
1415
|
+
variant?: "pages" | "buttons";
|
|
1416
|
+
prevLabel?: string;
|
|
1417
|
+
nextLabel?: string;
|
|
1097
1418
|
} & react.RefAttributes<HTMLElement>>;
|
|
1098
1419
|
|
|
1099
1420
|
type DataTablePaginationProps = Omit<HTMLAttributes<HTMLElement>, 'children'> & {
|
|
@@ -1109,6 +1430,9 @@ type DataTablePaginationProps = Omit<HTMLAttributes<HTMLElement>, 'children'> &
|
|
|
1109
1430
|
perPageLabel?: string;
|
|
1110
1431
|
prevAriaLabel?: string;
|
|
1111
1432
|
nextAriaLabel?: string;
|
|
1433
|
+
variant?: 'pages' | 'buttons';
|
|
1434
|
+
prevLabel?: string;
|
|
1435
|
+
nextLabel?: string;
|
|
1112
1436
|
};
|
|
1113
1437
|
|
|
1114
1438
|
type BadgeVariant = NonNullable<BadgeProps['variant']>;
|
|
@@ -1290,6 +1614,29 @@ type ErrorPageLayoutProps = Omit<PublicPageLayoutProps, 'children'> & {
|
|
|
1290
1614
|
illustration?: ReactNode;
|
|
1291
1615
|
};
|
|
1292
1616
|
|
|
1617
|
+
type PageTitleInfoItem = {
|
|
1618
|
+
label: ReactNode;
|
|
1619
|
+
value: ReactNode;
|
|
1620
|
+
};
|
|
1621
|
+
type PageTitleProps = Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
1622
|
+
title: ReactNode;
|
|
1623
|
+
subtitle?: ReactNode;
|
|
1624
|
+
badge?: ReactNode;
|
|
1625
|
+
actions?: ReactNode;
|
|
1626
|
+
info?: PageTitleInfoItem[];
|
|
1627
|
+
onBack?: () => void;
|
|
1628
|
+
backLabel?: string;
|
|
1629
|
+
};
|
|
1630
|
+
declare const PageTitle: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
1631
|
+
title: ReactNode;
|
|
1632
|
+
subtitle?: ReactNode;
|
|
1633
|
+
badge?: ReactNode;
|
|
1634
|
+
actions?: ReactNode;
|
|
1635
|
+
info?: PageTitleInfoItem[];
|
|
1636
|
+
onBack?: () => void;
|
|
1637
|
+
backLabel?: string;
|
|
1638
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
1639
|
+
|
|
1293
1640
|
declare const Topbar: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLElement>, "children"> & {
|
|
1294
1641
|
pageTitle?: react.ReactNode;
|
|
1295
1642
|
searchTrigger?: react.ReactNode;
|
|
@@ -1308,10 +1655,23 @@ type TopbarProps = Omit<HTMLAttributes<HTMLElement>, 'children'> & {
|
|
|
1308
1655
|
ariaLabel?: string;
|
|
1309
1656
|
};
|
|
1310
1657
|
|
|
1658
|
+
type TopbarSearchButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1659
|
+
placeholder?: ReactNode;
|
|
1660
|
+
};
|
|
1661
|
+
declare const TopbarSearchButton: react.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1662
|
+
placeholder?: ReactNode;
|
|
1663
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1664
|
+
type TopbarIconButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1665
|
+
'aria-label': string;
|
|
1666
|
+
};
|
|
1667
|
+
declare const TopbarIconButton: react.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1668
|
+
'aria-label': string;
|
|
1669
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1670
|
+
|
|
1311
1671
|
declare const TutorialCard: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "title"> & {
|
|
1312
1672
|
title: string;
|
|
1313
1673
|
description?: string;
|
|
1314
|
-
media?:
|
|
1674
|
+
media?: ReactNode;
|
|
1315
1675
|
duration?: string;
|
|
1316
1676
|
category?: string;
|
|
1317
1677
|
asChild?: boolean;
|
|
@@ -1326,21 +1686,49 @@ type TutorialCardProps = Omit<ComponentPropsWithoutRef<'div'>, 'title'> & {
|
|
|
1326
1686
|
asChild?: boolean;
|
|
1327
1687
|
};
|
|
1328
1688
|
|
|
1329
|
-
type KpiCardVariant = 'neutral' | 'success' | 'warning' | 'danger' | 'info';
|
|
1330
|
-
type
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1689
|
+
type KpiCardVariant = 'neutral' | 'brand' | 'success' | 'warning' | 'danger' | 'error' | 'info' | 'turtle' | 'purple';
|
|
1690
|
+
type KpiCardProgressTone = 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
1691
|
+
type KpiCardProgress = {
|
|
1692
|
+
label: ReactNode;
|
|
1693
|
+
value: number;
|
|
1694
|
+
tone?: KpiCardProgressTone;
|
|
1695
|
+
};
|
|
1696
|
+
type KpiCardProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'prefix'> & {
|
|
1697
|
+
label: ReactNode;
|
|
1698
|
+
value: ReactNode;
|
|
1699
|
+
prefix?: ReactNode;
|
|
1700
|
+
sublabel?: ReactNode;
|
|
1701
|
+
description?: ReactNode;
|
|
1702
|
+
info?: ReactNode;
|
|
1703
|
+
badge?: ReactNode;
|
|
1334
1704
|
variant?: KpiCardVariant;
|
|
1335
1705
|
icon?: ReactNode;
|
|
1706
|
+
onLabelClick?: () => void;
|
|
1707
|
+
labelOptions?: TitleSelectOption[];
|
|
1708
|
+
labelValue?: string;
|
|
1709
|
+
onLabelChange?: (value: string) => void;
|
|
1710
|
+
labelMenuLabel?: string;
|
|
1711
|
+
progress?: KpiCardProgress;
|
|
1712
|
+
action?: ReactNode;
|
|
1336
1713
|
};
|
|
1337
1714
|
|
|
1338
|
-
declare const KpiCard: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
1339
|
-
label:
|
|
1340
|
-
value:
|
|
1341
|
-
|
|
1715
|
+
declare const KpiCard: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLDivElement>, "prefix" | "children"> & {
|
|
1716
|
+
label: react.ReactNode;
|
|
1717
|
+
value: react.ReactNode;
|
|
1718
|
+
prefix?: react.ReactNode;
|
|
1719
|
+
sublabel?: react.ReactNode;
|
|
1720
|
+
description?: react.ReactNode;
|
|
1721
|
+
info?: react.ReactNode;
|
|
1722
|
+
badge?: react.ReactNode;
|
|
1342
1723
|
variant?: KpiCardVariant;
|
|
1343
1724
|
icon?: react.ReactNode;
|
|
1725
|
+
onLabelClick?: () => void;
|
|
1726
|
+
labelOptions?: TitleSelectOption[];
|
|
1727
|
+
labelValue?: string;
|
|
1728
|
+
onLabelChange?: (value: string) => void;
|
|
1729
|
+
labelMenuLabel?: string;
|
|
1730
|
+
progress?: KpiCardProgress;
|
|
1731
|
+
action?: react.ReactNode;
|
|
1344
1732
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1345
1733
|
|
|
1346
1734
|
type CommandItem = {
|
|
@@ -1410,6 +1798,8 @@ type DonutChartSlice = {
|
|
|
1410
1798
|
};
|
|
1411
1799
|
type DonutChartProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
1412
1800
|
title: ReactNode;
|
|
1801
|
+
hideTitle?: boolean;
|
|
1802
|
+
hideCenter?: boolean;
|
|
1413
1803
|
data: DonutChartSlice[];
|
|
1414
1804
|
total?: number;
|
|
1415
1805
|
centerValue?: string | number;
|
|
@@ -1424,6 +1814,8 @@ type DonutChartProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
|
1424
1814
|
|
|
1425
1815
|
declare const DonutChart: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
1426
1816
|
title: react.ReactNode;
|
|
1817
|
+
hideTitle?: boolean;
|
|
1818
|
+
hideCenter?: boolean;
|
|
1427
1819
|
data: DonutChartSlice[];
|
|
1428
1820
|
total?: number;
|
|
1429
1821
|
centerValue?: string | number;
|
|
@@ -1529,13 +1921,14 @@ type DateRangeFilterField = FilterFieldBase & {
|
|
|
1529
1921
|
};
|
|
1530
1922
|
type NumberRangeFilterField = FilterFieldBase & {
|
|
1531
1923
|
type: 'numberRange';
|
|
1532
|
-
format?: 'decimal' | 'money' | 'percent';
|
|
1924
|
+
format?: 'decimal' | 'integer' | 'money' | 'percent';
|
|
1925
|
+
maxDigits?: number;
|
|
1533
1926
|
minLabel?: string;
|
|
1534
1927
|
maxLabel?: string;
|
|
1535
1928
|
};
|
|
1536
1929
|
type FilterField = TextFilterField | MaskFilterField | SelectFilterField | MultiSelectFilterField | DateRangeFilterField | NumberRangeFilterField;
|
|
1537
1930
|
type FilterFormValues = Record<string, unknown>;
|
|
1538
|
-
type
|
|
1931
|
+
type FilterBarProps = {
|
|
1539
1932
|
fields: FilterField[];
|
|
1540
1933
|
values?: FilterFormValues;
|
|
1541
1934
|
defaultValues?: FilterFormValues;
|
|
@@ -1552,7 +1945,7 @@ type FilterBarV2Props = {
|
|
|
1552
1945
|
onOpenChange?: (open: boolean) => void;
|
|
1553
1946
|
};
|
|
1554
1947
|
|
|
1555
|
-
declare function
|
|
1948
|
+
declare function FilterBar({ fields, values: controlledValues, defaultValues, activeCount, onApply, onClear, title, applyLabel, clearLabel, className, defaultOpen, hideTrigger, open: controlledOpen, onOpenChange, }: FilterBarProps): react.JSX.Element;
|
|
1556
1949
|
|
|
1557
1950
|
type FormSectionProps = {
|
|
1558
1951
|
id: string;
|
|
@@ -1643,6 +2036,7 @@ declare const PanelCard: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTM
|
|
|
1643
2036
|
|
|
1644
2037
|
type SectionCardProps = {
|
|
1645
2038
|
title: string;
|
|
2039
|
+
subtitle?: ReactNode;
|
|
1646
2040
|
icon?: ReactNode;
|
|
1647
2041
|
action?: ReactNode;
|
|
1648
2042
|
children: ReactNode;
|
|
@@ -1650,7 +2044,7 @@ type SectionCardProps = {
|
|
|
1650
2044
|
highlight?: boolean;
|
|
1651
2045
|
className?: string;
|
|
1652
2046
|
};
|
|
1653
|
-
declare function SectionCard({ title, icon, action, children, id, highlight, className, }: SectionCardProps): react.JSX.Element;
|
|
2047
|
+
declare function SectionCard({ title, subtitle, icon, action, children, id, highlight, className, }: SectionCardProps): react.JSX.Element;
|
|
1654
2048
|
|
|
1655
2049
|
type StackSeries = {
|
|
1656
2050
|
name: string;
|
|
@@ -1705,4 +2099,46 @@ type WorkflowDesignerProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> &
|
|
|
1705
2099
|
|
|
1706
2100
|
declare function WorkflowDesigner({ phases, nodes, edges, selectedNodeId, onNodeSelect, showSidePanel, className, ...props }: WorkflowDesignerProps): react.JSX.Element;
|
|
1707
2101
|
|
|
1708
|
-
|
|
2102
|
+
type TimelineTone = 'neutral' | 'success' | 'danger' | 'warning' | 'info';
|
|
2103
|
+
type TimelineProps = ComponentPropsWithoutRef<'ul'>;
|
|
2104
|
+
declare const Timeline: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & react.RefAttributes<HTMLUListElement>>;
|
|
2105
|
+
type TimelineItemProps = Omit<ComponentPropsWithoutRef<'li'>, 'title'> & {
|
|
2106
|
+
icon: ReactNode;
|
|
2107
|
+
title: ReactNode;
|
|
2108
|
+
tone?: TimelineTone;
|
|
2109
|
+
badge?: ReactNode;
|
|
2110
|
+
time?: ReactNode;
|
|
2111
|
+
dateTime?: string;
|
|
2112
|
+
timeTitle?: string;
|
|
2113
|
+
error?: boolean;
|
|
2114
|
+
open?: boolean;
|
|
2115
|
+
defaultOpen?: boolean;
|
|
2116
|
+
onOpenChange?: (open: boolean) => void;
|
|
2117
|
+
};
|
|
2118
|
+
declare const TimelineItem: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref">, "title"> & {
|
|
2119
|
+
icon: ReactNode;
|
|
2120
|
+
title: ReactNode;
|
|
2121
|
+
tone?: TimelineTone;
|
|
2122
|
+
badge?: ReactNode;
|
|
2123
|
+
time?: ReactNode;
|
|
2124
|
+
dateTime?: string;
|
|
2125
|
+
timeTitle?: string;
|
|
2126
|
+
error?: boolean;
|
|
2127
|
+
open?: boolean;
|
|
2128
|
+
defaultOpen?: boolean;
|
|
2129
|
+
onOpenChange?: (open: boolean) => void;
|
|
2130
|
+
} & react.RefAttributes<HTMLLIElement>>;
|
|
2131
|
+
type TimelineDaySeparatorProps = ComponentPropsWithoutRef<'li'> & {
|
|
2132
|
+
label: ReactNode;
|
|
2133
|
+
};
|
|
2134
|
+
declare const TimelineDaySeparator: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
2135
|
+
label: ReactNode;
|
|
2136
|
+
} & react.RefAttributes<HTMLLIElement>>;
|
|
2137
|
+
type TimelineSectionProps = Omit<ComponentPropsWithoutRef<'section'>, 'title'> & {
|
|
2138
|
+
title: ReactNode;
|
|
2139
|
+
};
|
|
2140
|
+
declare const TimelineSection: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "title"> & {
|
|
2141
|
+
title: ReactNode;
|
|
2142
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
2143
|
+
|
|
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 };
|