@embeddable.com/remarkable-ui 2.0.21 → 2.0.25
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/{Card.module-DHO64CIG.module.css → Card.module-HKJ5BQ2P.module.css} +1 -0
- package/dist/{DateRangePickerChevron.module-XDPDMPIS.module.css → DateRangePickerChevron.module-ABYY5R7C.module.css} +1 -1
- package/dist/{TableBody.module-NC227Z6Y.module.css → TableBody.module-VF3UEHUT.module.css} +5 -0
- package/dist/{chunk-4ARSQFIO.js → chunk-I3C4CT2H.js} +26 -28
- package/dist/chunk-I3C4CT2H.js.map +1 -0
- package/dist/{index-CywKouhv.d.ts → index-D70sAhnA.d.ts} +25 -27
- package/dist/index.d.ts +360 -316
- package/dist/index.js +2777 -2629
- package/dist/index.js.map +1 -1
- package/dist/styles.d.ts +1 -1
- package/dist/styles.js +1 -1
- package/dist/{tables.module-6FCRMCHA.module.css → tables.module-OHIGVUSC.module.css} +40 -13
- package/package.json +2 -1
- package/dist/chunk-4ARSQFIO.js.map +0 -1
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
|
|
2
|
+
import React__default, { FC, ReactElement, CSSProperties, 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-CywKouhv.js';
|
|
11
|
-
export { a as Styles, s as styles } from './index-CywKouhv.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
|
-
|
|
350
|
-
|
|
351
|
-
|
|
114
|
+
type HeatMapPropsDimension<T> = {
|
|
115
|
+
key: Extract<keyof T, string>;
|
|
116
|
+
label: string;
|
|
117
|
+
format?: (value: string) => string;
|
|
352
118
|
};
|
|
353
|
-
type
|
|
354
|
-
|
|
355
|
-
|
|
119
|
+
type HeatMapPropsMeasure<T> = {
|
|
120
|
+
key: Extract<keyof T, string>;
|
|
121
|
+
label: string;
|
|
122
|
+
format?: (value: number) => string;
|
|
356
123
|
};
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
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
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
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
|
|
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,55 @@ type PivotTableProps<T> = {
|
|
|
432
184
|
|
|
433
185
|
declare const PivotTable: FC<PivotTableProps<any>>;
|
|
434
186
|
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
format?: (value: string) => string;
|
|
187
|
+
declare const TableSortDirection: {
|
|
188
|
+
readonly ASC: "asc";
|
|
189
|
+
readonly DESC: "desc";
|
|
439
190
|
};
|
|
440
|
-
type
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
format?: (value: number) => string;
|
|
191
|
+
type TableSort<T> = {
|
|
192
|
+
id: keyof T;
|
|
193
|
+
direction: (typeof TableSortDirection)[keyof typeof TableSortDirection];
|
|
444
194
|
};
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
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
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
204
|
+
}) => React.ReactElement<HTMLTableCellElement>;
|
|
205
|
+
type TableHeaderCellStyle = (props: {
|
|
206
|
+
value: any;
|
|
207
|
+
className?: string;
|
|
208
|
+
}) => CSSProperties | undefined;
|
|
209
|
+
type TableHeaderItem<T> = {
|
|
210
|
+
id: keyof T;
|
|
211
|
+
title: React.ReactNode;
|
|
212
|
+
align?: TableHeaderItemAlign;
|
|
213
|
+
field?: keyof T;
|
|
214
|
+
minWidth?: CssSize;
|
|
215
|
+
sort?: TableSort<T>;
|
|
216
|
+
accessor?: (row: T) => React.ReactNode;
|
|
217
|
+
cell?: TableHeaderCell;
|
|
218
|
+
cellStyle?: TableHeaderCellStyle;
|
|
463
219
|
};
|
|
464
220
|
|
|
465
|
-
|
|
221
|
+
type TablePaginatedProps<T> = {
|
|
222
|
+
showIndex?: boolean;
|
|
223
|
+
className?: string;
|
|
224
|
+
headers: TableHeaderItem<T>[];
|
|
225
|
+
rows: T[];
|
|
226
|
+
page: number;
|
|
227
|
+
pageSize: number;
|
|
228
|
+
paginationLabel?: string;
|
|
229
|
+
total?: number;
|
|
230
|
+
sort?: TableSort<T>;
|
|
231
|
+
onRowIndexClick?: (rowIndex: number) => void;
|
|
232
|
+
onPageChange: (page: number) => void;
|
|
233
|
+
onSortChange?: (value: TableSort<T> | undefined) => void;
|
|
234
|
+
};
|
|
235
|
+
declare const TablePaginated: React$1.ForwardRefExoticComponent<TablePaginatedProps<any> & React$1.RefAttributes<HTMLDivElement>>;
|
|
466
236
|
|
|
467
237
|
type UseTableGetRowsPerPageProps = {
|
|
468
238
|
availableHeight: number;
|
|
@@ -472,13 +242,52 @@ type UseTableGetRowsPerPageProps = {
|
|
|
472
242
|
};
|
|
473
243
|
declare const useTableGetRowsPerPage: ({ availableHeight, headerHeight, rowHeight, footerHeight, }: UseTableGetRowsPerPageProps) => number;
|
|
474
244
|
|
|
475
|
-
|
|
476
|
-
|
|
245
|
+
type TableScrollableHandle = {
|
|
246
|
+
scrollToTop: (behavior?: ScrollBehavior) => void;
|
|
247
|
+
getScrollElement: () => HTMLDivElement | null;
|
|
248
|
+
};
|
|
249
|
+
type TableScrollableProps<T> = {
|
|
250
|
+
bottomDistanceToPrefetch?: number;
|
|
251
|
+
className?: string;
|
|
252
|
+
hasMoreData?: boolean;
|
|
253
|
+
headers: TableHeaderItem<T>[];
|
|
254
|
+
isLoading?: boolean;
|
|
255
|
+
loadingLabel?: string;
|
|
256
|
+
rows: T[];
|
|
257
|
+
showIndex?: boolean;
|
|
258
|
+
sort?: TableSort<T>;
|
|
259
|
+
onNextPage: () => void;
|
|
260
|
+
onRowIndexClick?: (rowIndex: number) => void;
|
|
261
|
+
onSortChange?: (value: TableSort<T> | undefined) => void;
|
|
262
|
+
};
|
|
263
|
+
declare const TableScrollable: React$1.ForwardRefExoticComponent<TableScrollableProps<any> & React$1.RefAttributes<TableScrollableHandle>>;
|
|
264
|
+
|
|
265
|
+
type TableBodyProps<T> = Pick<TablePaginatedProps<T>, 'showIndex' | 'headers' | 'rows' | 'onRowIndexClick'> & {
|
|
266
|
+
pageSize?: number;
|
|
267
|
+
page?: number;
|
|
268
|
+
bottomRef?: RefObject<HTMLDivElement | null>;
|
|
269
|
+
isLoading?: boolean;
|
|
270
|
+
hasMoreData?: boolean;
|
|
271
|
+
};
|
|
272
|
+
declare const TableBody: <T>({ headers, rows, pageSize, page, showIndex, onRowIndexClick, bottomRef, isLoading, hasMoreData, }: TableBodyProps<T>) => react_jsx_runtime.JSX.Element;
|
|
273
|
+
type TableBodyCellWithCopyProps = {
|
|
274
|
+
value: string;
|
|
275
|
+
align?: TableHeaderItemAlign;
|
|
276
|
+
children: React.ReactNode;
|
|
277
|
+
style?: CSSProperties | undefined;
|
|
278
|
+
};
|
|
279
|
+
declare const TableBodyCellWithCopy: FC<TableBodyCellWithCopyProps>;
|
|
280
|
+
|
|
281
|
+
type TableHeaderProps<T> = Pick<TablePaginatedProps<T>, 'showIndex' | 'headers' | 'sort' | 'onSortChange'>;
|
|
282
|
+
declare const TableHeader: <T>({ headers, sort, showIndex, onSortChange, }: TableHeaderProps<T>) => react_jsx_runtime.JSX.Element;
|
|
477
283
|
|
|
478
284
|
type TablePaginationProps = Pick<TablePaginatedProps<unknown>, 'page' | 'pageSize' | 'paginationLabel' | 'total' | 'onPageChange'>;
|
|
479
285
|
declare const getTableTotalPages: (total: number | undefined, pageSize: number) => number | undefined;
|
|
480
286
|
declare const TablePagination: FC<TablePaginationProps>;
|
|
481
287
|
|
|
288
|
+
declare const getChartColors: () => string[];
|
|
289
|
+
declare const getChartContrastColors: () => string[];
|
|
290
|
+
|
|
482
291
|
declare const getChartjsAxisOptionsPlugins: () => Partial<ChartOptions["plugins"]>;
|
|
483
292
|
declare const getChartjsAxisOptionsScalesTicksDefault: () => Partial<CartesianTickOptions>;
|
|
484
293
|
declare const getChartjsAxisOptionsScalesTicksMuted: () => Partial<CartesianTickOptions>;
|
|
@@ -489,14 +298,153 @@ declare const getChartjsAxisOptions: () => Partial<ChartOptions>;
|
|
|
489
298
|
declare const chartjsAxisOptionsLayoutPadding: number;
|
|
490
299
|
declare const getChartjsAxisOptionsScalesGridColor: (ctx: any) => string | undefined;
|
|
491
300
|
|
|
492
|
-
|
|
493
|
-
|
|
301
|
+
type DateRangePickerProps = {
|
|
302
|
+
numberOfMonths?: number;
|
|
303
|
+
locale?: string;
|
|
304
|
+
value?: DateRange;
|
|
305
|
+
onChange: (dateRange: DateRange | undefined) => void;
|
|
306
|
+
};
|
|
307
|
+
declare const DateRangePicker: React__default.FC<DateRangePickerProps>;
|
|
494
308
|
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
309
|
+
type FieldHeaderProps = {
|
|
310
|
+
className?: string;
|
|
311
|
+
label?: string;
|
|
312
|
+
required?: boolean;
|
|
313
|
+
requiredLabel?: string;
|
|
314
|
+
};
|
|
315
|
+
declare const FieldHeader: ({ label, required, requiredLabel, className, }: FieldHeaderProps) => react_jsx_runtime.JSX.Element | null;
|
|
498
316
|
|
|
499
|
-
|
|
317
|
+
type DateRangePickerFieldProps = {
|
|
318
|
+
displayValue?: string;
|
|
319
|
+
startIcon?: React.ComponentType<IconProps>;
|
|
320
|
+
placeholder?: string;
|
|
321
|
+
disabled?: boolean;
|
|
322
|
+
error?: boolean;
|
|
323
|
+
errorMessage?: string;
|
|
324
|
+
clearable?: boolean;
|
|
325
|
+
onChange: (dateRange: DateRange | undefined) => void;
|
|
326
|
+
submitLabel?: string;
|
|
327
|
+
} & FieldHeaderProps & DateRangePickerProps;
|
|
328
|
+
declare const DateRangePickerField: FC<DateRangePickerFieldProps>;
|
|
329
|
+
|
|
330
|
+
type InputFieldProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
|
|
331
|
+
value?: string;
|
|
332
|
+
placeholder?: string;
|
|
333
|
+
startIcon?: React.ComponentType<IconProps>;
|
|
334
|
+
endIcon?: React.ComponentType<IconProps>;
|
|
335
|
+
onChange: (value: string) => void;
|
|
336
|
+
clearable?: boolean;
|
|
337
|
+
error?: boolean;
|
|
338
|
+
errorMessage?: string;
|
|
339
|
+
} & FieldHeaderProps;
|
|
340
|
+
|
|
341
|
+
declare const NumberField: React$1.ForwardRefExoticComponent<Omit<InputFieldProps, "value" | "onChange"> & {
|
|
342
|
+
value?: number | null;
|
|
343
|
+
step?: number;
|
|
344
|
+
min?: number;
|
|
345
|
+
max?: number;
|
|
346
|
+
onChange?: (value: number | null) => void;
|
|
347
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
348
|
+
|
|
349
|
+
declare const TextField: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange"> & {
|
|
350
|
+
value?: string;
|
|
351
|
+
placeholder?: string;
|
|
352
|
+
startIcon?: React.ComponentType<_tabler_icons_react.IconProps>;
|
|
353
|
+
endIcon?: React.ComponentType<_tabler_icons_react.IconProps>;
|
|
354
|
+
onChange: (value: string) => void;
|
|
355
|
+
clearable?: boolean;
|
|
356
|
+
error?: boolean;
|
|
357
|
+
errorMessage?: string;
|
|
358
|
+
} & FieldHeaderProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
359
|
+
|
|
360
|
+
type SelectListOptionIcon = React.ReactElement<SVGProps<SVGSVGElement>> | React.ReactElement<ImgHTMLAttributes<HTMLImageElement>>;
|
|
361
|
+
type SelectListOptionProps = {
|
|
362
|
+
value?: string;
|
|
363
|
+
isSelected?: boolean;
|
|
364
|
+
label: string;
|
|
365
|
+
rightLabel?: string;
|
|
366
|
+
startIcon?: SelectListOptionIcon;
|
|
367
|
+
endIcon?: SelectListOptionIcon;
|
|
368
|
+
disabled?: boolean;
|
|
369
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
370
|
+
};
|
|
371
|
+
type SelectListOptionPropsWithCategory = SelectListOptionProps & {
|
|
372
|
+
category: string;
|
|
373
|
+
};
|
|
374
|
+
declare const SelectListOption: FC<SelectListOptionProps>;
|
|
375
|
+
|
|
376
|
+
type MultiSelectFieldProps = {
|
|
377
|
+
startIcon?: React.ComponentType<IconProps>;
|
|
378
|
+
disabled?: boolean;
|
|
379
|
+
isClearable?: boolean;
|
|
380
|
+
isLoading?: boolean;
|
|
381
|
+
isSearchable?: boolean;
|
|
382
|
+
noOptionsMessage?: string;
|
|
383
|
+
options: (SelectListOptionProps | SelectListOptionPropsWithCategory)[];
|
|
384
|
+
placeholder?: string;
|
|
385
|
+
submitLabel?: string;
|
|
386
|
+
values?: string[];
|
|
387
|
+
onChange: (value: string[]) => void;
|
|
388
|
+
onSearch?: (search: string) => void;
|
|
389
|
+
error?: boolean;
|
|
390
|
+
errorMessage?: string;
|
|
391
|
+
} & FieldHeaderProps;
|
|
392
|
+
declare const MultiSelectField: FC<MultiSelectFieldProps>;
|
|
393
|
+
|
|
394
|
+
type SingleSelectFieldProps = {
|
|
395
|
+
options: (SelectListOptionProps | SelectListOptionPropsWithCategory)[];
|
|
396
|
+
startIcon?: React.ComponentType<IconProps>;
|
|
397
|
+
value?: string;
|
|
398
|
+
disabled?: boolean;
|
|
399
|
+
placeholder?: string;
|
|
400
|
+
searchable?: boolean;
|
|
401
|
+
clearable?: boolean;
|
|
402
|
+
isLoading?: boolean;
|
|
403
|
+
noOptionsMessage?: string;
|
|
404
|
+
onChange: (value: string) => void;
|
|
405
|
+
onSearch?: (search: string) => void;
|
|
406
|
+
error?: boolean;
|
|
407
|
+
errorMessage?: string;
|
|
408
|
+
} & FieldHeaderProps;
|
|
409
|
+
declare const SingleSelectField: FC<SingleSelectFieldProps>;
|
|
410
|
+
|
|
411
|
+
type SelectFieldContentProps = {
|
|
412
|
+
children: ReactNode;
|
|
413
|
+
autoFocus?: boolean;
|
|
414
|
+
className?: string;
|
|
415
|
+
fitContent?: boolean;
|
|
416
|
+
};
|
|
417
|
+
declare const SelectFieldContent: FC<SelectFieldContentProps>;
|
|
418
|
+
type SelectFieldContentListProps = {
|
|
419
|
+
children: React.ReactNode;
|
|
420
|
+
autoFocus?: boolean;
|
|
421
|
+
className?: string;
|
|
422
|
+
disabled?: boolean;
|
|
423
|
+
};
|
|
424
|
+
declare const SelectFieldContentList: FC<SelectFieldContentListProps>;
|
|
425
|
+
|
|
426
|
+
type SelectFieldCategoryProps = {
|
|
427
|
+
label: string;
|
|
428
|
+
};
|
|
429
|
+
declare const SelectFieldCategory: FC<SelectFieldCategoryProps>;
|
|
430
|
+
|
|
431
|
+
declare const SelectFieldTrigger: React$1.ForwardRefExoticComponent<React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
432
|
+
startIcon?: React.ComponentType<IconProps>;
|
|
433
|
+
valueLabel?: string;
|
|
434
|
+
placeholder?: string;
|
|
435
|
+
isClearable?: boolean;
|
|
436
|
+
isLoading?: boolean;
|
|
437
|
+
onClear?: () => void;
|
|
438
|
+
error?: boolean;
|
|
439
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
440
|
+
|
|
441
|
+
type SwitchProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
|
|
442
|
+
onChange?: (checked: boolean) => void;
|
|
443
|
+
disabled?: boolean;
|
|
444
|
+
className?: string;
|
|
445
|
+
label?: string;
|
|
446
|
+
};
|
|
447
|
+
declare const Switch: React__default.FC<SwitchProps>;
|
|
500
448
|
|
|
501
449
|
declare function useDebounce<T extends (...args: any[]) => void>(fn: T, delay?: number): (...args: Parameters<T>) => void;
|
|
502
450
|
|
|
@@ -506,4 +454,100 @@ type Size = {
|
|
|
506
454
|
};
|
|
507
455
|
declare const useResizeObserver: <T extends HTMLElement>(elRef: React.RefObject<T | null>, timeout?: number) => Size;
|
|
508
456
|
|
|
509
|
-
|
|
457
|
+
type ActionIconProps = {
|
|
458
|
+
className?: string;
|
|
459
|
+
icon: React__default.ComponentType<IconProps>;
|
|
460
|
+
} & React__default.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
461
|
+
declare const ActionIcon: React__default.FC<ActionIconProps>;
|
|
462
|
+
|
|
463
|
+
type ButtonProps = {
|
|
464
|
+
startIcon?: React.ComponentType<IconProps>;
|
|
465
|
+
endIcon?: React.ComponentType<IconProps>;
|
|
466
|
+
children: string;
|
|
467
|
+
size?: 'small' | 'medium';
|
|
468
|
+
variant?: 'primary' | 'secondary';
|
|
469
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
470
|
+
declare const Button: React.FC<ButtonProps>;
|
|
471
|
+
|
|
472
|
+
type ButtonIconProps = {
|
|
473
|
+
variant?: 'primary' | 'secondary';
|
|
474
|
+
size?: 'small' | 'medium';
|
|
475
|
+
icon: React__default.ComponentType<IconProps>;
|
|
476
|
+
} & React__default.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
477
|
+
declare const ButtonIcon: React__default.FC<ButtonIconProps>;
|
|
478
|
+
|
|
479
|
+
declare const Card: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & {
|
|
480
|
+
children?: React__default.ReactNode;
|
|
481
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
482
|
+
type CardHeaderProps = {
|
|
483
|
+
title?: string;
|
|
484
|
+
subtitle?: string;
|
|
485
|
+
rightContent?: React__default.ReactNode;
|
|
486
|
+
};
|
|
487
|
+
declare const CardHeader: React__default.FC<CardHeaderProps>;
|
|
488
|
+
type CardContentProps = {
|
|
489
|
+
children: React__default.ReactNode;
|
|
490
|
+
};
|
|
491
|
+
declare const CardContent: React__default.ForwardRefExoticComponent<CardContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
492
|
+
|
|
493
|
+
type CardFeedbackProps = {
|
|
494
|
+
className?: string;
|
|
495
|
+
icon?: React.ComponentType<IconProps>;
|
|
496
|
+
title: string;
|
|
497
|
+
message: string;
|
|
498
|
+
variant?: 'error' | 'info';
|
|
499
|
+
};
|
|
500
|
+
declare const CardFeedback: React.FC<CardFeedbackProps>;
|
|
501
|
+
|
|
502
|
+
type DropdownProps = {
|
|
503
|
+
triggerComponent: React.ReactNode;
|
|
504
|
+
children: React.ReactNode;
|
|
505
|
+
disabled?: boolean;
|
|
506
|
+
open?: boolean;
|
|
507
|
+
side?: React.ComponentProps<typeof DropdownMenu.Content>['side'];
|
|
508
|
+
align?: React.ComponentProps<typeof DropdownMenu.Content>['align'];
|
|
509
|
+
onOpenChange?: (open: boolean) => void;
|
|
510
|
+
};
|
|
511
|
+
declare const Dropdown: FC<DropdownProps>;
|
|
512
|
+
|
|
513
|
+
type FieldFeedbackProps = {
|
|
514
|
+
message: string;
|
|
515
|
+
variant?: 'error';
|
|
516
|
+
className?: string;
|
|
517
|
+
};
|
|
518
|
+
declare const FieldFeedback: FC<FieldFeedbackProps>;
|
|
519
|
+
|
|
520
|
+
type GhostButtonProps = {
|
|
521
|
+
startIcon?: Icon;
|
|
522
|
+
endIcon?: Icon;
|
|
523
|
+
} & React__default.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
524
|
+
declare const GhostButton: React__default.FC<GhostButtonProps>;
|
|
525
|
+
|
|
526
|
+
type OverlayProps = {
|
|
527
|
+
className?: string;
|
|
528
|
+
children?: ReactNode;
|
|
529
|
+
};
|
|
530
|
+
declare const Overlay: FC<OverlayProps>;
|
|
531
|
+
|
|
532
|
+
declare const Skeleton: () => react_jsx_runtime.JSX.Element;
|
|
533
|
+
|
|
534
|
+
type TypographyElement = 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label' | 'div';
|
|
535
|
+
type TypographyProps = {
|
|
536
|
+
children: React__default.ReactNode;
|
|
537
|
+
as?: TypographyElement;
|
|
538
|
+
className?: string;
|
|
539
|
+
title?: string;
|
|
540
|
+
style?: React__default.CSSProperties;
|
|
541
|
+
};
|
|
542
|
+
declare function Typography({ children, as: Component, className, style, title, }: TypographyProps): React__default.JSX.Element;
|
|
543
|
+
|
|
544
|
+
declare const getStyle: (variableName: StylesKeys, fallbackValue?: string) => string;
|
|
545
|
+
declare const getStyleNumber: (variableName: StylesKeys, fallbackValue?: string) => number | undefined;
|
|
546
|
+
|
|
547
|
+
declare const isSameDate: (a?: Date, b?: Date) => boolean;
|
|
548
|
+
declare const isSameDateRange: (a?: DateRange, b?: DateRange) => boolean;
|
|
549
|
+
declare const endOfDayUTC: (date: Date) => Date;
|
|
550
|
+
|
|
551
|
+
declare const shallowEqual: (object1: any, object2: any) => boolean;
|
|
552
|
+
|
|
553
|
+
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 TableHeaderCellStyle, 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 };
|