@embeddable.com/remarkable-ui 2.0.20 → 2.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,249 +1,14 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React$1 from 'react';
3
- import React__default, { FC, SVGProps, ImgHTMLAttributes, ReactNode, ReactElement } from 'react';
2
+ import React__default, { FC, ReactElement, RefObject, SVGProps, ImgHTMLAttributes, ReactNode } from 'react';
3
+ import { ChartData, ChartOptions, CartesianTickOptions, GridLineOptions } from 'chart.js';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import { S as StylesKeys } from './index-D70sAhnA.js';
6
+ export { a as Styles, s as styles } from './index-D70sAhnA.js';
7
+ import { DateRange } from 'react-day-picker';
8
+ export { DateRange } from 'react-day-picker';
4
9
  import * as _tabler_icons_react from '@tabler/icons-react';
5
10
  import { IconProps, Icon } from '@tabler/icons-react';
6
11
  import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
7
- import { DateRange } from 'react-day-picker';
8
- export { DateRange } from 'react-day-picker';
9
- import { ChartData, ChartOptions, CartesianTickOptions, GridLineOptions } from 'chart.js';
10
- import { S as StylesKeys } from './index-BOgu306y.js';
11
- export { a as Styles, s as styles } from './index-BOgu306y.js';
12
-
13
- declare const Skeleton: () => react_jsx_runtime.JSX.Element;
14
-
15
- declare const Card: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & {
16
- children?: React__default.ReactNode;
17
- } & React__default.RefAttributes<HTMLDivElement>>;
18
- type CardHeaderProps = {
19
- title?: string;
20
- subtitle?: string;
21
- rightContent?: React__default.ReactNode;
22
- };
23
- declare const CardHeader: React__default.FC<CardHeaderProps>;
24
- type CardContentProps = {
25
- children: React__default.ReactNode;
26
- };
27
- declare const CardContent: React__default.ForwardRefExoticComponent<CardContentProps & React__default.RefAttributes<HTMLDivElement>>;
28
-
29
- type CardFeedbackProps = {
30
- className?: string;
31
- icon?: React.ComponentType<IconProps>;
32
- title: string;
33
- message: string;
34
- variant?: 'error' | 'info';
35
- };
36
- declare const CardFeedback: React.FC<CardFeedbackProps>;
37
-
38
- type TypographyElement = 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label' | 'div';
39
- type TypographyProps = {
40
- children: React__default.ReactNode;
41
- as?: TypographyElement;
42
- className?: string;
43
- title?: string;
44
- style?: React__default.CSSProperties;
45
- };
46
- declare function Typography({ children, as: Component, className, style, title, }: TypographyProps): React__default.JSX.Element;
47
-
48
- type ActionIconProps = {
49
- className?: string;
50
- icon: React__default.ComponentType<IconProps>;
51
- } & React__default.ButtonHTMLAttributes<HTMLButtonElement>;
52
- declare const ActionIcon: React__default.FC<ActionIconProps>;
53
-
54
- type ButtonIconProps = {
55
- variant?: 'primary' | 'secondary';
56
- size?: 'small' | 'medium';
57
- icon: React__default.ComponentType<IconProps>;
58
- } & React__default.ButtonHTMLAttributes<HTMLButtonElement>;
59
- declare const ButtonIcon: React__default.FC<ButtonIconProps>;
60
-
61
- type DropdownProps = {
62
- triggerComponent: React.ReactNode;
63
- children: React.ReactNode;
64
- disabled?: boolean;
65
- open?: boolean;
66
- side?: React.ComponentProps<typeof DropdownMenu.Content>['side'];
67
- align?: React.ComponentProps<typeof DropdownMenu.Content>['align'];
68
- onOpenChange?: (open: boolean) => void;
69
- };
70
- declare const Dropdown: FC<DropdownProps>;
71
-
72
- type SelectListOptionIcon = React.ReactElement<SVGProps<SVGSVGElement>> | React.ReactElement<ImgHTMLAttributes<HTMLImageElement>>;
73
- type SelectListOptionProps = {
74
- value?: string;
75
- isSelected?: boolean;
76
- label: string;
77
- rightLabel?: string;
78
- startIcon?: SelectListOptionIcon;
79
- endIcon?: SelectListOptionIcon;
80
- disabled?: boolean;
81
- onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
82
- };
83
- type SelectListOptionPropsWithCategory = SelectListOptionProps & {
84
- category: string;
85
- };
86
- declare const SelectListOption: FC<SelectListOptionProps>;
87
-
88
- type ButtonProps = {
89
- startIcon?: React.ComponentType<IconProps>;
90
- endIcon?: React.ComponentType<IconProps>;
91
- children: string;
92
- size?: 'small' | 'medium';
93
- variant?: 'primary' | 'secondary';
94
- } & React.ButtonHTMLAttributes<HTMLButtonElement>;
95
- declare const Button: React.FC<ButtonProps>;
96
-
97
- type GhostButtonProps = {
98
- startIcon?: Icon;
99
- endIcon?: Icon;
100
- } & React__default.ButtonHTMLAttributes<HTMLButtonElement>;
101
- declare const GhostButton: React__default.FC<GhostButtonProps>;
102
-
103
- type OverlayProps = {
104
- className?: string;
105
- children?: ReactNode;
106
- };
107
- declare const Overlay: FC<OverlayProps>;
108
-
109
- type FieldHeaderProps = {
110
- className?: string;
111
- label?: string;
112
- required?: boolean;
113
- requiredLabel?: string;
114
- };
115
- declare const FieldHeader: ({ label, required, requiredLabel, className, }: FieldHeaderProps) => react_jsx_runtime.JSX.Element | null;
116
-
117
- type MultiSelectFieldProps = {
118
- startIcon?: React.ComponentType<IconProps>;
119
- disabled?: boolean;
120
- isClearable?: boolean;
121
- isLoading?: boolean;
122
- isSearchable?: boolean;
123
- noOptionsMessage?: string;
124
- options: (SelectListOptionProps | SelectListOptionPropsWithCategory)[];
125
- placeholder?: string;
126
- submitLabel?: string;
127
- values?: string[];
128
- onChange: (value: string[]) => void;
129
- onSearch?: (search: string) => void;
130
- error?: boolean;
131
- errorMessage?: string;
132
- } & FieldHeaderProps;
133
- declare const MultiSelectField: FC<MultiSelectFieldProps>;
134
-
135
- type SwitchProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
136
- onChange?: (checked: boolean) => void;
137
- disabled?: boolean;
138
- className?: string;
139
- label?: string;
140
- };
141
- declare const Switch: React__default.FC<SwitchProps>;
142
-
143
- type FieldFeedbackProps = {
144
- message: string;
145
- variant?: 'error';
146
- className?: string;
147
- };
148
- declare const FieldFeedback: FC<FieldFeedbackProps>;
149
-
150
- declare const SelectFieldTrigger: React$1.ForwardRefExoticComponent<React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
151
- startIcon?: React.ComponentType<IconProps>;
152
- valueLabel?: string;
153
- placeholder?: string;
154
- isClearable?: boolean;
155
- isLoading?: boolean;
156
- onClear?: () => void;
157
- error?: boolean;
158
- } & React$1.RefAttributes<HTMLButtonElement>>;
159
-
160
- type SelectFieldContentProps = {
161
- children: ReactNode;
162
- autoFocus?: boolean;
163
- className?: string;
164
- fitContent?: boolean;
165
- };
166
- declare const SelectFieldContent: FC<SelectFieldContentProps>;
167
- type SelectFieldContentListProps = {
168
- children: React.ReactNode;
169
- autoFocus?: boolean;
170
- className?: string;
171
- disabled?: boolean;
172
- };
173
- declare const SelectFieldContentList: FC<SelectFieldContentListProps>;
174
-
175
- type SingleSelectFieldProps = {
176
- options: (SelectListOptionProps | SelectListOptionPropsWithCategory)[];
177
- startIcon?: React.ComponentType<IconProps>;
178
- value?: string;
179
- disabled?: boolean;
180
- placeholder?: string;
181
- searchable?: boolean;
182
- clearable?: boolean;
183
- isLoading?: boolean;
184
- noOptionsMessage?: string;
185
- onChange: (value: string) => void;
186
- onSearch?: (search: string) => void;
187
- error?: boolean;
188
- errorMessage?: string;
189
- } & FieldHeaderProps;
190
- declare const SingleSelectField: FC<SingleSelectFieldProps>;
191
-
192
- declare const TextField: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange"> & {
193
- value?: string;
194
- placeholder?: string;
195
- startIcon?: React.ComponentType<_tabler_icons_react.IconProps>;
196
- endIcon?: React.ComponentType<_tabler_icons_react.IconProps>;
197
- onChange: (value: string) => void;
198
- clearable?: boolean;
199
- error?: boolean;
200
- errorMessage?: string;
201
- } & FieldHeaderProps & React$1.RefAttributes<HTMLInputElement>>;
202
-
203
- type InputFieldProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
204
- value?: string;
205
- placeholder?: string;
206
- startIcon?: React.ComponentType<IconProps>;
207
- endIcon?: React.ComponentType<IconProps>;
208
- onChange: (value: string) => void;
209
- clearable?: boolean;
210
- error?: boolean;
211
- errorMessage?: string;
212
- } & FieldHeaderProps;
213
-
214
- declare const NumberField: React$1.ForwardRefExoticComponent<Omit<InputFieldProps, "onChange" | "value"> & {
215
- value?: number | null;
216
- step?: number;
217
- min?: number;
218
- max?: number;
219
- onChange?: (value: number | null) => void;
220
- } & React$1.RefAttributes<HTMLInputElement>>;
221
-
222
- type SelectFieldCategoryProps = {
223
- label: string;
224
- };
225
- declare const SelectFieldCategory: FC<SelectFieldCategoryProps>;
226
-
227
- type DateRangePickerProps = {
228
- numberOfMonths?: number;
229
- locale?: string;
230
- value?: DateRange;
231
- onChange: (dateRange: DateRange | undefined) => void;
232
- };
233
- declare const DateRangePicker: React__default.FC<DateRangePickerProps>;
234
-
235
- type DateRangePickerFieldProps = {
236
- displayValue?: string;
237
- startIcon?: React.ComponentType<IconProps>;
238
- placeholder?: string;
239
- disabled?: boolean;
240
- error?: boolean;
241
- errorMessage?: string;
242
- clearable?: boolean;
243
- onChange: (dateRange: DateRange | undefined) => void;
244
- submitLabel?: string;
245
- } & FieldHeaderProps & DateRangePickerProps;
246
- declare const DateRangePickerField: FC<DateRangePickerFieldProps>;
247
12
 
