@sustaina/shared-ui 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,61 +1,265 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React$1 from 'react';
3
- import React__default, { CSSProperties, ReactNode } from 'react';
4
- import { FieldValues, FieldPath, ControllerProps, UseFormGetFieldState } from 'react-hook-form';
5
- import { Header, RowData as RowData$1, Column as Column$1, Table as Table$1, ColumnDef, ColumnFiltersState, OnChangeFn, FilterFnOption, SortingState, ColumnOrderState, VisibilityState, ColumnPinningState, GroupingState, GroupingOptions, ColumnResizeMode, RowSelectionState, Row, ExpandedState, HeaderGroup, Cell, HeaderContext } from '@tanstack/react-table';
2
+ import React__default, { CSSProperties, ReactNode, ComponentProps, useEffect } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
5
+ import useEmblaCarousel from 'embla-carousel-react';
6
+ import { EmblaCarouselType, EmblaOptionsType, EmblaPluginType } from 'embla-carousel';
7
+ import { AutoplayOptionsType } from 'embla-carousel-autoplay';
6
8
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
7
9
  import { VariantProps } from 'class-variance-authority';
8
10
  import { ClassValue } from 'clsx';
11
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
12
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
13
+ import { Header, RowData as RowData$1, Column as Column$1, Table as Table$1, ColumnDef, ColumnFiltersState, OnChangeFn, FilterFnOption, SortingState, ColumnOrderState, VisibilityState, ColumnPinningState, GroupingState, GroupingOptions, ColumnResizeMode, RowSelectionState, Row, ExpandedState, Cell, HeaderGroup, HeaderContext } from '@tanstack/react-table';
14
+ import { VirtualItem, Virtualizer as Virtualizer$1 } from '@tanstack/react-virtual';
15
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
16
+ import { DialogContentProps as DialogContentProps$1 } from '@radix-ui/react-dialog';
17
+ import { Resource } from 'i18next';
18
+ import * as react_hook_form from 'react-hook-form';
19
+ import { ControllerRenderProps, ControllerFieldState, FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
20
+ import * as LabelPrimitive from '@radix-ui/react-label';
21
+ import { Slot } from '@radix-ui/react-slot';
9
22
  import * as zustand from 'zustand';
23
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
24
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
25
+ import { EditorState } from 'lexical';
26
+ import * as SelectPrimitive from '@radix-ui/react-select';
27
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
28
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
29
+ import * as SwitchPrimitive from '@radix-ui/react-switch';
30
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
31
+ import { CropperProps, Area } from 'react-easy-crop';
32
+ import { NumericFormatProps } from 'react-number-format';
33
+ import { Command as Command$1 } from 'cmdk';
10
34
 
11
- type FormErrorMessageProps = React__default.ComponentProps<"p"> & {
12
- errorClassName?: string;
35
+ type AuditFooterProps = {
36
+ createdAt?: string | Date | null;
37
+ createdBy?: string | null;
38
+ updatedAt?: string | Date | null;
39
+ updatedBy?: string | null;
40
+ onDelete?: () => void;
41
+ canDelete?: boolean;
42
+ canDeleteBehavior?: "hidden" | "disabled";
43
+ emptyValue?: React__default.ReactNode;
44
+ labels?: {
45
+ createdOn?: string;
46
+ createdAtTime?: string;
47
+ createdBy?: string;
48
+ updatedOn?: string;
49
+ updatedAtTime?: string;
50
+ updatedBy?: string;
51
+ };
52
+ classNames?: {
53
+ root?: string;
54
+ grid?: string;
55
+ label?: string;
56
+ value?: string;
57
+ deleteButton?: string;
58
+ deleteButtonDisabled?: string;
59
+ };
60
+ formatters?: {
61
+ date?: (value: string | Date) => React__default.ReactNode;
62
+ time?: (value: string | Date) => React__default.ReactNode;
63
+ user?: (value?: string | null) => React__default.ReactNode;
64
+ };
65
+ deleteAriaLabel?: string;
66
+ deleteIcon?: React__default.ReactNode;
13
67
  };
14
- declare function FormErrorMessage({ className, errorClassName, ...props }: FormErrorMessageProps): react_jsx_runtime.JSX.Element | null;
68
+ declare const AuditFooter: React__default.FC<AuditFooterProps>;
15
69
 
16
- type FormFieldProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = ControllerProps<TFieldValues, TName>;
17
- type FormFieldContextValue<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
18
- name: TName;
19
- };
20
- declare const FormFieldContext: React$1.Context<FormFieldContextValue<FieldValues, string>>;
21
- declare function FormField<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: FormFieldProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
70
+ declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
71
+ declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
72
+ declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
73
+ declare function AccordionContent({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Content>): react_jsx_runtime.JSX.Element;
22
74
 
23
- type FormItemProps = React__default.ComponentProps<"div">;
24
- type FormItemContextValue = {
25
- id: string;
26
- };
27
- declare const FormItemContext: React__default.Context<FormItemContextValue>;
28
- declare function FormItem({ children, ...props }: FormItemProps): react_jsx_runtime.JSX.Element;
75
+ declare const buttonVariants: (props?: ({
76
+ color?: "default" | "primary" | "destructive" | "red" | "gray" | "accent" | "warning" | "yellow" | "yellowDark" | "green" | "blue" | "black" | null | undefined;
77
+ variant?: "cancel" | "default" | "link" | "destructive" | "warning" | "cottonYellowDark" | "cottonGreen" | "cottonBlue" | "cottonRed" | "cottonAccent" | "cottonYellow" | "cottonBlack" | "defaultOutline" | "destructiveOutline" | "outline" | "secondary" | "ghost" | "defaultSelect" | null | undefined;
78
+ size?: "default" | "option" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-md" | "icon-lg" | "icon-rounded" | "icon-xs-rounded" | "icon-sm-rounded" | "icon-md-rounded" | "icon-lg-rounded" | null | undefined;
79
+ active?: boolean | null | undefined;
80
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
81
+ declare function Button({ className, variant, size, active, color, asChild, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
82
+ asChild?: boolean;
83
+ active?: boolean;
84
+ }): react_jsx_runtime.JSX.Element;
29
85
 
30
- type FormLabelProps = React__default.ComponentProps<"label"> & {
31
- errorClassName?: string;
32
- required?: boolean;
86
+ type CarouselApi = EmblaCarouselType;
87
+ type CarouselContextProps = {
88
+ carouselRef: ReturnType<typeof useEmblaCarousel>[0];
89
+ api: CarouselApi | undefined;
90
+ opts?: EmblaOptionsType;
91
+ orientation: "horizontal" | "vertical";
92
+ scrollPrev: () => void;
93
+ scrollNext: () => void;
94
+ canScrollPrev: boolean;
95
+ canScrollNext: boolean;
96
+ };
97
+ declare function useCarousel(): CarouselContextProps;
98
+ declare const Carousel: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
99
+ opts?: EmblaOptionsType;
100
+ plugins?: EmblaPluginType[];
101
+ orientation?: "horizontal" | "vertical";
102
+ setApi?: (api: CarouselApi) => void;
103
+ autoplay?: boolean | AutoplayOptionsType;
104
+ } & React$1.RefAttributes<HTMLDivElement>>;
105
+ declare const CarouselContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
106
+ declare const CarouselItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
107
+ type CarouselNavProps = React$1.ComponentProps<typeof Button> & {
108
+ position?: "inside" | "outside";
33
109
  };
34
- declare function FormLabel({ children, className, errorClassName, required, ...props }: FormLabelProps): react_jsx_runtime.JSX.Element;
110
+ declare const CarouselPrevious: React$1.ForwardRefExoticComponent<Omit<CarouselNavProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
111
+ declare const CarouselNext: React$1.ForwardRefExoticComponent<Omit<CarouselNavProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
112
+ declare const CarouselDots: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
113
+ dotClassName?: string;
114
+ dotActiveClassName?: string;
115
+ getDotLabel?: (index: number) => string;
116
+ position?: "inside" | "outside";
117
+ } & React$1.RefAttributes<HTMLDivElement>>;
118
+ declare const CarouselThumbnails: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
119
+ items: React$1.ReactNode[];
120
+ buttonClassName?: string;
121
+ buttonActiveClassName?: string;
122
+ } & React$1.RefAttributes<HTMLDivElement>>;
35
123
 
36
- type UseFormFieldOptions = {
37
- skipValidationIfNoContext?: boolean;
124
+ type FieldType = "text" | "number" | "date" | "datetime" | "datemonth" | "checkbox" | "dropdown" | "lookup" | "uuid" | "json";
125
+ type Option = {
126
+ decorator?: React.ReactNode;
127
+ labelStyle?: ClassValue;
128
+ value: string;
129
+ label: string;
38
130
  };
39
- type UseFormFieldReturn = ReturnType<UseFormGetFieldState<any>> & {
40
- prefixId: string | undefined;
41
- name: string | undefined;
42
- formItemId: string | undefined;
43
- formLabelId: string | undefined;
44
- formErrorMessageId: string | undefined;
131
+ interface FieldSchemaBase<T extends FieldType> {
132
+ name: string;
133
+ type: T;
134
+ label?: string;
135
+ multiTableSearch?: boolean;
136
+ lookupFieldName?: string;
137
+ enableNullOperators?: boolean;
138
+ }
139
+ type DropdownFieldSchema = FieldSchemaBase<"dropdown"> & ({
140
+ options: Option[];
141
+ fetchOptions?: never;
142
+ noOptionsMessage?: never;
143
+ loadingMessage?: never;
144
+ } | {
145
+ options?: never;
146
+ fetchOptions: () => Promise<Option[]>;
147
+ noOptionsMessage?: string;
148
+ loadingMessage?: string;
149
+ });
150
+ interface TextFieldSchema extends FieldSchemaBase<"text"> {
151
+ allowRegex?: RegExp;
152
+ }
153
+ interface NumberFieldSchema extends FieldSchemaBase<"number"> {
154
+ min?: number;
155
+ max?: number;
156
+ }
157
+ type DateFieldSchema = FieldSchemaBase<"date">;
158
+ type DateTimeFieldSchema = FieldSchemaBase<"datetime">;
159
+ type DateMonthFieldSchema = FieldSchemaBase<"datemonth">;
160
+ type CheckboxFieldSchema = FieldSchemaBase<"checkbox">;
161
+ interface LookupFieldSchema extends FieldSchemaBase<"lookup"> {
162
+ maxTags?: number;
163
+ fetchSuggestions?: (query: string) => Promise<Option[]>;
164
+ suggestionDebounce?: number;
165
+ placeholder?: string;
166
+ noOptionsMessage?: string;
167
+ loadingMessage?: string;
168
+ }
169
+ type UUIDFieldSchema = FieldSchemaBase<"uuid">;
170
+ interface JSONFieldSchema extends FieldSchemaBase<"json"> {
171
+ jsonPath?: string[];
172
+ maxTags?: number;
173
+ fetchSuggestions?: (query: string) => Promise<Option[]>;
174
+ suggestionDebounce?: number;
175
+ placeholder?: string;
176
+ noOptionsMessage?: string;
177
+ loadingMessage?: string;
178
+ }
179
+ type FieldSchema = DropdownFieldSchema | TextFieldSchema | NumberFieldSchema | DateFieldSchema | DateTimeFieldSchema | DateMonthFieldSchema | CheckboxFieldSchema | LookupFieldSchema | UUIDFieldSchema | JSONFieldSchema;
180
+ type OperatorValue = "contains" | "equals" | "beginsWith" | "endsWith" | "notEquals" | "notBeginsWith" | "notEndsWith" | "notContains" | "gt" | "gte" | "lt" | "lte" | "on" | "after" | "before" | "between" | "is" | "isNot" | "containsAny" | "containsOnly" | "containsAll" | "isNull" | "isNotNull";
181
+ type RowState = {
182
+ id: string;
183
+ fieldName: string;
184
+ fieldType: FieldType;
185
+ operator: Exclude<OperatorValue, "between">;
186
+ value: string | any[];
187
+ value2?: undefined;
188
+ multiTableSearch?: boolean;
189
+ jsonPath?: string[];
190
+ lookupFieldName?: string;
191
+ allowRegex?: RegExp;
192
+ } | {
193
+ id: string;
194
+ fieldName: string;
195
+ fieldType: FieldType;
196
+ operator: "between";
197
+ value: string;
198
+ value2: string;
199
+ multiTableSearch?: boolean;
200
+ jsonPath?: string[];
201
+ lookupFieldName?: string;
202
+ allowRegex?: RegExp;
45
203
  };
46
- declare function useFormField(options?: UseFormFieldOptions): UseFormFieldReturn;
204
+ interface Params {
205
+ AND: object[];
206
+ }
207
+ interface AdvanceSearchProps {
208
+ fields: FieldSchema[];
209
+ portalId: string;
210
+ limitRows?: number;
211
+ iconColor?: string;
212
+ onSearch?: (param: Params) => void;
213
+ onClear?: () => void;
214
+ shortDateFormat?: string;
215
+ filterFieldMap?: Record<string, string>;
216
+ customParamsBuilderHook?: (args: {
217
+ defaultBuildFunc: ParamsBuilder["build"];
218
+ row: RowState;
219
+ }) => object;
220
+ }
221
+ interface ParamsBuilder {
222
+ build(row: RowState): object;
223
+ }
224
+
225
+ declare const AdvanceSearch: React__default.FC<AdvanceSearchProps>;
47
226
 
48
- type TextInputProps = React__default.ComponentProps<"input">;
49
- declare function TextInput({ className, ...props }: TextInputProps): react_jsx_runtime.JSX.Element;
227
+ declare function Checkbox({ className, ...props }: React$1.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime.JSX.Element;
50
228
 
51
- type NumberInputProps = React__default.ComponentProps<"input">;
52
- declare function NumberInput({ className, ...props }: NumberInputProps): react_jsx_runtime.JSX.Element;
229
+ declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime.JSX.Element;
230
+ declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): react_jsx_runtime.JSX.Element;
231
+ declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): react_jsx_runtime.JSX.Element;
53
232
 
54
233
  declare function TableContainer({ className, children, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
55
234
  declare function Table({ className, ...props }: React$1.ComponentProps<"table">): react_jsx_runtime.JSX.Element;
56
235
  declare function TableHeader({ className, ...props }: React$1.ComponentProps<"thead">): react_jsx_runtime.JSX.Element;
57
236
  declare function TableBody({ className, ...props }: React$1.ComponentProps<"tbody">): react_jsx_runtime.JSX.Element;
237
+ declare function TableFooter({ className, ...props }: React$1.ComponentProps<"tfoot">): react_jsx_runtime.JSX.Element;
58
238
  declare function TableRow({ className, ...props }: React$1.ComponentProps<"tr">): react_jsx_runtime.JSX.Element;
239
+ declare function TableHead({ className, ...props }: React$1.ComponentProps<"th">): react_jsx_runtime.JSX.Element;
240
+ declare function TableCell({ className, ...props }: React$1.ComponentProps<"td">): react_jsx_runtime.JSX.Element;
241
+ declare function TableCaption({ className, ...props }: React$1.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
242
+
243
+ type ContentSlot = {
244
+ content?: React__default.ReactNode;
245
+ icon?: React__default.ReactNode;
246
+ wrapperProps?: React__default.ComponentProps<"div">;
247
+ };
248
+
249
+ type ColumnVirtualizerState = {
250
+ enabled: false;
251
+ } | {
252
+ enabled: true;
253
+ virtualColumns: VirtualItem[];
254
+ virtualPaddingLeft: number;
255
+ virtualPaddingRight: number;
256
+ };
257
+
258
+ type ColumnSeparatorProps = {
259
+ show?: boolean;
260
+ className?: string;
261
+ style?: React__default.CSSProperties;
262
+ };
59
263
 
60
264
  type ColumnResizerProps = {
61
265
  header: Header<any, any>;
@@ -134,6 +338,15 @@ type DataTableRowExpansion<TData extends RowData$1> = {
134
338
  isRowExpanded?: (row: Row<TData>) => boolean;
135
339
  canRowExpand?: (row: Row<TData>) => boolean;
136
340
  };
341
+ type DataTableVirtual = {
342
+ enabled: boolean;
343
+ overscan?: number;
344
+ columns?: {
345
+ enabled: boolean;
346
+ overscan?: number;
347
+ };
348
+ };
349
+ type Virtualizer = Virtualizer$1<HTMLDivElement, Element>;
137
350
  type DataTableColumnGrouping = {
138
351
  manual?: boolean;
139
352
  enabled: boolean;
@@ -143,16 +356,18 @@ type DataTableColumnGrouping = {
143
356
  customAggregationFns?: GroupingOptions["aggregationFns"];
144
357
  onGroupingChange?: OnChangeFn<GroupingState>;
145
358
  };
359
+ type RowClickType = "single" | "double";
146
360
  type DataTableRowClickHandler<TData extends RowData$1> = (rowData: TData, info: {
147
- event: React.MouseEvent<HTMLTableRowElement>;
361
+ event: React__default.MouseEvent<HTMLTableRowElement>;
148
362
  row: Row<TData>;
149
363
  table: Table$1<TData>;
364
+ clickType: RowClickType;
150
365
  }) => void;
151
366
  type DataTableRowIdKeyHandler<TData extends RowData$1> = (originalRow: TData, index: number, parent?: Row<TData>) => string;
152
367
  type DataTableHeaderCell<TData extends RowData$1> = {
153
368
  id: string;
154
369
  columnId: string;
155
- content: React.ReactNode;
370
+ content: React__default.ReactNode;
156
371
  originalCell: Header<TData, unknown>;
157
372
  };
158
373
  type DataTableRenderHeaderProps<TData extends RowData$1> = {
@@ -160,11 +375,11 @@ type DataTableRenderHeaderProps<TData extends RowData$1> = {
160
375
  table: Table$1<TData>;
161
376
  cells: DataTableHeaderCell<TData>[];
162
377
  };
163
- type DataTableRenderHeaderHandler<TData extends RowData$1> = (props: DataTableRenderHeaderProps<TData>) => React.ReactNode;
378
+ type DataTableRenderHeaderHandler<TData extends RowData$1> = (props: DataTableRenderHeaderProps<TData>) => React__default.ReactNode;
164
379
  type DataTableRowCell<TData extends RowData$1> = {
165
380
  id: string;
166
381
  columnId: string;
167
- content: React.ReactNode;
382
+ content: React__default.ReactNode;
168
383
  originalCell: Cell<TData, unknown>;
169
384
  };
170
385
  type DataTableRenderRowProps<TData extends RowData$1> = {
@@ -172,26 +387,48 @@ type DataTableRenderRowProps<TData extends RowData$1> = {
172
387
  cells: DataTableRowCell<TData>[];
173
388
  table: Table$1<TData>;
174
389
  };
175
- type DataTableRenderRowHandler<TData extends RowData$1> = (props: DataTableRenderRowProps<TData>) => React.ReactNode;
390
+ type DataTableRenderRowHandler<TData extends RowData$1> = (props: DataTableRenderRowProps<TData>) => React__default.ReactNode;
176
391
  type DataTableChildrenKeyHandler<TData> = (originalRow: TData, index: number) => TData[] | undefined;
177
392
  type DatatableColumnResizing = {
178
393
  enabled: boolean;
179
394
  resizeMode?: ColumnResizeMode;
180
395
  };
396
+ type DataTableColumnSeparatorProps = {
397
+ headerCell?: ColumnSeparatorProps;
398
+ };
181
399
  type DataTableComponentProps<TData> = {
182
- containerProps?: React.ComponentProps<typeof TableContainer>;
183
- tableProps?: React.ComponentProps<typeof Table>;
184
- tableHeaderProps?: React.ComponentProps<typeof TableHeader>;
185
- tableBodyProps?: React.ComponentProps<typeof TableBody>;
186
- tableDataRowProps?: React.ComponentProps<typeof TableRow> | ((info: {
400
+ containerProps?: React__default.ComponentProps<typeof TableContainer>;
401
+ tableProps?: React__default.ComponentProps<typeof Table>;
402
+ tableHeaderProps?: React__default.ComponentProps<typeof TableHeader>;
403
+ tableHeadCellProps?: React__default.ComponentProps<typeof TableHead> | ((info: {
404
+ header: Header<TData, unknown>;
405
+ table: Table$1<TData>;
406
+ }) => React__default.ComponentProps<typeof TableHead>);
407
+ tableBodyProps?: React__default.ComponentProps<typeof TableBody>;
408
+ tableDataRowProps?: React__default.ComponentProps<typeof TableRow> | ((info: {
187
409
  row: Row<TData>;
188
410
  table: Table$1<TData>;
189
- }) => React.ComponentProps<typeof TableRow>);
411
+ }) => React__default.ComponentProps<typeof TableRow>);
412
+ tableDataCellProps?: React__default.ComponentProps<typeof TableCell> | ((info: {
413
+ row: Row<TData>;
414
+ cell: Cell<TData, unknown>;
415
+ table: Table$1<TData>;
416
+ }) => React__default.ComponentProps<typeof TableCell>);
417
+ tableFilterCellProps?: React__default.ComponentProps<typeof TableCell> | ((info: {
418
+ column: Column$1<TData>;
419
+ table: Table$1<TData>;
420
+ }) => React__default.ComponentProps<typeof TableCell>);
421
+ tableFooterProps?: React__default.ComponentProps<typeof TableFooter>;
422
+ tableFooterRowProps?: React__default.ComponentProps<typeof TableRow> | ((info: {
423
+ footerGroup: HeaderGroup<TData>;
424
+ table: Table$1<TData>;
425
+ }) => React__default.ComponentProps<typeof TableRow>);
426
+ tableFooterCellProps?: React__default.ComponentProps<typeof TableHead> | ((info: {
427
+ footer: Header<TData, unknown>;
428
+ table: Table$1<TData>;
429
+ }) => React__default.ComponentProps<typeof TableHead>);
190
430
  columnResizerProps?: Omit<ColumnResizerProps, "header">;
191
- };
192
- type ContentSlot = {
193
- content: React.ReactNode;
194
- wrapperProps?: React.ComponentProps<"div">;
431
+ columnSeparatorProps?: DataTableColumnSeparatorProps;
195
432
  };
196
433
  type DataTableStatusContent = {
197
434
  initialLoading?: ContentSlot;
@@ -200,11 +437,23 @@ type DataTableStatusContent = {
200
437
  emptyData?: ContentSlot;
201
438
  emptyFilteredData?: ContentSlot;
202
439
  };
440
+ type StatusContentKey = keyof DataTableStatusContent;
441
+ type ScrollInfo = {
442
+ scrollTop: number;
443
+ scrollHeight: number;
444
+ clientHeight: number;
445
+ scrollableHeight: number;
446
+ distanceToBottom: number;
447
+ ratioToBottom: number;
448
+ isTopReached: boolean;
449
+ isBottomReached: boolean;
450
+ };
203
451
  type DataTableScrollFetch = {
204
452
  enabled: boolean;
205
453
  fetchMore?: () => void;
206
454
  hasMore?: boolean;
207
455
  isFetchingMore?: boolean;
456
+ scrollThreshold?: number | ((info: ScrollInfo) => boolean);
208
457
  };
209
458
  type DataTableProps<TData extends RowData$1> = {
210
459
  data: TData[];
@@ -218,24 +467,34 @@ type DataTableProps<TData extends RowData$1> = {
218
467
  columnResizing?: DatatableColumnResizing;
219
468
  rowSelection?: DataTableRowSelection<TData>;
220
469
  rowExpansion?: DataTableRowExpansion<TData>;
470
+ virtual?: DataTableVirtual;
221
471
  scrollFetch?: DataTableScrollFetch;
222
472
  components?: DataTableComponentProps<TData>;
473
+ activeStatusContent?: (StatusContentKey | null) | ((info: {
474
+ defaultComputedValue: StatusContentKey | null;
475
+ }) => StatusContentKey | null);
223
476
  statusContent?: DataTableStatusContent;
224
- tableRef?: React.RefObject<Table$1<TData> | null>;
477
+ tableRef?: React__default.RefObject<Table$1<TData> | null>;
478
+ virtualizerRef?: React__default.RefObject<Virtualizer>;
479
+ columnVirtualizerRef?: React__default.RefObject<Virtualizer>;
225
480
  isInitialLoading?: boolean;
226
481
  debug?: boolean;
227
482
  rowIdKey?: DataTableRowIdKeyHandler<TData>;
228
483
  childrenKey?: DataTableChildrenKeyHandler<TData>;
229
484
  onRowClick?: DataTableRowClickHandler<TData>;
230
485
  };
231
- declare const DataTable: <TData extends RowData$1>({ tableRef, isInitialLoading, columns, data, filters, sorting, columnOrder, columnVisibility, columnPinning, columnGrouping, columnResizing, rowSelection, rowExpansion, scrollFetch, statusContent, rowIdKey, childrenKey, onRowClick, debug, components }: DataTableProps<TData>) => react_jsx_runtime.JSX.Element;
486
+ declare const DataTable: <TData extends RowData$1>({ tableRef, virtualizerRef, columnVirtualizerRef, isInitialLoading, columns, data, filters, sorting, columnOrder, columnVisibility, columnPinning, columnGrouping, columnResizing, rowSelection, rowExpansion, virtual, scrollFetch, activeStatusContent, statusContent, rowIdKey, childrenKey, onRowClick, debug, components }: DataTableProps<TData>) => react_jsx_runtime.JSX.Element;
232
487
 
233
488
  declare module "@tanstack/react-table" {
234
489
  interface ColumnMeta<TData extends RowData> {
235
490
  headerProps?: React.ComponentProps<"th">;
236
491
  cellProps?: React.ComponentProps<"td">;
492
+ filterCellProps?: React.ComponentProps<"td">;
493
+ footerProps?: React.ComponentProps<"th">;
237
494
  useColumnSizing?: boolean;
495
+ columnSeparatorProps?: ColumnSeparatorProps;
238
496
  renderColumnFilter?: (props: DataTableColumnFilterProps<TData>) => ReactNode;
497
+ spanRows?: boolean;
239
498
  }
240
499
  }
241
500
 
@@ -245,10 +504,14 @@ declare function booleanToSelectValue(value: boolean | undefined, options?: {
245
504
  fallbackUndefinedValue?: string;
246
505
  }): string;
247
506
  declare function selectValueToBoolean(value: string): boolean | undefined;
248
- declare function renderContentSlot(slot: ContentSlot, defaultWrapperProps?: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element | null;
507
+ declare function resetVisibleTableState(payload: {
508
+ table: Table$1<any> | null;
509
+ visibility: Record<string, boolean>;
510
+ }): void;
249
511
 
250
512
  type SorterProps = {
251
513
  show?: boolean;
514
+ rootClassName?: string;
252
515
  };
253
516
  type HeaderCellProps<TData = any, TValue = any> = {
254
517
  label: React.ReactNode;
@@ -256,21 +519,320 @@ type HeaderCellProps<TData = any, TValue = any> = {
256
519
  rootClassName?: string;
257
520
  labelClassName?: string;
258
521
  sorterProps?: SorterProps;
522
+ align?: "left" | "center" | "right";
259
523
  };
260
- declare const HeaderCell: ({ rootClassName, labelClassName, context, label, sorterProps }: HeaderCellProps) => react_jsx_runtime.JSX.Element;
524
+ declare const HeaderCell: ({ rootClassName, labelClassName, context, label, sorterProps, align }: HeaderCellProps) => react_jsx_runtime.JSX.Element;
261
525
 
262
- declare const buttonVariants: (props?: ({
263
- variant?: "link" | "default" | "outline" | "cancel" | "destructive" | "secondary" | "ghost" | "defaultSelect" | "defaultOutline" | null | undefined;
264
- size?: "default" | "option" | "icon" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-md" | "icon-lg" | null | undefined;
265
- active?: boolean | null | undefined;
266
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
267
- declare function Button({ className, variant, size, active, asChild, ...props }: React$1.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
268
- asChild?: boolean;
269
- active?: boolean;
270
- }): react_jsx_runtime.JSX.Element;
526
+ type ButtonVariant$1 = "default" | "outline" | "ghost" | "link" | "destructive" | "secondary" | null | undefined;
527
+ type DateRange$1 = {
528
+ start?: Date;
529
+ end?: Date;
530
+ };
531
+ type DatePickerProps$1 = {
532
+ selectionMode?: "single" | "range";
533
+ selectedDate?: Date;
534
+ onDateSelect?: (date: Date) => void;
535
+ selectedRange?: DateRange$1;
536
+ onRangeSelect?: (range: DateRange$1) => void;
537
+ onMonthForward?: () => void;
538
+ onMonthBackward?: () => void;
539
+ callbacks?: {
540
+ yearLabel?: (year: number) => string;
541
+ monthLabel?: (year: number, monthIndex: number) => string;
542
+ dayLabel?: (date: Date) => string | number;
543
+ weekdayLabel?: (index0Mon: number) => string;
544
+ };
545
+ variant?: {
546
+ day?: {
547
+ main?: ButtonVariant$1;
548
+ selected?: ButtonVariant$1;
549
+ outside?: ButtonVariant$1;
550
+ today?: ButtonVariant$1;
551
+ };
552
+ chevrons?: ButtonVariant$1;
553
+ };
554
+ minDate?: Date;
555
+ maxDate?: Date;
556
+ disabledDates?: Date[];
557
+ defaultMonth?: Date;
558
+ } & React$1.HTMLAttributes<HTMLDivElement>;
559
+ /** ---------- Component ---------- */
560
+ declare function DatePicker$1({ selectionMode, selectedDate, onDateSelect, selectedRange, onRangeSelect, callbacks, onMonthBackward, onMonthForward, variant, minDate, maxDate, disabledDates, defaultMonth, className, ...props }: DatePickerProps$1): react_jsx_runtime.JSX.Element;
561
+
562
+ type CalendarProps$1 = React__default.ComponentProps<typeof DatePicker$1>;
563
+ type DateRange = {
564
+ start?: Date;
565
+ end?: Date;
566
+ };
567
+ type BaseProps$1 = {
568
+ allowClear?: boolean;
569
+ displayFormatter?: (date: Date) => string;
570
+ valueFormatter?: (date: Date) => string;
571
+ valueParser?: (value: string) => Date | undefined;
572
+ buttonClassName?: string;
573
+ wrapperClassName?: string;
574
+ invalid?: boolean;
575
+ calendarClassName?: string;
576
+ popoverContentClassName?: string;
577
+ disabled?: boolean;
578
+ closeOnSelect?: boolean;
579
+ clearAriaLabel?: string;
580
+ ariaLabel?: string;
581
+ };
582
+ type SingleProps$1 = {
583
+ selectionMode?: "single";
584
+ value?: Date | string | null;
585
+ onChange?: (date?: Date) => void;
586
+ onValueChange?: (value?: string) => void;
587
+ placeholder?: string;
588
+ };
589
+ type RangeValue$1 = {
590
+ start?: Date | string | null;
591
+ end?: Date | string | null;
592
+ } | null;
593
+ type RangeValueOutput$1 = {
594
+ start?: string;
595
+ end?: string;
596
+ };
597
+ type RangeProps$1 = {
598
+ selectionMode: "range";
599
+ value?: RangeValue$1;
600
+ onChange?: (range?: DateRange) => void;
601
+ onValueChange?: (value?: RangeValueOutput$1) => void;
602
+ placeholder?: string;
603
+ rangePlaceholder?: string;
604
+ rangeSeparator?: string;
605
+ };
606
+ type DatePickerProps = (SingleProps$1 | RangeProps$1) & BaseProps$1 & Omit<CalendarProps$1, "selectedDate" | "onDateSelect" | "className" | "selectionMode" | "selectedRange" | "onRangeSelect">;
607
+ declare const DatePicker: React__default.FC<DatePickerProps>;
608
+
609
+ type DatePickerOverrides = Omit<React__default.ComponentProps<typeof DatePicker$1>, "selectionMode" | "selectedDate" | "onDateSelect">;
610
+ type TimePickerOverrides = {
611
+ hourInputClassName?: string;
612
+ minuteInputClassName?: string;
613
+ panelClassName?: string;
614
+ };
615
+ interface DateTimePickerProps {
616
+ value?: Date | string | null;
617
+ onChange?: (value?: Date) => void;
618
+ onValueChange?: (value?: string) => void;
619
+ disabled?: boolean;
620
+ invalid?: boolean;
621
+ allowClear?: boolean;
622
+ use24Hour?: boolean;
623
+ placeholderDate?: string;
624
+ placeholderTime?: string;
625
+ className?: string;
626
+ datePickerClassName?: string;
627
+ timePickerClassName?: string;
628
+ popoverContentClassName?: string;
629
+ clearAriaLabel?: string;
630
+ minuteStep?: number;
631
+ minDateTime?: Date;
632
+ maxDateTime?: Date;
633
+ valueFormatter?: (date: Date) => string;
634
+ valueParser?: (value: string) => Date | undefined;
635
+ datePickerProps?: DatePickerOverrides;
636
+ timePickerProps?: TimePickerOverrides;
637
+ timeSelectionBehavior?: "require-date" | "use-today";
638
+ }
639
+ declare const DateTimePicker: React__default.FC<DateTimePickerProps>;
640
+
641
+ declare function Dialog$1(props: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
642
+ declare function DialogTrigger(props: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
643
+ interface DialogContentProps extends React$1.ComponentProps<typeof DialogPrimitive.Content> {
644
+ header?: React$1.ReactNode;
645
+ showOverlay?: boolean;
646
+ }
647
+ declare function DialogContent({ className, children, header, showOverlay, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element;
648
+ declare function DialogFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
649
+ declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
650
+ declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
651
+ declare function DialogCloseButton(props: React$1.ButtonHTMLAttributes<HTMLButtonElement>): react_jsx_runtime.JSX.Element;
652
+ declare function DialogClose({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
653
+ declare function DialogHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
654
+
655
+ type DialogVariant = "default" | "success" | "error" | "warning" | "confirm" | "confirm-green";
656
+ interface DialogAlertProps {
657
+ open: boolean;
658
+ onOpenChange: (state: boolean) => void;
659
+ title?: string;
660
+ description?: string;
661
+ variant?: DialogVariant;
662
+ confirmText?: string;
663
+ cancelText?: string;
664
+ onConfirm?: () => void;
665
+ onCancel?: () => void;
666
+ showCancel?: boolean;
667
+ align?: "start" | "center" | "end";
668
+ outlet?: React.ReactNode | null;
669
+ persistent?: boolean;
670
+ }
671
+ type TemplateKeys = "success.saved" | "success.deleted" | "success.removed" | "error.api_db_error" | "error.permission_denied" | "error.session_expired" | "error.user_not_found" | "error.data_not_found" | "error.data_restrict_editing" | "error.network_timeout_error" | "error.queue_full" | "error.invalid_data_format" | "error.data_linked_to_system_data" | "error.pending_workflow_conflict" | "error.invalid_incomplete_data" | "error.client_side_error" | "error.system_limitation" | "error.timeout" | "error.duplicate_data" | "error.something_went_wrong" | "confirm.delete" | "confirm.inactive" | "confirm.active" | "confirm.leave_page" | "confirm.reset_form" | "confirm.remove" | "confirm.logout" | "confirm.set_default" | "confirm.unset_default";
672
+ type DialogAlertTemplateUnit = Omit<DialogAlertProps, "open" | "onOpenChange">;
673
+ type DialogAlertTemplates = Record<TemplateKeys, DialogAlertTemplateUnit>;
674
+ type DialogAlertI18nResource = Resource;
675
+
676
+ declare function DialogAlert({ open, onOpenChange, title, description, variant, confirmText, cancelText, onConfirm, onCancel, showCancel, align, outlet, persistent }: DialogAlertProps): react_jsx_runtime.JSX.Element;
677
+
678
+ declare const DIALOG_ALERT_TEMPLATES: DialogAlertTemplates;
679
+
680
+ type OpenDialogAlert = Omit<DialogAlertProps, "open" | "onOpenChange">;
681
+ interface DialogAlertProviderProps extends React.PropsWithChildren {
682
+ /**
683
+ * @description i18n resource for dialogAlert to use
684
+ * @example
685
+ * ```
686
+ * {
687
+ * en: {
688
+ * translation: {
689
+ * dialog_alert: {
690
+ * close: "Close",
691
+ * cancel: "Cancel",
692
+ * "success.saved": {
693
+ title: "Successfully",
694
+ description: "Data has been successfully saved"
695
+ },
696
+ * ....
697
+ * }
698
+ * }
699
+ * }
700
+ * }
701
+ * ```
702
+ */
703
+ i18nResource?: DialogAlertI18nResource;
704
+ /**
705
+ * @description specify language to use
706
+ */
707
+ i18nLang?: string;
708
+ }
709
+ declare const DialogAlertProvider: ({ children, i18nResource, i18nLang }: DialogAlertProviderProps) => react_jsx_runtime.JSX.Element;
710
+ declare const getDialogAlertControls: () => {
711
+ openDialogAlert: (payload?: {
712
+ template?: TemplateKeys;
713
+ props?: OpenDialogAlert;
714
+ isExclusive?: boolean;
715
+ }) => void;
716
+ closeDialogAlert: () => void;
717
+ openErrorDialogAlert: (error: unknown) => void;
718
+ };
719
+
720
+ declare const DIALOG_ALERT_I18N_SUBNAMESPACE = "dialog_alert";
721
+
722
+ type FormulaTokenType = {
723
+ type: "operator";
724
+ value: string;
725
+ } | {
726
+ type: "variable";
727
+ value: string;
728
+ } | ({
729
+ type: string;
730
+ code?: string;
731
+ label?: string;
732
+ prefix?: string;
733
+ rawValue?: string;
734
+ chipClassName?: string;
735
+ } & Record<string, any>);
736
+ type FormulaOperator = {
737
+ value: string;
738
+ label: string;
739
+ };
740
+ type FormulaTokenSuggestion = {
741
+ id?: string | number;
742
+ label?: string;
743
+ code?: string;
744
+ } & Record<string, any>;
745
+ type FormulaTokenAttributes = {
746
+ id: string;
747
+ type: string;
748
+ label?: string;
749
+ code?: string;
750
+ prefix?: string;
751
+ rawValue?: string;
752
+ chipClassName?: string;
753
+ outputType?: string;
754
+ } & Record<string, any>;
755
+ type FormulaTokenConfig<TItem extends FormulaTokenSuggestion = FormulaTokenSuggestion> = {
756
+ type: string;
757
+ prefix: string;
758
+ fetchItems?: (query: string) => Promise<TItem[]>;
759
+ mapItem?: (item: TItem) => FormulaTokenAttributes;
760
+ chipClassName?: string;
761
+ outputType?: string;
762
+ mapOutput?: (attrs: FormulaTokenAttributes) => any;
763
+ };
764
+ type FormulaEditorProps = {
765
+ value?: string;
766
+ disabled?: boolean;
767
+ loading?: boolean;
768
+ className?: string;
769
+ editorClassName?: string;
770
+ errorMessage?: ReactNode;
771
+ tokenConfigs?: FormulaTokenConfig[];
772
+ operators?: FormulaOperator[];
773
+ operatorShortcuts?: Record<string, string>;
774
+ onChange?: (raw: string, tokens: FormulaTokenType[]) => void;
775
+ onSelectSuggestion?: (token: FormulaTokenAttributes, config: FormulaTokenConfig) => void;
776
+ field?: ControllerRenderProps<any, any>;
777
+ fieldState?: ControllerFieldState;
778
+ mode?: "edit" | "display";
779
+ };
780
+
781
+ declare const FormulaEditor: React__default.FC<FormulaEditorProps>;
782
+
783
+ type PrefixMap = Record<string, string>;
784
+ type RawFormulaSegment = {
785
+ kind: "text";
786
+ value: string;
787
+ } | {
788
+ kind: "token";
789
+ prefix: string;
790
+ code: string;
791
+ };
792
+ declare const buildPrefixMap: (configs: FormulaTokenConfig[]) => PrefixMap;
793
+ declare const tokenizeFormulaString: (raw: string, prefixMap: PrefixMap) => RawFormulaSegment[];
794
+ declare const parseFormulaToToken: (text: string, prefixMap: PrefixMap) => FormulaTokenType[];
795
+ declare const splitOperators: (value: string, allowedOperators: string[]) => FormulaTokenType[];
796
+ declare const parseFormula: (editorJson: any, prefixMap: PrefixMap, allowedOperators: string[]) => {
797
+ raw: string;
798
+ token: FormulaTokenType[];
799
+ };
800
+ declare const validateTokenPrefixes: (rawFormula: string, prefixMap: PrefixMap) => {
801
+ isValid: boolean;
802
+ message?: string;
803
+ };
804
+ declare const isValidParentheses: (input: string) => {
805
+ valid: boolean;
806
+ message?: string;
807
+ };
808
+ declare const mapTokensToOutput: (tokens: FormulaTokenType[], configs: FormulaTokenConfig[]) => any[];
809
+
810
+ declare const defaultOperators: FormulaOperator[];
811
+ declare const defaultOperatorShortcuts: Record<string, string>;
812
+
813
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
814
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
815
+ declare const useFormField: () => {
816
+ invalid: boolean;
817
+ isDirty: boolean;
818
+ isTouched: boolean;
819
+ isValidating: boolean;
820
+ error?: react_hook_form.FieldError;
821
+ id: string;
822
+ name: string;
823
+ formItemId: string;
824
+ formDescriptionId: string;
825
+ formMessageId: string;
826
+ };
827
+ declare function FormItem({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
828
+ declare function FormLabel({ className, ...props }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
829
+ declare function FormControl({ ...props }: React$1.ComponentProps<typeof Slot>): react_jsx_runtime.JSX.Element;
830
+ declare function FormDescription({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
831
+ declare function FormMessage({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element | null;
271
832
 
272
833
  type Column = {
273
834
  id: string;
835
+ label?: string;
274
836
  };
275
837
  type GridPayload<TColumn extends {
276
838
  id: string;
@@ -292,10 +854,437 @@ type GridSettingsModalProps = {
292
854
  currentColumns: Column[];
293
855
  limit?: number;
294
856
  onClose: () => void;
295
- onSaveColumns?: (payload: GridPayload) => void;
857
+ onSaveColumns?: (payload: GridPayload, currentColumns: Column[]) => void;
296
858
  };
297
859
  declare const GridSettingsModal: ({ isOpen, headerClassname, descriptionClassname, addButtonClassname, saveButtonClassname, availableColumns, currentColumns, limit, onClose, onSaveColumns }: GridSettingsModalProps) => react_jsx_runtime.JSX.Element;
298
860
 
861
+ type KeyOrString<T> = keyof T | (string & {});
862
+ type TanstackTableInstance = {
863
+ getAllColumns(): any[];
864
+ getVisibleLeafColumns(): any[];
865
+ };
866
+ type SyncColumnsStateOptions<TData> = {
867
+ excludeColumns?: KeyOrString<TData>[];
868
+ labelMap?: Partial<Record<KeyOrString<TData>, string>>;
869
+ visibility?: Partial<Record<KeyOrString<TData>, boolean>>;
870
+ ordering?: KeyOrString<TData>[];
871
+ pinning?: {
872
+ left?: KeyOrString<TData>[];
873
+ };
874
+ };
875
+ type SyncColumnsStateFn = <TData = RowData$1>(table: Table$1<TData>, options?: SyncColumnsStateOptions<TData>) => void;
876
+ type UseGridSettingsStoreActions = {
877
+ setAvailableColumns: (cols: Column[]) => void;
878
+ setCurrentColumns: (cols: Column[]) => void;
879
+ setPayload: (payload: GridPayload) => void;
880
+ reset: () => void;
881
+ extractColumns: (table: TanstackTableInstance) => {
882
+ availableColumns: Column[];
883
+ currentColumns: Column[];
884
+ };
885
+ syncColumnsState: SyncColumnsStateFn;
886
+ };
887
+ type UseGridSettingsStoreState = {
888
+ availableColumns: Column[];
889
+ currentColumns: Column[];
890
+ payload: GridPayload;
891
+ };
892
+ declare const useGridSettingsStore: zustand.UseBoundStore<zustand.StoreApi<UseGridSettingsStoreState & UseGridSettingsStoreActions>>;
893
+
894
+ interface IconProps extends React$1.SVGProps<SVGSVGElement> {
895
+ size?: number | string;
896
+ strokeWidth?: number | string;
897
+ }
898
+
899
+ declare const AdministrationIcon: React__default.FC<IconProps>;
900
+
901
+ declare const AnalyticsIcon: React__default.FC<IconProps>;
902
+
903
+ declare const ApplicationLogIcon: React__default.FC<IconProps>;
904
+
905
+ declare const ArrowIcon: React__default.FC<IconProps>;
906
+
907
+ declare const BookmarkIcon: React__default.FC<IconProps>;
908
+
909
+ declare const BriefcaseBusinessIcon: React__default.FC<IconProps>;
910
+
911
+ declare const BuildingIcon: React__default.FC<IconProps>;
912
+
913
+ declare const SuiCalendarIcon: React__default.FC<IconProps>;
914
+
915
+ declare const CalendarDaysIcon: React__default.FC<IconProps>;
916
+
917
+ declare const SuiCalendarIcon2: React__default.FC<IconProps>;
918
+
919
+ declare const CardIcon: React__default.FC<IconProps>;
920
+
921
+ declare const SuiCheckIcon: React__default.FC<IconProps>;
922
+
923
+ declare const CircleUserIcon: React__default.FC<IconProps>;
924
+
925
+ declare const CopyUserRightsIcon: React__default.FC<IconProps>;
926
+
927
+ declare const CustomActionStatusIcon: React__default.FC<IconProps>;
928
+
929
+ declare const CustomFieldIcon: React__default.FC<IconProps>;
930
+
931
+ declare const DashboardIcon: React__default.FC<IconProps>;
932
+
933
+ declare const DataEntryIcon: React__default.FC<IconProps>;
934
+
935
+ declare const DecreaseIcon: React__default.FC<IconProps>;
936
+
937
+ declare const SuiDotsVerticalIcon: React__default.FC<IconProps>;
938
+
939
+ declare const EllipsisBoxIcon: React__default.FC<IconProps>;
940
+
941
+ declare const SuiEmptyDataIcon: React__default.FC<IconProps>;
942
+
943
+ declare const SuiExpandIcon: React__default.FC<IconProps>;
944
+
945
+ declare const FactoryIcon: React__default.FC<IconProps>;
946
+
947
+ declare const FileCogIcon: React__default.FC<IconProps>;
948
+
949
+ declare const FileSpreadsheet: React__default.FC<IconProps>;
950
+
951
+ declare const FileTextIcon: React__default.FC<IconProps>;
952
+
953
+ declare const SuiFilterIcon: React__default.FC<IconProps>;
954
+
955
+ declare const FiltersIcon: React__default.FC<IconProps>;
956
+
957
+ declare const FolderIcon: React__default.FC<IconProps>;
958
+
959
+ declare const HamburgerMenuIcon: React__default.FC<IconProps>;
960
+
961
+ declare const HandymanIcon: React__default.FC<IconProps>;
962
+
963
+ declare const HelpIcon: React__default.FC<IconProps>;
964
+
965
+ declare const HomeIcon: React__default.FC<IconProps>;
966
+
967
+ declare const HomePlusIcon: React__default.FC<IconProps>;
968
+
969
+ declare const ImagePlaceholderIcon: React__default.FC<IconProps>;
970
+
971
+ declare const InformationIcon: React__default.FC<IconProps>;
972
+
973
+ declare const MailIcon: React__default.FC<IconProps>;
974
+
975
+ declare const ManIcon: React__default.FC<IconProps>;
976
+
977
+ declare const ManagementIcon: React__default.FC<IconProps>;
978
+
979
+ declare const MenuIcon: React__default.FC<IconProps>;
980
+
981
+ declare const MessageIcon: React__default.FC<IconProps>;
982
+
983
+ declare const MessageIconInverse: React__default.FC<IconProps>;
984
+
985
+ declare const MessageSquareIcon: React__default.FC<IconProps>;
986
+
987
+ declare const NotFoundIcon: React__default.FC<IconProps>;
988
+
989
+ declare const OutlineArrowIcon: React__default.FC<IconProps>;
990
+
991
+ declare const PlusIcon: React__default.FC<IconProps>;
992
+
993
+ declare const PlusSearchIcon: React__default.FC<IconProps>;
994
+
995
+ declare const PowerIcon: React__default.FC<IconProps>;
996
+
997
+ declare const QuestionIcon: React__default.FC<IconProps>;
998
+
999
+ declare const RoleIcon: React__default.FC<IconProps>;
1000
+
1001
+ declare const SearchIcon: React__default.FC<IconProps>;
1002
+
1003
+ declare const SuiSettingIcon: React__default.FC<IconProps>;
1004
+
1005
+ declare const SetupIcon: React__default.FC<IconProps>;
1006
+
1007
+ declare const TableOfContents: React__default.FC<IconProps>;
1008
+
1009
+ declare const TagListViewIcon: React__default.FC<IconProps>;
1010
+
1011
+ declare const ToolBoxIcon: React__default.FC<IconProps>;
1012
+
1013
+ declare const TransferUserRightsIcon: React__default.FC<IconProps>;
1014
+
1015
+ declare const TrashIcon: React__default.FC<IconProps>;
1016
+
1017
+ declare const SuiTriangleDownIcon: React__default.FC<IconProps>;
1018
+
1019
+ declare const UserIcon: React__default.FC<IconProps>;
1020
+
1021
+ declare const UserActiveIcon: React__default.FC<IconProps>;
1022
+
1023
+ declare const UserAloneIcon: React__default.FC<IconProps>;
1024
+
1025
+ declare const UserFriendIcon: React__default.FC<IconProps>;
1026
+
1027
+ declare const UserGroupIcon: React__default.FC<IconProps>;
1028
+
1029
+ declare const UserInactiveIcon: React__default.FC<IconProps>;
1030
+
1031
+ declare const UserNameIcon: React__default.FC<IconProps>;
1032
+
1033
+ declare const UserProtectIcon: React__default.FC<IconProps>;
1034
+
1035
+ declare const UsersIcon: React__default.FC<IconProps>;
1036
+
1037
+ declare const SuiWarningIcon: React__default.FC<IconProps>;
1038
+
1039
+ declare const WorkFlowIcon: React__default.FC<IconProps>;
1040
+
1041
+ type ImageLoaderProps = {
1042
+ src: string;
1043
+ width: number;
1044
+ quality?: number;
1045
+ };
1046
+ type ImageLoader = (props: ImageLoaderProps) => string;
1047
+ interface ImageProps extends Omit<React$1.ImgHTMLAttributes<HTMLImageElement>, "src" | "width" | "height"> {
1048
+ src: string;
1049
+ alt: string;
1050
+ width?: number | string;
1051
+ height?: number | string;
1052
+ fill?: boolean;
1053
+ sizes?: string;
1054
+ quality?: number;
1055
+ priority?: boolean;
1056
+ placeholder?: "empty" | "blur";
1057
+ blurDataURL?: string;
1058
+ loader?: ImageLoader;
1059
+ unoptimized?: boolean;
1060
+ wrapperClassName?: string;
1061
+ objectFit?: React$1.CSSProperties["objectFit"];
1062
+ objectPosition?: React$1.CSSProperties["objectPosition"];
1063
+ onLoadingComplete?: (img: HTMLImageElement) => void;
1064
+ }
1065
+ declare const Image: React$1.ForwardRefExoticComponent<ImageProps & React$1.RefAttributes<HTMLImageElement>>;
1066
+
1067
+ type InputPrimitiveProps$1 = React$1.InputHTMLAttributes<HTMLInputElement>;
1068
+ declare const InputPrimitive: React$1.ForwardRefExoticComponent<InputPrimitiveProps$1 & React$1.RefAttributes<HTMLInputElement>>;
1069
+ declare const inputVariants$1: (props?: ({
1070
+ controlSize?: "sm" | "lg" | "md" | null | undefined;
1071
+ fullWidth?: boolean | null | undefined;
1072
+ appearance?: "filled" | "unfilled" | null | undefined;
1073
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
1074
+ type InputProps$1 = Omit<InputPrimitiveProps$1, "size" | "prefix"> & VariantProps<typeof inputVariants$1> & {
1075
+ prefix?: React$1.ReactNode;
1076
+ prefixProps?: React$1.HTMLAttributes<HTMLSpanElement>;
1077
+ prefixInteractive?: boolean;
1078
+ suffix?: React$1.ReactNode;
1079
+ suffixProps?: React$1.HTMLAttributes<HTMLSpanElement>;
1080
+ suffixInteractive?: boolean;
1081
+ wrapperClassName?: string;
1082
+ invalid?: boolean;
1083
+ loading?: boolean;
1084
+ loadingIcon?: React$1.ReactNode;
1085
+ validationMessage?: React$1.ReactNode;
1086
+ validationIcon?: React$1.ReactNode;
1087
+ validationMessageProps?: React$1.HTMLAttributes<HTMLParagraphElement>;
1088
+ onValueChange?: (value: string) => void;
1089
+ };
1090
+ declare const Input: React$1.ForwardRefExoticComponent<Omit<InputPrimitiveProps$1, "size" | "prefix"> & VariantProps<(props?: ({
1091
+ controlSize?: "sm" | "lg" | "md" | null | undefined;
1092
+ fullWidth?: boolean | null | undefined;
1093
+ appearance?: "filled" | "unfilled" | null | undefined;
1094
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string> & {
1095
+ prefix?: React$1.ReactNode;
1096
+ prefixProps?: React$1.HTMLAttributes<HTMLSpanElement>;
1097
+ prefixInteractive?: boolean;
1098
+ suffix?: React$1.ReactNode;
1099
+ suffixProps?: React$1.HTMLAttributes<HTMLSpanElement>;
1100
+ suffixInteractive?: boolean;
1101
+ wrapperClassName?: string;
1102
+ invalid?: boolean;
1103
+ loading?: boolean;
1104
+ loadingIcon?: React$1.ReactNode;
1105
+ validationMessage?: React$1.ReactNode;
1106
+ validationIcon?: React$1.ReactNode;
1107
+ validationMessageProps?: React$1.HTMLAttributes<HTMLParagraphElement>;
1108
+ onValueChange?: (value: string) => void;
1109
+ } & React$1.RefAttributes<HTMLInputElement>>;
1110
+
1111
+ declare function Label({ className, ...props }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
1112
+
1113
+ interface LocaleOption {
1114
+ locale: string;
1115
+ }
1116
+ interface LanguageSelectorProps<T extends LocaleOption = LocaleOption> {
1117
+ tenant: T[];
1118
+ selectedLocale?: string;
1119
+ onSelectLocale: (lang: T) => void;
1120
+ errorLocales?: string[];
1121
+ enableErrorHighlight?: boolean;
1122
+ sortLocales?: boolean;
1123
+ priorityLocale?: string;
1124
+ className?: string;
1125
+ visibleLocalesCount?: number;
1126
+ localeButtonWidth?: number;
1127
+ localeGap?: number;
1128
+ }
1129
+ declare function LanguageSelector<T extends LocaleOption = LocaleOption>({ tenant, selectedLocale, onSelectLocale, errorLocales, enableErrorHighlight, sortLocales, priorityLocale, className, visibleLocalesCount, localeButtonWidth, localeGap }: LanguageSelectorProps<T>): react_jsx_runtime.JSX.Element | null;
1130
+
1131
+ interface LoadingPageProps {
1132
+ /** Custom loading message */
1133
+ message?: string;
1134
+ /** Spinner variant */
1135
+ variant?: "primary" | "secondary" | "destructive" | "muted";
1136
+ /** Spinner size */
1137
+ size?: "sm" | "default" | "lg" | "xl" | "2xl" | number;
1138
+ /** Show/hide message */
1139
+ showMessage?: boolean;
1140
+ /** Show/hide dots */
1141
+ showDots?: boolean;
1142
+ /** Animate dots in the message */
1143
+ animateDots?: boolean;
1144
+ /** Custom className for container */
1145
+ containerClassName?: string;
1146
+ /** Custom className for message */
1147
+ messageClassName?: string;
1148
+ /** Custom data-testid prefix */
1149
+ testIdPrefix?: string;
1150
+ }
1151
+ declare function LoadingPage({ message, variant, size, showMessage, showDots, animateDots, containerClassName, messageClassName, testIdPrefix }: LoadingPageProps): react_jsx_runtime.JSX.Element;
1152
+
1153
+ type MainListContainerSlots = {
1154
+ Container?: React$1.ElementType<any>;
1155
+ Header?: React$1.ElementType<any>;
1156
+ };
1157
+ type MainListContainerClassNames = {
1158
+ root?: string;
1159
+ content?: string;
1160
+ };
1161
+ type MainListContainerProps = {
1162
+ title?: React$1.ReactNode;
1163
+ titleIcon?: React$1.ReactNode;
1164
+ isExpanded?: boolean;
1165
+ onSettingClick?: () => void;
1166
+ onExpandClick?: () => void;
1167
+ children?: React$1.ReactNode;
1168
+ /** advanced */
1169
+ slots?: MainListContainerSlots;
1170
+ classNames?: MainListContainerClassNames;
1171
+ /** render prop for full control */
1172
+ renderHeader?: (props: {
1173
+ title?: React$1.ReactNode;
1174
+ titleIcon?: React$1.ReactNode;
1175
+ isExpanded?: boolean;
1176
+ onSettingClick?: () => void;
1177
+ onExpandClick?: () => void;
1178
+ }) => React$1.ReactNode;
1179
+ };
1180
+ declare const MainListContainer: React$1.FC<MainListContainerProps>;
1181
+
1182
+ interface LookupSelectOption {
1183
+ value: string;
1184
+ label: string;
1185
+ }
1186
+ interface LookupSelectProps {
1187
+ value?: string[];
1188
+ onChange: (tags: string[]) => void;
1189
+ placeholder?: string;
1190
+ onClear?: () => void;
1191
+ error?: boolean;
1192
+ maxTags?: number;
1193
+ fetchSuggestions?: (query: string) => Promise<LookupSelectOption[]>;
1194
+ suggestionDebounce?: number;
1195
+ noOptionsMessage?: string;
1196
+ loadingMessage?: string;
1197
+ dropdownPortalId?: string;
1198
+ multiple?: boolean;
1199
+ }
1200
+ declare const LookupSelect: React__default.FC<LookupSelectProps>;
1201
+
1202
+ type ButtonVariant = "default" | "outline" | "ghost" | "link" | "destructive" | "secondary" | null | undefined;
1203
+ type MonthCell = {
1204
+ number: number;
1205
+ name: string;
1206
+ };
1207
+ type MonthPickerCallbacks = {
1208
+ yearLabel?: (year: number) => string;
1209
+ monthLabel?: (month: MonthCell) => string;
1210
+ };
1211
+ type MonthPickerVariant = {
1212
+ calendar?: {
1213
+ main?: ButtonVariant;
1214
+ selected?: ButtonVariant;
1215
+ };
1216
+ chevrons?: ButtonVariant;
1217
+ };
1218
+ type MonthRange$1 = {
1219
+ start?: Date;
1220
+ end?: Date;
1221
+ };
1222
+ type MonthPickerProps$1 = {
1223
+ selectionMode?: "single" | "range";
1224
+ selectedDate?: Date;
1225
+ onDateSelect?: (date?: Date) => void;
1226
+ selectedRange?: MonthRange$1;
1227
+ onRangeSelect?: (range?: MonthRange$1) => void;
1228
+ onYearForward?: () => void;
1229
+ onYearBackward?: () => void;
1230
+ callbacks?: MonthPickerCallbacks;
1231
+ variant?: MonthPickerVariant;
1232
+ minDate?: Date;
1233
+ maxDate?: Date;
1234
+ disabledDates?: Date[];
1235
+ } & React$1.HTMLAttributes<HTMLDivElement>;
1236
+ declare function MonthPicker$1({ selectionMode, selectedDate, onDateSelect, selectedRange, onRangeSelect, minDate, maxDate, disabledDates, callbacks, onYearBackward, onYearForward, variant, className, ...props }: MonthPickerProps$1): react_jsx_runtime.JSX.Element;
1237
+ declare namespace MonthPicker$1 {
1238
+ var displayName: string;
1239
+ }
1240
+
1241
+ type CalendarProps = React__default.ComponentProps<typeof MonthPicker$1>;
1242
+ type MonthRange = {
1243
+ start?: Date;
1244
+ end?: Date;
1245
+ };
1246
+ type BaseProps = {
1247
+ allowClear?: boolean;
1248
+ displayFormatter?: (month: Date) => string;
1249
+ valueFormatter?: (month: Date) => string;
1250
+ valueParser?: (value: string) => Date | undefined;
1251
+ buttonClassName?: string;
1252
+ wrapperClassName?: string;
1253
+ invalid?: boolean;
1254
+ calendarClassName?: string;
1255
+ popoverContentClassName?: string;
1256
+ disabled?: boolean;
1257
+ closeOnSelect?: boolean;
1258
+ clearAriaLabel?: string;
1259
+ ariaLabel?: string;
1260
+ };
1261
+ type SingleProps = {
1262
+ selectionMode?: "single";
1263
+ value?: Date | string | null;
1264
+ onChange?: (month?: Date) => void;
1265
+ onValueChange?: (value?: string) => void;
1266
+ placeholder?: string;
1267
+ };
1268
+ type RangeValue = {
1269
+ start?: Date | string | null;
1270
+ end?: Date | string | null;
1271
+ } | null;
1272
+ type RangeValueOutput = {
1273
+ start?: string;
1274
+ end?: string;
1275
+ };
1276
+ type RangeProps = {
1277
+ selectionMode: "range";
1278
+ value?: RangeValue;
1279
+ onChange?: (range?: MonthRange) => void;
1280
+ onValueChange?: (value?: RangeValueOutput) => void;
1281
+ placeholder?: string;
1282
+ rangePlaceholder?: string;
1283
+ rangeSeparator?: string;
1284
+ };
1285
+ type MonthPickerProps = (SingleProps | RangeProps) & BaseProps & Omit<CalendarProps, "selectedDate" | "onDateSelect" | "className" | "selectionMode" | "selectedRange" | "onRangeSelect">;
1286
+ declare const MonthPicker: React__default.FC<MonthPickerProps>;
1287
+
299
1288
  type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
300
1289
  [K in Keys]: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
301
1290
  }[Keys];
@@ -305,9 +1294,11 @@ type NavbarBaseProps = {
305
1294
  subTitle?: React__default.ReactNode;
306
1295
  headImageURL?: string;
307
1296
  headImageURLClassName?: string;
1297
+ tooltipContentClassName?: string;
308
1298
  tooltipTitle?: string;
309
1299
  tooltipIcon?: React__default.ReactNode;
310
1300
  tooltipdescription?: React__default.ReactNode;
1301
+ tooltipDescriptionWrapperClassName?: string;
311
1302
  mainButtonText?: React__default.ReactNode;
312
1303
  mainButtonClassName?: string;
313
1304
  mainButtonDisable?: boolean;
@@ -319,56 +1310,907 @@ type NavbarBaseProps = {
319
1310
  searchButton?: React__default.ReactNode;
320
1311
  separatorDisable?: boolean;
321
1312
  };
322
- type NavbarProps = RequireAtLeastOne<NavbarBaseProps, "title" | "headImageURL">;
323
- declare const _default: React__default.MemoExoticComponent<({ className, title, subTitle, headImageURL, headImageURLClassName, tooltipTitle, tooltipIcon, tooltipdescription, mainButtonText, mainButtonClassName, mainButtonDisable, subButtonText, subButtonClassName, subButtonDisable, onMainButtonClick, onSubButtonClick, separatorDisable, searchButton }: NavbarProps) => react_jsx_runtime.JSX.Element>;
1313
+ type NavbarProps = RequireAtLeastOne<NavbarBaseProps, "title">;
1314
+ declare const _default$1: React__default.MemoExoticComponent<({ className, title, subTitle, headImageURL, headImageURLClassName, tooltipContentClassName, tooltipTitle, tooltipIcon, tooltipdescription, tooltipDescriptionWrapperClassName, mainButtonText, mainButtonClassName, mainButtonDisable, subButtonText, subButtonClassName, subButtonDisable, onMainButtonClick, onSubButtonClick, separatorDisable, searchButton }: NavbarProps) => react_jsx_runtime.JSX.Element>;
324
1315
 
325
- type FieldType = "text" | "number" | "date" | "datetime" | "checkbox" | "dropdown" | "lookup";
326
- type Option = {
1316
+ declare function Popover({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
1317
+ declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
1318
+ declare function PopoverArrow(props: React$1.ComponentProps<typeof PopoverPrimitive.Arrow>): react_jsx_runtime.JSX.Element;
1319
+ declare function PopoverContent({ className, align, sideOffset, children, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
1320
+ declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
1321
+
1322
+ declare function Sheet({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
1323
+ declare function SheetTrigger({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
1324
+ declare function SheetClose({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
1325
+ declare function SheetContent({ className, children, side, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Content> & {
1326
+ side?: "top" | "right" | "bottom" | "left";
1327
+ }): react_jsx_runtime.JSX.Element;
1328
+ declare function SheetHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1329
+ declare function SheetFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1330
+ declare function SheetTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
1331
+ declare function SheetDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
1332
+
1333
+ declare const PreventPageLeave: ({ children }: React__default.PropsWithChildren) => React__default.ReactNode;
1334
+
1335
+ type PreventPageLeaveStore = {
1336
+ isPreventing: boolean;
1337
+ setPreventing: (value: boolean) => void;
1338
+ };
1339
+ declare const usePreventPageLeaveStore: zustand.UseBoundStore<zustand.StoreApi<PreventPageLeaveStore>>;
1340
+
1341
+ type UsePreventPageLeaveOptions = {
1342
+ isPrevening: boolean;
1343
+ };
1344
+ declare const usePreventPageLeave: ({ isPrevening }: UsePreventPageLeaveOptions) => void;
1345
+
1346
+ declare function RadioGroupRoot({ children, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): react_jsx_runtime.JSX.Element;
1347
+ declare function RadioGroupItem({ id, value, children, className, containerProps, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item> & {
327
1348
  value: string;
328
- label: string;
1349
+ containerProps?: React.ComponentProps<"div">;
1350
+ }): react_jsx_runtime.JSX.Element;
1351
+ declare function RadioLabel({ children, htmlFor, className, disabled, ...props }: React.ComponentProps<"label"> & {
1352
+ disabled?: boolean;
1353
+ }): react_jsx_runtime.JSX.Element;
1354
+
1355
+ type ImagePayload = {
1356
+ src: string;
1357
+ altText?: string;
1358
+ width?: number | "inherit";
1359
+ height?: number | "inherit";
329
1360
  };
330
- interface FieldSchemaBase<T extends FieldType> {
1361
+
1362
+ type RichTextSerializedState = string;
1363
+ type ImageUploadResult = ImagePayload | string;
1364
+ /**
1365
+ * Configuration for mapping mention item fields
1366
+ * Allows flexible field names for different data structures
1367
+ */
1368
+ type MentionConfig$1<T> = {
1369
+ /** Function to get the unique identifier from mention item */
1370
+ getId: (item: T) => string;
1371
+ /** Function to get the mention key/name (e.g., "{{FIRSTNAME}}") from mention item */
1372
+ getName: (item: T) => string;
1373
+ /** Function to get the display label (e.g., "First Name") from mention item */
1374
+ getLabel: (item: T) => string;
1375
+ };
1376
+ /**
1377
+ * Default mention item structure
1378
+ */
1379
+ type DefaultMentionItem$1 = {
1380
+ id: string;
331
1381
  name: string;
332
- type: T;
333
- label?: string;
1382
+ fieldName: string;
1383
+ };
1384
+ type RichTextProps<T = DefaultMentionItem$1> = {
1385
+ value?: RichTextSerializedState;
1386
+ defaultValue?: RichTextSerializedState;
1387
+ onChange?: (serializedState: RichTextSerializedState, editorState: EditorState) => void;
1388
+ onHtmlChange?: (html: string, editorState: EditorState) => void;
1389
+ /** Callback for plain text output - useful for form validation. Returns text content without HTML */
1390
+ onTextChange?: (text: string, editorState: EditorState) => void;
1391
+ placeholder?: string;
1392
+ readOnly?: boolean;
1393
+ disabled?: boolean;
1394
+ editorClassName?: string;
1395
+ toolbarClassName?: string;
1396
+ autoFocus?: boolean;
1397
+ onImageUpload?: (file: File) => Promise<ImageUploadResult>;
1398
+ onImageUploadError?: (error: unknown) => void;
1399
+ onImageDialogUpload?: (file: File) => Promise<string>;
1400
+ onImageDialogUploadError?: (error: unknown) => void;
1401
+ hideImageUploadButton?: boolean;
1402
+ acceptImageMimeTypes?: string;
1403
+ allowImageUrlInsert?: boolean;
1404
+ /** Maximum number of characters allowed in the editor */
1405
+ maxLength?: number;
1406
+ /** Array of mention items that will be suggested */
1407
+ mentions?: T[];
1408
+ /** Configuration for mapping mention item fields. If not provided, assumes default structure {id, name, fieldName} */
1409
+ mentionConfig?: MentionConfig$1<T>;
1410
+ /** Optional trigger character for mentions (e.g., "$", "@", "{{"). If not provided, suggestions appear when typing matching text */
1411
+ mentionTrigger?: string;
1412
+ /** If true, suggestions will ONLY appear when the trigger is typed. Text matching is disabled. Requires mentionTrigger to be set. */
1413
+ mentionTriggerOnly?: boolean;
1414
+ /** If true, mentions will be rendered as plain text (e.g., {{FIRSTNAME}}) suitable for mail templates. If false, mentions will be styled HTML tags */
1415
+ plainTextMentions?: boolean;
1416
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">;
1417
+
1418
+ declare function RichTextInner<T = DefaultMentionItem$1>({ value, defaultValue, onChange, onHtmlChange, onTextChange, placeholder, readOnly, disabled, editorClassName, toolbarClassName, autoFocus, onImageUpload, onImageUploadError, onImageDialogUpload, onImageDialogUploadError, acceptImageMimeTypes, allowImageUrlInsert, hideImageUploadButton, maxLength, mentions, mentionConfig, mentionTrigger, mentionTriggerOnly, plainTextMentions, className, id, ...rest }: RichTextProps<T>, ref: React.Ref<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1419
+ declare const RichText: <T = DefaultMentionItem$1>(props: RichTextProps<T> & {
1420
+ ref?: React.Ref<HTMLDivElement>;
1421
+ }) => ReturnType<typeof RichTextInner>;
1422
+
1423
+ type RightPanelContainerSlots = {
1424
+ Container?: React$1.ElementType<any>;
1425
+ Header?: React$1.ElementType<RightPanelContainerHeaderProps>;
1426
+ };
1427
+ type RightPanelContainerClassNames = {
1428
+ root?: string;
1429
+ body?: string;
1430
+ content?: string;
1431
+ header?: string;
1432
+ iconWrapper?: string;
1433
+ title?: string;
1434
+ subtitle?: string;
1435
+ };
1436
+ type RightPanelContainerHeaderProps = {
1437
+ title?: React$1.ReactNode;
1438
+ subtitle?: React$1.ReactNode;
1439
+ icon?: React$1.ReactNode;
1440
+ classNames?: RightPanelContainerClassNames;
1441
+ rightActions?: React$1.ReactNode;
1442
+ };
1443
+ type RightPanelContainerProps = {
1444
+ title?: React$1.ReactNode;
1445
+ subtitle?: React$1.ReactNode;
1446
+ icon?: React$1.ReactNode;
1447
+ rightActions?: React$1.ReactNode;
1448
+ children?: React$1.ReactNode;
1449
+ isExpanded?: boolean;
1450
+ className?: string;
1451
+ classNames?: RightPanelContainerClassNames;
1452
+ slots?: RightPanelContainerSlots;
1453
+ renderHeader?: (props: RightPanelContainerHeaderProps) => React$1.ReactNode;
1454
+ };
1455
+ declare const RightPanelContainer: React$1.FC<RightPanelContainerProps>;
1456
+
1457
+ declare function Select({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime.JSX.Element;
1458
+ declare function SelectGroup({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime.JSX.Element;
1459
+ declare function SelectValue({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Value>): react_jsx_runtime.JSX.Element;
1460
+ declare function SelectTrigger({ className, size, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Trigger> & {
1461
+ size?: "sm" | "default";
1462
+ }): react_jsx_runtime.JSX.Element;
1463
+ declare function SelectContent({ className, children, position, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime.JSX.Element;
1464
+ declare function SelectLabel({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime.JSX.Element;
1465
+ declare function SelectItem({ className, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime.JSX.Element;
1466
+ declare function SelectSeparator({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime.JSX.Element;
1467
+ declare function SelectScrollUpButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime.JSX.Element;
1468
+ declare function SelectScrollDownButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime.JSX.Element;
1469
+
1470
+ declare function Separator({ className, orientation, decorative, ...props }: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime.JSX.Element;
1471
+
1472
+ type ClearButtonProps = {
1473
+ onClick?: () => void;
1474
+ title?: string;
1475
+ ariaLabel?: string;
1476
+ className?: string;
1477
+ };
1478
+ declare const ClearButton: React__default.FC<ClearButtonProps>;
1479
+
1480
+ interface ListContainerProps {
1481
+ className?: string;
1482
+ isLeftExpanded: boolean;
1483
+ children: React$1.ReactNode;
334
1484
  }
335
- interface DropdownFieldSchema extends FieldSchemaBase<"dropdown"> {
336
- options: Option[];
1485
+ declare const ListContainer: React$1.FC<ListContainerProps>;
1486
+
1487
+ declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
1488
+ declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
1489
+ declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
1490
+ declare function DropdownMenuContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
1491
+ declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
1492
+ declare function DropdownMenuItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
1493
+ inset?: boolean;
1494
+ variant?: "default" | "destructive";
1495
+ }): react_jsx_runtime.JSX.Element;
1496
+ declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem> & {
1497
+ inset?: boolean;
1498
+ }): react_jsx_runtime.JSX.Element;
1499
+ declare function DropdownMenuRadioGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
1500
+ declare function DropdownMenuRadioItem({ className, children, inset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioItem> & {
1501
+ inset?: boolean;
1502
+ }): react_jsx_runtime.JSX.Element;
1503
+ declare function DropdownMenuLabel({ className, inset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
1504
+ inset?: boolean;
1505
+ }): react_jsx_runtime.JSX.Element;
1506
+ declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
1507
+ declare function DropdownMenuShortcut({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
1508
+ declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
1509
+ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
1510
+ inset?: boolean;
1511
+ }): react_jsx_runtime.JSX.Element;
1512
+ declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
1513
+
1514
+ interface ListHeaderProps {
1515
+ title: string | React$1.ReactNode;
1516
+ isExpanded?: boolean;
1517
+ onSettingClick?: () => void;
1518
+ onExpandClick?: () => void;
1519
+ bgColor?: string;
1520
+ textClassName?: string;
1521
+ titleIcon?: React$1.ReactNode;
1522
+ rightActions?: React$1.ReactNode;
1523
+ className?: string;
337
1524
  }
338
- type TextFieldSchema = FieldSchemaBase<"text">;
339
- type NumberFieldSchema = FieldSchemaBase<"number">;
340
- type DateFieldSchema = FieldSchemaBase<"date">;
341
- type DateTimeFieldSchema = FieldSchemaBase<"datetime">;
342
- type CheckboxFieldSchema = FieldSchemaBase<"checkbox">;
343
- type LookupFieldSchema = FieldSchemaBase<"lookup">;
344
- type FieldSchema = DropdownFieldSchema | TextFieldSchema | NumberFieldSchema | DateFieldSchema | DateTimeFieldSchema | CheckboxFieldSchema | LookupFieldSchema;
345
- interface AdvanceSearchProps {
346
- fields: FieldSchema[];
347
- portalId: string;
348
- limitRows?: number;
349
- iconColor?: string;
350
- onSearch?: (param: Record<string, unknown>) => void;
351
- onClear?: () => void;
1525
+ declare const ListHeader: React$1.FC<ListHeaderProps>;
1526
+
1527
+ declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1528
+
1529
+ declare const spinnerVariants: (props?: ({
1530
+ variant?: "primary" | "destructive" | "secondary" | "muted" | null | undefined;
1531
+ size?: "default" | "sm" | "lg" | "xl" | "2xl" | null | undefined;
1532
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
1533
+ interface SpinnerProps extends React$1.HTMLAttributes<HTMLDivElement>, Omit<VariantProps<typeof spinnerVariants>, "size"> {
1534
+ className?: string;
1535
+ size?: VariantProps<typeof spinnerVariants>["size"] | number;
352
1536
  }
1537
+ declare const Spinner: ({ className, variant, size, ...props }: SpinnerProps) => react_jsx_runtime.JSX.Element;
353
1538
 
354
- declare const AdvanceSearch: React__default.FC<AdvanceSearchProps>;
1539
+ declare function Switch({ className, ...props }: React$1.ComponentProps<typeof SwitchPrimitive.Root>): react_jsx_runtime.JSX.Element;
1540
+
1541
+ type TextAreaProps = React$1.ComponentProps<"textarea"> & {
1542
+ autoResize?: boolean;
1543
+ };
1544
+ declare function TextArea({ className, autoResize, ...props }: TextAreaProps): react_jsx_runtime.JSX.Element;
1545
+
1546
+ declare function TooltipProvider$1({ delayDuration, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
1547
+ declare function Tooltip$1({ children, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
1548
+ declare function TooltipTrigger$1({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
1549
+ declare function TooltipContent$1({ className, arrowClassName, sideOffset, children, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Content> & {
1550
+ arrowClassName?: string;
1551
+ }): react_jsx_runtime.JSX.Element;
1552
+
1553
+ declare const index_Accordion: typeof Accordion;
1554
+ declare const index_AccordionContent: typeof AccordionContent;
1555
+ declare const index_AccordionItem: typeof AccordionItem;
1556
+ declare const index_AccordionTrigger: typeof AccordionTrigger;
1557
+ declare const index_Button: typeof Button;
1558
+ declare const index_Carousel: typeof Carousel;
1559
+ type index_CarouselApi = CarouselApi;
1560
+ declare const index_CarouselContent: typeof CarouselContent;
1561
+ declare const index_CarouselDots: typeof CarouselDots;
1562
+ declare const index_CarouselItem: typeof CarouselItem;
1563
+ declare const index_CarouselNext: typeof CarouselNext;
1564
+ declare const index_CarouselPrevious: typeof CarouselPrevious;
1565
+ declare const index_CarouselThumbnails: typeof CarouselThumbnails;
1566
+ declare const index_Checkbox: typeof Checkbox;
1567
+ declare const index_ClearButton: typeof ClearButton;
1568
+ declare const index_Collapsible: typeof Collapsible;
1569
+ declare const index_CollapsibleContent: typeof CollapsibleContent;
1570
+ declare const index_CollapsibleTrigger: typeof CollapsibleTrigger;
1571
+ declare const index_DialogClose: typeof DialogClose;
1572
+ declare const index_DialogCloseButton: typeof DialogCloseButton;
1573
+ declare const index_DialogContent: typeof DialogContent;
1574
+ type index_DialogContentProps = DialogContentProps;
1575
+ declare const index_DialogDescription: typeof DialogDescription;
1576
+ declare const index_DialogFooter: typeof DialogFooter;
1577
+ declare const index_DialogHeader: typeof DialogHeader;
1578
+ declare const index_DialogTitle: typeof DialogTitle;
1579
+ declare const index_DialogTrigger: typeof DialogTrigger;
1580
+ declare const index_DropdownMenu: typeof DropdownMenu;
1581
+ declare const index_DropdownMenuCheckboxItem: typeof DropdownMenuCheckboxItem;
1582
+ declare const index_DropdownMenuContent: typeof DropdownMenuContent;
1583
+ declare const index_DropdownMenuGroup: typeof DropdownMenuGroup;
1584
+ declare const index_DropdownMenuItem: typeof DropdownMenuItem;
1585
+ declare const index_DropdownMenuLabel: typeof DropdownMenuLabel;
1586
+ declare const index_DropdownMenuPortal: typeof DropdownMenuPortal;
1587
+ declare const index_DropdownMenuRadioGroup: typeof DropdownMenuRadioGroup;
1588
+ declare const index_DropdownMenuRadioItem: typeof DropdownMenuRadioItem;
1589
+ declare const index_DropdownMenuSeparator: typeof DropdownMenuSeparator;
1590
+ declare const index_DropdownMenuShortcut: typeof DropdownMenuShortcut;
1591
+ declare const index_DropdownMenuSub: typeof DropdownMenuSub;
1592
+ declare const index_DropdownMenuSubContent: typeof DropdownMenuSubContent;
1593
+ declare const index_DropdownMenuSubTrigger: typeof DropdownMenuSubTrigger;
1594
+ declare const index_DropdownMenuTrigger: typeof DropdownMenuTrigger;
1595
+ declare const index_Form: typeof Form;
1596
+ declare const index_FormControl: typeof FormControl;
1597
+ declare const index_FormDescription: typeof FormDescription;
1598
+ declare const index_FormField: typeof FormField;
1599
+ declare const index_FormItem: typeof FormItem;
1600
+ declare const index_FormLabel: typeof FormLabel;
1601
+ declare const index_FormMessage: typeof FormMessage;
1602
+ declare const index_Input: typeof Input;
1603
+ declare const index_InputPrimitive: typeof InputPrimitive;
1604
+ declare const index_Label: typeof Label;
1605
+ declare const index_ListContainer: typeof ListContainer;
1606
+ type index_ListContainerProps = ListContainerProps;
1607
+ declare const index_ListHeader: typeof ListHeader;
1608
+ type index_ListHeaderProps = ListHeaderProps;
1609
+ declare const index_Popover: typeof Popover;
1610
+ declare const index_PopoverAnchor: typeof PopoverAnchor;
1611
+ declare const index_PopoverArrow: typeof PopoverArrow;
1612
+ declare const index_PopoverContent: typeof PopoverContent;
1613
+ declare const index_PopoverTrigger: typeof PopoverTrigger;
1614
+ declare const index_RadioGroupItem: typeof RadioGroupItem;
1615
+ declare const index_RadioGroupRoot: typeof RadioGroupRoot;
1616
+ declare const index_RadioLabel: typeof RadioLabel;
1617
+ declare const index_Select: typeof Select;
1618
+ declare const index_SelectContent: typeof SelectContent;
1619
+ declare const index_SelectGroup: typeof SelectGroup;
1620
+ declare const index_SelectItem: typeof SelectItem;
1621
+ declare const index_SelectLabel: typeof SelectLabel;
1622
+ declare const index_SelectScrollDownButton: typeof SelectScrollDownButton;
1623
+ declare const index_SelectScrollUpButton: typeof SelectScrollUpButton;
1624
+ declare const index_SelectSeparator: typeof SelectSeparator;
1625
+ declare const index_SelectTrigger: typeof SelectTrigger;
1626
+ declare const index_SelectValue: typeof SelectValue;
1627
+ declare const index_Separator: typeof Separator;
1628
+ declare const index_Sheet: typeof Sheet;
1629
+ declare const index_SheetClose: typeof SheetClose;
1630
+ declare const index_SheetContent: typeof SheetContent;
1631
+ declare const index_SheetDescription: typeof SheetDescription;
1632
+ declare const index_SheetFooter: typeof SheetFooter;
1633
+ declare const index_SheetHeader: typeof SheetHeader;
1634
+ declare const index_SheetTitle: typeof SheetTitle;
1635
+ declare const index_SheetTrigger: typeof SheetTrigger;
1636
+ declare const index_Sidebar: typeof Sidebar;
1637
+ declare const index_SidebarContent: typeof SidebarContent;
1638
+ declare const index_SidebarFooter: typeof SidebarFooter;
1639
+ declare const index_SidebarGroup: typeof SidebarGroup;
1640
+ declare const index_SidebarGroupAction: typeof SidebarGroupAction;
1641
+ declare const index_SidebarGroupContent: typeof SidebarGroupContent;
1642
+ declare const index_SidebarGroupLabel: typeof SidebarGroupLabel;
1643
+ declare const index_SidebarHeader: typeof SidebarHeader;
1644
+ declare const index_SidebarInput: typeof SidebarInput;
1645
+ declare const index_SidebarInset: typeof SidebarInset;
1646
+ declare const index_SidebarLayout: typeof SidebarLayout;
1647
+ declare const index_SidebarMenu: typeof SidebarMenu;
1648
+ declare const index_SidebarMenuAction: typeof SidebarMenuAction;
1649
+ declare const index_SidebarMenuBadge: typeof SidebarMenuBadge;
1650
+ declare const index_SidebarMenuButton: typeof SidebarMenuButton;
1651
+ declare const index_SidebarMenuItem: typeof SidebarMenuItem;
1652
+ declare const index_SidebarMenuSkeleton: typeof SidebarMenuSkeleton;
1653
+ declare const index_SidebarMenuSub: typeof SidebarMenuSub;
1654
+ declare const index_SidebarMenuSubButton: typeof SidebarMenuSubButton;
1655
+ declare const index_SidebarMenuSubItem: typeof SidebarMenuSubItem;
1656
+ declare const index_SidebarProvider: typeof SidebarProvider;
1657
+ declare const index_SidebarRail: typeof SidebarRail;
1658
+ declare const index_SidebarSeparator: typeof SidebarSeparator;
1659
+ declare const index_SidebarTrigger: typeof SidebarTrigger;
1660
+ declare const index_Skeleton: typeof Skeleton;
1661
+ declare const index_Spinner: typeof Spinner;
1662
+ type index_SpinnerProps = SpinnerProps;
1663
+ declare const index_Switch: typeof Switch;
1664
+ declare const index_Table: typeof Table;
1665
+ declare const index_TableBody: typeof TableBody;
1666
+ declare const index_TableCaption: typeof TableCaption;
1667
+ declare const index_TableCell: typeof TableCell;
1668
+ declare const index_TableContainer: typeof TableContainer;
1669
+ declare const index_TableFooter: typeof TableFooter;
1670
+ declare const index_TableHead: typeof TableHead;
1671
+ declare const index_TableHeader: typeof TableHeader;
1672
+ declare const index_TableRow: typeof TableRow;
1673
+ declare const index_TextArea: typeof TextArea;
1674
+ declare const index_buttonVariants: typeof buttonVariants;
1675
+ declare const index_spinnerVariants: typeof spinnerVariants;
1676
+ declare const index_useCarousel: typeof useCarousel;
1677
+ declare const index_useFormField: typeof useFormField;
1678
+ declare const index_useSidebar: typeof useSidebar;
1679
+ declare namespace index {
1680
+ export { index_Accordion as Accordion, index_AccordionContent as AccordionContent, index_AccordionItem as AccordionItem, index_AccordionTrigger as AccordionTrigger, index_Button as Button, index_Carousel as Carousel, type index_CarouselApi as CarouselApi, index_CarouselContent as CarouselContent, index_CarouselDots as CarouselDots, index_CarouselItem as CarouselItem, index_CarouselNext as CarouselNext, index_CarouselPrevious as CarouselPrevious, index_CarouselThumbnails as CarouselThumbnails, index_Checkbox as Checkbox, index_ClearButton as ClearButton, index_Collapsible as Collapsible, index_CollapsibleContent as CollapsibleContent, index_CollapsibleTrigger as CollapsibleTrigger, DatePicker$1 as DatePicker, Dialog$1 as Dialog, index_DialogClose as DialogClose, index_DialogCloseButton as DialogCloseButton, index_DialogContent as DialogContent, type index_DialogContentProps as DialogContentProps, index_DialogDescription as DialogDescription, index_DialogFooter as DialogFooter, index_DialogHeader as DialogHeader, index_DialogTitle as DialogTitle, index_DialogTrigger as DialogTrigger, index_DropdownMenu as DropdownMenu, index_DropdownMenuCheckboxItem as DropdownMenuCheckboxItem, index_DropdownMenuContent as DropdownMenuContent, index_DropdownMenuGroup as DropdownMenuGroup, index_DropdownMenuItem as DropdownMenuItem, index_DropdownMenuLabel as DropdownMenuLabel, index_DropdownMenuPortal as DropdownMenuPortal, index_DropdownMenuRadioGroup as DropdownMenuRadioGroup, index_DropdownMenuRadioItem as DropdownMenuRadioItem, index_DropdownMenuSeparator as DropdownMenuSeparator, index_DropdownMenuShortcut as DropdownMenuShortcut, index_DropdownMenuSub as DropdownMenuSub, index_DropdownMenuSubContent as DropdownMenuSubContent, index_DropdownMenuSubTrigger as DropdownMenuSubTrigger, index_DropdownMenuTrigger as DropdownMenuTrigger, index_Form as Form, index_FormControl as FormControl, index_FormDescription as FormDescription, index_FormField as FormField, index_FormItem as FormItem, index_FormLabel as FormLabel, index_FormMessage as FormMessage, index_Input as Input, index_InputPrimitive as InputPrimitive, type InputPrimitiveProps$1 as InputPrimitiveProps, type InputProps$1 as InputProps, index_Label as Label, index_ListContainer as ListContainer, type index_ListContainerProps as ListContainerProps, index_ListHeader as ListHeader, type index_ListHeaderProps as ListHeaderProps, MonthPicker$1 as MonthPicker, type MonthPickerProps$1 as MonthPickerProps, index_Popover as Popover, index_PopoverAnchor as PopoverAnchor, index_PopoverArrow as PopoverArrow, index_PopoverContent as PopoverContent, index_PopoverTrigger as PopoverTrigger, index_RadioGroupItem as RadioGroupItem, index_RadioGroupRoot as RadioGroupRoot, index_RadioLabel as RadioLabel, index_Select as Select, index_SelectContent as SelectContent, index_SelectGroup as SelectGroup, index_SelectItem as SelectItem, index_SelectLabel as SelectLabel, index_SelectScrollDownButton as SelectScrollDownButton, index_SelectScrollUpButton as SelectScrollUpButton, index_SelectSeparator as SelectSeparator, index_SelectTrigger as SelectTrigger, index_SelectValue as SelectValue, index_Separator as Separator, index_Sheet as Sheet, index_SheetClose as SheetClose, index_SheetContent as SheetContent, index_SheetDescription as SheetDescription, index_SheetFooter as SheetFooter, index_SheetHeader as SheetHeader, index_SheetTitle as SheetTitle, index_SheetTrigger as SheetTrigger, index_Sidebar as Sidebar, index_SidebarContent as SidebarContent, index_SidebarFooter as SidebarFooter, index_SidebarGroup as SidebarGroup, index_SidebarGroupAction as SidebarGroupAction, index_SidebarGroupContent as SidebarGroupContent, index_SidebarGroupLabel as SidebarGroupLabel, index_SidebarHeader as SidebarHeader, index_SidebarInput as SidebarInput, index_SidebarInset as SidebarInset, index_SidebarLayout as SidebarLayout, index_SidebarMenu as SidebarMenu, index_SidebarMenuAction as SidebarMenuAction, index_SidebarMenuBadge as SidebarMenuBadge, index_SidebarMenuButton as SidebarMenuButton, index_SidebarMenuItem as SidebarMenuItem, index_SidebarMenuSkeleton as SidebarMenuSkeleton, index_SidebarMenuSub as SidebarMenuSub, index_SidebarMenuSubButton as SidebarMenuSubButton, index_SidebarMenuSubItem as SidebarMenuSubItem, index_SidebarProvider as SidebarProvider, index_SidebarRail as SidebarRail, index_SidebarSeparator as SidebarSeparator, index_SidebarTrigger as SidebarTrigger, index_Skeleton as Skeleton, index_Spinner as Spinner, type index_SpinnerProps as SpinnerProps, index_Switch as Switch, index_Table as Table, index_TableBody as TableBody, index_TableCaption as TableCaption, index_TableCell as TableCell, index_TableContainer as TableContainer, index_TableFooter as TableFooter, index_TableHead as TableHead, index_TableHeader as TableHeader, index_TableRow as TableRow, index_TextArea as TextArea, Tooltip$1 as Tooltip, TooltipContent$1 as TooltipContent, TooltipProvider$1 as TooltipProvider, TooltipTrigger$1 as TooltipTrigger, index_buttonVariants as buttonVariants, inputVariants$1 as inputVariants, index_spinnerVariants as spinnerVariants, index_useCarousel as useCarousel, index_useFormField as useFormField, index_useSidebar as useSidebar };
1681
+ }
1682
+
1683
+ type SidebarContextProps = {
1684
+ state: "expanded" | "collapsed";
1685
+ open: boolean;
1686
+ setOpen: (open: boolean) => void;
1687
+ openMobile: boolean;
1688
+ setOpenMobile: (open: boolean) => void;
1689
+ isMobile: boolean;
1690
+ toggleSidebar: () => void;
1691
+ };
1692
+ declare function useSidebar(): SidebarContextProps;
1693
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React$1.ComponentProps<"div"> & {
1694
+ defaultOpen?: boolean;
1695
+ open?: boolean;
1696
+ onOpenChange?: (open: boolean) => void;
1697
+ }): react_jsx_runtime.JSX.Element;
1698
+ declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<"div"> & {
1699
+ side?: "left" | "right";
1700
+ variant?: "sidebar" | "floating" | "inset";
1701
+ collapsible?: "offcanvas" | "icon" | "none";
1702
+ }): react_jsx_runtime.JSX.Element;
1703
+ declare function SidebarTrigger({ className, onClick, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
1704
+ declare function SidebarRail({ className, ...props }: React$1.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
1705
+ declare function SidebarInset({ className, ...props }: React$1.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
1706
+ declare function SidebarInput({ className, ...props }: React$1.ComponentProps<typeof InputPrimitive>): react_jsx_runtime.JSX.Element;
1707
+ declare function SidebarHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1708
+ declare function SidebarFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1709
+ declare function SidebarSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
1710
+ declare function SidebarContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1711
+ declare function SidebarGroup({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1712
+ declare function SidebarGroupLabel({ className, asChild, ...props }: React$1.ComponentProps<"div"> & {
1713
+ asChild?: boolean;
1714
+ }): react_jsx_runtime.JSX.Element;
1715
+ declare function SidebarGroupAction({ className, asChild, ...props }: React$1.ComponentProps<"button"> & {
1716
+ asChild?: boolean;
1717
+ }): react_jsx_runtime.JSX.Element;
1718
+ declare function SidebarGroupContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1719
+ declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
1720
+ declare function SidebarMenuItem({ className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
1721
+ declare const sidebarMenuButtonVariants: (props?: ({
1722
+ variant?: "default" | "outline" | null | undefined;
1723
+ size?: "default" | "sm" | "lg" | null | undefined;
1724
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
1725
+ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React$1.ComponentProps<"button"> & {
1726
+ asChild?: boolean;
1727
+ isActive?: boolean;
1728
+ tooltip?: string | React$1.ComponentProps<typeof TooltipContent$1>;
1729
+ } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime.JSX.Element;
1730
+ declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React$1.ComponentProps<"button"> & {
1731
+ asChild?: boolean;
1732
+ showOnHover?: boolean;
1733
+ }): react_jsx_runtime.JSX.Element;
1734
+ declare function SidebarMenuBadge({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1735
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React$1.ComponentProps<"div"> & {
1736
+ showIcon?: boolean;
1737
+ }): react_jsx_runtime.JSX.Element;
1738
+ declare function SidebarMenuSub({ className, ...props }: React$1.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
1739
+ declare function SidebarMenuSubItem({ className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
1740
+ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React$1.ComponentProps<"a"> & {
1741
+ asChild?: boolean;
1742
+ size?: "sm" | "md";
1743
+ isActive?: boolean;
1744
+ }): react_jsx_runtime.JSX.Element;
1745
+ type SidebarLayoutProps = Omit<React$1.ComponentProps<typeof SidebarProvider>, "children"> & {
1746
+ sidebar: React$1.ReactNode;
1747
+ children?: React$1.ReactNode;
1748
+ layoutProps?: React$1.HTMLAttributes<HTMLDivElement>;
1749
+ sidebarProps?: Omit<React$1.ComponentProps<typeof Sidebar>, "children">;
1750
+ insetProps?: Omit<React$1.ComponentProps<typeof SidebarInset>, "children">;
1751
+ };
1752
+ declare function SidebarLayout({ sidebar, children, layoutProps, sidebarProps, insetProps, ...providerProps }: SidebarLayoutProps): react_jsx_runtime.JSX.Element;
1753
+
1754
+ declare function TooltipProvider({ delayDuration, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
1755
+ declare function Tooltip({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
1756
+ declare function TooltipTrigger({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
1757
+ declare function TooltipArrow(props: React$1.ComponentProps<typeof TooltipPrimitive.Arrow>): react_jsx_runtime.JSX.Element;
1758
+ declare function TooltipContent({ className, sideOffset, children, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
1759
+
1760
+ interface CroppedImagePayload {
1761
+ crop: {
1762
+ x: number;
1763
+ y: number;
1764
+ };
1765
+ croppedAreaPixels: Area | null;
1766
+ }
1767
+ interface CroppedImagePayloadWithBlobUrl extends CroppedImagePayload {
1768
+ croppedImageBlobUrl: string;
1769
+ }
1770
+ interface CropperModalBaseProps {
1771
+ open?: boolean;
1772
+ onOpenChange: (open: boolean) => void;
1773
+ onCancel?: () => void;
1774
+ onError?: (e: CropperModalError | unknown) => void;
1775
+ imageSrc?: string | null;
1776
+ isSVG?: boolean;
1777
+ cropSize?: {
1778
+ width: number;
1779
+ height: number;
1780
+ };
1781
+ /**
1782
+ * @property {boolean} outputExactCropSize - Determine whether to ouput image with the exact size given in cropSize attribute
1783
+ * @description an original image dimension is 1000x1000px, if cropSize is 500x500px, the output image will be exactly 500x500px
1784
+ */
1785
+ outputExactCropSize?: boolean;
1786
+ targetFileSizeKB?: number;
1787
+ title?: string;
1788
+ props?: {
1789
+ dialogTitleContainer?: React.ComponentProps<"div">;
1790
+ dialogTitle?: React.ComponentProps<typeof DialogPrimitive.Title>;
1791
+ dialogContent?: DialogContentProps$1;
1792
+ cropper?: CropperProps;
1793
+ cropperContainer?: React.ComponentProps<"div">;
1794
+ };
1795
+ }
1796
+ interface CropperModalWithBlobUrlOutputProps extends CropperModalBaseProps {
1797
+ onConfirm?: (payload: CroppedImagePayloadWithBlobUrl) => void;
1798
+ generateBlobUrlOutput: true;
1799
+ }
1800
+ interface CropperModalNormalProps extends CropperModalBaseProps {
1801
+ onConfirm?: (payload: CroppedImagePayload) => void;
1802
+ generateBlobUrlOutput: undefined | false;
1803
+ }
1804
+ type CropperModalProps = CropperModalWithBlobUrlOutputProps | CropperModalNormalProps;
1805
+ type CropperModalErrorType = "ERROR_GENERATE_BLOB" | "ERROR_CREATE_CANVAS" | "ERROR_INVALID_SVG" | "ERROR_COMPRESSION" | "ERROR_SVG_EXCEED_SIZE";
1806
+ declare class CropperModalError extends Error {
1807
+ readonly error: CropperModalErrorType;
1808
+ constructor(errorType: CropperModalErrorType, message: string);
1809
+ }
1810
+ declare const ErrorGeneratingBlob: CropperModalError;
1811
+ declare const ErrorCreateCanvas: CropperModalError;
1812
+ declare const ErrorInvalidSVG: CropperModalError;
1813
+ declare const ErrorCompression: CropperModalError;
1814
+ declare const ErrorSVGExceedSize: CropperModalError;
1815
+
1816
+ declare const CropperModal: ({ open, onOpenChange, imageSrc, isSVG, onConfirm, onCancel, onError, cropSize, outputExactCropSize, targetFileSizeKB, generateBlobUrlOutput, title, props }: CropperModalProps) => react_jsx_runtime.JSX.Element;
1817
+
1818
+ type EllipsisConfig = boolean | {
1819
+ content?: React$1.ReactNode;
1820
+ lineClamp?: number;
1821
+ side?: "top" | "bottom" | "left" | "right";
1822
+ } | number;
1823
+ type TruncatedProps = {
1824
+ className?: string;
1825
+ ellipsis?: EllipsisConfig;
1826
+ children: React$1.ReactNode;
1827
+ as?: keyof React$1.JSX.IntrinsicElements;
1828
+ style?: React$1.CSSProperties;
1829
+ tooltipProps?: Omit<React$1.ComponentProps<typeof Tooltip$1>, "open" | "onOpenChange"> & {
1830
+ disabled?: boolean;
1831
+ };
1832
+ tooltipContentProps?: Omit<React$1.ComponentProps<typeof TooltipContent$1>, "children">;
1833
+ };
1834
+ declare const Truncated: ({ children, className, ellipsis, as, style, tooltipProps, tooltipContentProps }: TruncatedProps) => react_jsx_runtime.JSX.Element;
1835
+
1836
+ type InputPrimitiveProps = React$1.InputHTMLAttributes<HTMLInputElement>;
1837
+ declare const inputVariants: (props?: ({
1838
+ controlSize?: "sm" | "lg" | "md" | null | undefined;
1839
+ fullWidth?: boolean | null | undefined;
1840
+ appearance?: "filled" | "unfilled" | null | undefined;
1841
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
1842
+ type InputProps = Omit<InputPrimitiveProps, "size" | "prefix"> & VariantProps<typeof inputVariants> & {
1843
+ addonPrefix?: React$1.ReactNode;
1844
+ addonPrefixProps?: React$1.HTMLAttributes<HTMLSpanElement>;
1845
+ prefixInteractive?: boolean;
1846
+ addonSuffix?: React$1.ReactNode;
1847
+ addonSuffixProps?: React$1.HTMLAttributes<HTMLSpanElement>;
1848
+ suffixInteractive?: boolean;
1849
+ wrapperClassName?: string;
1850
+ invalid?: boolean;
1851
+ loading?: boolean;
1852
+ loadingIcon?: React$1.ReactNode;
1853
+ validationMessage?: React$1.ReactNode;
1854
+ validationIcon?: React$1.ReactNode;
1855
+ validationMessageProps?: React$1.HTMLAttributes<HTMLParagraphElement>;
1856
+ onValueChange?: (value: string) => void;
1857
+ showPrefixDivider?: boolean;
1858
+ showSuffixDivider?: boolean;
1859
+ prefixWidth?: number | string;
1860
+ suffixWidth?: number | string;
1861
+ prefixMinWidth?: number | string;
1862
+ suffixMinWidth?: number | string;
1863
+ prefixMaxWidth?: number | string;
1864
+ suffixMaxWidth?: number | string;
1865
+ };
1866
+
1867
+ type InputCustomInputProps = Omit<InputProps, "type" | "value" | "defaultValue" | "onValueChange" | "prefix" | "suffix"> & {
1868
+ type?: NumericFormatProps<InputProps>["type"];
1869
+ value?: NumericFormatProps<InputProps>["value"];
1870
+ defaultValue?: NumericFormatProps<InputProps>["defaultValue"];
1871
+ };
1872
+ type InputNumberProps = NumericFormatProps<InputProps> & {
1873
+ customInputProps?: InputCustomInputProps;
1874
+ showStepper?: boolean;
1875
+ step?: number;
1876
+ min?: number;
1877
+ max?: number;
1878
+ onStepChange?: (value: number) => void;
1879
+ fillDecimalOnBlur?: boolean;
1880
+ truncateDecimalOnBlur?: boolean;
1881
+ maxIntegerDigits?: number;
1882
+ invalid?: boolean;
1883
+ };
1884
+ declare const InputNumber: ({ customInputProps, showStepper, step, min, max, onStepChange, onValueChange, value, defaultValue, disabled, onBlur, isAllowed: isAllowedProp, fillDecimalOnBlur, truncateDecimalOnBlur, maxIntegerDigits, invalid, decimalScale: decimalScaleProp, fixedDecimalScale: fixedDecimalScaleProp, ...props }: InputNumberProps) => react_jsx_runtime.JSX.Element;
1885
+
1886
+ type PermissionAction = "CREATE" | "READ" | "EDIT" | "DELETE" | "NOTIFY" | "CREATE_DRAFT" | "REQUIRE_SITE";
1887
+ type PermissionString = `${string}.${PermissionAction}`;
1888
+ interface ActionButtonProps {
1889
+ label: string;
1890
+ onPress?: (id?: any) => void;
1891
+ requiredPermission?: PermissionString | string;
1892
+ disabled?: boolean;
1893
+ }
1894
+ type ActionMenuProps = {
1895
+ id: any;
1896
+ buttons: ActionButtonProps[];
1897
+ checkPermissionFunc?: (requiredPermission: PermissionString) => boolean | ((requiredPermission: string) => boolean);
1898
+ triggerButtonIcon?: React.ReactNode;
1899
+ triggerButtonClassName?: string;
1900
+ actionMenuClassName?: string;
1901
+ actionButtonClassName?: string;
1902
+ separatorClassName?: string;
1903
+ };
1904
+
1905
+ declare const ActionMenu: React.FC<ActionMenuProps>;
1906
+
1907
+ type MenuItemType = "item" | "checkbox" | "radio";
1908
+ type MenuItem = {
1909
+ /** Text label rendered inside the menu item. */
1910
+ label: string;
1911
+ /** Optional icon rendered to the left of the label. */
1912
+ icon?: React__default.ReactNode;
1913
+ /** Whether the item is disabled. */
1914
+ disabled?: boolean;
1915
+ /** Visual variant — only applies to plain `item` type. */
1916
+ variant?: "default" | "destructive";
1917
+ /** Keyboard shortcut hint rendered on the right side. */
1918
+ shortcut?: string;
1919
+ /**
1920
+ * Item type:
1921
+ * - `'item'` (default) — standard clickable item
1922
+ * - `'checkbox'` — checkbox-style item; requires `checked` / `onCheckedChange`
1923
+ * - `'radio'` — radio-style item; must be inside a group with `radioGroupValue`
1924
+ */
1925
+ type?: MenuItemType;
1926
+ /** Controlled checked state (checkbox items only). */
1927
+ checked?: boolean;
1928
+ /** Called when the checked state changes (checkbox items only). */
1929
+ onCheckedChange?: (checked: boolean) => void;
1930
+ /** Value submitted to the radio group (radio items only). Falls back to `label`. */
1931
+ value?: string;
1932
+ /** Nested sub-menu items. When present, renders a sub-menu. */
1933
+ subItems?: MenuItem[];
1934
+ /** Click handler (plain items and sub-trigger items only). */
1935
+ onClick?: () => void;
1936
+ /** Extra class names forwarded to the rendered menu item element. */
1937
+ className?: string;
1938
+ };
1939
+ type ActionItemGroup = {
1940
+ /** Optional label rendered above the group. */
1941
+ groupLabel?: string;
1942
+ /** The items in this group. */
1943
+ menuItems: MenuItem[];
1944
+ /**
1945
+ * When provided, the entire group is wrapped in a `DropdownMenuRadioGroup`
1946
+ * and items with `type: 'radio'` are used as radio options.
1947
+ */
1948
+ radioGroupValue?: string;
1949
+ /** Called when the selected radio value changes. */
1950
+ onRadioValueChange?: (value: string) => void;
1951
+ };
1952
+ interface ActionDropdownProps {
1953
+ /**
1954
+ * Custom trigger element. Accepts any `ReactNode`.
1955
+ * When omitted the default label + chevron button is rendered.
1956
+ *
1957
+ * If you pass a complete button/component, also set `triggerAsChild={true}`
1958
+ * so the trigger wrapper does not add an extra element.
1959
+ */
1960
+ trigger?: React__default.ReactNode;
1961
+ /**
1962
+ * Simple string label for the default trigger button.
1963
+ * Ignored when `trigger` is provided.
1964
+ * @default 'Manage Data'
1965
+ */
1966
+ triggerLabel?: string;
1967
+ /**
1968
+ * Forwards `asChild` to `DropdownMenuTrigger`.
1969
+ * Use this when `trigger` is already a fully-styled button/component and you
1970
+ * don't want the extra wrapper element.
1971
+ */
1972
+ triggerAsChild?: boolean;
1973
+ /** Groups of menu items. Each group is separated by a divider. */
1974
+ actionItems?: ActionItemGroup[];
1975
+ /** Horizontal alignment of the content relative to the trigger. */
1976
+ align?: "start" | "center" | "end";
1977
+ /** Side of the trigger where the content appears. */
1978
+ side?: "top" | "right" | "bottom" | "left";
1979
+ /** Pixel distance between the trigger and content. */
1980
+ sideOffset?: number;
1981
+ /** Extra class names forwarded to the `DropdownMenuTrigger` wrapper. */
1982
+ className?: string;
1983
+ /** Extra class names forwarded to `DropdownMenuContent`. */
1984
+ contentClassName?: string;
1985
+ }
1986
+ declare const ActionDropdown: React__default.FC<ActionDropdownProps>;
1987
+
1988
+ type ProgressBarSize = "sm" | "md" | "lg" | number;
1989
+ type PercentPosition = {
1990
+ align?: "start" | "center" | "end";
1991
+ type?: "inner" | "outer";
1992
+ side?: "top" | "bottom" | "left" | "right";
1993
+ };
1994
+ type SuccessConfig = {
1995
+ percent: number;
1996
+ className?: string;
1997
+ };
1998
+ type ProgressBarProps = {
1999
+ percent?: number;
2000
+ size?: ProgressBarSize;
2001
+ showInfo?: boolean;
2002
+ format?: (percent: number) => ReactNode;
2003
+ precision?: number;
2004
+ success?: SuccessConfig;
2005
+ strokeLinecap?: "round" | "butt" | "square";
2006
+ percentPosition?: PercentPosition;
2007
+ barClassName?: string;
2008
+ trailClassName?: string;
2009
+ className?: string;
2010
+ };
2011
+ declare const _default: React$1.MemoExoticComponent<({ percent, size, showInfo, format, precision, success, strokeLinecap, percentPosition, barClassName, trailClassName, className }: ProgressBarProps) => react_jsx_runtime.JSX.Element>;
2012
+
2013
+ declare function Dialog({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
355
2014
 
356
- type ConfirmDialogProps = {
357
- dialogData: {
358
- state: boolean;
359
- title?: string;
360
- description?: string;
361
- btn?: string;
362
- variantBtn?: string;
363
- btnState?: boolean;
364
- onClickBtn?: () => void;
365
- variant?: "default" | "success" | "error";
366
- showCloseBtn?: boolean;
2015
+ declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
2016
+ declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React$1.ComponentProps<typeof Dialog> & {
2017
+ title?: string;
2018
+ description?: string;
2019
+ className?: string;
2020
+ showCloseButton?: boolean;
2021
+ }): react_jsx_runtime.JSX.Element;
2022
+ declare function CommandInput({ className, ...props }: React$1.ComponentProps<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
2023
+ declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
2024
+ declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
2025
+ declare function CommandGroup({ className, ...props }: React$1.ComponentProps<typeof Command$1.Group>): react_jsx_runtime.JSX.Element;
2026
+ declare function CommandSeparator({ className, ...props }: React$1.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime.JSX.Element;
2027
+ declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
2028
+ declare function CommandShortcut({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
2029
+
2030
+ type OptionData = Record<string, any>;
2031
+ type VirtualizedCommandOption<TData extends OptionData> = TData & {
2032
+ [key: string]: any;
2033
+ };
2034
+ type VirtualizedCommandFieldNames<TData extends OptionData> = {
2035
+ label?: keyof TData;
2036
+ value?: keyof TData;
2037
+ };
2038
+ type VirtualizedCommandProps<TData extends OptionData> = {
2039
+ name?: string;
2040
+ options?: VirtualizedCommandOption<TData>[];
2041
+ height?: number;
2042
+ searchPlaceholder?: string;
2043
+ fieldNames?: VirtualizedCommandFieldNames<TData>;
2044
+ emptyContent?: React$1.ReactNode;
2045
+ notFoundContent?: React$1.ReactNode;
2046
+ value?: string;
2047
+ showSearch?: boolean;
2048
+ disabledOption?: (option: VirtualizedCommandOption<TData>) => boolean;
2049
+ filterOption?: (search: string, option: VirtualizedCommandOption<TData>) => boolean;
2050
+ labelRender?: (option: VirtualizedCommandOption<TData>) => React$1.ReactNode;
2051
+ onSelect?: (selected: string, option: VirtualizedCommandOption<TData>) => void;
2052
+ onBlur?: (event: React$1.FocusEvent<HTMLDivElement, Element>) => void;
2053
+ onFocus?: (event: React$1.FocusEvent<HTMLDivElement, Element>) => void;
2054
+ };
2055
+ declare const VirtualizedCommand: <TData extends OptionData>({ name, height, options, emptyContent, searchPlaceholder, value, notFoundContent, showSearch, fieldNames, disabledOption, filterOption, onSelect, labelRender, onBlur, onFocus }: VirtualizedCommandProps<TData>) => react_jsx_runtime.JSX.Element;
2056
+
2057
+ type ComboboxProps<TData extends OptionData> = React$1.AriaAttributes & Omit<VirtualizedCommandProps<TData>, "onFocus" | "onBlur"> & {
2058
+ name?: string;
2059
+ dropdownName?: string;
2060
+ defaultValue?: string;
2061
+ className?: string;
2062
+ disabled?: boolean;
2063
+ placeholder?: string;
2064
+ showClear?: boolean;
2065
+ onBlur?: (event: React$1.FocusEvent<HTMLButtonElement, Element>) => void;
2066
+ onFocus?: (event: React$1.FocusEvent<HTMLButtonElement, Element>) => void;
2067
+ onClear?: (selected: string, option: VirtualizedCommandOption<TData>) => void;
2068
+ open?: boolean;
2069
+ onOpenChange?: (isOpen: boolean) => void;
2070
+ showValueWhenNoMatch?: boolean;
2071
+ virtual?: boolean;
2072
+ isLoading?: boolean;
2073
+ loadingContent?: React$1.ReactNode;
2074
+ valueRender?: (option: VirtualizedCommandOption<TData>) => React$1.ReactNode;
2075
+ popoverProps?: Omit<React$1.ComponentProps<typeof Popover>, "open" | "onOpenChange">;
2076
+ popoverContentProps?: Omit<React$1.ComponentProps<typeof PopoverContent>, "children">;
2077
+ };
2078
+ declare const Combobox: <TData extends OptionData>(props: ComboboxProps<TData> & React$1.RefAttributes<HTMLButtonElement>) => React$1.ReactElement | null;
2079
+
2080
+ interface TruncatedMouseEnterDivProps {
2081
+ className?: string;
2082
+ tooltipProps?: Omit<ComponentProps<typeof Tooltip>, "open" | "onOpenChange"> & {
2083
+ disabled?: boolean;
367
2084
  };
368
- setDialog: (data: any) => void;
369
- onClose?: () => void;
2085
+ tooltipContentProps?: Omit<ComponentProps<typeof TooltipContent>, "children">;
2086
+ arrowClassName?: string;
2087
+ value: string;
2088
+ }
2089
+ declare const TruncatedMouseEnterDiv: ({ value, className, tooltipProps, tooltipContentProps, arrowClassName }: TruncatedMouseEnterDivProps) => react_jsx_runtime.JSX.Element;
2090
+
2091
+ type TabSelectItem<T extends string = string> = {
2092
+ id: T;
2093
+ label: string;
2094
+ };
2095
+ interface TabSelectProps<T extends string = string> {
2096
+ items: TabSelectItem<T>[];
2097
+ onSelectTab: (state: T) => void;
2098
+ labelWrapperClassName?: string;
2099
+ labelClassName?: string;
2100
+ activeBorderClassName?: string;
2101
+ separatorClassName?: string;
2102
+ }
2103
+ declare const TabSelect: <T extends string = string>({ items, onSelectTab, labelWrapperClassName, labelClassName, activeBorderClassName, separatorClassName, ...rest }: ComponentProps<"div"> & TabSelectProps<T>) => react_jsx_runtime.JSX.Element | null;
2104
+
2105
+ type InputMentionSerializedState = string;
2106
+ /**
2107
+ * Configuration for mapping mention item fields
2108
+ * Allows flexible field names for different data structures
2109
+ */
2110
+ type MentionConfig<T> = {
2111
+ /** Function to get the unique identifier from mention item */
2112
+ getId: (item: T) => string;
2113
+ /** Function to get the mention key/name (e.g., "{{FIRSTNAME}}") from mention item */
2114
+ getName: (item: T) => string;
2115
+ /** Function to get the display label (e.g., "First Name") from mention item */
2116
+ getLabel: (item: T) => string;
2117
+ };
2118
+ /**
2119
+ * Default mention item structure
2120
+ */
2121
+ type DefaultMentionItem = {
2122
+ id: string;
2123
+ name: string;
2124
+ fieldName: string;
2125
+ };
2126
+ type InputMentionProps<T = DefaultMentionItem> = {
2127
+ value?: InputMentionSerializedState;
2128
+ onChange?: (plainText: InputMentionSerializedState) => void;
2129
+ placeholder?: string;
2130
+ readOnly?: boolean;
2131
+ disabled?: boolean;
2132
+ editorClassName?: string;
2133
+ autoFocus?: boolean;
2134
+ /** Maximum number of characters allowed in the editor */
2135
+ maxLength?: number;
2136
+ /** Array of mention items that will be suggested */
2137
+ mentions?: T[];
2138
+ /** Configuration for mapping mention item fields. If not provided, assumes default structure {id, name, fieldName} */
2139
+ mentionConfig?: MentionConfig<T>;
2140
+ /** Optional trigger character for mentions (e.g., "$", "@", "{{"). If not provided, suggestions appear when typing matching text */
2141
+ mentionTrigger?: string;
2142
+ /** If true, suggestions will ONLY appear when the trigger is typed. Text matching is disabled. Requires mentionTrigger to be set. */
2143
+ mentionTriggerOnly?: boolean;
2144
+ /** If true, mentions will be rendered as plain text (e.g., {{FIRSTNAME}}) suitable for mail templates. If false, mentions will be styled HTML tags */
2145
+ plainTextMentions?: boolean;
2146
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">;
2147
+
2148
+ declare function InputMentionInner<T = DefaultMentionItem>({ value, onChange, placeholder, readOnly, disabled, editorClassName, autoFocus, maxLength, mentions, mentionConfig, mentionTrigger, mentionTriggerOnly, plainTextMentions, className, id, ...rest }: InputMentionProps<T>, ref: React.Ref<HTMLDivElement>): react_jsx_runtime.JSX.Element;
2149
+ declare const InputMention: <T = DefaultMentionItem>(props: InputMentionProps<T> & {
2150
+ ref?: React.Ref<HTMLDivElement>;
2151
+ }) => ReturnType<typeof InputMentionInner>;
2152
+
2153
+ declare function isDefined<T>(value: T | null | undefined): value is NonNullable<T>;
2154
+ declare function isEmptyObject(value: any): boolean;
2155
+ type DebounceOptions = {
2156
+ leading?: boolean;
2157
+ trailing?: boolean;
2158
+ maxWait?: number;
2159
+ };
2160
+ type DebouncedFunction<T extends (...args: any[]) => any> = {
2161
+ (...args: Parameters<T>): ReturnType<T> | undefined;
2162
+ cancel: () => void;
2163
+ flush: () => ReturnType<T> | undefined;
2164
+ };
2165
+ declare function debounce<T extends (...args: any[]) => any>(func: T, wait?: number, options?: DebounceOptions): DebouncedFunction<T>;
2166
+ declare function throttle<T extends (...args: any[]) => any>(func: T, wait: number, options?: Pick<DebounceOptions, "leading" | "trailing">): DebouncedFunction<T>;
2167
+
2168
+ declare function stripNullishObject<T extends Record<string, any>>(value: Partial<T>): {
2169
+ [k: string]: any;
370
2170
  };
371
- declare function ConfirmDialog({ dialogData, setDialog, onClose }: ConfirmDialogProps): react_jsx_runtime.JSX.Element;
2171
+
2172
+ /**
2173
+ * Formats an ISO date string according to a specified format.
2174
+ *
2175
+ * @param isoDateString The input ISO 8601 date string (e.g., '2025-09-22T08:47:15.627Z') or javascript Date object
2176
+ * @param format The format string (e.g., 'd/m/Y H:i:s')
2177
+ * - d / DD: Day (01-31)
2178
+ * - m / MM: Month (01-12)
2179
+ * - Y / YYYY: Full Year (e.g., 2025)
2180
+ * - H: Hour (00-23)
2181
+ * - i: Minute (00-59)
2182
+ * - s: Second (00-59)
2183
+ * @returns A formatted date string.
2184
+ */
2185
+ declare function formatISODate(isoDate: string | Date, format?: string): string;
2186
+
2187
+ type UseSafeBlockerOpts = {
2188
+ shouldBlockFn: () => boolean | Promise<boolean>;
2189
+ enableBeforeUnload?: boolean | (() => boolean);
2190
+ disabled?: boolean;
2191
+ withResolver?: boolean;
2192
+ };
2193
+ type SafeBlockerResolver = {
2194
+ status: "blocked";
2195
+ proceed: () => void;
2196
+ reset: () => void;
2197
+ } | {
2198
+ status: "idle";
2199
+ proceed: undefined;
2200
+ reset: undefined;
2201
+ };
2202
+ declare function useSafeBlocker({ shouldBlockFn, enableBeforeUnload, disabled, withResolver }: UseSafeBlockerOpts): SafeBlockerResolver;
2203
+
2204
+ type DraftSource = "create" | "edit" | null;
2205
+ interface DraftGuardState {
2206
+ isDirty: boolean;
2207
+ source: DraftSource;
2208
+ isInitialized: boolean;
2209
+ markDirty: (source: DraftSource) => void;
2210
+ clearDraft: () => void;
2211
+ markInitialized: () => void;
2212
+ }
2213
+ declare const useDraftGuardStore: zustand.UseBoundStore<zustand.StoreApi<DraftGuardState>>;
372
2214
 
373
2215
  /**
374
2216
  * Utility function to intelligently combine class names using `clsx`
@@ -397,39 +2239,6 @@ declare function ConfirmDialog({ dialogData, setDialog, onClose }: ConfirmDialog
397
2239
  */
398
2240
  declare function cn(...args: ClassValue[]): string;
399
2241
 
400
- type TanstackTableInstance$1 = {
401
- getAllColumns(): any[];
402
- };
403
- declare function getColumnIdFromTable<T extends TanstackTableInstance$1>(table: T): {
404
- availableColumns: {
405
- id: any;
406
- }[];
407
- currentColumns: {
408
- id: any;
409
- }[];
410
- };
411
-
412
- type TanstackTableInstance = {
413
- getAllColumns(): any[];
414
- getVisibleLeafColumns(): any[];
415
- };
416
- type UseGridSettingsStoreActions = {
417
- setAvailableColumns: (cols: Column[]) => void;
418
- setCurrentColumns: (cols: Column[]) => void;
419
- setPayload: (payload: GridPayload) => void;
420
- reset: () => void;
421
- extractColumns: (table: TanstackTableInstance) => {
422
- availableColumns: Column[];
423
- currentColumns: Column[];
424
- };
425
- };
426
- type UseGridSettingsStoreState = {
427
- availableColumns: Column[];
428
- currentColumns: Column[];
429
- payload: GridPayload;
430
- };
431
- declare const useGridSettingsStore: zustand.UseBoundStore<zustand.StoreApi<UseGridSettingsStoreState & UseGridSettingsStoreActions>>;
432
-
433
2242
  type UseHoverResult = {
434
2243
  ref: React__default.RefCallback<HTMLElement>;
435
2244
  hovering: boolean;
@@ -473,4 +2282,54 @@ type Breakpoints = {
473
2282
  };
474
2283
  declare const useScreenSize: (breakpoints?: Breakpoints) => UseScreenSizeResult;
475
2284
 
476
- export { AdvanceSearch, type Breakpoints, Button, type Column, type ContentSlot, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DatatableColumnResizing, ConfirmDialog as Dialog, type FieldSchema, FormErrorMessage, type FormErrorMessageProps, FormField, FormFieldContext, type FormFieldContextValue, type FormFieldProps, FormItem, FormItemContext, type FormItemContextValue, type FormItemProps, FormLabel, type FormLabelProps, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HeaderCell, type HeaderCellProps, _default as Navbar, type NavbarProps, NumberInput, type NumberInputProps, type SorterProps, TextInput, type TextInputProps, type UseFormFieldOptions, type UseFormFieldReturn, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UseScreenSizeResult, booleanToSelectValue, buttonVariants, cn, compareAlphanumeric, getColumnIdFromTable, renderContentSlot, selectValueToBoolean, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useMediaQuery, useScreenSize };
2285
+ type UseTruncatedOptions<T> = {
2286
+ elementRef: React.RefObject<T | null>;
2287
+ onChange?: (isTruncated: boolean) => void;
2288
+ resizeDetectDelay?: number;
2289
+ };
2290
+ type UseTruncatedResult = boolean;
2291
+ declare const useTruncated: <T extends HTMLElement = any>({ elementRef, onChange, resizeDetectDelay }: UseTruncatedOptions<T>) => UseTruncatedResult;
2292
+
2293
+ type UseControllableStateOptions<T = any> = {
2294
+ defaultValue: T;
2295
+ value?: T;
2296
+ };
2297
+ type UseControllableStateResult<T = any> = {
2298
+ value: T;
2299
+ setValue: (nextValue: T | ((prev: T) => T)) => void;
2300
+ isControlled: boolean;
2301
+ };
2302
+ declare const useControllableState: <T = any>({ defaultValue, value }: UseControllableStateOptions<T>) => UseControllableStateResult<T>;
2303
+
2304
+ declare const useIsomorphicLayoutEffect: typeof useEffect;
2305
+
2306
+ type UseBindRefProps<T> = {
2307
+ ref?: React$1.RefObject<T | null>;
2308
+ value: T;
2309
+ };
2310
+ declare const useBindRef: <T>({ ref, value }: UseBindRefProps<T>) => void;
2311
+
2312
+ type ExtractObjects<T> = T extends infer U ? U extends object ? U : never : never;
2313
+ type BrowserNativeObject = Date | FileList | File | null;
2314
+ type EmptyObject = {
2315
+ [K in string | number]: never;
2316
+ };
2317
+ type DeepPartial<T> = T extends BrowserNativeObject ? T : {
2318
+ [K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] : DeepPartial<T[K]>;
2319
+ };
2320
+ type DeepPartialNullish<T> = T extends BrowserNativeObject ? T | null : {
2321
+ [K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] | null : DeepPartialNullish<T[K]> | null;
2322
+ };
2323
+
2324
+ interface TenantLocale {
2325
+ id: string;
2326
+ tenantId: string | null;
2327
+ locale: string;
2328
+ i18nConfig: Record<string, unknown>;
2329
+ isDefault: boolean;
2330
+ enabled: boolean;
2331
+ createdAt: Date | string;
2332
+ updatedAt: Date | string;
2333
+ }
2334
+
2335
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionDropdown, type ActionDropdownProps, type ActionItemGroup, ActionMenu, type ActionMenuProps, AdministrationIcon, AdvanceSearch, AnalyticsIcon, ApplicationLogIcon, ArrowIcon, AuditFooter, type AuditFooterProps, BookmarkIcon, type Breakpoints, BriefcaseBusinessIcon, type BrowserNativeObject, BuildingIcon, Button, SuiCalendarIcon2 as Calendar2Icon, CalendarDaysIcon, CardIcon, Carousel, type CarouselApi, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious, CarouselThumbnails, Checkbox, CircleUserIcon, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type ColumnVirtualizerState, Combobox, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CopyUserRightsIcon, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, CustomActionStatusIcon, CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DataTableVirtual, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DateRange, DateTimePicker, type DateTimePickerProps, type DebounceOptions, type DebouncedFunction, DecreaseIcon, type DeepPartial, type DeepPartialNullish, type DefaultMentionItem, Dialog$1 as Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogClose, DialogCloseButton, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, type DialogVariant, type DraftGuardState, type DraftSource, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EllipsisBoxIcon, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, FactoryIcon, type FieldSchema, type FieldType, FileCogIcon, FileSpreadsheet, FileTextIcon, FiltersIcon, FolderIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HamburgerMenuIcon, HandymanIcon, ListHeader as Header, HeaderCell, type HeaderCellProps, HelpIcon, HomeIcon, HomePlusIcon, Image, type ImageLoader, type ImageLoaderProps, ImagePlaceholderIcon, type ImageProps, InformationIcon, Input, type InputCustomInputProps, InputMention, type InputMentionProps, type InputMentionSerializedState, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, LanguageSelector, type LanguageSelectorProps, type ListHeaderProps, LoadingPage, type LoadingPageProps, type LocaleOption, LookupSelect, type LookupSelectOption, type LookupSelectProps, MailIcon, MainListContainer, type MainListContainerClassNames, type MainListContainerProps, type MainListContainerSlots, ManIcon, ManagementIcon, type MentionConfig$1 as MentionConfig, MenuIcon, type MenuItem, type MenuItemType, MessageIcon, MessageIconInverse, MessageSquareIcon, MonthPicker, type MonthPickerProps, type MonthRange, _default$1 as Navbar, type NavbarProps, NotFoundIcon, type OptionData, OutlineArrowIcon, type Params, type PermissionString, PlusIcon, PlusSearchIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, type PrefixMap, PreventPageLeave, _default as ProgressBar, type ProgressBarProps, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, type RichTextProps, type RichTextSerializedState, RightPanelContainer, type RightPanelContainerClassNames, type RightPanelContainerHeaderProps, type RightPanelContainerProps, type RightPanelContainerSlots, RoleIcon, type RowClickType, type RowState, type ScrollInfo, SearchIcon, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, TabSelect, type TabSelectItem, Table, TableBody, TableCaption, TableCell, TableContainer, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, TagListViewIcon, type TemplateKeys, type TenantLocale, TextArea, ToolBoxIcon, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TransferUserRightsIcon, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, type TruncatedProps, index as UI, type UseBindRefProps, type UseControllableStateOptions, type UseControllableStateResult, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, UserActiveIcon, UserAloneIcon, UserFriendIcon, UserGroupIcon, UserIcon, UserInactiveIcon, UserNameIcon, UserProtectIcon, UsersIcon, VirtualizedCommand, type VirtualizedCommandFieldNames, type VirtualizedCommandOption, type VirtualizedCommandProps, type Virtualizer, WorkFlowIcon, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useBindRef, useCarousel, useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useSafeBlocker, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };