@mlw-packages/react-components 1.7.22 → 1.7.24

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