248
13
  type BarChartDefaultConfigurationProps = {
249
14
  horizontal?: boolean;
@@ -346,50 +111,37 @@ declare const getDonutChartOptions: (options: PieChartConfigurationProps & {
346
111
  subLabel?: string;
347
112
  }) => Partial<ChartOptions<"pie">>;
348
113
 
349
- declare const TableSortDirection: {
350
- readonly ASC: "asc";
351
- readonly DESC: "desc";
114
+ type HeatMapPropsDimension<T> = {
115
+ key: Extract<keyof T, string>;
116
+ label: string;
117
+ format?: (value: string) => string;
352
118
  };
353
- type TableSort<T> = {
354
- id: keyof T;
355
- direction: (typeof TableSortDirection)[keyof typeof TableSortDirection];
119
+ type HeatMapPropsMeasure<T> = {
120
+ key: Extract<keyof T, string>;
121
+ label: string;
122
+ format?: (value: number) => string;
356
123
  };
357
- declare const TableHeaderAlign: {
358
- readonly LEFT: "left";
359
- readonly CENTER: "center";
360
- readonly RIGHT: "right";
361
- };
362
- type TableHeaderItemAlign = (typeof TableHeaderAlign)[keyof typeof TableHeaderAlign];
363
- type TableHeaderCell = (props: {
364
- value: any;
365
- className?: string;
366
- }) => React.ReactElement<HTMLTableCellElement>;
367
- type TableHeaderItem<T> = {
368
- id: keyof T;
369
- title: React.ReactNode;
370
- align?: TableHeaderItemAlign;
371
- field?: keyof T;
372
- minWidth?: CssSize;
373
- sort?: TableSort<T>;
374
- accessor?: (row: T) => React.ReactNode;
375
- cell?: TableHeaderCell;
376
- };
377
- type TablePaginatedProps<T> = {
378
- showIndex?: boolean;
124
+ type HeatMapPropsThreshold = string | number | `${number}%` | undefined;
125
+ type HeatMapProps<T extends Record<string, unknown>> = {
126
+ data: T[];
127
+ measure: HeatMapPropsMeasure<T>;
128
+ rowDimension: HeatMapPropsDimension<T>;
129
+ columnDimension: HeatMapPropsDimension<T>;
130
+ showValues?: boolean;
379
131
  className?: string;
380
- headers: TableHeaderItem<T>[];
381
- rows: T[];
382
- page: number;
383
- pageSize: number;
384
- paginationLabel?: string;
385
- total?: number;
386
- sort?: TableSort<T>;
387
- onRowIndexClick?: (rowIndex: number) => void;
388
- onPageChange: (page: number) => void;
389
- onSortChange?: (value: TableSort<T> | undefined) => void;
132
+ displayNullAs?: string | number;
133
+ /** Color thresholds — number = raw value, "NN%" = percentage of [min..max]. */
134
+ minThreshold?: HeatMapPropsThreshold;
135
+ maxThreshold?: HeatMapPropsThreshold;
136
+ minColor?: string;
137
+ midColor?: string;
138
+ maxColor?: string;
139
+ columnWidth?: number;
140
+ firstColumnWidth?: number;
141
+ missingCellColor?: string;
390
142
  };
391
143
 
392
- declare const TablePaginated: React$1.ForwardRefExoticComponent<TablePaginatedProps<any> & React$1.RefAttributes<HTMLDivElement>>;
144
+ declare const HeatMap: <T extends Record<string, unknown>>({ data, showValues, className, columnDimension, rowDimension, measure, minThreshold, maxThreshold, minColor, midColor, maxColor, columnWidth, firstColumnWidth, displayNullAs, }: HeatMapProps<T>) => react_jsx_runtime.JSX.Element;
393
145
 
394
146
  type PivotTablePropsMeasure<T> = {
395
147
  key: Extract<keyof T, string>;
@@ -432,37 +184,50 @@ type PivotTableProps<T> = {
432
184
 
433
185
  declare const PivotTable: FC<PivotTableProps<any>>;
434
186
 
435
- type HeatMapPropsDimension<T> = {
436
- key: Extract<keyof T, string>;
437
- label: string;
438
- format?: (value: string) => string;
187
+ declare const TableSortDirection: {
188
+ readonly ASC: "asc";
189
+ readonly DESC: "desc";
439
190
  };
440
- type HeatMapPropsMeasure<T> = {
441
- key: Extract<keyof T, string>;
442
- label: string;
443
- format?: (value: number) => string;
191
+ type TableSort<T> = {
192
+ id: keyof T;
193
+ direction: (typeof TableSortDirection)[keyof typeof TableSortDirection];
444
194
  };
445
- type HeatMapPropsThreshold = string | number | `${number}%` | undefined;
446
- type HeatMapProps<T extends Record<string, unknown>> = {
447
- data: T[];
448
- measure: HeatMapPropsMeasure<T>;
449
- rowDimension: HeatMapPropsDimension<T>;
450
- columnDimension: HeatMapPropsDimension<T>;
451
- showValues?: boolean;
195
+ declare const TableHeaderAlign: {
196
+ readonly LEFT: "left";
197
+ readonly CENTER: "center";
198
+ readonly RIGHT: "right";
199
+ };
200
+ type TableHeaderItemAlign = (typeof TableHeaderAlign)[keyof typeof TableHeaderAlign];
201
+ type TableHeaderCell = (props: {
202
+ value: any;
452
203
  className?: string;
453
- displayNullAs?: string | number;
454
- /** Color thresholds — number = raw value, "NN%" = percentage of [min..max]. */
455
- minThreshold?: HeatMapPropsThreshold;
456
- maxThreshold?: HeatMapPropsThreshold;
457
- minColor?: string;
458
- midColor?: string;
459
- maxColor?: string;
460
- columnWidth?: number;
461
- firstColumnWidth?: number;
462
- missingCellColor?: string;
204
+ }) => React.ReactElement<HTMLTableCellElement>;
205
+ type TableHeaderItem<T> = {
206
+ id: keyof T;
207
+ title: React.ReactNode;
208
+ align?: TableHeaderItemAlign;
209
+ field?: keyof T;
210
+ minWidth?: CssSize;
211
+ sort?: TableSort<T>;
212
+ accessor?: (row: T) => React.ReactNode;
213
+ cell?: TableHeaderCell;
463
214
  };
464
215
 
465
- declare const HeatMap: <T extends Record<string, unknown>>({ data, showValues, className, columnDimension, rowDimension, measure, minThreshold, maxThreshold, minColor, midColor, maxColor, columnWidth, firstColumnWidth, displayNullAs, }: HeatMapProps<T>) => react_jsx_runtime.JSX.Element;
216
+ type TablePaginatedProps<T> = {
217
+ showIndex?: boolean;
218
+ className?: string;
219
+ headers: TableHeaderItem<T>[];
220
+ rows: T[];
221
+ page: number;
222
+ pageSize: number;
223
+ paginationLabel?: string;
224
+ total?: number;
225
+ sort?: TableSort<T>;
226
+ onRowIndexClick?: (rowIndex: number) => void;
227
+ onPageChange: (page: number) => void;
228
+ onSortChange?: (value: TableSort<T> | undefined) => void;
229
+ };
230
+ declare const TablePaginated: React$1.ForwardRefExoticComponent<TablePaginatedProps<any> & React$1.RefAttributes<HTMLDivElement>>;
466
231
 
467
232
  type UseTableGetRowsPerPageProps = {
468
233
  availableHeight: number;
@@ -472,13 +237,51 @@ type UseTableGetRowsPerPageProps = {
472
237
  };
473
238
  declare const useTableGetRowsPerPage: ({ availableHeight, headerHeight, rowHeight, footerHeight, }: UseTableGetRowsPerPageProps) => number;
474
239
 
475
- declare const getChartColors: () => string[];
476
- declare const getChartContrastColors: () => string[];
240
+ type TableScrollableHandle = {
241
+ scrollToTop: (behavior?: ScrollBehavior) => void;
242
+ getScrollElement: () => HTMLDivElement | null;
243
+ };
244
+ type TableScrollableProps<T> = {
245
+ bottomDistanceToPrefetch?: number;
246
+ className?: string;
247
+ hasMoreData?: boolean;
248
+ headers: TableHeaderItem<T>[];
249
+ isLoading?: boolean;
250
+ loadingLabel?: string;
251
+ rows: T[];
252
+ showIndex?: boolean;
253
+ sort?: TableSort<T>;
254
+ onNextPage: () => void;
255
+ onRowIndexClick?: (rowIndex: number) => void;
256
+ onSortChange?: (value: TableSort<T> | undefined) => void;
257
+ };
258
+ declare const TableScrollable: React$1.ForwardRefExoticComponent<TableScrollableProps<any> & React$1.RefAttributes<TableScrollableHandle>>;
259
+
260
+ type TableBodyProps<T> = Pick<TablePaginatedProps<T>, 'showIndex' | 'headers' | 'rows' | 'onRowIndexClick'> & {
261
+ pageSize?: number;
262
+ page?: number;
263
+ bottomRef?: RefObject<HTMLDivElement | null>;
264
+ isLoading?: boolean;
265
+ hasMoreData?: boolean;
266
+ };
267
+ declare const TableBody: <T>({ headers, rows, pageSize, page, showIndex, onRowIndexClick, bottomRef, isLoading, hasMoreData, }: TableBodyProps<T>) => react_jsx_runtime.JSX.Element;
268
+ type TableBodyCellWithCopyProps = {
269
+ value: string;
270
+ align?: TableHeaderItemAlign;
271
+ children: React.ReactNode;
272
+ };
273
+ declare const TableBodyCellWithCopy: FC<TableBodyCellWithCopyProps>;
274
+
275
+ type TableHeaderProps<T> = Pick<TablePaginatedProps<T>, 'showIndex' | 'headers' | 'sort' | 'onSortChange'>;
276
+ declare const TableHeader: <T>({ headers, sort, showIndex, onSortChange, }: TableHeaderProps<T>) => react_jsx_runtime.JSX.Element;
477
277
 
478
278
  type TablePaginationProps = Pick<TablePaginatedProps<unknown>, 'page' | 'pageSize' | 'paginationLabel' | 'total' | 'onPageChange'>;
479
279
  declare const getTableTotalPages: (total: number | undefined, pageSize: number) => number | undefined;
480
280
  declare const TablePagination: FC<TablePaginationProps>;
481
281
 
282
+ declare const getChartColors: () => string[];
283
+ declare const getChartContrastColors: () => string[];
284
+
482
285
  declare const getChartjsAxisOptionsPlugins: () => Partial<ChartOptions["plugins"]>;
483
286
  declare const getChartjsAxisOptionsScalesTicksDefault: () => Partial<CartesianTickOptions>;
484
287
  declare const getChartjsAxisOptionsScalesTicksMuted: () => Partial<CartesianTickOptions>;
@@ -489,14 +292,153 @@ declare const getChartjsAxisOptions: () => Partial<ChartOptions>;
489
292
  declare const chartjsAxisOptionsLayoutPadding: number;
490
293
  declare const getChartjsAxisOptionsScalesGridColor: (ctx: any) => string | undefined;
491
294
 
492
- declare const getStyle: (variableName: StylesKeys, fallbackValue?: string) => string;
493
- declare const getStyleNumber: (variableName: StylesKeys, fallbackValue?: string) => number | undefined;
295
+ type DateRangePickerProps = {
296
+ numberOfMonths?: number;
297
+ locale?: string;
298
+ value?: DateRange;
299
+ onChange: (dateRange: DateRange | undefined) => void;
300
+ };
301
+ declare const DateRangePicker: React__default.FC<DateRangePickerProps>;
494
302
 
495
- declare const isSameDate: (a?: Date, b?: Date) => boolean;
496
- declare const isSameDateRange: (a?: DateRange, b?: DateRange) => boolean;
497
- declare const endOfDayUTC: (date: Date) => Date;
303
+ type FieldHeaderProps = {
304
+ className?: string;
305
+ label?: string;
306
+ required?: boolean;
307
+ requiredLabel?: string;
308
+ };
309
+ declare const FieldHeader: ({ label, required, requiredLabel, className, }: FieldHeaderProps) => react_jsx_runtime.JSX.Element | null;
498
310
 
499
- declare const shallowEqual: (object1: any, object2: any) => boolean;
311
+ type DateRangePickerFieldProps = {
312
+ displayValue?: string;
313
+ startIcon?: React.ComponentType<IconProps>;
314
+ placeholder?: string;
315
+ disabled?: boolean;
316
+ error?: boolean;
317
+ errorMessage?: string;
318
+ clearable?: boolean;
319
+ onChange: (dateRange: DateRange | undefined) => void;
320
+ submitLabel?: string;
321
+ } & FieldHeaderProps & DateRangePickerProps;
322
+ declare const DateRangePickerField: FC<DateRangePickerFieldProps>;
323
+
324
+ type InputFieldProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
325
+ value?: string;
326
+ placeholder?: string;
327
+ startIcon?: React.ComponentType<IconProps>;
328
+ endIcon?: React.ComponentType<IconProps>;
329
+ onChange: (value: string) => void;
330
+ clearable?: boolean;
331
+ error?: boolean;
332
+ errorMessage?: string;
333
+ } & FieldHeaderProps;
334
+
335
+ declare const NumberField: React$1.ForwardRefExoticComponent<Omit<InputFieldProps, "value" | "onChange"> & {
336
+ value?: number | null;
337
+ step?: number;
338
+ min?: number;
339
+ max?: number;
340
+ onChange?: (value: number | null) => void;
341
+ } & React$1.RefAttributes<HTMLInputElement>>;
342
+
343
+ declare const TextField: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange"> & {
344
+ value?: string;
345
+ placeholder?: string;
346
+ startIcon?: React.ComponentType<_tabler_icons_react.IconProps>;
347
+ endIcon?: React.ComponentType<_tabler_icons_react.IconProps>;
348
+ onChange: (value: string) => void;
349
+ clearable?: boolean;
350
+ error?: boolean;
351
+ errorMessage?: string;
352
+ } & FieldHeaderProps & React$1.RefAttributes<HTMLInputElement>>;
353
+
354
+ type SelectListOptionIcon = React.ReactElement<SVGProps<SVGSVGElement>> | React.ReactElement<ImgHTMLAttributes<HTMLImageElement>>;
355
+ type SelectListOptionProps = {
356
+ value?: string;
357
+ isSelected?: boolean;
358
+ label: string;
359
+ rightLabel?: string;
360
+ startIcon?: SelectListOptionIcon;
361
+ endIcon?: SelectListOptionIcon;
362
+ disabled?: boolean;
363
+ onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
364
+ };
365
+ type SelectListOptionPropsWithCategory = SelectListOptionProps & {
366
+ category: string;
367
+ };
368
+ declare const SelectListOption: FC<SelectListOptionProps>;
369
+
370
+ type MultiSelectFieldProps = {
371
+ startIcon?: React.ComponentType<IconProps>;
372
+ disabled?: boolean;
373
+ isClearable?: boolean;
374
+ isLoading?: boolean;
375
+ isSearchable?: boolean;
376
+ noOptionsMessage?: string;
377
+ options: (SelectListOptionProps | SelectListOptionPropsWithCategory)[];
378
+ placeholder?: string;
379
+ submitLabel?: string;
380
+ values?: string[];
381
+ onChange: (value: string[]) => void;
382
+ onSearch?: (search: string) => void;
383
+ error?: boolean;
384
+ errorMessage?: string;
385
+ } & FieldHeaderProps;
386
+ declare const MultiSelectField: FC<MultiSelectFieldProps>;
387
+
388
+ type SingleSelectFieldProps = {
389
+ options: (SelectListOptionProps | SelectListOptionPropsWithCategory)[];
390
+ startIcon?: React.ComponentType<IconProps>;
391
+ value?: string;
392
+ disabled?: boolean;
393
+ placeholder?: string;
394
+ searchable?: boolean;
395
+ clearable?: boolean;
396
+ isLoading?: boolean;
397
+ noOptionsMessage?: string;
398
+ onChange: (value: string) => void;
399
+ onSearch?: (search: string) => void;
400
+ error?: boolean;
401
+ errorMessage?: string;
402
+ } & FieldHeaderProps;
403
+ declare const SingleSelectField: FC<SingleSelectFieldProps>;
404
+
405
+ type SelectFieldContentProps = {
406
+ children: ReactNode;
407
+ autoFocus?: boolean;
408
+ className?: string;
409
+ fitContent?: boolean;
410
+ };
411
+ declare const SelectFieldContent: FC<SelectFieldContentProps>;
412
+ type SelectFieldContentListProps = {
413
+ children: React.ReactNode;
414
+ autoFocus?: boolean;
415
+ className?: string;
416
+ disabled?: boolean;
417
+ };
418
+ declare const SelectFieldContentList: FC<SelectFieldContentListProps>;
419
+
420
+ type SelectFieldCategoryProps = {
421
+ label: string;
422
+ };
423
+ declare const SelectFieldCategory: FC<SelectFieldCategoryProps>;
424
+
425
+ declare const SelectFieldTrigger: React$1.ForwardRefExoticComponent<React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
426
+ startIcon?: React.ComponentType<IconProps>;
427
+ valueLabel?: string;
428
+ placeholder?: string;
429
+ isClearable?: boolean;
430
+ isLoading?: boolean;
431
+ onClear?: () => void;
432
+ error?: boolean;
433
+ } & React$1.RefAttributes<HTMLButtonElement>>;
434
+
435
+ type SwitchProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
436
+ onChange?: (checked: boolean) => void;
437
+ disabled?: boolean;
438
+ className?: string;
439
+ label?: string;
440
+ };
441
+ declare const Switch: React__default.FC<SwitchProps>;
500
442
 
501
443
  declare function useDebounce<T extends (...args: any[]) => void>(fn: T, delay?: number): (...args: Parameters<T>) => void;
502
444
 
@@ -506,4 +448,100 @@ type Size = {
506
448
  };
507
449
  declare const useResizeObserver: <T extends HTMLElement>(elRef: React.RefObject<T | null>, timeout?: number) => Size;
508
450
 
509
- export { ActionIcon, BarChart, type BarChartProps, Button, ButtonIcon, Card, CardContent, CardFeedback, CardHeader, type CssSize, DateRangePicker, DateRangePickerField, type DateRangePickerProps, DonutChart, type DonutLabelChartProps, Dropdown, type DropdownProps, FieldFeedback, type FieldFeedbackProps, FieldHeader, type FieldHeaderProps, GhostButton, HeatMap, type HeatMapProps, type HeatMapPropsDimension, type HeatMapPropsMeasure, type HeatMapPropsThreshold, KpiChart, LineChart, type LineChartProps, MultiSelectField, type MultiSelectFieldProps, NumberField, Overlay, PieChart, type PieChartProps, PivotTable, type PivotTableProps, type PivotTablePropsColumnDimension, type PivotTablePropsMeasure, type PivotTablePropsRowDimension, SelectFieldCategory, SelectFieldContent, SelectFieldContentList, SelectFieldTrigger, SelectListOption, type SelectListOptionProps, type SelectListOptionPropsWithCategory, SingleSelectField, type SingleSelectFieldProps, Skeleton, StylesKeys, Switch, TableHeaderAlign, type TableHeaderCell, type TableHeaderItem, type TableHeaderItemAlign, TablePaginated, type TablePaginatedProps, TablePagination, type TablePaginationProps, type TableSort, TableSortDirection, TextField, Typography, chartjsAxisOptionsLayoutPadding, endOfDayUTC, getBarChartData, getBarChartOptions, getChartColors, getChartContrastColors, getChartjsAxisOptions, getChartjsAxisOptionsPlugins, getChartjsAxisOptionsScales, getChartjsAxisOptionsScalesGrid, getChartjsAxisOptionsScalesGridColor, getChartjsAxisOptionsScalesTicksDefault, getChartjsAxisOptionsScalesTicksMuted, getChartjsAxisOptionsScalesTitle, getDonutChartOptions, getLineChartData, getLineChartOptions, getPieChartData, getPieChartOptions, getStyle, getStyleNumber, getTableTotalPages, isSameDate, isSameDateRange, shallowEqual, useDebounce, useResizeObserver, useTableGetRowsPerPage };
451
+ type ActionIconProps = {
452
+ className?: string;
453
+ icon: React__default.ComponentType<IconProps>;
454
+ } & React__default.ButtonHTMLAttributes<HTMLButtonElement>;
455
+ declare const ActionIcon: React__default.FC<ActionIconProps>;
456
+
457
+ type ButtonProps = {
458
+ startIcon?: React.ComponentType<IconProps>;
459
+ endIcon?: React.ComponentType<IconProps>;
460
+ children: string;
461
+ size?: 'small' | 'medium';
462
+ variant?: 'primary' | 'secondary';
463
+ } & React.ButtonHTMLAttributes<HTMLButtonElement>;
464
+ declare const Button: React.FC<ButtonProps>;
465
+
466
+ type ButtonIconProps = {
467
+ variant?: 'primary' | 'secondary';
468
+ size?: 'small' | 'medium';
469
+ icon: React__default.ComponentType<IconProps>;
470
+ } & React__default.ButtonHTMLAttributes<HTMLButtonElement>;
471
+ declare const ButtonIcon: React__default.FC<ButtonIconProps>;
472
+
473
+ declare const Card: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & {
474
+ children?: React__default.ReactNode;
475
+ } & React__default.RefAttributes<HTMLDivElement>>;
476
+ type CardHeaderProps = {
477
+ title?: string;
478
+ subtitle?: string;
479
+ rightContent?: React__default.ReactNode;
480
+ };
481
+ declare const CardHeader: React__default.FC<CardHeaderProps>;
482
+ type CardContentProps = {
483
+ children: React__default.ReactNode;
484
+ };
485
+ declare const CardContent: React__default.ForwardRefExoticComponent<CardContentProps & React__default.RefAttributes<HTMLDivElement>>;
486
+
487
+ type CardFeedbackProps = {
488
+ className?: string;
489
+ icon?: React.ComponentType<IconProps>;
490
+ title: string;
491
+ message: string;
492
+ variant?: 'error' | 'info';
493
+ };
494
+ declare const CardFeedback: React.FC<CardFeedbackProps>;
495
+
496
+ type DropdownProps = {
497
+ triggerComponent: React.ReactNode;
498
+ children: React.ReactNode;
499
+ disabled?: boolean;
500
+ open?: boolean;
501
+ side?: React.ComponentProps<typeof DropdownMenu.Content>['side'];
502
+ align?: React.ComponentProps<typeof DropdownMenu.Content>['align'];
503
+ onOpenChange?: (open: boolean) => void;
504
+ };
505
+ declare const Dropdown: FC<DropdownProps>;
506
+
507
+ type FieldFeedbackProps = {
508
+ message: string;
509
+ variant?: 'error';
510
+ className?: string;
511
+ };
512
+ declare const FieldFeedback: FC<FieldFeedbackProps>;
513
+
514
+ type GhostButtonProps = {
515
+ startIcon?: Icon;
516
+ endIcon?: Icon;
517
+ } & React__default.ButtonHTMLAttributes<HTMLButtonElement>;
518
+ declare const GhostButton: React__default.FC<GhostButtonProps>;
519
+
520
+ type OverlayProps = {
521
+ className?: string;
522
+ children?: ReactNode;
523
+ };
524
+ declare const Overlay: FC<OverlayProps>;
525
+
526
+ declare const Skeleton: () => react_jsx_runtime.JSX.Element;
527
+
528
+ type TypographyElement = 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label' | 'div';
529
+ type TypographyProps = {
530
+ children: React__default.ReactNode;
531
+ as?: TypographyElement;
532
+ className?: string;
533
+ title?: string;
534
+ style?: React__default.CSSProperties;
535
+ };
536
+ declare function Typography({ children, as: Component, className, style, title, }: TypographyProps): React__default.JSX.Element;
537
+
538
+ declare const getStyle: (variableName: StylesKeys, fallbackValue?: string) => string;
539
+ declare const getStyleNumber: (variableName: StylesKeys, fallbackValue?: string) => number | undefined;
540
+
541
+ declare const isSameDate: (a?: Date, b?: Date) => boolean;
542
+ declare const isSameDateRange: (a?: DateRange, b?: DateRange) => boolean;
543
+ declare const endOfDayUTC: (date: Date) => Date;
544
+
545
+ declare const shallowEqual: (object1: any, object2: any) => boolean;
546
+
547
+ export { ActionIcon, BarChart, type BarChartProps, Button, ButtonIcon, Card, CardContent, CardFeedback, CardHeader, type CssSize, DateRangePicker, DateRangePickerField, type DateRangePickerProps, DonutChart, type DonutLabelChartProps, Dropdown, type DropdownProps, FieldFeedback, type FieldFeedbackProps, FieldHeader, type FieldHeaderProps, GhostButton, HeatMap, type HeatMapProps, type HeatMapPropsDimension, type HeatMapPropsMeasure, type HeatMapPropsThreshold, KpiChart, LineChart, type LineChartProps, MultiSelectField, type MultiSelectFieldProps, NumberField, Overlay, PieChart, type PieChartProps, PivotTable, type PivotTableProps, type PivotTablePropsColumnDimension, type PivotTablePropsMeasure, type PivotTablePropsRowDimension, SelectFieldCategory, SelectFieldContent, SelectFieldContentList, SelectFieldTrigger, SelectListOption, type SelectListOptionProps, type SelectListOptionPropsWithCategory, SingleSelectField, type SingleSelectFieldProps, Skeleton, StylesKeys, Switch, TableBody, TableBodyCellWithCopy, type TableBodyProps, TableHeader, TableHeaderAlign, type TableHeaderCell, type TableHeaderItem, type TableHeaderItemAlign, type TableHeaderProps, TablePaginated, type TablePaginatedProps, TablePagination, type TablePaginationProps, TableScrollable, type TableScrollableHandle, type TableScrollableProps, type TableSort, TableSortDirection, TextField, Typography, chartjsAxisOptionsLayoutPadding, endOfDayUTC, getBarChartData, getBarChartOptions, getChartColors, getChartContrastColors, getChartjsAxisOptions, getChartjsAxisOptionsPlugins, getChartjsAxisOptionsScales, getChartjsAxisOptionsScalesGrid, getChartjsAxisOptionsScalesGridColor, getChartjsAxisOptionsScalesTicksDefault, getChartjsAxisOptionsScalesTicksMuted, getChartjsAxisOptionsScalesTitle, getDonutChartOptions, getLineChartData, getLineChartOptions, getPieChartData, getPieChartOptions, getStyle, getStyleNumber, getTableTotalPages, isSameDate, isSameDateRange, shallowEqual, useDebounce, useResizeObserver, useTableGetRowsPerPage };