@mlw-packages/react-components 1.7.21 → 1.7.23
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.css +9 -0
- package/dist/index.d.mts +1651 -1634
- package/dist/index.d.ts +1651 -1634
- package/dist/index.js +12680 -12647
- package/dist/index.mjs +15078 -15039
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import React__default, { ReactNode, ComponentType, ComponentPropsWithoutRef } from 'react';
|
|
3
3
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
@@ -68,1814 +68,1831 @@ type ModeToggleBaseProps = {
|
|
|
68
68
|
};
|
|
69
69
|
declare function ModeToggleBase({ themes, }: ModeToggleBaseProps): react_jsx_runtime.JSX.Element;
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
71
|
+
declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
72
|
+
declare const AvatarImageBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
73
|
+
declare const AvatarFallbackBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
75
74
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
option?: string;
|
|
86
|
-
check?: string;
|
|
87
|
-
selected?: string;
|
|
75
|
+
declare const badgeVariants: (props?: ({
|
|
76
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
77
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
78
|
+
type BadgeColorType = "green" | "gray" | "red" | "yellow" | "blue" | "purple";
|
|
79
|
+
interface BadgeBaseProps extends React$1.ComponentProps<"span">, VariantProps<typeof badgeVariants> {
|
|
80
|
+
asChild?: boolean;
|
|
81
|
+
color?: BadgeColorType;
|
|
82
|
+
size?: "sm" | "md" | "lg";
|
|
83
|
+
status?: string;
|
|
88
84
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
searchPlaceholder?: string;
|
|
96
|
-
empty?: React.ReactNode;
|
|
97
|
-
label?: string;
|
|
98
|
-
labelClassname?: string;
|
|
99
|
-
testIds?: ComboboxTestIds;
|
|
100
|
-
disabled?: boolean;
|
|
85
|
+
declare function Badge({ className, color, size, asChild, children, style, ...props }: BadgeBaseProps): react_jsx_runtime.JSX.Element;
|
|
86
|
+
|
|
87
|
+
type CalendarProps = React$1.ComponentProps<typeof DayPicker>;
|
|
88
|
+
declare function CalendarBase({ className, classNames, showOutsideDays, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
89
|
+
declare namespace CalendarBase {
|
|
90
|
+
var displayName: string;
|
|
101
91
|
}
|
|
102
|
-
declare function Combobox<T extends string>({ items, selected, onChange, className, placeholder, searchPlaceholder, empty, disabled, label, labelClassname, testIds, error, }: ComboboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
103
92
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
93
|
+
declare const CardBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
94
|
+
testid?: string;
|
|
95
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
declare const CardHeaderBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
97
|
+
testid?: string;
|
|
98
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
99
|
+
declare const CardTitleBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
100
|
+
testid?: string;
|
|
101
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
102
|
+
declare const CardDescriptionBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
103
|
+
testid?: string;
|
|
104
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
105
|
+
declare const CardContentBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
106
|
+
testid?: string;
|
|
107
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
108
|
+
declare const CardFooterBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
109
|
+
testid?: string;
|
|
110
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
111
|
+
|
|
112
|
+
interface FileWithPreview extends File {
|
|
113
|
+
id?: string;
|
|
114
|
+
error?: string;
|
|
115
|
+
preview?: string;
|
|
111
116
|
}
|
|
112
|
-
interface
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
testIds?: MultiComboboxTestIds;
|
|
118
|
-
keepOpen?: boolean;
|
|
119
|
-
showClearAll?: boolean;
|
|
117
|
+
interface FileUploaderProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onDrop"> {
|
|
118
|
+
accept: string[];
|
|
119
|
+
maxSize: number;
|
|
120
|
+
maxFiles?: number;
|
|
121
|
+
onValueChange: (files: FileWithPreview[]) => void;
|
|
120
122
|
disabled?: boolean;
|
|
123
|
+
value?: FileWithPreview[];
|
|
124
|
+
onUpload?: (files: FileWithPreview[]) => Promise<void>;
|
|
125
|
+
showPreview?: boolean;
|
|
126
|
+
dropzoneText?: string;
|
|
127
|
+
dropzoneSubtext?: string;
|
|
128
|
+
animate?: boolean;
|
|
121
129
|
}
|
|
122
|
-
declare
|
|
130
|
+
declare const FileUploader: React$1.ForwardRefExoticComponent<FileUploaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
123
131
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
132
|
+
declare const AlertDialogBase: React$1.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
133
|
+
declare const AlertDialogTriggerBase: React$1.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
134
|
+
declare const AlertDialogPortalBase: React$1.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
135
|
+
declare const AlertDialogOverlayBase: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
136
|
+
testid?: string;
|
|
137
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
138
|
+
declare const AlertDialogContentBase: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
139
|
+
testid?: string;
|
|
140
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
141
|
+
declare const AlertDialogHeaderBase: {
|
|
142
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
143
|
+
displayName: string;
|
|
144
|
+
};
|
|
145
|
+
declare const AlertDialogFooterBase: {
|
|
146
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
147
|
+
displayName: string;
|
|
148
|
+
};
|
|
149
|
+
declare const AlertDialogTitleBase: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & {
|
|
150
|
+
testid?: string;
|
|
151
|
+
} & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
152
|
+
declare const AlertDialogDescriptionBase: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & {
|
|
153
|
+
testid?: string;
|
|
154
|
+
} & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
155
|
+
declare const AlertDialogActionBase: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
156
|
+
testid?: string;
|
|
157
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
158
|
+
declare const AlertDialogCancelBase: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
159
|
+
testid?: string;
|
|
160
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
161
|
+
|
|
162
|
+
interface DestructiveDialogProps {
|
|
163
|
+
title: string;
|
|
164
|
+
description: string;
|
|
165
|
+
onConfirm: () => void;
|
|
166
|
+
onCancel?: () => void;
|
|
167
|
+
children?: React$1.ReactNode;
|
|
168
|
+
triggerContent?: React$1.ReactNode;
|
|
147
169
|
className?: string;
|
|
148
|
-
label?: string;
|
|
149
|
-
labelClassname?: string;
|
|
150
|
-
pagination?: number;
|
|
151
|
-
}
|
|
152
|
-
interface SelectPropsWithItems$1<T extends string> extends DefaultSelectProps$1<T> {
|
|
153
|
-
items: SelectItem<T>[];
|
|
154
|
-
groupItems?: never;
|
|
155
|
-
testIds?: SelectTestIds$1;
|
|
156
|
-
}
|
|
157
|
-
interface SelectPropsWithGroupItems$1<T extends string> extends DefaultSelectProps$1<T> {
|
|
158
|
-
items?: never;
|
|
159
|
-
groupItems: {
|
|
160
|
-
[key: string]: SelectItem<T>[];
|
|
161
|
-
};
|
|
162
|
-
testIds?: SelectTestIds$1;
|
|
163
170
|
}
|
|
164
|
-
|
|
165
|
-
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, pagination, }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
171
|
+
declare const DestructiveDialog: React$1.FC<DestructiveDialogProps>;
|
|
166
172
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
173
|
+
type TestIdProps$2 = {
|
|
174
|
+
testid?: string;
|
|
175
|
+
};
|
|
176
|
+
declare const DialogBase: React$1.FC<DialogPrimitive.DialogProps>;
|
|
177
|
+
declare const DialogTriggerBase: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
178
|
+
declare const DialogPortalBase: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
179
|
+
declare const DialogCloseBase: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
180
|
+
declare const DialogOverlayBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & TestIdProps$2 & React$1.RefAttributes<HTMLDivElement>>;
|
|
181
|
+
declare const DialogContentBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & TestIdProps$2 & React$1.RefAttributes<HTMLDivElement>>;
|
|
182
|
+
declare const DialogHeaderBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & TestIdProps$2 & React$1.RefAttributes<HTMLDivElement>>;
|
|
183
|
+
declare const DialogFooterBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & TestIdProps$2 & React$1.RefAttributes<HTMLDivElement>>;
|
|
184
|
+
declare const DialogTitleBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & TestIdProps$2 & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
185
|
+
declare const DialogDescriptionBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & TestIdProps$2 & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
186
|
+
|
|
187
|
+
declare const loadingVariants: (props?: ({
|
|
188
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
189
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
190
|
+
interface LoadingBaseProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof loadingVariants> {
|
|
191
|
+
message?: string;
|
|
192
|
+
overlay?: boolean;
|
|
193
|
+
variant?: "spinner" | "dots";
|
|
172
194
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
195
|
+
declare const LoadingBase: React$1.ForwardRefExoticComponent<LoadingBaseProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
196
|
+
|
|
197
|
+
type TestIdProps$1 = {
|
|
198
|
+
testid?: string;
|
|
199
|
+
};
|
|
200
|
+
declare const ModalBase: React$1.FC<DialogPrimitive.DialogProps>;
|
|
201
|
+
declare const ModalTriggerBase: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
202
|
+
declare const ModalPortalBase: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
203
|
+
declare const ModalCloseBase: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
204
|
+
declare const ModalOverlayBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & TestIdProps$1 & React$1.RefAttributes<HTMLDivElement>>;
|
|
205
|
+
type ModalSize = "sm" | "md" | "lg" | "full";
|
|
206
|
+
declare const ModalContentBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & TestIdProps$1 & {
|
|
207
|
+
size?: ModalSize;
|
|
208
|
+
centered?: boolean;
|
|
209
|
+
backdropBlur?: boolean;
|
|
210
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
211
|
+
declare const ModalHeaderBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & TestIdProps$1 & React$1.RefAttributes<HTMLDivElement>>;
|
|
212
|
+
declare const ModalFooterBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & TestIdProps$1 & React$1.RefAttributes<HTMLDivElement>>;
|
|
213
|
+
declare const ModalTitleBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & TestIdProps$1 & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
214
|
+
declare const ModalDescriptionBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & TestIdProps$1 & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
215
|
+
|
|
216
|
+
type ProgressType = "bar" | "segments" | "panels" | "circles";
|
|
217
|
+
interface ProgressBaseProps extends React$1.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root> {
|
|
218
|
+
variant?: ProgressType;
|
|
181
219
|
label?: string;
|
|
182
|
-
|
|
220
|
+
leftIcon?: React$1.ReactNode;
|
|
221
|
+
rightIcon?: React$1.ReactNode;
|
|
222
|
+
showValue?: boolean;
|
|
223
|
+
valuePosition?: "left" | "right" | "inside";
|
|
224
|
+
segments?: number;
|
|
225
|
+
steps?: string[];
|
|
226
|
+
currentStep?: number;
|
|
227
|
+
autocolor?: number[];
|
|
228
|
+
plusIndicator?: boolean;
|
|
183
229
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
colors?: string[];
|
|
230
|
+
declare const ProgressBase: React$1.ForwardRefExoticComponent<ProgressBaseProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
231
|
+
interface ProgressSegmentsBaseProps {
|
|
232
|
+
label?: string;
|
|
233
|
+
segments: number;
|
|
234
|
+
value: number;
|
|
190
235
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
236
|
+
declare const ProgressSegmentsBase: ({ label, segments, value, }: ProgressSegmentsBaseProps) => react_jsx_runtime.JSX.Element;
|
|
237
|
+
interface ProgressPanelsBaseProps {
|
|
238
|
+
label?: string;
|
|
239
|
+
steps: string[];
|
|
240
|
+
currentStep: number;
|
|
195
241
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
groupItems: {
|
|
199
|
-
[key: string]: AvatarComboboxItem<T>[];
|
|
200
|
-
};
|
|
201
|
-
testIds?: SelectTestIds;
|
|
202
|
-
}
|
|
203
|
-
type AvatarComboboxProps<T extends string> = SelectPropsWithItems<T> | SelectPropsWithGroupItems<T>;
|
|
204
|
-
declare function AvatarCombobox<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, colors, }: AvatarComboboxProps<T> & {
|
|
205
|
-
selected?: T | null;
|
|
242
|
+
declare const ProgressPanelsBase: ({ label, steps, currentStep, }: ProgressPanelsBaseProps) => react_jsx_runtime.JSX.Element;
|
|
243
|
+
interface ProgressCirclesBaseProps {
|
|
206
244
|
label?: string;
|
|
207
|
-
|
|
208
|
-
|
|
245
|
+
steps: string[];
|
|
246
|
+
currentStep: number;
|
|
247
|
+
}
|
|
248
|
+
declare const ProgressCirclesBase: ({ label, steps, currentStep, }: ProgressCirclesBaseProps) => react_jsx_runtime.JSX.Element;
|
|
209
249
|
|
|
210
|
-
declare
|
|
211
|
-
declare const detectDataFields: (data: Record<string, unknown>[], xAxisKey: string) => string[];
|
|
212
|
-
declare const detectXAxis: (data: Record<string, unknown>[]) => string;
|
|
213
|
-
declare const generateAdditionalColors: (baseColors: string[], count: number) => string[];
|
|
214
|
-
declare const niceCeil: (value: number) => number;
|
|
215
|
-
declare const compactTick: (value: number) => string;
|
|
216
|
-
type Padding = number | Partial<{
|
|
217
|
-
left: number;
|
|
218
|
-
right: number;
|
|
219
|
-
top: number;
|
|
220
|
-
bottom: number;
|
|
221
|
-
}>;
|
|
222
|
-
type Margins = Partial<{
|
|
223
|
-
top: number;
|
|
224
|
-
right: number;
|
|
225
|
-
left: number;
|
|
226
|
-
bottom: number;
|
|
227
|
-
}>;
|
|
228
|
-
declare const resolveContainerPaddingLeft: (padding?: Padding, containerPaddingLeft?: number, defaultLeft?: number) => number;
|
|
229
|
-
declare const resolveChartMargins: (margins?: Margins, chartMargins?: Margins, showLabels?: boolean) => {
|
|
230
|
-
top: number;
|
|
231
|
-
right: number;
|
|
232
|
-
left: number;
|
|
233
|
-
bottom: number;
|
|
234
|
-
};
|
|
250
|
+
declare function SkeletonBase({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
235
251
|
|
|
236
|
-
type
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
x?: number;
|
|
247
|
-
y?: number;
|
|
248
|
-
width?: number;
|
|
249
|
-
height?: number;
|
|
250
|
-
} | Record<string, unknown> | undefined;
|
|
251
|
-
cx?: number | string;
|
|
252
|
-
cy?: number | string;
|
|
252
|
+
type ToasterProps = React.ComponentProps<typeof Toaster$1> & {
|
|
253
|
+
testId?: string;
|
|
254
|
+
};
|
|
255
|
+
declare const Toaster: ({ testId, ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
256
|
+
declare const toast: {
|
|
257
|
+
success: (message: string) => string | number;
|
|
258
|
+
error: (message: string) => string | number;
|
|
259
|
+
warning: (message: string) => string | number;
|
|
260
|
+
info: (message: string) => string | number;
|
|
261
|
+
loading: (message: string) => string | number;
|
|
253
262
|
};
|
|
254
|
-
type valueFormatter = (props: {
|
|
255
|
-
value: number | string | undefined;
|
|
256
|
-
formattedValue: string;
|
|
257
|
-
[key: string]: unknown;
|
|
258
|
-
}) => string;
|
|
259
|
-
declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
|
|
260
263
|
|
|
261
|
-
declare const
|
|
264
|
+
declare const TooltipProviderBase: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
265
|
+
declare const TooltipBase: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
266
|
+
declare const TooltipTriggerBase: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
267
|
+
declare const TooltipContentBase: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
262
268
|
|
|
263
|
-
|
|
264
|
-
|
|
269
|
+
declare const buttonVariantsBase: (props?: ({
|
|
270
|
+
variant?: "default" | "destructive" | "outline" | "select" | "secondary" | "ghost" | "link" | null | undefined;
|
|
271
|
+
size?: "default" | "select" | "sm" | "lg" | "icon" | null | undefined;
|
|
272
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
273
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariantsBase> {
|
|
274
|
+
asChild?: boolean;
|
|
275
|
+
testid?: string;
|
|
276
|
+
isLoading?: boolean;
|
|
265
277
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
autoLabel?: boolean;
|
|
278
|
+
declare const ButtonBase: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
279
|
+
interface ButtonGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
280
|
+
children: React$1.ReactNode;
|
|
281
|
+
orientation?: "horizontal" | "vertical";
|
|
271
282
|
}
|
|
272
|
-
|
|
273
|
-
|
|
283
|
+
declare const ButtonGroupBase: React$1.ForwardRefExoticComponent<ButtonGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
284
|
+
|
|
285
|
+
declare const CheckboxBase: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
286
|
+
testid?: string;
|
|
287
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
288
|
+
|
|
289
|
+
declare const CollapsibleBase: React$1.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
290
|
+
declare const CollapsibleTriggerBase: React$1.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
291
|
+
leftIcon?: React$1.ReactNode;
|
|
292
|
+
showCaret?: boolean;
|
|
293
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
294
|
+
declare const CollapsibleContentBase: React$1.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
295
|
+
|
|
296
|
+
declare function HoverCardBase(props: React$1.ComponentProps<typeof HoverCardPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
297
|
+
declare function HoverCardTriggerBase(props: React$1.ComponentProps<typeof HoverCardPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
298
|
+
declare const HoverCardContentBase: React$1.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
299
|
+
|
|
300
|
+
declare function InputOTPBase({ className, containerClassName, ...props }: React$1.ComponentProps<typeof OTPInput> & {
|
|
301
|
+
containerClassName?: string;
|
|
302
|
+
}): react_jsx_runtime.JSX.Element;
|
|
303
|
+
declare function InputOTPGroupBase({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
304
|
+
declare function InputOTPSlotBase({ index, className, ...props }: React$1.ComponentProps<"div"> & {
|
|
305
|
+
index: number;
|
|
306
|
+
}): react_jsx_runtime.JSX.Element;
|
|
307
|
+
declare function InputOTPSeparatorBase({ ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
308
|
+
|
|
309
|
+
interface InputBaseProps extends React$1.ComponentProps<"input"> {
|
|
274
310
|
label?: string;
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
bar?: string[];
|
|
281
|
-
line?: string[];
|
|
282
|
-
area?: string[];
|
|
283
|
-
};
|
|
284
|
-
interface ChartProps {
|
|
285
|
-
data: ChartData$1[];
|
|
286
|
-
series?: SeriesProp$1;
|
|
287
|
-
className?: string;
|
|
288
|
-
chartMargin?: Partial<{
|
|
289
|
-
top: number;
|
|
290
|
-
right: number;
|
|
291
|
-
left: number;
|
|
292
|
-
bottom: number;
|
|
293
|
-
}>;
|
|
294
|
-
height?: number;
|
|
295
|
-
width?: number | string;
|
|
296
|
-
colors?: string[];
|
|
297
|
-
gridColor?: string;
|
|
298
|
-
showGrid?: boolean;
|
|
299
|
-
showTooltip?: boolean;
|
|
300
|
-
showLegend?: boolean;
|
|
301
|
-
title?: string;
|
|
302
|
-
titlePosition?: "left" | "center" | "right";
|
|
303
|
-
showLabels?: boolean;
|
|
304
|
-
labelMap?: Record<string, string>;
|
|
305
|
-
valueFormatter?: valueFormatter;
|
|
306
|
-
categoryFormatter?: (value: string | number) => string;
|
|
307
|
-
periodLabel?: string;
|
|
308
|
-
xAxisLabel?: string;
|
|
309
|
-
yAxisLabel?: string;
|
|
310
|
-
xAxis?: XAxisConfig$2 | string;
|
|
311
|
-
biaxial?: BiaxialConfig | string | string[];
|
|
312
|
-
enableHighlights?: boolean;
|
|
313
|
-
enableShowOnly?: boolean;
|
|
314
|
-
enablePeriodsDropdown?: boolean;
|
|
315
|
-
enableDraggableTooltips?: boolean;
|
|
316
|
-
showTooltipTotal?: boolean;
|
|
317
|
-
maxTooltips?: number;
|
|
318
|
-
formatBR?: boolean;
|
|
311
|
+
labelClassname?: string;
|
|
312
|
+
leftIcon?: React$1.ReactNode;
|
|
313
|
+
rightIcon?: React$1.ReactNode;
|
|
314
|
+
"data-testid"?: string;
|
|
315
|
+
error?: string | undefined;
|
|
319
316
|
}
|
|
320
|
-
declare const
|
|
317
|
+
declare const InputBase: React$1.ForwardRefExoticComponent<Omit<InputBaseProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
321
318
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
319
|
+
declare const LabelBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
320
|
+
asChild?: boolean;
|
|
321
|
+
testid?: string;
|
|
322
|
+
} & React$1.RefAttributes<HTMLLabelElement>>;
|
|
323
|
+
|
|
324
|
+
interface SliderBaseProps extends React$1.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> {
|
|
327
325
|
label?: string;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
}
|
|
331
|
-
interface DataMapper {
|
|
332
|
-
[dataKey: string]: {
|
|
333
|
-
label?: string;
|
|
334
|
-
valueFormatter?: (value: string | number) => string | number;
|
|
335
|
-
color?: string;
|
|
336
|
-
type?: "number" | "string" | "auto";
|
|
337
|
-
visible?: boolean;
|
|
338
|
-
};
|
|
326
|
+
leftIcon?: React$1.ReactNode;
|
|
327
|
+
rightIcon?: React$1.ReactNode;
|
|
339
328
|
}
|
|
340
|
-
|
|
341
|
-
|
|
329
|
+
declare const SlideBase: React$1.ForwardRefExoticComponent<SliderBaseProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
330
|
+
|
|
331
|
+
interface QuickButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
332
|
+
disabled?: boolean;
|
|
333
|
+
onClick?: (e?: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
334
|
+
testid?: string;
|
|
342
335
|
className?: string;
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
height?: number;
|
|
348
|
-
width?: number | string;
|
|
349
|
-
colors?: string[];
|
|
350
|
-
gridColor?: string;
|
|
351
|
-
showGrid?: boolean;
|
|
352
|
-
showTooltip?: boolean;
|
|
353
|
-
showLegend?: boolean;
|
|
354
|
-
title?: string;
|
|
355
|
-
titlePosition?: "left" | "center" | "right";
|
|
356
|
-
showLabels?: boolean;
|
|
357
|
-
labelMap?: Record<string, string>;
|
|
358
|
-
xAxis?: XAxisConfig$1 | string;
|
|
359
|
-
mapper?: DataMapper | string[];
|
|
360
|
-
yAxis?: DataMapper | string[];
|
|
361
|
-
autoDetect?: boolean;
|
|
336
|
+
iconSize?: number;
|
|
337
|
+
iconColor?: string;
|
|
338
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
339
|
+
size?: "default" | "sm" | "lg" | "icon";
|
|
362
340
|
}
|
|
363
|
-
declare const
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
341
|
+
declare const EditButton: React$1.ForwardRefExoticComponent<QuickButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
342
|
+
declare const ChangeButton: React$1.ForwardRefExoticComponent<QuickButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
343
|
+
declare const SaveButton: React$1.ForwardRefExoticComponent<QuickButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
344
|
+
declare const AddButton: React$1.ForwardRefExoticComponent<QuickButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
345
|
+
declare const CloseButton: React$1.ForwardRefExoticComponent<QuickButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
346
|
+
declare const DownloadButton: React$1.FC<QuickButtonProps>;
|
|
347
|
+
declare const UploadButton: React$1.FC<QuickButtonProps>;
|
|
348
|
+
declare const CopyButton: React$1.FC<QuickButtonProps>;
|
|
349
|
+
declare const RefreshButton: React$1.FC<QuickButtonProps>;
|
|
350
|
+
declare const SearchButton: React$1.FC<QuickButtonProps>;
|
|
351
|
+
declare const BackButton: React$1.FC<QuickButtonProps>;
|
|
352
|
+
declare const SettingsButton: React$1.FC<QuickButtonProps>;
|
|
353
|
+
declare const NotificationButton: React$1.FC<QuickButtonProps>;
|
|
354
|
+
declare const MoreButton: React$1.FC<QuickButtonProps>;
|
|
355
|
+
declare const CheckButton: React$1.FC<QuickButtonProps>;
|
|
356
|
+
interface FilterButtonProps extends QuickButtonProps {
|
|
357
|
+
active?: boolean;
|
|
368
358
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
padding?: Padding;
|
|
373
|
-
margins?: Margins;
|
|
374
|
-
containerPaddingLeft?: number;
|
|
375
|
-
chartMargins?: Margins;
|
|
376
|
-
height?: number;
|
|
377
|
-
width?: number | string;
|
|
378
|
-
colors?: string[];
|
|
379
|
-
gridColor?: string;
|
|
380
|
-
showGrid?: boolean;
|
|
381
|
-
showTooltip?: boolean;
|
|
382
|
-
showLegend?: boolean;
|
|
383
|
-
title?: string;
|
|
384
|
-
titlePosition?: "left" | "center" | "right";
|
|
385
|
-
strokeWidth?: number;
|
|
386
|
-
showDots?: boolean;
|
|
387
|
-
showLabels?: boolean;
|
|
359
|
+
declare const FilterButton: React$1.FC<FilterButtonProps>;
|
|
360
|
+
interface LikeButtonProps extends QuickButtonProps {
|
|
361
|
+
isLiked?: boolean;
|
|
388
362
|
}
|
|
389
|
-
declare const
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
name: string;
|
|
393
|
-
value: number;
|
|
394
|
-
[key: string]: string | number;
|
|
363
|
+
declare const LikeButton: React$1.FC<LikeButtonProps>;
|
|
364
|
+
interface FavoriteButtonProps extends QuickButtonProps {
|
|
365
|
+
isFavorite?: boolean;
|
|
395
366
|
}
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
height?: number;
|
|
400
|
-
width?: number | string;
|
|
401
|
-
colors?: string[];
|
|
402
|
-
showTooltip?: boolean;
|
|
403
|
-
showLegend?: boolean;
|
|
404
|
-
showLabels?: boolean;
|
|
405
|
-
innerRadius?: number;
|
|
406
|
-
outerRadius?: number;
|
|
407
|
-
centerX?: string | number;
|
|
408
|
-
centerY?: string | number;
|
|
367
|
+
declare const FavoriteButton: React$1.FC<FavoriteButtonProps>;
|
|
368
|
+
interface VisibilityButtonProps extends QuickButtonProps {
|
|
369
|
+
isVisible?: boolean;
|
|
409
370
|
}
|
|
410
|
-
declare const
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
}>;
|
|
416
|
-
onOpenPeriod: (periodName: string) => void;
|
|
417
|
-
rightOffset?: number;
|
|
418
|
-
topOffset?: number;
|
|
419
|
-
activePeriod?: string;
|
|
420
|
-
activePeriods?: string[];
|
|
371
|
+
declare const VisibilityButton: React$1.FC<VisibilityButtonProps>;
|
|
372
|
+
declare const ViewButton: React$1.FC<QuickButtonProps>;
|
|
373
|
+
declare const HideButton: React$1.FC<QuickButtonProps>;
|
|
374
|
+
interface LockButtonProps extends QuickButtonProps {
|
|
375
|
+
isLocked?: boolean;
|
|
421
376
|
}
|
|
422
|
-
declare
|
|
377
|
+
declare const LockButton: React$1.FC<LockButtonProps>;
|
|
378
|
+
declare const UnlockButton: React$1.FC<QuickButtonProps>;
|
|
423
379
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
highlightedSeriesSize: number;
|
|
428
|
-
clearHighlights: () => void;
|
|
429
|
-
}
|
|
430
|
-
/**
|
|
431
|
-
* ShowOnly
|
|
432
|
-
* - Botão principal alterna entre mostrar somente os itens destacados ou mostrar todos
|
|
433
|
-
* - Botão secundário limpa os destaques quando houver algum
|
|
434
|
-
* - Acessibilidade: aria-pressed, aria-labels e estados desabilitados
|
|
435
|
-
*/
|
|
436
|
-
declare const ShowOnly: React__default.FC<Props$3>;
|
|
380
|
+
declare const SwitchBase: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
381
|
+
testid?: string;
|
|
382
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
437
383
|
|
|
438
|
-
interface
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
color?: string;
|
|
442
|
-
type?: string;
|
|
443
|
-
visible?: boolean;
|
|
444
|
-
}
|
|
445
|
-
interface Props$2 {
|
|
446
|
-
allKeys: string[];
|
|
447
|
-
mapperConfig: Record<string, MapperEntry>;
|
|
448
|
-
finalColors: Record<string, string>;
|
|
449
|
-
highlightedSeries: Set<string>;
|
|
450
|
-
toggleHighlight: (key: string) => void;
|
|
451
|
-
containerWidth?: number;
|
|
384
|
+
interface TextAreaBaseProps extends React$1.ComponentProps<"textarea"> {
|
|
385
|
+
clearable?: boolean;
|
|
386
|
+
onClear?: () => void;
|
|
452
387
|
}
|
|
453
|
-
declare const
|
|
388
|
+
declare const TextAreaBase: React$1.ForwardRefExoticComponent<Omit<TextAreaBaseProps, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
454
389
|
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
390
|
+
type CarouselApi = UseEmblaCarouselType[1];
|
|
391
|
+
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
392
|
+
type CarouselOptions = UseCarouselParameters[0];
|
|
393
|
+
type CarouselPlugin = UseCarouselParameters[1];
|
|
394
|
+
type CarouselProps = {
|
|
395
|
+
opts?: CarouselOptions;
|
|
396
|
+
plugins?: CarouselPlugin;
|
|
397
|
+
orientation?: "horizontal" | "vertical";
|
|
398
|
+
setApi?: (api: CarouselApi) => void;
|
|
399
|
+
};
|
|
400
|
+
declare function CarouselBase({ orientation, opts, setApi, plugins, className, children, ...props }: React$1.ComponentProps<"div"> & CarouselProps): react_jsx_runtime.JSX.Element;
|
|
401
|
+
declare function CarouselContentBase({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
402
|
+
declare function CarouselItemBase({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
403
|
+
declare function CarouselPreviousBase({ className, variant, size, ...props }: React$1.ComponentProps<typeof ButtonBase>): react_jsx_runtime.JSX.Element;
|
|
404
|
+
declare function CarouselNextBase({ className, variant, size, ...props }: React$1.ComponentProps<typeof ButtonBase>): react_jsx_runtime.JSX.Element;
|
|
462
405
|
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
[key: string]: string | number;
|
|
466
|
-
}
|
|
467
|
-
interface Position$1 {
|
|
468
|
-
top: number;
|
|
469
|
-
left: number;
|
|
470
|
-
}
|
|
471
|
-
interface DraggableTooltipProps {
|
|
472
|
-
id: string;
|
|
473
|
-
data: TooltipData;
|
|
474
|
-
position: Position$1;
|
|
475
|
-
isDragging?: boolean;
|
|
476
|
-
title?: string;
|
|
477
|
-
dataKeys: string[];
|
|
478
|
-
finalColors: Record<string, string>;
|
|
479
|
-
onMouseDown?: (id: string, e: React__default.MouseEvent) => void;
|
|
480
|
-
onClose: (id: string) => void;
|
|
481
|
-
periodLabel?: string;
|
|
482
|
-
dataLabel?: string;
|
|
483
|
-
showCloseAllButton?: boolean;
|
|
484
|
-
globalTooltipCount?: number;
|
|
485
|
-
onCloseAll?: () => void;
|
|
486
|
-
closeAllButtonPosition?: "top-left" | "top-right" | "top-center";
|
|
487
|
-
closeAllButtonVariant?: "floating" | "inline";
|
|
488
|
-
onPositionChange?: (id: string, position: Position$1) => void;
|
|
489
|
-
highlightedSeries?: Set<string>;
|
|
490
|
-
toggleHighlight?: (key: string) => void;
|
|
491
|
-
showOnlyHighlighted?: boolean;
|
|
492
|
-
valueFormatter?: valueFormatter;
|
|
493
|
-
categoryFormatter?: (value: string | number) => string;
|
|
494
|
-
}
|
|
495
|
-
declare const DraggableTooltip: React__default.NamedExoticComponent<DraggableTooltipProps>;
|
|
406
|
+
declare const ScrollAreaBase: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
407
|
+
declare const ScrollBarBase: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
496
408
|
|
|
497
|
-
|
|
498
|
-
dataKey: string;
|
|
499
|
-
value: number;
|
|
500
|
-
name: string;
|
|
501
|
-
color?: string;
|
|
502
|
-
};
|
|
503
|
-
interface Props$1 {
|
|
504
|
-
active?: boolean;
|
|
505
|
-
payload?: TooltipPayloadItem$1[];
|
|
506
|
-
label?: string;
|
|
507
|
-
finalColors?: Record<string, string>;
|
|
508
|
-
periodLabel?: string;
|
|
509
|
-
totalLabel?: string;
|
|
510
|
-
valueFormatter?: valueFormatter;
|
|
511
|
-
categoryFormatter?: (value: string | number) => string;
|
|
512
|
-
yAxisMap?: Record<string, "left" | "right">;
|
|
513
|
-
isBiaxial?: boolean;
|
|
514
|
-
}
|
|
515
|
-
declare const RechartTooltipWithTotal: React__default.FC<Props$1>;
|
|
409
|
+
declare const SeparatorBase: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
516
410
|
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
payload?: TooltipPayloadItem[];
|
|
526
|
-
label?: string;
|
|
527
|
-
finalColors?: Record<string, string>;
|
|
528
|
-
periodLabel?: string;
|
|
529
|
-
valueFormatter?: valueFormatter;
|
|
530
|
-
categoryFormatter?: (value: string | number) => string;
|
|
531
|
-
yAxisMap?: Record<string, "left" | "right">;
|
|
532
|
-
isBiaxial?: boolean;
|
|
533
|
-
}
|
|
534
|
-
declare const TooltipSimple: React__default.FC<Props>;
|
|
411
|
+
declare const TableBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
412
|
+
declare const TableHeaderBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
413
|
+
declare const TableBodyBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
414
|
+
declare const TableFooterBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
415
|
+
declare const TableRowBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
416
|
+
declare const TableHeadBase: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
417
|
+
declare const TableCellBase: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
418
|
+
declare const TableCaptionBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
535
419
|
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
420
|
+
declare const TabsBase: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
421
|
+
declare const TabsListBase: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
422
|
+
type TabsTriggerAnimation = "default" | "none" | "scale" | "underline" | string;
|
|
423
|
+
declare const TabsTriggerBase: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
424
|
+
animation?: TabsTriggerAnimation;
|
|
425
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
426
|
+
type TabsContentAnimation = "default" | "fade" | "slide" | "none" | string;
|
|
427
|
+
declare const TabsContentBase: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
428
|
+
animation?: TabsContentAnimation;
|
|
429
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
546
430
|
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
}
|
|
553
|
-
declare
|
|
431
|
+
declare function BreadcrumbBase({ ...props }: React$1.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
432
|
+
declare function BreadcrumbListBase({ className, ...props }: React$1.ComponentProps<"ol">): react_jsx_runtime.JSX.Element;
|
|
433
|
+
declare function BreadcrumbItemBase({ className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
434
|
+
declare function BreadcrumbLinkBase({ asChild, className, ...props }: React$1.ComponentProps<"a"> & {
|
|
435
|
+
asChild?: boolean;
|
|
436
|
+
}): react_jsx_runtime.JSX.Element;
|
|
437
|
+
declare function BreadcrumbPageBase({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
438
|
+
declare function BreadcrumbSeparatorBase({ children, className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
439
|
+
declare function BreadcrumbEllipsisBase({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
554
440
|
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
|
|
441
|
+
declare const CommandBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
442
|
+
children?: React$1.ReactNode;
|
|
443
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
444
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
445
|
+
} & {
|
|
446
|
+
asChild?: boolean;
|
|
447
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
562
448
|
label?: string;
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
};
|
|
573
|
-
type SeriesEntry = {
|
|
574
|
-
type: "bar" | "line" | "area";
|
|
575
|
-
key: string;
|
|
576
|
-
};
|
|
577
|
-
type SeriesCounts = {
|
|
578
|
-
bar: number;
|
|
579
|
-
line: number;
|
|
580
|
-
area: number;
|
|
581
|
-
};
|
|
582
|
-
type YAxisSide = "left" | "right";
|
|
583
|
-
type YAxisMap = Record<string, YAxisSide>;
|
|
584
|
-
interface MapperConfigEntry {
|
|
585
|
-
label?: string;
|
|
586
|
-
valueFormatter?: ValueFormatter;
|
|
587
|
-
color?: string;
|
|
588
|
-
type?: "number" | "string" | "auto";
|
|
589
|
-
visible?: boolean;
|
|
590
|
-
}
|
|
591
|
-
type MapperConfig = Record<string, MapperConfigEntry>;
|
|
592
|
-
interface YAxisOptions {
|
|
593
|
-
label?: string;
|
|
594
|
-
stroke?: string;
|
|
595
|
-
width?: number;
|
|
596
|
-
percent?: boolean;
|
|
597
|
-
percentDecimals?: number;
|
|
598
|
-
}
|
|
599
|
-
type YAxes = Partial<{
|
|
600
|
-
left: YAxisOptions;
|
|
601
|
-
right: YAxisOptions;
|
|
602
|
-
}>;
|
|
603
|
-
interface TooltipItem {
|
|
604
|
-
id: string;
|
|
605
|
-
data: ChartData;
|
|
606
|
-
position: {
|
|
607
|
-
top: number;
|
|
608
|
-
left: number;
|
|
609
|
-
};
|
|
610
|
-
}
|
|
611
|
-
type TooltipAdaptedRow = Record<string, string | number> & {
|
|
612
|
-
name: string;
|
|
613
|
-
};
|
|
614
|
-
interface ChartHooksArgs {
|
|
615
|
-
width?: number | string;
|
|
616
|
-
measuredWidth?: number | null;
|
|
617
|
-
points?: number;
|
|
618
|
-
seriesCounts?: SeriesCounts;
|
|
619
|
-
niceMax?: number;
|
|
620
|
-
yAxes?: YAxes;
|
|
621
|
-
yAxisLabel?: string;
|
|
622
|
-
chartMargin?: Partial<{
|
|
623
|
-
top: number;
|
|
624
|
-
right: number;
|
|
625
|
-
left: number;
|
|
626
|
-
bottom: number;
|
|
627
|
-
}>;
|
|
628
|
-
showLabels?: boolean;
|
|
629
|
-
showLegend?: boolean;
|
|
630
|
-
xAxisLabel?: string;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
634
|
-
declare const AvatarImageBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
635
|
-
declare const AvatarFallbackBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
636
|
-
|
|
637
|
-
declare const badgeVariants: (props?: ({
|
|
638
|
-
size?: "sm" | "lg" | "md" | null | undefined;
|
|
639
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
640
|
-
type BadgeColorType = "green" | "gray" | "red" | "yellow" | "blue" | "purple";
|
|
641
|
-
interface BadgeBaseProps extends React$1.ComponentProps<"span">, VariantProps<typeof badgeVariants> {
|
|
642
|
-
asChild?: boolean;
|
|
643
|
-
color?: BadgeColorType;
|
|
644
|
-
size?: "sm" | "md" | "lg";
|
|
645
|
-
status?: string;
|
|
646
|
-
}
|
|
647
|
-
declare function Badge({ className, color, size, asChild, children, style, ...props }: BadgeBaseProps): react_jsx_runtime.JSX.Element;
|
|
648
|
-
|
|
649
|
-
type CalendarProps = React$1.ComponentProps<typeof DayPicker>;
|
|
650
|
-
declare function CalendarBase({ className, classNames, showOutsideDays, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
651
|
-
declare namespace CalendarBase {
|
|
652
|
-
var displayName: string;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
declare const CardBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
449
|
+
shouldFilter?: boolean;
|
|
450
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
451
|
+
defaultValue?: string;
|
|
452
|
+
value?: string;
|
|
453
|
+
onValueChange?: (value: string) => void;
|
|
454
|
+
loop?: boolean;
|
|
455
|
+
disablePointerSelection?: boolean;
|
|
456
|
+
vimBindings?: boolean;
|
|
457
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
656
458
|
testid?: string;
|
|
657
459
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
658
|
-
declare const
|
|
460
|
+
declare const CommandDialogBase: ({ children, open, ...props }: DialogProps) => react_jsx_runtime.JSX.Element;
|
|
461
|
+
declare const CommandInputBase: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
|
|
462
|
+
ref?: React$1.Ref<HTMLInputElement>;
|
|
463
|
+
} & {
|
|
464
|
+
asChild?: boolean;
|
|
465
|
+
}, "asChild" | "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
466
|
+
value?: string;
|
|
467
|
+
onValueChange?: (search: string) => void;
|
|
468
|
+
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & {
|
|
659
469
|
testid?: string;
|
|
660
|
-
} & React$1.RefAttributes<
|
|
661
|
-
declare const
|
|
470
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
471
|
+
declare const CommandListBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
472
|
+
children?: React$1.ReactNode;
|
|
473
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
474
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
475
|
+
} & {
|
|
476
|
+
asChild?: boolean;
|
|
477
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
478
|
+
label?: string;
|
|
479
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
662
480
|
testid?: string;
|
|
663
481
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
664
|
-
declare const
|
|
482
|
+
declare const CommandEmptyBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
483
|
+
children?: React$1.ReactNode;
|
|
484
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
485
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
486
|
+
} & {
|
|
487
|
+
asChild?: boolean;
|
|
488
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
665
489
|
testid?: string;
|
|
666
490
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
667
|
-
declare const
|
|
491
|
+
declare const CommandGroupBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
492
|
+
children?: React$1.ReactNode;
|
|
493
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
494
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
495
|
+
} & {
|
|
496
|
+
asChild?: boolean;
|
|
497
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
498
|
+
heading?: React$1.ReactNode;
|
|
499
|
+
value?: string;
|
|
500
|
+
forceMount?: boolean;
|
|
501
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
668
502
|
testid?: string;
|
|
669
503
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
670
|
-
declare const
|
|
504
|
+
declare const CommandSeparatorBase: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
505
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
506
|
+
} & {
|
|
507
|
+
asChild?: boolean;
|
|
508
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
509
|
+
alwaysRender?: boolean;
|
|
510
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
671
511
|
testid?: string;
|
|
672
512
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
accept: string[];
|
|
681
|
-
maxSize: number;
|
|
682
|
-
maxFiles?: number;
|
|
683
|
-
onValueChange: (files: FileWithPreview[]) => void;
|
|
513
|
+
declare const CommandItemBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
514
|
+
children?: React$1.ReactNode;
|
|
515
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
516
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
517
|
+
} & {
|
|
518
|
+
asChild?: boolean;
|
|
519
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
684
520
|
disabled?: boolean;
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
animate?: boolean;
|
|
691
|
-
}
|
|
692
|
-
declare const FileUploader: React$1.ForwardRefExoticComponent<FileUploaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
693
|
-
|
|
694
|
-
declare const AlertDialogBase: React$1.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
695
|
-
declare const AlertDialogTriggerBase: React$1.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
696
|
-
declare const AlertDialogPortalBase: React$1.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
697
|
-
declare const AlertDialogOverlayBase: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
698
|
-
testid?: string;
|
|
699
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
700
|
-
declare const AlertDialogContentBase: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
521
|
+
onSelect?: (value: string) => void;
|
|
522
|
+
value?: string;
|
|
523
|
+
keywords?: string[];
|
|
524
|
+
forceMount?: boolean;
|
|
525
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
701
526
|
testid?: string;
|
|
702
527
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
703
|
-
declare const
|
|
704
|
-
({ className, ...props }: React$1.HTMLAttributes<
|
|
705
|
-
displayName: string;
|
|
706
|
-
};
|
|
707
|
-
declare const AlertDialogFooterBase: {
|
|
708
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
528
|
+
declare const CommandShortcutBase: {
|
|
529
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
709
530
|
displayName: string;
|
|
710
531
|
};
|
|
711
|
-
declare const AlertDialogTitleBase: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & {
|
|
712
|
-
testid?: string;
|
|
713
|
-
} & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
714
|
-
declare const AlertDialogDescriptionBase: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & {
|
|
715
|
-
testid?: string;
|
|
716
|
-
} & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
717
|
-
declare const AlertDialogActionBase: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
718
|
-
testid?: string;
|
|
719
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
720
|
-
declare const AlertDialogCancelBase: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
721
|
-
testid?: string;
|
|
722
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
723
|
-
|
|
724
|
-
interface DestructiveDialogProps {
|
|
725
|
-
title: string;
|
|
726
|
-
description: string;
|
|
727
|
-
onConfirm: () => void;
|
|
728
|
-
onCancel?: () => void;
|
|
729
|
-
children?: React$1.ReactNode;
|
|
730
|
-
triggerContent?: React$1.ReactNode;
|
|
731
|
-
className?: string;
|
|
732
|
-
}
|
|
733
|
-
declare const DestructiveDialog: React$1.FC<DestructiveDialogProps>;
|
|
734
532
|
|
|
735
|
-
|
|
533
|
+
declare const DropDownMenuBase: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
534
|
+
declare const DropDownMenuTriggerBase: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
535
|
+
declare const DropDownMenuGroupBase: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
536
|
+
declare const DropDownMenuPortalBase: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
537
|
+
declare const DropDownMenuSubBase: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
538
|
+
declare const DropDownMenuRadioGroupBase: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
539
|
+
declare const DropDownMenuSubTriggerBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
540
|
+
inset?: boolean;
|
|
541
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
542
|
+
declare const DropDownMenuSubContentBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
543
|
+
declare const DropDownMenuContentBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
736
544
|
testid?: string;
|
|
545
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
546
|
+
declare const DropDownMenuItemBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
547
|
+
inset?: boolean;
|
|
548
|
+
leftIcon?: React$1.ReactNode;
|
|
549
|
+
rightIcon?: React$1.ReactNode;
|
|
550
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
551
|
+
declare const DropDownMenuCheckboxItemBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
552
|
+
declare const DropDownMenuRadioItemBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
553
|
+
declare const DropDownMenuLabelBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
554
|
+
inset?: boolean;
|
|
555
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
556
|
+
declare const DropDownMenuSeparatorBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
557
|
+
declare const DropDownMenuShortcutBase: {
|
|
558
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
559
|
+
displayName: string;
|
|
737
560
|
};
|
|
738
|
-
declare const DialogBase: React$1.FC<DialogPrimitive.DialogProps>;
|
|
739
|
-
declare const DialogTriggerBase: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
740
|
-
declare const DialogPortalBase: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
741
|
-
declare const DialogCloseBase: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
742
|
-
declare const DialogOverlayBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & TestIdProps$2 & React$1.RefAttributes<HTMLDivElement>>;
|
|
743
|
-
declare const DialogContentBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & TestIdProps$2 & React$1.RefAttributes<HTMLDivElement>>;
|
|
744
|
-
declare const DialogHeaderBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & TestIdProps$2 & React$1.RefAttributes<HTMLDivElement>>;
|
|
745
|
-
declare const DialogFooterBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & TestIdProps$2 & React$1.RefAttributes<HTMLDivElement>>;
|
|
746
|
-
declare const DialogTitleBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & TestIdProps$2 & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
747
|
-
declare const DialogDescriptionBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & TestIdProps$2 & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
748
561
|
|
|
749
|
-
declare
|
|
750
|
-
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
}
|
|
757
|
-
declare
|
|
562
|
+
declare function NavigationMenuBase({ className, children, viewport, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
|
|
563
|
+
viewport?: boolean;
|
|
564
|
+
}): react_jsx_runtime.JSX.Element;
|
|
565
|
+
declare function NavigationMenuListBase({ className, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
566
|
+
declare function NavigationMenuItemBase({ className, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
567
|
+
declare function NavigationMenuTriggerBase({ className, children, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
568
|
+
declare function NavigationMenuContentBase({ className, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
569
|
+
declare function NavigationMenuViewportBase({ className, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): react_jsx_runtime.JSX.Element;
|
|
570
|
+
declare function NavigationMenuLinkBase({ className, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Link>): react_jsx_runtime.JSX.Element;
|
|
571
|
+
declare function NavigationMenuIndicatorBase({ className, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): react_jsx_runtime.JSX.Element;
|
|
758
572
|
|
|
759
|
-
type
|
|
760
|
-
|
|
573
|
+
type SidebarContext = {
|
|
574
|
+
state: "expanded" | "collapsed";
|
|
575
|
+
open: boolean;
|
|
576
|
+
setOpen: (open: boolean) => void;
|
|
577
|
+
openMobile: boolean;
|
|
578
|
+
setOpenMobile: (open: boolean) => void;
|
|
579
|
+
isMobile: boolean;
|
|
580
|
+
toggleSidebar: () => void;
|
|
761
581
|
};
|
|
762
|
-
declare const
|
|
763
|
-
declare
|
|
764
|
-
declare const
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
declare const
|
|
775
|
-
declare const
|
|
776
|
-
declare const
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
declare const
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
}
|
|
804
|
-
declare const
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
declare const
|
|
582
|
+
declare const SidebarContext: React$1.Context<SidebarContext | null>;
|
|
583
|
+
declare function UseSideBarBase(): SidebarContext;
|
|
584
|
+
declare const SidebarProviderBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
585
|
+
defaultOpen?: boolean;
|
|
586
|
+
open?: boolean;
|
|
587
|
+
onOpenChange?: (open: boolean) => void;
|
|
588
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
589
|
+
declare const SidebarBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
590
|
+
side?: "left" | "right";
|
|
591
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
592
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
593
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
594
|
+
declare const SidebarTriggerBase: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
595
|
+
declare const SidebarRailBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
596
|
+
declare const SidebarInsetBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
597
|
+
declare const SidebarInputBase: React$1.ForwardRefExoticComponent<Omit<Omit<InputBaseProps, "ref"> & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
598
|
+
declare const SidebarHeaderBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
599
|
+
declare const SidebarFooterBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
600
|
+
declare const SidebarSeparatorBase: React$1.ForwardRefExoticComponent<Omit<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
601
|
+
declare const SidebarContentBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
602
|
+
declare const SidebarGroupBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
603
|
+
declare const SidebarGroupLabelBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
604
|
+
asChild?: boolean;
|
|
605
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
606
|
+
declare const SidebarGroupActionBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
607
|
+
asChild?: boolean;
|
|
608
|
+
}, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
609
|
+
declare const SidebarGroupContentBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
610
|
+
declare const SidebarMenuBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
611
|
+
declare const SidebarMenuItemBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
612
|
+
declare const SidebarMenuButtonBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
613
|
+
asChild?: boolean;
|
|
614
|
+
isActive?: boolean;
|
|
615
|
+
tooltip?: string | React$1.ComponentProps<typeof TooltipContentBase>;
|
|
616
|
+
} & VariantProps<(props?: ({
|
|
617
|
+
variant?: "default" | "outline" | null | undefined;
|
|
618
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
619
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
620
|
+
declare const SidebarMenuActionBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
621
|
+
asChild?: boolean;
|
|
622
|
+
showOnHover?: boolean;
|
|
623
|
+
}, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
624
|
+
declare const SidebarMenuBadgeBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
625
|
+
declare const SidebarMenuSkeletonBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
626
|
+
showIcon?: boolean;
|
|
627
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
628
|
+
declare const SidebarMenuSubBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
629
|
+
declare const SidebarMenuSubItemBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
630
|
+
declare const SidebarMenuSubButtonBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLAnchorElement> & React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
631
|
+
asChild?: boolean;
|
|
632
|
+
size?: "sm" | "md";
|
|
633
|
+
isActive?: boolean;
|
|
634
|
+
}, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
811
635
|
|
|
812
|
-
declare function
|
|
636
|
+
declare function DrawerBase({ ...props }: React$1.ComponentProps<typeof Drawer.Root>): react_jsx_runtime.JSX.Element;
|
|
637
|
+
declare function DrawerTriggerBase({ ...props }: React$1.ComponentProps<typeof Drawer.Trigger>): react_jsx_runtime.JSX.Element;
|
|
638
|
+
declare function DrawerPortalBase({ ...props }: React$1.ComponentProps<typeof Drawer.Portal>): react_jsx_runtime.JSX.Element;
|
|
639
|
+
declare function DrawerCloseBase({ ...props }: React$1.ComponentProps<typeof Drawer.Close>): react_jsx_runtime.JSX.Element;
|
|
640
|
+
declare function DrawerOverlayBase({ className, ...props }: React$1.ComponentProps<typeof Drawer.Overlay>): react_jsx_runtime.JSX.Element;
|
|
641
|
+
declare function DrawerContentBase({ className, children, ...props }: React$1.ComponentProps<typeof Drawer.Content>): react_jsx_runtime.JSX.Element;
|
|
642
|
+
declare function DrawerHeaderBase({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
643
|
+
declare function DrawerFooterBase({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
644
|
+
declare function DrawerTitleBase({ className, ...props }: React$1.ComponentProps<typeof Drawer.Title>): react_jsx_runtime.JSX.Element;
|
|
645
|
+
declare function DrawerDescriptionBase({ className, ...props }: React$1.ComponentProps<typeof Drawer.Description>): react_jsx_runtime.JSX.Element;
|
|
813
646
|
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
success: (message: string) => string | number;
|
|
820
|
-
error: (message: string) => string | number;
|
|
821
|
-
warning: (message: string) => string | number;
|
|
822
|
-
info: (message: string) => string | number;
|
|
823
|
-
loading: (message: string) => string | number;
|
|
647
|
+
declare const PopoverBase: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
648
|
+
declare const PopoverTriggerBase: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
649
|
+
declare const PopoverAnchorBase: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
650
|
+
type TestIdProps = {
|
|
651
|
+
testid?: string;
|
|
824
652
|
};
|
|
653
|
+
declare const PopoverContentBase: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & TestIdProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
825
654
|
|
|
826
|
-
declare const
|
|
827
|
-
declare const
|
|
828
|
-
declare const
|
|
829
|
-
declare const
|
|
830
|
-
|
|
831
|
-
declare const
|
|
832
|
-
|
|
833
|
-
size?: "default" | "select" | "sm" | "lg" | "icon" | null | undefined;
|
|
655
|
+
declare const SheetBase: React$1.FC<DialogPrimitive.DialogProps>;
|
|
656
|
+
declare const SheetTriggerBase: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
657
|
+
declare const SheetCloseBase: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
658
|
+
declare const SheetPortalBase: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
659
|
+
declare const SheetOverlayBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
660
|
+
declare const sheetVariants: (props?: ({
|
|
661
|
+
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
834
662
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
835
|
-
interface
|
|
836
|
-
asChild?: boolean;
|
|
837
|
-
testid?: string;
|
|
838
|
-
isLoading?: boolean;
|
|
839
|
-
}
|
|
840
|
-
declare const ButtonBase: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
841
|
-
interface ButtonGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
842
|
-
children: React$1.ReactNode;
|
|
843
|
-
orientation?: "horizontal" | "vertical";
|
|
663
|
+
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
844
664
|
}
|
|
845
|
-
declare const
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
declare const CollapsibleContentBase: React$1.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
665
|
+
declare const SheetContentBase: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
666
|
+
declare const SheetHeaderBase: {
|
|
667
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
668
|
+
displayName: string;
|
|
669
|
+
};
|
|
670
|
+
declare const SheetFooterBase: {
|
|
671
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
672
|
+
displayName: string;
|
|
673
|
+
};
|
|
674
|
+
declare const SheetTitleBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
675
|
+
declare const SheetDescriptionBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
857
676
|
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
677
|
+
interface UniversalTooltipRendererProps {
|
|
678
|
+
className?: string;
|
|
679
|
+
showCloseButton?: boolean;
|
|
680
|
+
showCloseAllButton?: boolean;
|
|
681
|
+
tooltipClassName?: string;
|
|
682
|
+
guideClassName?: string;
|
|
683
|
+
closeButtonClassName?: string;
|
|
684
|
+
closeAllButtonClassName?: string;
|
|
685
|
+
}
|
|
686
|
+
declare const UniversalTooltipRenderer: React__default.FC<UniversalTooltipRendererProps>;
|
|
861
687
|
|
|
862
|
-
declare function
|
|
863
|
-
|
|
688
|
+
declare function ContextMenuBase(props: React$1.ComponentProps<typeof ContextMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
689
|
+
declare function ContextMenuTriggerBase(props: React$1.ComponentProps<typeof ContextMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
690
|
+
declare function ContextMenuGroupBase(props: React$1.ComponentProps<typeof ContextMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
691
|
+
declare function ContextMenuPortalBase(props: React$1.ComponentProps<typeof ContextMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
692
|
+
declare function ContextMenuSubBase(props: React$1.ComponentProps<typeof ContextMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
693
|
+
declare function ContextMenuRadioGroupBase(props: React$1.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
694
|
+
declare function ContextMenuSubTriggerBase({ className, inset, children, ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
695
|
+
inset?: boolean;
|
|
864
696
|
}): react_jsx_runtime.JSX.Element;
|
|
865
|
-
declare function
|
|
866
|
-
declare function
|
|
867
|
-
|
|
697
|
+
declare function ContextMenuSubContentBase({ className, ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
698
|
+
declare function ContextMenuContentBase({ className, ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
699
|
+
declare function ContextMenuItemBase({ className, inset, variant, ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
700
|
+
inset?: boolean;
|
|
701
|
+
variant?: "default" | "destructive";
|
|
868
702
|
}): react_jsx_runtime.JSX.Element;
|
|
869
|
-
declare function
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
"data-testid"?: string;
|
|
877
|
-
error?: string | undefined;
|
|
878
|
-
}
|
|
879
|
-
declare const InputBase: React$1.ForwardRefExoticComponent<Omit<InputBaseProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
880
|
-
|
|
881
|
-
declare const LabelBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
882
|
-
asChild?: boolean;
|
|
883
|
-
testid?: string;
|
|
884
|
-
} & React$1.RefAttributes<HTMLLabelElement>>;
|
|
703
|
+
declare function ContextMenuCheckboxItemBase({ className, children, checked, ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
704
|
+
declare function ContextMenuRadioItemBase({ className, children, ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
705
|
+
declare function ContextMenuLabelBase({ className, inset, ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.Label> & {
|
|
706
|
+
inset?: boolean;
|
|
707
|
+
}): react_jsx_runtime.JSX.Element;
|
|
708
|
+
declare function ContextMenuSeparatorBase({ className, ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
709
|
+
declare function ContextMenuShortcutBase({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
885
710
|
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
711
|
+
type CodeBlockProps = {
|
|
712
|
+
language: string;
|
|
713
|
+
filename: string;
|
|
714
|
+
highlightLines?: number[];
|
|
715
|
+
breadcrumb?: string[];
|
|
716
|
+
showStats?: boolean;
|
|
717
|
+
loading?: boolean;
|
|
718
|
+
loaderWords?: string[];
|
|
719
|
+
} & ({
|
|
720
|
+
code: string;
|
|
721
|
+
tabs?: never;
|
|
722
|
+
} | {
|
|
723
|
+
code?: never;
|
|
724
|
+
tabs: Array<{
|
|
725
|
+
name: string;
|
|
726
|
+
code: string;
|
|
727
|
+
language?: string;
|
|
728
|
+
highlightLines?: number[];
|
|
729
|
+
}>;
|
|
730
|
+
} | {
|
|
731
|
+
code?: string;
|
|
732
|
+
tabs?: Array<{
|
|
733
|
+
name: string;
|
|
734
|
+
code: string;
|
|
735
|
+
language?: string;
|
|
736
|
+
highlightLines?: number[];
|
|
737
|
+
}>;
|
|
738
|
+
});
|
|
739
|
+
declare const CodeBlock: ({ language, filename, code, highlightLines, tabs, breadcrumb, showStats, }: CodeBlockProps) => react_jsx_runtime.JSX.Element;
|
|
740
|
+
|
|
741
|
+
interface StatusProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
742
|
+
color?: "green" | "gray" | "red" | "yellow" | "blue" | "purple" | "retire";
|
|
743
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
744
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "inline";
|
|
745
|
+
show?: boolean;
|
|
746
|
+
children?: React$1.ReactNode;
|
|
890
747
|
}
|
|
891
|
-
declare
|
|
748
|
+
declare function StatusIndicator({ color, size, position, show, children, className, ...props }: StatusProps): react_jsx_runtime.JSX.Element;
|
|
892
749
|
|
|
893
|
-
interface
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
750
|
+
interface DebouncedInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value">, ErrorMessageProps {
|
|
751
|
+
value: string;
|
|
752
|
+
onChange: (value: string) => void;
|
|
753
|
+
debounce?: number;
|
|
754
|
+
label?: string;
|
|
755
|
+
labelClassname?: string;
|
|
756
|
+
leftIcon?: React.ReactNode;
|
|
757
|
+
rightIcon?: React.ReactNode;
|
|
758
|
+
showLoadingIndicator?: boolean;
|
|
759
|
+
error?: string | undefined;
|
|
902
760
|
}
|
|
903
|
-
declare
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
declare const CopyButton: React$1.FC<QuickButtonProps>;
|
|
911
|
-
declare const RefreshButton: React$1.FC<QuickButtonProps>;
|
|
912
|
-
declare const SearchButton: React$1.FC<QuickButtonProps>;
|
|
913
|
-
declare const BackButton: React$1.FC<QuickButtonProps>;
|
|
914
|
-
declare const SettingsButton: React$1.FC<QuickButtonProps>;
|
|
915
|
-
declare const NotificationButton: React$1.FC<QuickButtonProps>;
|
|
916
|
-
declare const MoreButton: React$1.FC<QuickButtonProps>;
|
|
917
|
-
declare const CheckButton: React$1.FC<QuickButtonProps>;
|
|
918
|
-
interface FilterButtonProps extends QuickButtonProps {
|
|
919
|
-
active?: boolean;
|
|
761
|
+
declare function DebouncedInput({ value: initialValue, onChange, debounce, label, labelClassname, leftIcon, rightIcon, showLoadingIndicator, className, error, ...props }: DebouncedInputProps): react_jsx_runtime.JSX.Element;
|
|
762
|
+
|
|
763
|
+
interface TreeNode {
|
|
764
|
+
id: string;
|
|
765
|
+
label: string;
|
|
766
|
+
defaultChecked?: boolean;
|
|
767
|
+
children?: TreeNode[];
|
|
920
768
|
}
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
769
|
+
interface CheckboxTreeProps {
|
|
770
|
+
tree: TreeNode;
|
|
771
|
+
renderNode: (props: {
|
|
772
|
+
node: TreeNode;
|
|
773
|
+
isChecked: boolean | "indeterminate";
|
|
774
|
+
onCheckedChange: () => void;
|
|
775
|
+
children: React__default.ReactNode;
|
|
776
|
+
}) => React__default.ReactNode;
|
|
924
777
|
}
|
|
925
|
-
declare
|
|
926
|
-
|
|
927
|
-
|
|
778
|
+
declare function CheckboxTree({ tree, renderNode }: CheckboxTreeProps): React__default.ReactNode;
|
|
779
|
+
|
|
780
|
+
type IconProps = {
|
|
781
|
+
className?: string;
|
|
782
|
+
size?: number | string;
|
|
783
|
+
};
|
|
784
|
+
type BannerProps = {
|
|
785
|
+
icon?: ReactNode | ComponentType<IconProps>;
|
|
786
|
+
title?: string;
|
|
787
|
+
description?: string;
|
|
788
|
+
actionText?: ReactNode;
|
|
789
|
+
id?: string;
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
interface DateTimePickerProps extends ErrorMessageProps {
|
|
793
|
+
label?: string;
|
|
794
|
+
date: Date | undefined;
|
|
795
|
+
onChange: (date: Date | undefined) => void;
|
|
796
|
+
displayFormat?: boolean;
|
|
797
|
+
hideTime?: boolean;
|
|
798
|
+
hideSeconds?: boolean;
|
|
799
|
+
fromDate?: Date;
|
|
800
|
+
toDate?: Date;
|
|
801
|
+
disabled?: boolean;
|
|
802
|
+
className?: string;
|
|
803
|
+
error?: string;
|
|
928
804
|
}
|
|
929
|
-
declare
|
|
930
|
-
|
|
931
|
-
|
|
805
|
+
declare function DateTimePicker({ label, date, onChange, displayFormat, hideTime, hideSeconds, fromDate, toDate, disabled, className, error, }: DateTimePickerProps): react_jsx_runtime.JSX.Element;
|
|
806
|
+
|
|
807
|
+
interface RangePickerProps extends ErrorMessageProps {
|
|
808
|
+
value?: DateRange;
|
|
809
|
+
onChange?: (range: DateRange | undefined) => void;
|
|
810
|
+
label?: string;
|
|
811
|
+
minDate?: Date;
|
|
812
|
+
maxDate?: Date;
|
|
813
|
+
error?: string | undefined;
|
|
932
814
|
}
|
|
933
|
-
declare
|
|
934
|
-
declare
|
|
935
|
-
|
|
936
|
-
interface LockButtonProps extends QuickButtonProps {
|
|
937
|
-
isLocked?: boolean;
|
|
815
|
+
declare function RangePicker({ value, onChange, label, minDate, maxDate, error, }: RangePickerProps): react_jsx_runtime.JSX.Element;
|
|
816
|
+
declare namespace RangePicker {
|
|
817
|
+
var displayName: string;
|
|
938
818
|
}
|
|
939
|
-
declare const LockButton: React$1.FC<LockButtonProps>;
|
|
940
|
-
declare const UnlockButton: React$1.FC<QuickButtonProps>;
|
|
941
|
-
|
|
942
|
-
declare const SwitchBase: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
943
|
-
testid?: string;
|
|
944
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
945
819
|
|
|
946
|
-
interface
|
|
947
|
-
|
|
948
|
-
|
|
820
|
+
interface TimePickerProps {
|
|
821
|
+
date: Date | undefined;
|
|
822
|
+
setDate: (date: Date | undefined) => void;
|
|
823
|
+
hideSeconds?: boolean;
|
|
824
|
+
enableButton?: boolean;
|
|
949
825
|
}
|
|
950
|
-
declare
|
|
826
|
+
declare function TimePicker({ date, setDate, hideSeconds, enableButton, }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
951
827
|
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
828
|
+
/**
|
|
829
|
+
* regular expression to check for valid hour format (01-23)
|
|
830
|
+
*/
|
|
831
|
+
declare function isValidHour(value: string): boolean;
|
|
832
|
+
/**
|
|
833
|
+
* regular expression to check for valid 12 hour format (01-12)
|
|
834
|
+
*/
|
|
835
|
+
declare function isValid12Hour(value: string): boolean;
|
|
836
|
+
/**
|
|
837
|
+
* regular expression to check for valid minute format (00-59)
|
|
838
|
+
*/
|
|
839
|
+
declare function isValidMinuteOrSecond(value: string): boolean;
|
|
840
|
+
type GetValidNumberConfig = {
|
|
841
|
+
max: number;
|
|
842
|
+
min?: number;
|
|
843
|
+
loop?: boolean;
|
|
961
844
|
};
|
|
962
|
-
declare function
|
|
963
|
-
declare function
|
|
964
|
-
declare function
|
|
965
|
-
declare function
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
845
|
+
declare function getValidNumber(value: string, { max, min, loop }: GetValidNumberConfig): string;
|
|
846
|
+
declare function getValidHour(value: string): string;
|
|
847
|
+
declare function getValid12Hour(value: string): string;
|
|
848
|
+
declare function getValidMinuteOrSecond(value: string): string;
|
|
849
|
+
type GetValidArrowNumberConfig = {
|
|
850
|
+
min: number;
|
|
851
|
+
max: number;
|
|
852
|
+
step: number;
|
|
853
|
+
};
|
|
854
|
+
declare function getValidArrowNumber(value: string, { min, max, step }: GetValidArrowNumberConfig): string;
|
|
855
|
+
declare function getValidArrowHour(value: string, step: number): string;
|
|
856
|
+
declare function getValidArrow12Hour(value: string, step: number): string;
|
|
857
|
+
declare function getValidArrowMinuteOrSecond(value: string, step: number): string;
|
|
858
|
+
declare function setMinutes(date: Date, value: string): Date;
|
|
859
|
+
declare function setSeconds(date: Date, value: string): Date;
|
|
860
|
+
declare function setHours(date: Date, value: string): Date;
|
|
861
|
+
declare function set12Hours(date: Date, value: string, period: Period): Date;
|
|
862
|
+
type TimePickerType = "minutes" | "seconds" | "hours" | "12hours";
|
|
863
|
+
type Period = "AM" | "PM";
|
|
864
|
+
declare function setDateByType(date: Date, value: string, type: TimePickerType, period?: Period): Date;
|
|
865
|
+
declare function getDateByType(date: Date, type: TimePickerType): string;
|
|
866
|
+
declare function getArrowByType(value: string, step: number, type: TimePickerType): string;
|
|
867
|
+
/**
|
|
868
|
+
* handles value change of 12-hour input
|
|
869
|
+
* 12:00 PM is 12:00
|
|
870
|
+
* 12:00 AM is 00:00
|
|
871
|
+
*/
|
|
872
|
+
declare function convert12HourTo24Hour(hour: number, period: Period): number;
|
|
873
|
+
/**
|
|
874
|
+
* time is stored in the 24-hour form,
|
|
875
|
+
* but needs to be displayed to the user
|
|
876
|
+
* in its 12-hour representation
|
|
877
|
+
*/
|
|
878
|
+
declare function display12HourValue(hours: number): string;
|
|
970
879
|
|
|
971
|
-
|
|
880
|
+
interface TimePickerInputProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
881
|
+
picker: TimePickerType;
|
|
882
|
+
date: Date | undefined;
|
|
883
|
+
setDate: (date: Date | undefined) => void;
|
|
884
|
+
period?: Period;
|
|
885
|
+
onRightFocus?: () => void;
|
|
886
|
+
onLeftFocus?: () => void;
|
|
887
|
+
showArrows?: boolean;
|
|
888
|
+
label?: string;
|
|
889
|
+
error?: boolean;
|
|
890
|
+
inputSize?: "sm" | "md" | "lg";
|
|
891
|
+
enableButton?: boolean;
|
|
892
|
+
buttonText?: string;
|
|
893
|
+
buttonIcon?: React__default.ReactNode;
|
|
894
|
+
}
|
|
895
|
+
declare const TimePickerInput: React__default.ForwardRefExoticComponent<TimePickerInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
972
896
|
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
declare
|
|
980
|
-
declare const TableCaptionBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
897
|
+
interface AgendaViewProps$1 {
|
|
898
|
+
currentDate: Date;
|
|
899
|
+
events: CalendarEventAgenda[];
|
|
900
|
+
onEventSelect?: (event: CalendarEventAgenda, e?: React.MouseEvent) => void;
|
|
901
|
+
showUndatedEvents?: boolean;
|
|
902
|
+
}
|
|
903
|
+
declare function Agenda({ currentDate, events, onEventSelect, showUndatedEvents, }: AgendaViewProps$1): react_jsx_runtime.JSX.Element;
|
|
981
904
|
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
988
|
-
type TabsContentAnimation = "default" | "fade" | "slide" | "none" | string;
|
|
989
|
-
declare const TabsContentBase: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
990
|
-
animation?: TabsContentAnimation;
|
|
991
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
905
|
+
interface CalendarDndProviderProps$1 {
|
|
906
|
+
children: ReactNode;
|
|
907
|
+
onEventUpdate: (event: CalendarEventAgenda) => void;
|
|
908
|
+
}
|
|
909
|
+
declare function CalendarDndProviderAgenda({ children, onEventUpdate, }: CalendarDndProviderProps$1): react_jsx_runtime.JSX.Element;
|
|
992
910
|
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
911
|
+
type CalendarDndContextType$1 = {
|
|
912
|
+
activeEvent: CalendarEventAgenda | null;
|
|
913
|
+
activeId: UniqueIdentifier | null;
|
|
914
|
+
activeView: "month" | "week" | "day" | null;
|
|
915
|
+
currentTime: Date | null;
|
|
916
|
+
eventHeight: number | null;
|
|
917
|
+
isMultiDay: boolean;
|
|
918
|
+
multiDayWidth: number | null;
|
|
919
|
+
dragHandlePosition: {
|
|
920
|
+
x?: number;
|
|
921
|
+
y?: number;
|
|
922
|
+
data?: {
|
|
923
|
+
isFirstDay?: boolean;
|
|
924
|
+
isLastDay?: boolean;
|
|
925
|
+
};
|
|
926
|
+
} | null;
|
|
927
|
+
};
|
|
928
|
+
declare const useCalendarDndAgenda: () => CalendarDndContextType$1;
|
|
1002
929
|
|
|
1003
|
-
declare const
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
930
|
+
declare const EventHeightAgenda = 24;
|
|
931
|
+
declare const EventGapAgenda = 4;
|
|
932
|
+
declare const WeekCellsHeightAgenda = 64;
|
|
933
|
+
declare const AgendaDaysToShowAgenda = 30;
|
|
934
|
+
declare const StartHourAgenda = 0;
|
|
935
|
+
declare const EndHourAgenda = 24;
|
|
936
|
+
declare const DefaultStartHourAgenda = 9;
|
|
937
|
+
declare const DefaultEndHourAgenda = 10;
|
|
938
|
+
|
|
939
|
+
type CalendarViewAgenda = "month" | "week" | "day" | "agenda";
|
|
940
|
+
interface CalendarEventAgenda {
|
|
941
|
+
id: string;
|
|
942
|
+
title: string;
|
|
943
|
+
description?: ReactNode;
|
|
944
|
+
start?: Date | null;
|
|
945
|
+
end?: Date | null;
|
|
946
|
+
allDay?: boolean;
|
|
947
|
+
color?: EventColorAgenda;
|
|
948
|
+
location?: string;
|
|
949
|
+
duration?: number;
|
|
950
|
+
}
|
|
951
|
+
type EventColorAgenda = "sky" | "amber" | "violet" | "rose" | "emerald" | "orange" | "green" | "blue" | "red" | "purple";
|
|
952
|
+
|
|
953
|
+
interface DayViewProps$1 {
|
|
954
|
+
currentDate: Date;
|
|
955
|
+
events: CalendarEventAgenda[];
|
|
956
|
+
onEventSelect: (event: CalendarEventAgenda, e?: React__default.MouseEvent) => void;
|
|
957
|
+
showUndatedEvents?: boolean;
|
|
958
|
+
}
|
|
959
|
+
declare function DayViewAgenda({ currentDate, events, onEventSelect, showUndatedEvents, }: DayViewProps$1): react_jsx_runtime.JSX.Element;
|
|
960
|
+
|
|
961
|
+
interface DroppableCellProps$1 {
|
|
962
|
+
id: string;
|
|
963
|
+
date: Date;
|
|
964
|
+
time?: number;
|
|
965
|
+
children?: React.ReactNode;
|
|
966
|
+
className?: string;
|
|
967
|
+
onClick?: () => void;
|
|
968
|
+
}
|
|
969
|
+
declare function DroppableCellAgenda({ id, date, time, children, className, onClick, }: DroppableCellProps$1): react_jsx_runtime.JSX.Element;
|
|
970
|
+
|
|
971
|
+
interface EventCalendarProps$1 {
|
|
972
|
+
events?: CalendarEventAgenda[];
|
|
973
|
+
onEventUpdate?: (event: CalendarEventAgenda) => void;
|
|
974
|
+
className?: string;
|
|
975
|
+
initialView?: CalendarViewAgenda;
|
|
976
|
+
initialDate?: Date;
|
|
977
|
+
onClick?: ((event: CalendarEventAgenda, e?: React__default.MouseEvent) => void) | React__default.ReactElement<ModalLikeProps>;
|
|
978
|
+
}
|
|
979
|
+
interface ModalLikeProps {
|
|
980
|
+
event?: CalendarEventAgenda;
|
|
981
|
+
onClose?: () => void;
|
|
982
|
+
[key: string]: unknown;
|
|
983
|
+
}
|
|
984
|
+
declare function EventAgenda({ events, onEventUpdate, className, initialView, initialDate, onClick, }: EventCalendarProps$1): react_jsx_runtime.JSX.Element;
|
|
985
|
+
|
|
986
|
+
interface EventItemProps$1 {
|
|
987
|
+
event: CalendarEventAgenda;
|
|
988
|
+
view: "month" | "week" | "day" | "agenda";
|
|
989
|
+
agendaOnly?: boolean;
|
|
990
|
+
isDragging?: boolean;
|
|
991
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
992
|
+
showTime?: boolean;
|
|
993
|
+
currentTime?: Date;
|
|
994
|
+
isFirstDay?: boolean;
|
|
995
|
+
isLastDay?: boolean;
|
|
996
|
+
children?: React.ReactNode;
|
|
997
|
+
className?: string;
|
|
998
|
+
dndListeners?: SyntheticListenerMap;
|
|
999
|
+
dndAttributes?: DraggableAttributes;
|
|
1000
|
+
onMouseDown?: (e: React.MouseEvent) => void;
|
|
1001
|
+
onTouchStart?: (e: React.TouchEvent) => void;
|
|
1002
|
+
}
|
|
1003
|
+
declare function EventItemAgenda({ event, view, onClick, showTime, currentTime, isFirstDay, isLastDay, children, className, dndListeners, dndAttributes, onMouseDown, onTouchStart, agendaOnly, }: EventItemProps$1): react_jsx_runtime.JSX.Element;
|
|
1004
|
+
|
|
1005
|
+
interface UndatedEventsProps {
|
|
1006
|
+
events: CalendarEventAgenda[];
|
|
1007
|
+
onEventSelect?: (event: CalendarEventAgenda, e?: React.MouseEvent) => void;
|
|
1008
|
+
className?: string;
|
|
1009
|
+
title?: string;
|
|
1010
|
+
show?: boolean;
|
|
1011
|
+
}
|
|
1012
|
+
declare function UndatedEvents({ events, onEventSelect, className, title, show, }: UndatedEventsProps): react_jsx_runtime.JSX.Element | null;
|
|
1013
|
+
|
|
1014
|
+
declare function useCurrentTimeIndicatorAgenda(currentDate: Date, view: "day" | "week"): {
|
|
1015
|
+
currentTimePosition: number;
|
|
1016
|
+
currentTimeVisible: boolean;
|
|
1017
|
+
};
|
|
1018
|
+
|
|
1019
|
+
interface EventVisibilityOptions$1 {
|
|
1020
|
+
eventHeight: number;
|
|
1021
|
+
eventGap: number;
|
|
1022
|
+
}
|
|
1023
|
+
interface EventVisibilityResult$1 {
|
|
1024
|
+
contentRef: React.RefObject<HTMLDivElement>;
|
|
1025
|
+
contentHeight: number | null;
|
|
1026
|
+
getVisibleEventCount: (totalEvents: number) => number;
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* Hook for calculating event visibility based on container height
|
|
1030
|
+
* Uses ResizeObserver for efficient updates
|
|
1031
|
+
*/
|
|
1032
|
+
declare function useEventVisibilityAgenda({ eventHeight, eventGap, }: EventVisibilityOptions$1): EventVisibilityResult$1;
|
|
1033
|
+
|
|
1034
|
+
interface MonthViewProps$1 {
|
|
1035
|
+
currentDate: Date;
|
|
1036
|
+
events: CalendarEventAgenda[];
|
|
1037
|
+
onEventSelect: (event: CalendarEventAgenda, e?: React__default.MouseEvent) => void;
|
|
1038
|
+
showUndatedEvents?: boolean;
|
|
1039
|
+
}
|
|
1040
|
+
declare function MonthViewAgenda({ currentDate, events, onEventSelect, showUndatedEvents, }: MonthViewProps$1): react_jsx_runtime.JSX.Element;
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* Get CSS classes for event colors
|
|
1044
|
+
*/
|
|
1045
|
+
declare function getEventColorClassesAgenda(color?: EventColorAgenda | string): string;
|
|
1046
|
+
/**
|
|
1047
|
+
* Get CSS classes for border radius based on event position in multi-day events
|
|
1048
|
+
*/
|
|
1049
|
+
declare function getBorderRadiusClassesAgenda(isFirstDay: boolean, isLastDay: boolean): string;
|
|
1050
|
+
/**
|
|
1051
|
+
* Check if an event is a multi-day event
|
|
1052
|
+
*/
|
|
1053
|
+
declare function isMultiDayEventAgenda(event: CalendarEventAgenda): boolean;
|
|
1054
|
+
/**
|
|
1055
|
+
* Filter events for a specific day
|
|
1056
|
+
*/
|
|
1057
|
+
declare function getEventsForDayAgenda(events: CalendarEventAgenda[], day: Date): CalendarEventAgenda[];
|
|
1058
|
+
declare function sortEventsAgenda(events: CalendarEventAgenda[]): CalendarEventAgenda[];
|
|
1059
|
+
declare function getSpanningEventsForDayAgenda(events: CalendarEventAgenda[], day: Date): CalendarEventAgenda[];
|
|
1060
|
+
/**
|
|
1061
|
+
* Get all events visible on a specific day (starting, ending, or spanning)
|
|
1062
|
+
*/
|
|
1063
|
+
declare function getAllEventsForDayAgenda(events: CalendarEventAgenda[], day: Date): CalendarEventAgenda[];
|
|
1064
|
+
/**
|
|
1065
|
+
* Get all events for a day (for agenda view)
|
|
1066
|
+
*/
|
|
1067
|
+
declare function getAgendaEventsForDayAgenda(events: CalendarEventAgenda[], day: Date): CalendarEventAgenda[];
|
|
1068
|
+
/**
|
|
1069
|
+
* Return the event start as a Date if possible
|
|
1070
|
+
*/
|
|
1071
|
+
declare function getEventStartDate(event: CalendarEventAgenda): Date | undefined;
|
|
1072
|
+
/**
|
|
1073
|
+
* Return the event end as a Date. If `end` is not provided but `duration` (minutes) is,
|
|
1074
|
+
* compute end = start + duration minutes.
|
|
1075
|
+
*/
|
|
1076
|
+
declare function getEventEndDate(event: CalendarEventAgenda): Date | undefined;
|
|
1077
|
+
declare function normalizeAttendDate(d?: unknown): Date | undefined;
|
|
1078
|
+
/**
|
|
1079
|
+
* Add hours to a date
|
|
1080
|
+
*/
|
|
1081
|
+
declare function addMinutesToDateAgenda(date: Date, minutes: number): Date;
|
|
1082
|
+
declare function addHoursToDateAgenda(date: Date, hours: number): Date;
|
|
1083
|
+
|
|
1084
|
+
interface WeekViewProps$1 {
|
|
1085
|
+
currentDate: Date;
|
|
1086
|
+
events: CalendarEventAgenda[];
|
|
1087
|
+
onEventSelect: (event: CalendarEventAgenda, e?: React__default.MouseEvent) => void;
|
|
1088
|
+
onEventCreate?: (startTime: Date) => void;
|
|
1089
|
+
showUndatedEvents?: boolean;
|
|
1090
|
+
}
|
|
1091
|
+
declare function WeekViewAgenda({ currentDate, events, onEventSelect, onEventCreate, showUndatedEvents, }: WeekViewProps$1): react_jsx_runtime.JSX.Element;
|
|
1092
|
+
|
|
1093
|
+
interface AgendaViewProps {
|
|
1094
|
+
currentDate: Date;
|
|
1095
|
+
events: CalendarEvent[];
|
|
1096
|
+
onEventSelect?: (event: CalendarEvent) => void;
|
|
1097
|
+
showUndatedEvents?: boolean;
|
|
1098
|
+
}
|
|
1099
|
+
declare function AgendaView({ currentDate, events, onEventSelect, showUndatedEvents, }: AgendaViewProps): react_jsx_runtime.JSX.Element;
|
|
1100
|
+
|
|
1101
|
+
interface CalendarDndProviderProps {
|
|
1102
|
+
children: ReactNode;
|
|
1103
|
+
onEventUpdate: (event: CalendarEvent) => void;
|
|
1104
|
+
}
|
|
1105
|
+
declare function CalendarDndProvider({ children, onEventUpdate, }: CalendarDndProviderProps): react_jsx_runtime.JSX.Element;
|
|
1106
|
+
|
|
1107
|
+
type CalendarDndContextType = {
|
|
1108
|
+
activeEvent: CalendarEvent | null;
|
|
1109
|
+
activeId: UniqueIdentifier | null;
|
|
1110
|
+
activeView: "month" | "week" | "day" | null;
|
|
1111
|
+
currentTime: Date | null;
|
|
1112
|
+
eventHeight: number | null;
|
|
1113
|
+
isMultiDay: boolean;
|
|
1114
|
+
multiDayWidth: number | null;
|
|
1115
|
+
dragHandlePosition: {
|
|
1116
|
+
x?: number;
|
|
1117
|
+
y?: number;
|
|
1118
|
+
data?: {
|
|
1119
|
+
isFirstDay?: boolean;
|
|
1120
|
+
isLastDay?: boolean;
|
|
1121
|
+
};
|
|
1122
|
+
} | null;
|
|
1093
1123
|
};
|
|
1124
|
+
declare const useCalendarDnd: () => CalendarDndContextType;
|
|
1125
|
+
|
|
1126
|
+
declare const EventHeight = 24;
|
|
1127
|
+
declare const EventGap = 4;
|
|
1128
|
+
declare const WeekCellsHeight = 64;
|
|
1129
|
+
declare const AgendaDaysToShow = 30;
|
|
1130
|
+
declare const StartHour = 0;
|
|
1131
|
+
declare const EndHour = 24;
|
|
1132
|
+
declare const DefaultStartHour = 9;
|
|
1133
|
+
declare const DefaultEndHour = 10;
|
|
1134
|
+
|
|
1135
|
+
interface DayViewProps {
|
|
1136
|
+
currentDate: Date;
|
|
1137
|
+
events: CalendarEvent[];
|
|
1138
|
+
onEventSelect: (event: CalendarEvent) => void;
|
|
1139
|
+
onEventCreate: (startTime: Date) => void;
|
|
1140
|
+
}
|
|
1141
|
+
declare function DayView({ currentDate, events, onEventSelect, onEventCreate, }: DayViewProps): react_jsx_runtime.JSX.Element;
|
|
1142
|
+
|
|
1143
|
+
interface DraggableEventProps {
|
|
1144
|
+
event: CalendarEvent;
|
|
1145
|
+
view: "month" | "week" | "day";
|
|
1146
|
+
showTime?: boolean;
|
|
1147
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
1148
|
+
height?: number;
|
|
1149
|
+
isMultiDay?: boolean;
|
|
1150
|
+
multiDayWidth?: number;
|
|
1151
|
+
isFirstDay?: boolean;
|
|
1152
|
+
isLastDay?: boolean;
|
|
1153
|
+
"aria-hidden"?: boolean | "true" | "false";
|
|
1154
|
+
}
|
|
1155
|
+
declare function DraggableEvent({ event, view, showTime, onClick, height, isMultiDay, multiDayWidth, isFirstDay, isLastDay, "aria-hidden": ariaHidden, }: DraggableEventProps): react_jsx_runtime.JSX.Element;
|
|
1156
|
+
|
|
1157
|
+
interface DroppableCellProps {
|
|
1158
|
+
id: string;
|
|
1159
|
+
date: Date;
|
|
1160
|
+
time?: number;
|
|
1161
|
+
children?: React.ReactNode;
|
|
1162
|
+
className?: string;
|
|
1163
|
+
onClick?: () => void;
|
|
1164
|
+
}
|
|
1165
|
+
declare function DroppableCell({ id, date, time, children, className, onClick, }: DroppableCellProps): react_jsx_runtime.JSX.Element;
|
|
1166
|
+
|
|
1167
|
+
interface EventCalendarProps {
|
|
1168
|
+
events?: CalendarEvent[];
|
|
1169
|
+
onEventAdd?: (event: CalendarEvent) => void;
|
|
1170
|
+
onEventUpdate?: (event: CalendarEvent) => void;
|
|
1171
|
+
onEventDelete?: (eventId: string) => void;
|
|
1172
|
+
className?: string;
|
|
1173
|
+
initialView?: CalendarView;
|
|
1174
|
+
}
|
|
1175
|
+
declare function EventCalendar({ events, onEventAdd, onEventUpdate, onEventDelete, className, initialView, }: EventCalendarProps): react_jsx_runtime.JSX.Element;
|
|
1176
|
+
|
|
1177
|
+
interface EventDialogProps {
|
|
1178
|
+
event: CalendarEvent | null;
|
|
1179
|
+
isOpen: boolean;
|
|
1180
|
+
onClose: () => void;
|
|
1181
|
+
onSave: (event: CalendarEvent) => void;
|
|
1182
|
+
onDelete: (eventId: string) => void;
|
|
1183
|
+
}
|
|
1184
|
+
declare function EventDialog({ event, isOpen, onClose, onSave, onDelete, }: EventDialogProps): react_jsx_runtime.JSX.Element;
|
|
1185
|
+
|
|
1186
|
+
interface EventItemProps {
|
|
1187
|
+
event: CalendarEvent;
|
|
1188
|
+
view: "month" | "week" | "day" | "agenda";
|
|
1189
|
+
agendaOnly?: boolean;
|
|
1190
|
+
isDragging?: boolean;
|
|
1191
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
1192
|
+
showTime?: boolean;
|
|
1193
|
+
currentTime?: Date;
|
|
1194
|
+
isFirstDay?: boolean;
|
|
1195
|
+
isLastDay?: boolean;
|
|
1196
|
+
children?: React.ReactNode;
|
|
1197
|
+
className?: string;
|
|
1198
|
+
dndListeners?: SyntheticListenerMap;
|
|
1199
|
+
dndAttributes?: DraggableAttributes;
|
|
1200
|
+
onMouseDown?: (e: React.MouseEvent) => void;
|
|
1201
|
+
onTouchStart?: (e: React.TouchEvent) => void;
|
|
1202
|
+
}
|
|
1203
|
+
declare function EventItem({ event, view, onClick, showTime, currentTime, isFirstDay, isLastDay, children, className, dndListeners, dndAttributes, onMouseDown, onTouchStart, agendaOnly, }: EventItemProps): react_jsx_runtime.JSX.Element;
|
|
1204
|
+
|
|
1205
|
+
interface EventsPopupProps {
|
|
1206
|
+
date: Date;
|
|
1207
|
+
events: CalendarEvent[];
|
|
1208
|
+
position: {
|
|
1209
|
+
top: number;
|
|
1210
|
+
left: number;
|
|
1211
|
+
};
|
|
1212
|
+
onClose: () => void;
|
|
1213
|
+
onEventSelect?: (event: CalendarEvent) => void;
|
|
1214
|
+
}
|
|
1215
|
+
declare function EventsPopup({ date, events, position, onClose, onEventSelect, }: EventsPopupProps): react_jsx_runtime.JSX.Element;
|
|
1094
1216
|
|
|
1095
|
-
declare
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
declare const DropDownMenuPortalBase: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
1099
|
-
declare const DropDownMenuSubBase: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
1100
|
-
declare const DropDownMenuRadioGroupBase: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1101
|
-
declare const DropDownMenuSubTriggerBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1102
|
-
inset?: boolean;
|
|
1103
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1104
|
-
declare const DropDownMenuSubContentBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1105
|
-
declare const DropDownMenuContentBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1106
|
-
testid?: string;
|
|
1107
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1108
|
-
declare const DropDownMenuItemBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1109
|
-
inset?: boolean;
|
|
1110
|
-
leftIcon?: React$1.ReactNode;
|
|
1111
|
-
rightIcon?: React$1.ReactNode;
|
|
1112
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1113
|
-
declare const DropDownMenuCheckboxItemBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1114
|
-
declare const DropDownMenuRadioItemBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1115
|
-
declare const DropDownMenuLabelBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1116
|
-
inset?: boolean;
|
|
1117
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1118
|
-
declare const DropDownMenuSeparatorBase: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1119
|
-
declare const DropDownMenuShortcutBase: {
|
|
1120
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
1121
|
-
displayName: string;
|
|
1217
|
+
declare function useCurrentTimeIndicator(currentDate: Date, view: "day" | "week"): {
|
|
1218
|
+
currentTimePosition: number;
|
|
1219
|
+
currentTimeVisible: boolean;
|
|
1122
1220
|
};
|
|
1123
1221
|
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1222
|
+
interface EventVisibilityOptions {
|
|
1223
|
+
eventHeight: number;
|
|
1224
|
+
eventGap: number;
|
|
1225
|
+
}
|
|
1226
|
+
interface EventVisibilityResult {
|
|
1227
|
+
contentRef: React.RefObject<HTMLDivElement>;
|
|
1228
|
+
contentHeight: number | null;
|
|
1229
|
+
getVisibleEventCount: (totalEvents: number) => number;
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* Hook for calculating event visibility based on container height
|
|
1233
|
+
* Uses ResizeObserver for efficient updates
|
|
1234
|
+
*/
|
|
1235
|
+
declare function useEventVisibility({ eventHeight, eventGap, }: EventVisibilityOptions): EventVisibilityResult;
|
|
1134
1236
|
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
toggleSidebar: () => void;
|
|
1143
|
-
};
|
|
1144
|
-
declare const SidebarContext: React$1.Context<SidebarContext | null>;
|
|
1145
|
-
declare function UseSideBarBase(): SidebarContext;
|
|
1146
|
-
declare const SidebarProviderBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1147
|
-
defaultOpen?: boolean;
|
|
1148
|
-
open?: boolean;
|
|
1149
|
-
onOpenChange?: (open: boolean) => void;
|
|
1150
|
-
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1151
|
-
declare const SidebarBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1152
|
-
side?: "left" | "right";
|
|
1153
|
-
variant?: "sidebar" | "floating" | "inset";
|
|
1154
|
-
collapsible?: "offcanvas" | "icon" | "none";
|
|
1155
|
-
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1156
|
-
declare const SidebarTriggerBase: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1157
|
-
declare const SidebarRailBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1158
|
-
declare const SidebarInsetBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1159
|
-
declare const SidebarInputBase: React$1.ForwardRefExoticComponent<Omit<Omit<InputBaseProps, "ref"> & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
1160
|
-
declare const SidebarHeaderBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1161
|
-
declare const SidebarFooterBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1162
|
-
declare const SidebarSeparatorBase: React$1.ForwardRefExoticComponent<Omit<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1163
|
-
declare const SidebarContentBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1164
|
-
declare const SidebarGroupBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1165
|
-
declare const SidebarGroupLabelBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1166
|
-
asChild?: boolean;
|
|
1167
|
-
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1168
|
-
declare const SidebarGroupActionBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1169
|
-
asChild?: boolean;
|
|
1170
|
-
}, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1171
|
-
declare const SidebarGroupContentBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1172
|
-
declare const SidebarMenuBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
1173
|
-
declare const SidebarMenuItemBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
1174
|
-
declare const SidebarMenuButtonBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1175
|
-
asChild?: boolean;
|
|
1176
|
-
isActive?: boolean;
|
|
1177
|
-
tooltip?: string | React$1.ComponentProps<typeof TooltipContentBase>;
|
|
1178
|
-
} & VariantProps<(props?: ({
|
|
1179
|
-
variant?: "default" | "outline" | null | undefined;
|
|
1180
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1181
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1182
|
-
declare const SidebarMenuActionBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1183
|
-
asChild?: boolean;
|
|
1184
|
-
showOnHover?: boolean;
|
|
1185
|
-
}, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1186
|
-
declare const SidebarMenuBadgeBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1187
|
-
declare const SidebarMenuSkeletonBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1188
|
-
showIcon?: boolean;
|
|
1189
|
-
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1190
|
-
declare const SidebarMenuSubBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
1191
|
-
declare const SidebarMenuSubItemBase: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
1192
|
-
declare const SidebarMenuSubButtonBase: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLAnchorElement> & React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1193
|
-
asChild?: boolean;
|
|
1194
|
-
size?: "sm" | "md";
|
|
1195
|
-
isActive?: boolean;
|
|
1196
|
-
}, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
1237
|
+
interface MonthViewProps {
|
|
1238
|
+
currentDate: Date;
|
|
1239
|
+
events: CalendarEvent[];
|
|
1240
|
+
onEventSelect: (event: CalendarEvent) => void;
|
|
1241
|
+
onEventCreate: (startTime: Date) => void;
|
|
1242
|
+
}
|
|
1243
|
+
declare function MonthView({ currentDate, events, onEventSelect, onEventCreate, }: MonthViewProps): react_jsx_runtime.JSX.Element;
|
|
1197
1244
|
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1245
|
+
type CalendarView = "month" | "week" | "day" | "agenda";
|
|
1246
|
+
interface CalendarEvent {
|
|
1247
|
+
id: string;
|
|
1248
|
+
title: string;
|
|
1249
|
+
description?: string;
|
|
1250
|
+
start: Date;
|
|
1251
|
+
end: Date;
|
|
1252
|
+
attend_date?: Date | null;
|
|
1253
|
+
allDay?: boolean;
|
|
1254
|
+
color?: EventColor;
|
|
1255
|
+
location?: string;
|
|
1256
|
+
}
|
|
1257
|
+
type EventColor = "sky" | "amber" | "violet" | "rose" | "emerald" | "orange";
|
|
1208
1258
|
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1259
|
+
/**
|
|
1260
|
+
* Get CSS classes for event colors
|
|
1261
|
+
*/
|
|
1262
|
+
declare function getEventColorClasses(color?: EventColor | string): string;
|
|
1263
|
+
/**
|
|
1264
|
+
* Get CSS classes for border radius based on event position in multi-day events
|
|
1265
|
+
*/
|
|
1266
|
+
declare function getBorderRadiusClasses(isFirstDay: boolean, isLastDay: boolean): string;
|
|
1267
|
+
/**
|
|
1268
|
+
* Check if an event is a multi-day event
|
|
1269
|
+
*/
|
|
1270
|
+
declare function isMultiDayEvent(event: CalendarEvent): boolean;
|
|
1271
|
+
/**
|
|
1272
|
+
* Filter events for a specific day
|
|
1273
|
+
*/
|
|
1274
|
+
declare function getEventsForDay(events: CalendarEvent[], day: Date): CalendarEvent[];
|
|
1275
|
+
declare function sortEvents(events: CalendarEvent[]): CalendarEvent[];
|
|
1276
|
+
declare function getSpanningEventsForDay(events: CalendarEvent[], day: Date): CalendarEvent[];
|
|
1277
|
+
/**
|
|
1278
|
+
* Get all events visible on a specific day (starting, ending, or spanning)
|
|
1279
|
+
*/
|
|
1280
|
+
declare function getAllEventsForDay(events: CalendarEvent[], day: Date): CalendarEvent[];
|
|
1281
|
+
/**
|
|
1282
|
+
* Get all events for a day (for agenda view)
|
|
1283
|
+
*/
|
|
1284
|
+
declare function getAgendaEventsForDay(events: CalendarEvent[], day: Date): CalendarEvent[];
|
|
1285
|
+
/**
|
|
1286
|
+
* Add hours to a date
|
|
1287
|
+
*/
|
|
1288
|
+
declare function addHoursToDate(date: Date, hours: number): Date;
|
|
1216
1289
|
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
declare const sheetVariants: (props?: ({
|
|
1223
|
-
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
1224
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1225
|
-
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
1290
|
+
interface WeekViewProps {
|
|
1291
|
+
currentDate: Date;
|
|
1292
|
+
events: CalendarEvent[];
|
|
1293
|
+
onEventSelect: (event: CalendarEvent) => void;
|
|
1294
|
+
onEventCreate: (startTime: Date) => void;
|
|
1226
1295
|
}
|
|
1227
|
-
declare
|
|
1228
|
-
declare const SheetHeaderBase: {
|
|
1229
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1230
|
-
displayName: string;
|
|
1231
|
-
};
|
|
1232
|
-
declare const SheetFooterBase: {
|
|
1233
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1234
|
-
displayName: string;
|
|
1235
|
-
};
|
|
1236
|
-
declare const SheetTitleBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1237
|
-
declare const SheetDescriptionBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1296
|
+
declare function WeekView({ currentDate, events, onEventSelect, onEventCreate, }: WeekViewProps): react_jsx_runtime.JSX.Element;
|
|
1238
1297
|
|
|
1239
|
-
interface
|
|
1298
|
+
interface AvatarComboboxItem<T extends string> {
|
|
1299
|
+
label: string;
|
|
1300
|
+
value: T;
|
|
1301
|
+
avatar?: ReactNode;
|
|
1302
|
+
avatarClassName?: string;
|
|
1303
|
+
}
|
|
1304
|
+
interface AvatarComboboxTestIds {
|
|
1305
|
+
root?: string;
|
|
1306
|
+
base?: string;
|
|
1307
|
+
trigger?: string;
|
|
1308
|
+
value?: string;
|
|
1309
|
+
scrollarea?: string;
|
|
1310
|
+
content?: string;
|
|
1311
|
+
group?: string;
|
|
1312
|
+
label?: string;
|
|
1313
|
+
item?: (value: string) => string;
|
|
1314
|
+
}
|
|
1315
|
+
interface DefaultAvatarComboboxProps extends ErrorMessageProps {
|
|
1316
|
+
placeholder?: string;
|
|
1317
|
+
onChange: (value: string) => void;
|
|
1318
|
+
disabled?: boolean;
|
|
1240
1319
|
className?: string;
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1320
|
+
colors?: string[];
|
|
1321
|
+
}
|
|
1322
|
+
interface AvatarComboboxPropsWithItems<T extends string> extends DefaultAvatarComboboxProps {
|
|
1323
|
+
items: AvatarComboboxItem<T>[];
|
|
1324
|
+
groupItems?: never;
|
|
1325
|
+
testIds?: AvatarComboboxTestIds;
|
|
1326
|
+
}
|
|
1327
|
+
interface AvatarComboboxPropsWithGroupItems<T extends string> extends DefaultAvatarComboboxProps {
|
|
1328
|
+
items?: never;
|
|
1329
|
+
groupItems: {
|
|
1330
|
+
[key: string]: AvatarComboboxItem<T>[];
|
|
1331
|
+
};
|
|
1332
|
+
testIds?: AvatarComboboxTestIds;
|
|
1333
|
+
}
|
|
1334
|
+
type AvatarComboboxProps<T extends string> = AvatarComboboxPropsWithItems<T> | AvatarComboboxPropsWithGroupItems<T>;
|
|
1335
|
+
declare function AvatarCombobox<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, colors, }: AvatarComboboxProps<T> & {
|
|
1336
|
+
selected?: T | null;
|
|
1337
|
+
label?: string;
|
|
1338
|
+
labelClassname?: string;
|
|
1339
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1340
|
+
|
|
1341
|
+
interface ComboboxItem<T extends string> {
|
|
1342
|
+
label: string;
|
|
1343
|
+
value: T;
|
|
1247
1344
|
}
|
|
1248
|
-
declare const UniversalTooltipRenderer: React__default.FC<UniversalTooltipRendererProps>;
|
|
1249
1345
|
|
|
1250
|
-
interface
|
|
1346
|
+
interface ComboboxTestIds {
|
|
1347
|
+
root?: string;
|
|
1348
|
+
trigger?: string;
|
|
1349
|
+
popover?: string;
|
|
1350
|
+
command?: string;
|
|
1351
|
+
search?: string;
|
|
1352
|
+
list?: string;
|
|
1353
|
+
empty?: string;
|
|
1354
|
+
group?: string;
|
|
1355
|
+
option?: string;
|
|
1356
|
+
check?: string;
|
|
1357
|
+
selected?: string;
|
|
1358
|
+
}
|
|
1359
|
+
interface ComboboxProps<T extends string> extends ErrorMessageProps {
|
|
1360
|
+
items: ComboboxItem<T>[];
|
|
1361
|
+
selected: ComboboxItem<T>["value"] | null;
|
|
1362
|
+
onChange: (value: ComboboxItem<T>["value"] | null) => void;
|
|
1363
|
+
className?: string;
|
|
1364
|
+
placeholder?: string;
|
|
1365
|
+
searchPlaceholder?: string;
|
|
1366
|
+
empty?: React.ReactNode;
|
|
1251
1367
|
label?: string;
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
displayFormat?: boolean;
|
|
1255
|
-
hideTime?: boolean;
|
|
1256
|
-
hideSeconds?: boolean;
|
|
1257
|
-
fromDate?: Date;
|
|
1258
|
-
toDate?: Date;
|
|
1368
|
+
labelClassname?: string;
|
|
1369
|
+
testIds?: ComboboxTestIds;
|
|
1259
1370
|
disabled?: boolean;
|
|
1260
|
-
className?: string;
|
|
1261
|
-
error?: string;
|
|
1262
1371
|
}
|
|
1263
|
-
declare function
|
|
1372
|
+
declare function Combobox<T extends string>({ items, selected, onChange, className, placeholder, searchPlaceholder, empty, disabled, label, labelClassname, testIds, error, }: ComboboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
1264
1373
|
|
|
1265
|
-
interface
|
|
1266
|
-
|
|
1267
|
-
onChange?: (range: DateRange | undefined) => void;
|
|
1374
|
+
interface MultiComboboxTestIds {
|
|
1375
|
+
root?: string;
|
|
1268
1376
|
label?: string;
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
declare function RangePicker({ value, onChange, label, minDate, maxDate, error, }: RangePickerProps): react_jsx_runtime.JSX.Element;
|
|
1274
|
-
declare namespace RangePicker {
|
|
1275
|
-
var displayName: string;
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
|
-
interface TimePickerProps {
|
|
1279
|
-
date: Date | undefined;
|
|
1280
|
-
setDate: (date: Date | undefined) => void;
|
|
1281
|
-
hideSeconds?: boolean;
|
|
1282
|
-
enableButton?: boolean;
|
|
1377
|
+
selectedWrapper?: string;
|
|
1378
|
+
emptyPlaceholder?: string;
|
|
1379
|
+
selectedItem?: (value: string) => string;
|
|
1380
|
+
clearAll?: string;
|
|
1283
1381
|
}
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
* regular expression to check for valid hour format (01-23)
|
|
1288
|
-
*/
|
|
1289
|
-
declare function isValidHour(value: string): boolean;
|
|
1290
|
-
/**
|
|
1291
|
-
* regular expression to check for valid 12 hour format (01-12)
|
|
1292
|
-
*/
|
|
1293
|
-
declare function isValid12Hour(value: string): boolean;
|
|
1294
|
-
/**
|
|
1295
|
-
* regular expression to check for valid minute format (00-59)
|
|
1296
|
-
*/
|
|
1297
|
-
declare function isValidMinuteOrSecond(value: string): boolean;
|
|
1298
|
-
type GetValidNumberConfig = {
|
|
1299
|
-
max: number;
|
|
1300
|
-
min?: number;
|
|
1301
|
-
loop?: boolean;
|
|
1302
|
-
};
|
|
1303
|
-
declare function getValidNumber(value: string, { max, min, loop }: GetValidNumberConfig): string;
|
|
1304
|
-
declare function getValidHour(value: string): string;
|
|
1305
|
-
declare function getValid12Hour(value: string): string;
|
|
1306
|
-
declare function getValidMinuteOrSecond(value: string): string;
|
|
1307
|
-
type GetValidArrowNumberConfig = {
|
|
1308
|
-
min: number;
|
|
1309
|
-
max: number;
|
|
1310
|
-
step: number;
|
|
1311
|
-
};
|
|
1312
|
-
declare function getValidArrowNumber(value: string, { min, max, step }: GetValidArrowNumberConfig): string;
|
|
1313
|
-
declare function getValidArrowHour(value: string, step: number): string;
|
|
1314
|
-
declare function getValidArrow12Hour(value: string, step: number): string;
|
|
1315
|
-
declare function getValidArrowMinuteOrSecond(value: string, step: number): string;
|
|
1316
|
-
declare function setMinutes(date: Date, value: string): Date;
|
|
1317
|
-
declare function setSeconds(date: Date, value: string): Date;
|
|
1318
|
-
declare function setHours(date: Date, value: string): Date;
|
|
1319
|
-
declare function set12Hours(date: Date, value: string, period: Period): Date;
|
|
1320
|
-
type TimePickerType = "minutes" | "seconds" | "hours" | "12hours";
|
|
1321
|
-
type Period = "AM" | "PM";
|
|
1322
|
-
declare function setDateByType(date: Date, value: string, type: TimePickerType, period?: Period): Date;
|
|
1323
|
-
declare function getDateByType(date: Date, type: TimePickerType): string;
|
|
1324
|
-
declare function getArrowByType(value: string, step: number, type: TimePickerType): string;
|
|
1325
|
-
/**
|
|
1326
|
-
* handles value change of 12-hour input
|
|
1327
|
-
* 12:00 PM is 12:00
|
|
1328
|
-
* 12:00 AM is 00:00
|
|
1329
|
-
*/
|
|
1330
|
-
declare function convert12HourTo24Hour(hour: number, period: Period): number;
|
|
1331
|
-
/**
|
|
1332
|
-
* time is stored in the 24-hour form,
|
|
1333
|
-
* but needs to be displayed to the user
|
|
1334
|
-
* in its 12-hour representation
|
|
1335
|
-
*/
|
|
1336
|
-
declare function display12HourValue(hours: number): string;
|
|
1337
|
-
|
|
1338
|
-
interface TimePickerInputProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
1339
|
-
picker: TimePickerType;
|
|
1340
|
-
date: Date | undefined;
|
|
1341
|
-
setDate: (date: Date | undefined) => void;
|
|
1342
|
-
period?: Period;
|
|
1343
|
-
onRightFocus?: () => void;
|
|
1344
|
-
onLeftFocus?: () => void;
|
|
1345
|
-
showArrows?: boolean;
|
|
1382
|
+
interface MultiComboboxProps<T extends string> extends Omit<ComboboxProps<T>, "selected" | "onChange">, ErrorMessageProps {
|
|
1383
|
+
selected: T[];
|
|
1384
|
+
onChange: (value: T[]) => void;
|
|
1346
1385
|
label?: string;
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1386
|
+
labelClassname?: string;
|
|
1387
|
+
testIds?: MultiComboboxTestIds;
|
|
1388
|
+
keepOpen?: boolean;
|
|
1389
|
+
showClearAll?: boolean;
|
|
1390
|
+
disabled?: boolean;
|
|
1352
1391
|
}
|
|
1353
|
-
declare
|
|
1392
|
+
declare function MultiCombobox<T extends string>({ items, selected, onChange, className, placeholder, searchPlaceholder, label, labelClassname, testIds, error, disabled, keepOpen, showClearAll, empty, }: MultiComboboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
1354
1393
|
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
declare function
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1394
|
+
type MultiSelectContextType = {
|
|
1395
|
+
open: boolean;
|
|
1396
|
+
setOpen: (open: boolean) => void;
|
|
1397
|
+
selectedValues: Set<string>;
|
|
1398
|
+
toggleValue: (value: string) => void;
|
|
1399
|
+
items: Map<string, ReactNode>;
|
|
1400
|
+
onItemAdded: (value: string, label: ReactNode) => void;
|
|
1401
|
+
disabled?: boolean;
|
|
1402
|
+
emptyMessage?: ReactNode;
|
|
1403
|
+
error?: string;
|
|
1404
|
+
};
|
|
1405
|
+
declare function MultiSelectBase({ children, values, defaultValues, onValuesChange, disabled, empty, error, }: {
|
|
1406
|
+
children: ReactNode;
|
|
1407
|
+
values?: string[];
|
|
1408
|
+
defaultValues?: string[];
|
|
1409
|
+
onValuesChange?: (values: string[]) => void;
|
|
1410
|
+
disabled?: boolean;
|
|
1411
|
+
empty?: ReactNode;
|
|
1412
|
+
error?: string;
|
|
1374
1413
|
}): react_jsx_runtime.JSX.Element;
|
|
1375
|
-
declare function
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
} | {
|
|
1398
|
-
code?: string;
|
|
1399
|
-
tabs?: Array<{
|
|
1400
|
-
name: string;
|
|
1401
|
-
code: string;
|
|
1402
|
-
language?: string;
|
|
1403
|
-
highlightLines?: number[];
|
|
1404
|
-
}>;
|
|
1405
|
-
});
|
|
1406
|
-
declare const CodeBlock: ({ language, filename, code, highlightLines, tabs, breadcrumb, showStats, }: CodeBlockProps) => react_jsx_runtime.JSX.Element;
|
|
1414
|
+
declare function MultiSelectTriggerBase({ className, children, error: propError, ...props }: {
|
|
1415
|
+
className?: string;
|
|
1416
|
+
children?: ReactNode;
|
|
1417
|
+
} & ComponentPropsWithoutRef<typeof ButtonBase> & ErrorMessageProps): react_jsx_runtime.JSX.Element;
|
|
1418
|
+
declare function MultiSelectValueBase({ placeholder, clickToRemove, className, overflowBehavior, ...props }: {
|
|
1419
|
+
placeholder?: string;
|
|
1420
|
+
clickToRemove?: boolean;
|
|
1421
|
+
overflowBehavior?: "wrap" | "wrap-when-open" | "cutoff";
|
|
1422
|
+
} & Omit<ComponentPropsWithoutRef<"div">, "children">): react_jsx_runtime.JSX.Element;
|
|
1423
|
+
declare function MultiSelectContentBase({ search, children, ...props }: {
|
|
1424
|
+
search?: boolean | {
|
|
1425
|
+
placeholder?: string;
|
|
1426
|
+
emptyMessage?: string;
|
|
1427
|
+
};
|
|
1428
|
+
children: ReactNode;
|
|
1429
|
+
} & Omit<ComponentPropsWithoutRef<typeof CommandBase>, "children">): react_jsx_runtime.JSX.Element;
|
|
1430
|
+
declare function MultiSelectItemBase({ value, children, badgeLabel, onSelect, ...props }: {
|
|
1431
|
+
badgeLabel?: ReactNode;
|
|
1432
|
+
value: string;
|
|
1433
|
+
} & Omit<ComponentPropsWithoutRef<typeof CommandItemBase>, "value">): react_jsx_runtime.JSX.Element;
|
|
1434
|
+
declare function MultiSelectGroupBase(props: ComponentPropsWithoutRef<typeof CommandGroupBase>): react_jsx_runtime.JSX.Element;
|
|
1435
|
+
declare function MultiSelectSeparatorBase(props: ComponentPropsWithoutRef<typeof CommandSeparatorBase>): react_jsx_runtime.JSX.Element;
|
|
1407
1436
|
|
|
1408
|
-
interface
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "inline";
|
|
1412
|
-
show?: boolean;
|
|
1413
|
-
children?: React$1.ReactNode;
|
|
1437
|
+
interface SelectItem<T extends string> {
|
|
1438
|
+
label: string;
|
|
1439
|
+
value: T;
|
|
1414
1440
|
}
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1441
|
+
interface SelectTestIds {
|
|
1442
|
+
root?: string;
|
|
1443
|
+
base?: string;
|
|
1444
|
+
trigger?: string;
|
|
1445
|
+
value?: string;
|
|
1446
|
+
scrollarea?: string;
|
|
1447
|
+
content?: string;
|
|
1448
|
+
group?: string;
|
|
1449
|
+
label?: string;
|
|
1450
|
+
item?: (value: string) => string;
|
|
1451
|
+
paginationPrev?: string;
|
|
1452
|
+
paginationNext?: string;
|
|
1453
|
+
paginationPage?: (page: number) => string;
|
|
1454
|
+
}
|
|
1455
|
+
interface DefaultSelectProps<T extends string> extends ErrorMessageProps {
|
|
1456
|
+
selected: T | null;
|
|
1457
|
+
onChange: (value: T) => void;
|
|
1458
|
+
placeholder?: string;
|
|
1459
|
+
disabled?: boolean;
|
|
1460
|
+
className?: string;
|
|
1421
1461
|
label?: string;
|
|
1422
1462
|
labelClassname?: string;
|
|
1423
|
-
|
|
1424
|
-
rightIcon?: React.ReactNode;
|
|
1425
|
-
showLoadingIndicator?: boolean;
|
|
1426
|
-
error?: string | undefined;
|
|
1463
|
+
pagination?: number;
|
|
1427
1464
|
}
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
events: CalendarEvent[];
|
|
1433
|
-
onEventSelect?: (event: CalendarEvent) => void;
|
|
1434
|
-
showUndatedEvents?: boolean;
|
|
1465
|
+
interface SelectPropsWithItems<T extends string> extends DefaultSelectProps<T> {
|
|
1466
|
+
items: SelectItem<T>[];
|
|
1467
|
+
groupItems?: never;
|
|
1468
|
+
testIds?: SelectTestIds;
|
|
1435
1469
|
}
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1470
|
+
interface SelectPropsWithGroupItems<T extends string> extends DefaultSelectProps<T> {
|
|
1471
|
+
items?: never;
|
|
1472
|
+
groupItems: {
|
|
1473
|
+
[key: string]: SelectItem<T>[];
|
|
1474
|
+
};
|
|
1475
|
+
testIds?: SelectTestIds;
|
|
1441
1476
|
}
|
|
1442
|
-
|
|
1477
|
+
type NewSelectProps<T extends string> = SelectPropsWithItems<T> | SelectPropsWithGroupItems<T>;
|
|
1478
|
+
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, pagination, }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
1443
1479
|
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1480
|
+
declare const formatFieldName: (fieldName: string) => string;
|
|
1481
|
+
declare const detectDataFields: (data: Record<string, unknown>[], xAxisKey: string) => string[];
|
|
1482
|
+
declare const detectXAxis: (data: Record<string, unknown>[]) => string;
|
|
1483
|
+
declare const generateAdditionalColors: (baseColors: string[], count: number) => string[];
|
|
1484
|
+
declare const niceCeil: (value: number) => number;
|
|
1485
|
+
declare const compactTick: (value: number) => string;
|
|
1486
|
+
type Padding = number | Partial<{
|
|
1487
|
+
left: number;
|
|
1488
|
+
right: number;
|
|
1489
|
+
top: number;
|
|
1490
|
+
bottom: number;
|
|
1491
|
+
}>;
|
|
1492
|
+
type Margins = Partial<{
|
|
1493
|
+
top: number;
|
|
1494
|
+
right: number;
|
|
1495
|
+
left: number;
|
|
1496
|
+
bottom: number;
|
|
1497
|
+
}>;
|
|
1498
|
+
declare const resolveContainerPaddingLeft: (padding?: Padding, containerPaddingLeft?: number, defaultLeft?: number) => number;
|
|
1499
|
+
declare const resolveChartMargins: (margins?: Margins, chartMargins?: Margins, showLabels?: boolean) => {
|
|
1500
|
+
top: number;
|
|
1501
|
+
right: number;
|
|
1502
|
+
left: number;
|
|
1503
|
+
bottom: number;
|
|
1504
|
+
};
|
|
1505
|
+
|
|
1506
|
+
type Variant = "filled" | "outline" | "soft";
|
|
1507
|
+
type LabelRendererProps = {
|
|
1508
|
+
x?: number | string;
|
|
1509
|
+
y?: number | string;
|
|
1510
|
+
value?: number | string;
|
|
1511
|
+
index?: number;
|
|
1512
|
+
payload?: unknown;
|
|
1513
|
+
width?: number | string;
|
|
1514
|
+
height?: number | string;
|
|
1515
|
+
viewBox?: {
|
|
1453
1516
|
x?: number;
|
|
1454
1517
|
y?: number;
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1518
|
+
width?: number;
|
|
1519
|
+
height?: number;
|
|
1520
|
+
} | Record<string, unknown> | undefined;
|
|
1521
|
+
cx?: number | string;
|
|
1522
|
+
cy?: number | string;
|
|
1460
1523
|
};
|
|
1461
|
-
|
|
1524
|
+
type valueFormatter = (props: {
|
|
1525
|
+
value: number | string | undefined;
|
|
1526
|
+
formattedValue: string;
|
|
1527
|
+
[key: string]: unknown;
|
|
1528
|
+
}) => string;
|
|
1529
|
+
declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
|
|
1462
1530
|
|
|
1463
|
-
declare const
|
|
1464
|
-
declare const EventGap = 4;
|
|
1465
|
-
declare const WeekCellsHeight = 64;
|
|
1466
|
-
declare const AgendaDaysToShow = 30;
|
|
1467
|
-
declare const StartHour = 0;
|
|
1468
|
-
declare const EndHour = 24;
|
|
1469
|
-
declare const DefaultStartHour = 9;
|
|
1470
|
-
declare const DefaultEndHour = 10;
|
|
1531
|
+
declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
|
|
1471
1532
|
|
|
1472
|
-
interface
|
|
1473
|
-
|
|
1474
|
-
events: CalendarEvent[];
|
|
1475
|
-
onEventSelect: (event: CalendarEvent) => void;
|
|
1476
|
-
onEventCreate: (startTime: Date) => void;
|
|
1533
|
+
interface ChartData$1 {
|
|
1534
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
1477
1535
|
}
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
showTime?: boolean;
|
|
1484
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
1485
|
-
height?: number;
|
|
1486
|
-
isMultiDay?: boolean;
|
|
1487
|
-
multiDayWidth?: number;
|
|
1488
|
-
isFirstDay?: boolean;
|
|
1489
|
-
isLastDay?: boolean;
|
|
1490
|
-
"aria-hidden"?: boolean | "true" | "false";
|
|
1536
|
+
interface XAxisConfig$2 {
|
|
1537
|
+
dataKey: string;
|
|
1538
|
+
label?: string;
|
|
1539
|
+
valueFormatter?: (value: string | number) => string;
|
|
1540
|
+
autoLabel?: boolean;
|
|
1491
1541
|
}
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
children?: React.ReactNode;
|
|
1499
|
-
className?: string;
|
|
1500
|
-
onClick?: () => void;
|
|
1542
|
+
interface BiaxialConfig {
|
|
1543
|
+
key: string[];
|
|
1544
|
+
label?: string;
|
|
1545
|
+
percentage?: boolean;
|
|
1546
|
+
decimals?: number;
|
|
1547
|
+
stroke?: string | Record<string, string>;
|
|
1501
1548
|
}
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1549
|
+
type SeriesProp$1 = {
|
|
1550
|
+
bar?: string[];
|
|
1551
|
+
line?: string[];
|
|
1552
|
+
area?: string[];
|
|
1553
|
+
};
|
|
1554
|
+
interface ChartProps {
|
|
1555
|
+
data: ChartData$1[];
|
|
1556
|
+
series?: SeriesProp$1;
|
|
1509
1557
|
className?: string;
|
|
1510
|
-
|
|
1558
|
+
chartMargin?: Partial<{
|
|
1559
|
+
top: number;
|
|
1560
|
+
right: number;
|
|
1561
|
+
left: number;
|
|
1562
|
+
bottom: number;
|
|
1563
|
+
}>;
|
|
1564
|
+
height?: number;
|
|
1565
|
+
width?: number | string;
|
|
1566
|
+
colors?: string[];
|
|
1567
|
+
gridColor?: string;
|
|
1568
|
+
showGrid?: boolean;
|
|
1569
|
+
showTooltip?: boolean;
|
|
1570
|
+
showLegend?: boolean;
|
|
1571
|
+
title?: string;
|
|
1572
|
+
titlePosition?: "left" | "center" | "right";
|
|
1573
|
+
showLabels?: boolean;
|
|
1574
|
+
labelMap?: Record<string, string>;
|
|
1575
|
+
valueFormatter?: valueFormatter;
|
|
1576
|
+
categoryFormatter?: (value: string | number) => string;
|
|
1577
|
+
periodLabel?: string;
|
|
1578
|
+
xAxisLabel?: string;
|
|
1579
|
+
yAxisLabel?: string;
|
|
1580
|
+
xAxis?: XAxisConfig$2 | string;
|
|
1581
|
+
biaxial?: BiaxialConfig | string | string[];
|
|
1582
|
+
enableHighlights?: boolean;
|
|
1583
|
+
enableShowOnly?: boolean;
|
|
1584
|
+
enablePeriodsDropdown?: boolean;
|
|
1585
|
+
enableDraggableTooltips?: boolean;
|
|
1586
|
+
showTooltipTotal?: boolean;
|
|
1587
|
+
maxTooltips?: number;
|
|
1588
|
+
formatBR?: boolean;
|
|
1511
1589
|
}
|
|
1512
|
-
declare
|
|
1590
|
+
declare const Chart: React__default.FC<ChartProps>;
|
|
1513
1591
|
|
|
1514
|
-
interface
|
|
1515
|
-
|
|
1516
|
-
isOpen: boolean;
|
|
1517
|
-
onClose: () => void;
|
|
1518
|
-
onSave: (event: CalendarEvent) => void;
|
|
1519
|
-
onDelete: (eventId: string) => void;
|
|
1592
|
+
interface BarChartData {
|
|
1593
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
1520
1594
|
}
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
agendaOnly?: boolean;
|
|
1527
|
-
isDragging?: boolean;
|
|
1528
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
1529
|
-
showTime?: boolean;
|
|
1530
|
-
currentTime?: Date;
|
|
1531
|
-
isFirstDay?: boolean;
|
|
1532
|
-
isLastDay?: boolean;
|
|
1533
|
-
children?: React.ReactNode;
|
|
1534
|
-
className?: string;
|
|
1535
|
-
dndListeners?: SyntheticListenerMap;
|
|
1536
|
-
dndAttributes?: DraggableAttributes;
|
|
1537
|
-
onMouseDown?: (e: React.MouseEvent) => void;
|
|
1538
|
-
onTouchStart?: (e: React.TouchEvent) => void;
|
|
1595
|
+
interface XAxisConfig$1 {
|
|
1596
|
+
dataKey: string;
|
|
1597
|
+
label?: string;
|
|
1598
|
+
valueFormatter?: (value: string | number) => string;
|
|
1599
|
+
autoLabel?: boolean;
|
|
1539
1600
|
}
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
left: number;
|
|
1601
|
+
interface DataMapper {
|
|
1602
|
+
[dataKey: string]: {
|
|
1603
|
+
label?: string;
|
|
1604
|
+
valueFormatter?: (value: string | number) => string | number;
|
|
1605
|
+
color?: string;
|
|
1606
|
+
type?: "number" | "string" | "auto";
|
|
1607
|
+
visible?: boolean;
|
|
1548
1608
|
};
|
|
1549
|
-
onClose: () => void;
|
|
1550
|
-
onEventSelect?: (event: CalendarEvent) => void;
|
|
1551
1609
|
}
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1610
|
+
interface BarChartProps {
|
|
1611
|
+
data: BarChartData[];
|
|
1612
|
+
className?: string;
|
|
1613
|
+
padding?: Padding;
|
|
1614
|
+
margins?: Margins;
|
|
1615
|
+
containerPaddingLeft?: number;
|
|
1616
|
+
chartMargins?: Margins;
|
|
1617
|
+
height?: number;
|
|
1618
|
+
width?: number | string;
|
|
1619
|
+
colors?: string[];
|
|
1620
|
+
gridColor?: string;
|
|
1621
|
+
showGrid?: boolean;
|
|
1622
|
+
showTooltip?: boolean;
|
|
1623
|
+
showLegend?: boolean;
|
|
1624
|
+
title?: string;
|
|
1625
|
+
titlePosition?: "left" | "center" | "right";
|
|
1626
|
+
showLabels?: boolean;
|
|
1627
|
+
labelMap?: Record<string, string>;
|
|
1628
|
+
xAxis?: XAxisConfig$1 | string;
|
|
1629
|
+
mapper?: DataMapper | string[];
|
|
1630
|
+
yAxis?: DataMapper | string[];
|
|
1631
|
+
autoDetect?: boolean;
|
|
1632
|
+
}
|
|
1633
|
+
declare const BarChart: React__default.FC<BarChartProps>;
|
|
1558
1634
|
|
|
1559
|
-
interface
|
|
1560
|
-
|
|
1561
|
-
|
|
1635
|
+
interface LineChartData {
|
|
1636
|
+
name: string;
|
|
1637
|
+
[key: string]: string | number;
|
|
1562
1638
|
}
|
|
1563
|
-
interface
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1639
|
+
interface CustomLineChartProps {
|
|
1640
|
+
data?: LineChartData[];
|
|
1641
|
+
className?: string;
|
|
1642
|
+
padding?: Padding;
|
|
1643
|
+
margins?: Margins;
|
|
1644
|
+
containerPaddingLeft?: number;
|
|
1645
|
+
chartMargins?: Margins;
|
|
1646
|
+
height?: number;
|
|
1647
|
+
width?: number | string;
|
|
1648
|
+
colors?: string[];
|
|
1649
|
+
gridColor?: string;
|
|
1650
|
+
showGrid?: boolean;
|
|
1651
|
+
showTooltip?: boolean;
|
|
1652
|
+
showLegend?: boolean;
|
|
1653
|
+
title?: string;
|
|
1654
|
+
titlePosition?: "left" | "center" | "right";
|
|
1655
|
+
strokeWidth?: number;
|
|
1656
|
+
showDots?: boolean;
|
|
1657
|
+
showLabels?: boolean;
|
|
1567
1658
|
}
|
|
1568
|
-
|
|
1569
|
-
* Hook for calculating event visibility based on container height
|
|
1570
|
-
* Uses ResizeObserver for efficient updates
|
|
1571
|
-
*/
|
|
1572
|
-
declare function useEventVisibility({ eventHeight, eventGap, }: EventVisibilityOptions$1): EventVisibilityResult$1;
|
|
1659
|
+
declare const CustomLineChart: React__default.FC<CustomLineChartProps>;
|
|
1573
1660
|
|
|
1574
|
-
interface
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
onEventCreate: (startTime: Date) => void;
|
|
1661
|
+
interface PieChartData {
|
|
1662
|
+
name: string;
|
|
1663
|
+
value: number;
|
|
1664
|
+
[key: string]: string | number;
|
|
1579
1665
|
}
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1666
|
+
interface CustomPieChartProps {
|
|
1667
|
+
data?: PieChartData[];
|
|
1668
|
+
className?: string;
|
|
1669
|
+
height?: number;
|
|
1670
|
+
width?: number | string;
|
|
1671
|
+
colors?: string[];
|
|
1672
|
+
showTooltip?: boolean;
|
|
1673
|
+
showLegend?: boolean;
|
|
1674
|
+
showLabels?: boolean;
|
|
1675
|
+
innerRadius?: number;
|
|
1676
|
+
outerRadius?: number;
|
|
1677
|
+
centerX?: string | number;
|
|
1678
|
+
centerY?: string | number;
|
|
1593
1679
|
}
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
/**
|
|
1597
|
-
* Get CSS classes for event colors
|
|
1598
|
-
*/
|
|
1599
|
-
declare function getEventColorClasses(color?: EventColor | string): string;
|
|
1600
|
-
/**
|
|
1601
|
-
* Get CSS classes for border radius based on event position in multi-day events
|
|
1602
|
-
*/
|
|
1603
|
-
declare function getBorderRadiusClasses(isFirstDay: boolean, isLastDay: boolean): string;
|
|
1604
|
-
/**
|
|
1605
|
-
* Check if an event is a multi-day event
|
|
1606
|
-
*/
|
|
1607
|
-
declare function isMultiDayEvent(event: CalendarEvent): boolean;
|
|
1608
|
-
/**
|
|
1609
|
-
* Filter events for a specific day
|
|
1610
|
-
*/
|
|
1611
|
-
declare function getEventsForDay(events: CalendarEvent[], day: Date): CalendarEvent[];
|
|
1612
|
-
declare function sortEvents(events: CalendarEvent[]): CalendarEvent[];
|
|
1613
|
-
declare function getSpanningEventsForDay(events: CalendarEvent[], day: Date): CalendarEvent[];
|
|
1614
|
-
/**
|
|
1615
|
-
* Get all events visible on a specific day (starting, ending, or spanning)
|
|
1616
|
-
*/
|
|
1617
|
-
declare function getAllEventsForDay(events: CalendarEvent[], day: Date): CalendarEvent[];
|
|
1618
|
-
/**
|
|
1619
|
-
* Get all events for a day (for agenda view)
|
|
1620
|
-
*/
|
|
1621
|
-
declare function getAgendaEventsForDay(events: CalendarEvent[], day: Date): CalendarEvent[];
|
|
1622
|
-
/**
|
|
1623
|
-
* Add hours to a date
|
|
1624
|
-
*/
|
|
1625
|
-
declare function addHoursToDate(date: Date, hours: number): Date;
|
|
1680
|
+
declare const CustomPieChart: React__default.FC<CustomPieChartProps>;
|
|
1626
1681
|
|
|
1627
|
-
interface
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1682
|
+
interface Props$4 {
|
|
1683
|
+
processedData: Array<{
|
|
1684
|
+
name: string;
|
|
1685
|
+
}>;
|
|
1686
|
+
onOpenPeriod: (periodName: string) => void;
|
|
1687
|
+
rightOffset?: number;
|
|
1688
|
+
topOffset?: number;
|
|
1689
|
+
activePeriod?: string;
|
|
1690
|
+
activePeriods?: string[];
|
|
1632
1691
|
}
|
|
1633
|
-
declare function
|
|
1692
|
+
declare function PeriodsDropdown({ processedData, onOpenPeriod, rightOffset, topOffset, activePeriod, activePeriods, }: Props$4): react_jsx_runtime.JSX.Element;
|
|
1634
1693
|
|
|
1635
|
-
interface
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
}
|
|
1641
|
-
interface CheckboxTreeProps {
|
|
1642
|
-
tree: TreeNode;
|
|
1643
|
-
renderNode: (props: {
|
|
1644
|
-
node: TreeNode;
|
|
1645
|
-
isChecked: boolean | "indeterminate";
|
|
1646
|
-
onCheckedChange: () => void;
|
|
1647
|
-
children: React__default.ReactNode;
|
|
1648
|
-
}) => React__default.ReactNode;
|
|
1694
|
+
interface Props$3 {
|
|
1695
|
+
showOnlyHighlighted: boolean;
|
|
1696
|
+
setShowOnlyHighlighted: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
1697
|
+
highlightedSeriesSize: number;
|
|
1698
|
+
clearHighlights: () => void;
|
|
1649
1699
|
}
|
|
1650
|
-
declare
|
|
1651
|
-
|
|
1652
|
-
declare function MultiSelectBase({ children, values, defaultValues, onValuesChange, disabled, empty, error, }: {
|
|
1653
|
-
children: ReactNode;
|
|
1654
|
-
values?: string[];
|
|
1655
|
-
defaultValues?: string[];
|
|
1656
|
-
onValuesChange?: (values: string[]) => void;
|
|
1657
|
-
disabled?: boolean;
|
|
1658
|
-
empty?: ReactNode;
|
|
1659
|
-
error?: string;
|
|
1660
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1661
|
-
declare function MultiSelectTriggerBase({ className, children, error: propError, ...props }: {
|
|
1662
|
-
className?: string;
|
|
1663
|
-
children?: ReactNode;
|
|
1664
|
-
} & ComponentPropsWithoutRef<typeof ButtonBase> & ErrorMessageProps): react_jsx_runtime.JSX.Element;
|
|
1665
|
-
declare function MultiSelectValueBase({ placeholder, clickToRemove, className, overflowBehavior, ...props }: {
|
|
1666
|
-
placeholder?: string;
|
|
1667
|
-
clickToRemove?: boolean;
|
|
1668
|
-
overflowBehavior?: "wrap" | "wrap-when-open" | "cutoff";
|
|
1669
|
-
} & Omit<ComponentPropsWithoutRef<"div">, "children">): react_jsx_runtime.JSX.Element;
|
|
1670
|
-
declare function MultiSelectContentBase({ search, children, ...props }: {
|
|
1671
|
-
search?: boolean | {
|
|
1672
|
-
placeholder?: string;
|
|
1673
|
-
emptyMessage?: string;
|
|
1674
|
-
};
|
|
1675
|
-
children: ReactNode;
|
|
1676
|
-
} & Omit<ComponentPropsWithoutRef<typeof CommandBase>, "children">): react_jsx_runtime.JSX.Element;
|
|
1677
|
-
declare function MultiSelectItemBase({ value, children, badgeLabel, onSelect, ...props }: {
|
|
1678
|
-
badgeLabel?: ReactNode;
|
|
1679
|
-
value: string;
|
|
1680
|
-
} & Omit<ComponentPropsWithoutRef<typeof CommandItemBase>, "value">): react_jsx_runtime.JSX.Element;
|
|
1681
|
-
declare function MultiSelectGroupBase(props: ComponentPropsWithoutRef<typeof CommandGroupBase>): react_jsx_runtime.JSX.Element;
|
|
1682
|
-
declare function MultiSelectSeparatorBase(props: ComponentPropsWithoutRef<typeof CommandSeparatorBase>): react_jsx_runtime.JSX.Element;
|
|
1700
|
+
declare const ShowOnly: React__default.FC<Props$3>;
|
|
1683
1701
|
|
|
1684
|
-
interface
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1702
|
+
interface MapperEntry {
|
|
1703
|
+
label?: string;
|
|
1704
|
+
valueFormatter?: (value: string | number) => string | number;
|
|
1705
|
+
color?: string;
|
|
1706
|
+
type?: string;
|
|
1707
|
+
visible?: boolean;
|
|
1689
1708
|
}
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1709
|
+
interface Props$2 {
|
|
1710
|
+
allKeys: string[];
|
|
1711
|
+
mapperConfig: Record<string, MapperEntry>;
|
|
1712
|
+
finalColors: Record<string, string>;
|
|
1713
|
+
highlightedSeries: Set<string>;
|
|
1714
|
+
toggleHighlight: (key: string) => void;
|
|
1715
|
+
containerWidth?: number;
|
|
1695
1716
|
}
|
|
1696
|
-
declare
|
|
1697
|
-
|
|
1698
|
-
type CalendarDndContextType = {
|
|
1699
|
-
activeEvent: CalendarEventAgenda | null;
|
|
1700
|
-
activeId: UniqueIdentifier | null;
|
|
1701
|
-
activeView: "month" | "week" | "day" | null;
|
|
1702
|
-
currentTime: Date | null;
|
|
1703
|
-
eventHeight: number | null;
|
|
1704
|
-
isMultiDay: boolean;
|
|
1705
|
-
multiDayWidth: number | null;
|
|
1706
|
-
dragHandlePosition: {
|
|
1707
|
-
x?: number;
|
|
1708
|
-
y?: number;
|
|
1709
|
-
data?: {
|
|
1710
|
-
isFirstDay?: boolean;
|
|
1711
|
-
isLastDay?: boolean;
|
|
1712
|
-
};
|
|
1713
|
-
} | null;
|
|
1714
|
-
};
|
|
1715
|
-
declare const useCalendarDndAgenda: () => CalendarDndContextType;
|
|
1716
|
-
|
|
1717
|
-
declare const EventHeightAgenda = 24;
|
|
1718
|
-
declare const EventGapAgenda = 4;
|
|
1719
|
-
declare const WeekCellsHeightAgenda = 64;
|
|
1720
|
-
declare const AgendaDaysToShowAgenda = 30;
|
|
1721
|
-
declare const StartHourAgenda = 0;
|
|
1722
|
-
declare const EndHourAgenda = 24;
|
|
1723
|
-
declare const DefaultStartHourAgenda = 9;
|
|
1724
|
-
declare const DefaultEndHourAgenda = 10;
|
|
1717
|
+
declare const Highlights: React__default.FC<Props$2>;
|
|
1725
1718
|
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
start?: Date | null;
|
|
1732
|
-
end?: Date | null;
|
|
1733
|
-
allDay?: boolean;
|
|
1734
|
-
color?: EventColorAgenda;
|
|
1735
|
-
location?: string;
|
|
1736
|
-
duration?: number;
|
|
1719
|
+
interface CloseAllButtonProps {
|
|
1720
|
+
count: number;
|
|
1721
|
+
onCloseAll: () => void;
|
|
1722
|
+
position?: "top-left" | "top-right" | "top-center";
|
|
1723
|
+
variant?: "floating" | "inline";
|
|
1737
1724
|
}
|
|
1738
|
-
|
|
1725
|
+
declare const CloseAllButton: React__default.FC<CloseAllButtonProps>;
|
|
1739
1726
|
|
|
1740
|
-
interface
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1727
|
+
interface TooltipData {
|
|
1728
|
+
name: string;
|
|
1729
|
+
[key: string]: string | number;
|
|
1730
|
+
}
|
|
1731
|
+
interface Position$1 {
|
|
1732
|
+
top: number;
|
|
1733
|
+
left: number;
|
|
1745
1734
|
}
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
interface DroppableCellProps {
|
|
1735
|
+
interface DraggableTooltipProps {
|
|
1749
1736
|
id: string;
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1737
|
+
data: TooltipData;
|
|
1738
|
+
position: Position$1;
|
|
1739
|
+
isDragging?: boolean;
|
|
1740
|
+
title?: string;
|
|
1741
|
+
dataKeys: string[];
|
|
1742
|
+
finalColors: Record<string, string>;
|
|
1743
|
+
onMouseDown?: (id: string, e: React__default.MouseEvent) => void;
|
|
1744
|
+
onClose: (id: string) => void;
|
|
1745
|
+
periodLabel?: string;
|
|
1746
|
+
dataLabel?: string;
|
|
1747
|
+
showCloseAllButton?: boolean;
|
|
1748
|
+
globalTooltipCount?: number;
|
|
1749
|
+
onCloseAll?: () => void;
|
|
1750
|
+
closeAllButtonPosition?: "top-left" | "top-right" | "top-center";
|
|
1751
|
+
closeAllButtonVariant?: "floating" | "inline";
|
|
1752
|
+
onPositionChange?: (id: string, position: Position$1) => void;
|
|
1753
|
+
highlightedSeries?: Set<string>;
|
|
1754
|
+
toggleHighlight?: (key: string) => void;
|
|
1755
|
+
showOnlyHighlighted?: boolean;
|
|
1756
|
+
valueFormatter?: valueFormatter;
|
|
1757
|
+
categoryFormatter?: (value: string | number) => string;
|
|
1755
1758
|
}
|
|
1756
|
-
declare
|
|
1759
|
+
declare const DraggableTooltip: React__default.NamedExoticComponent<DraggableTooltipProps>;
|
|
1757
1760
|
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1761
|
+
type TooltipPayloadItem$1 = {
|
|
1762
|
+
dataKey: string;
|
|
1763
|
+
value: number;
|
|
1764
|
+
name: string;
|
|
1765
|
+
color?: string;
|
|
1766
|
+
};
|
|
1767
|
+
interface Props$1 {
|
|
1768
|
+
active?: boolean;
|
|
1769
|
+
payload?: TooltipPayloadItem$1[];
|
|
1770
|
+
label?: string;
|
|
1771
|
+
finalColors?: Record<string, string>;
|
|
1772
|
+
periodLabel?: string;
|
|
1773
|
+
totalLabel?: string;
|
|
1774
|
+
valueFormatter?: valueFormatter;
|
|
1775
|
+
categoryFormatter?: (value: string | number) => string;
|
|
1776
|
+
yAxisMap?: Record<string, "left" | "right">;
|
|
1777
|
+
isBiaxial?: boolean;
|
|
1765
1778
|
}
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1779
|
+
declare const RechartTooltipWithTotal: React__default.FC<Props$1>;
|
|
1780
|
+
|
|
1781
|
+
type TooltipPayloadItem = {
|
|
1782
|
+
dataKey: string;
|
|
1783
|
+
value: number;
|
|
1784
|
+
name: string;
|
|
1785
|
+
color?: string;
|
|
1786
|
+
};
|
|
1787
|
+
interface Props {
|
|
1788
|
+
active?: boolean;
|
|
1789
|
+
payload?: TooltipPayloadItem[];
|
|
1790
|
+
label?: string;
|
|
1791
|
+
finalColors?: Record<string, string>;
|
|
1792
|
+
periodLabel?: string;
|
|
1793
|
+
valueFormatter?: valueFormatter;
|
|
1794
|
+
categoryFormatter?: (value: string | number) => string;
|
|
1795
|
+
yAxisMap?: Record<string, "left" | "right">;
|
|
1796
|
+
isBiaxial?: boolean;
|
|
1770
1797
|
}
|
|
1771
|
-
declare
|
|
1798
|
+
declare const TooltipSimple: React__default.FC<Props>;
|
|
1772
1799
|
|
|
1773
|
-
interface
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
isFirstDay?: boolean;
|
|
1782
|
-
isLastDay?: boolean;
|
|
1783
|
-
children?: React.ReactNode;
|
|
1784
|
-
className?: string;
|
|
1785
|
-
dndListeners?: SyntheticListenerMap;
|
|
1786
|
-
dndAttributes?: DraggableAttributes;
|
|
1787
|
-
onMouseDown?: (e: React.MouseEvent) => void;
|
|
1788
|
-
onTouchStart?: (e: React.TouchEvent) => void;
|
|
1800
|
+
interface UseChartHighlightsReturn {
|
|
1801
|
+
highlightedSeries: Set<string>;
|
|
1802
|
+
showOnlyHighlighted: boolean;
|
|
1803
|
+
toggleHighlight: (key: string) => void;
|
|
1804
|
+
setShowOnlyHighlighted: (show: boolean) => void;
|
|
1805
|
+
clearHighlights: () => void;
|
|
1806
|
+
getSeriesStyle: (key: string) => React.CSSProperties;
|
|
1807
|
+
isHighlighted: (key: string) => boolean;
|
|
1789
1808
|
}
|
|
1790
|
-
declare
|
|
1809
|
+
declare const useChartHighlights: () => UseChartHighlightsReturn;
|
|
1791
1810
|
|
|
1792
|
-
interface
|
|
1793
|
-
|
|
1794
|
-
|
|
1811
|
+
interface NoDataProps {
|
|
1812
|
+
paddingLeft?: number;
|
|
1813
|
+
height?: number | string;
|
|
1814
|
+
message?: string;
|
|
1795
1815
|
className?: string;
|
|
1796
|
-
title?: string;
|
|
1797
|
-
show?: boolean;
|
|
1798
1816
|
}
|
|
1799
|
-
declare
|
|
1817
|
+
declare const NoData: React__default.FC<NoDataProps>;
|
|
1800
1818
|
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1819
|
+
type Primitive = string | number | boolean | null | undefined;
|
|
1820
|
+
interface ChartData {
|
|
1821
|
+
[key: string]: Primitive;
|
|
1822
|
+
name?: string;
|
|
1823
|
+
}
|
|
1824
|
+
interface XAxisConfig {
|
|
1825
|
+
dataKey: string;
|
|
1826
|
+
label?: string;
|
|
1827
|
+
valueFormatter?: (value: string | number) => string;
|
|
1828
|
+
autoLabel?: boolean;
|
|
1829
|
+
}
|
|
1830
|
+
type ValueFormatter = (value: string | number) => string | number;
|
|
1831
|
+
type FinalValueFormatter = (value: number | string | null | undefined) => string;
|
|
1832
|
+
type SeriesProp = {
|
|
1833
|
+
bar?: string[];
|
|
1834
|
+
line?: string[];
|
|
1835
|
+
area?: string[];
|
|
1804
1836
|
};
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1837
|
+
type SeriesEntry = {
|
|
1838
|
+
type: "bar" | "line" | "area";
|
|
1839
|
+
key: string;
|
|
1840
|
+
};
|
|
1841
|
+
type SeriesCounts = {
|
|
1842
|
+
bar: number;
|
|
1843
|
+
line: number;
|
|
1844
|
+
area: number;
|
|
1845
|
+
};
|
|
1846
|
+
type YAxisSide = "left" | "right";
|
|
1847
|
+
type YAxisMap = Record<string, YAxisSide>;
|
|
1848
|
+
interface MapperConfigEntry {
|
|
1849
|
+
label?: string;
|
|
1850
|
+
valueFormatter?: ValueFormatter;
|
|
1851
|
+
color?: string;
|
|
1852
|
+
type?: "number" | "string" | "auto";
|
|
1853
|
+
visible?: boolean;
|
|
1809
1854
|
}
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1855
|
+
type MapperConfig = Record<string, MapperConfigEntry>;
|
|
1856
|
+
interface YAxisOptions {
|
|
1857
|
+
label?: string;
|
|
1858
|
+
stroke?: string;
|
|
1859
|
+
width?: number;
|
|
1860
|
+
percent?: boolean;
|
|
1861
|
+
percentDecimals?: number;
|
|
1814
1862
|
}
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1863
|
+
type YAxes = Partial<{
|
|
1864
|
+
left: YAxisOptions;
|
|
1865
|
+
right: YAxisOptions;
|
|
1866
|
+
}>;
|
|
1867
|
+
interface TooltipItem {
|
|
1868
|
+
id: string;
|
|
1869
|
+
data: ChartData;
|
|
1870
|
+
position: {
|
|
1871
|
+
top: number;
|
|
1872
|
+
left: number;
|
|
1873
|
+
};
|
|
1826
1874
|
}
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
/**
|
|
1848
|
-
* Get all events visible on a specific day (starting, ending, or spanning)
|
|
1849
|
-
*/
|
|
1850
|
-
declare function getAllEventsForDayAgenda(events: CalendarEventAgenda[], day: Date): CalendarEventAgenda[];
|
|
1851
|
-
/**
|
|
1852
|
-
* Get all events for a day (for agenda view)
|
|
1853
|
-
*/
|
|
1854
|
-
declare function getAgendaEventsForDayAgenda(events: CalendarEventAgenda[], day: Date): CalendarEventAgenda[];
|
|
1855
|
-
/**
|
|
1856
|
-
* Return the event start as a Date if possible
|
|
1857
|
-
*/
|
|
1858
|
-
declare function getEventStartDate(event: CalendarEventAgenda): Date | undefined;
|
|
1859
|
-
/**
|
|
1860
|
-
* Return the event end as a Date. If `end` is not provided but `duration` (minutes) is,
|
|
1861
|
-
* compute end = start + duration minutes.
|
|
1862
|
-
*/
|
|
1863
|
-
declare function getEventEndDate(event: CalendarEventAgenda): Date | undefined;
|
|
1864
|
-
declare function normalizeAttendDate(d?: unknown): Date | undefined;
|
|
1865
|
-
/**
|
|
1866
|
-
* Add hours to a date
|
|
1867
|
-
*/
|
|
1868
|
-
declare function addMinutesToDateAgenda(date: Date, minutes: number): Date;
|
|
1869
|
-
declare function addHoursToDateAgenda(date: Date, hours: number): Date;
|
|
1870
|
-
|
|
1871
|
-
interface WeekViewProps {
|
|
1872
|
-
currentDate: Date;
|
|
1873
|
-
events: CalendarEventAgenda[];
|
|
1874
|
-
onEventSelect: (event: CalendarEventAgenda, e?: React__default.MouseEvent) => void;
|
|
1875
|
-
onEventCreate?: (startTime: Date) => void;
|
|
1876
|
-
showUndatedEvents?: boolean;
|
|
1875
|
+
type TooltipAdaptedRow = Record<string, string | number> & {
|
|
1876
|
+
name: string;
|
|
1877
|
+
};
|
|
1878
|
+
interface ChartHooksArgs {
|
|
1879
|
+
width?: number | string;
|
|
1880
|
+
measuredWidth?: number | null;
|
|
1881
|
+
points?: number;
|
|
1882
|
+
seriesCounts?: SeriesCounts;
|
|
1883
|
+
niceMax?: number;
|
|
1884
|
+
yAxes?: YAxes;
|
|
1885
|
+
yAxisLabel?: string;
|
|
1886
|
+
chartMargin?: Partial<{
|
|
1887
|
+
top: number;
|
|
1888
|
+
right: number;
|
|
1889
|
+
left: number;
|
|
1890
|
+
bottom: number;
|
|
1891
|
+
}>;
|
|
1892
|
+
showLabels?: boolean;
|
|
1893
|
+
showLegend?: boolean;
|
|
1894
|
+
xAxisLabel?: string;
|
|
1877
1895
|
}
|
|
1878
|
-
declare function WeekViewAgenda({ currentDate, events, onEventSelect, onEventCreate, showUndatedEvents, }: WeekViewProps): react_jsx_runtime.JSX.Element;
|
|
1879
1896
|
|
|
1880
1897
|
declare function useIsMobile(): boolean;
|
|
1881
1898
|
|
|
@@ -1896,4 +1913,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
1896
1913
|
isDragging: boolean;
|
|
1897
1914
|
};
|
|
1898
1915
|
|
|
1899
|
-
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData, type ChartHooksArgs, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, DefaultEndHour, DefaultEndHourAgenda, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, LikeButton, CustomLineChart as LineChart, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, MultiSelectBase, MultiSelectContentBase, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, NoData, NotificationButton, type Padding, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, type ValueFormatter, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, convert12HourTo24Hour, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartHighlights, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, type valueFormatter };
|
|
1916
|
+
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData, type ChartHooksArgs, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, LikeButton, CustomLineChart as LineChart, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type NewSelectProps, NoData, NotificationButton, type Padding, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, type ValueFormatter, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, convert12HourTo24Hour, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartHighlights, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, type valueFormatter };
|