@lucasvu/scope-ui 0.0.1
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/README.md +394 -0
- package/dist/index.cjs +6587 -0
- package/dist/index.d.cts +842 -0
- package/dist/index.d.ts +842 -0
- package/dist/index.js +6516 -0
- package/dist/styles.css +13 -0
- package/package.json +50 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,842 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode, CSSProperties, SVGProps, ButtonHTMLAttributes, InputHTMLAttributes, HTMLAttributes, FormHTMLAttributes, LabelHTMLAttributes, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, RefObject, ElementType } from 'react';
|
|
3
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
7
|
+
|
|
8
|
+
type ComponentSize = 'sm' | 'md' | 'lg';
|
|
9
|
+
interface SharedComponentProps {
|
|
10
|
+
label?: ReactNode;
|
|
11
|
+
helperText?: ReactNode;
|
|
12
|
+
errorMessage?: ReactNode;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
size?: ComponentSize;
|
|
16
|
+
className?: string;
|
|
17
|
+
style?: CSSProperties;
|
|
18
|
+
}
|
|
19
|
+
declare const spinnerSizes: Record<'xs' | 'sm' | 'md' | 'lg', string>;
|
|
20
|
+
interface LoadingSpinnerProps extends SVGProps<SVGSVGElement> {
|
|
21
|
+
size?: keyof typeof spinnerSizes;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare const alertVariants: (props?: ({
|
|
25
|
+
variant?: "default" | "info" | "success" | "warning" | "destructive" | null | undefined;
|
|
26
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
27
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
28
|
+
type AlertVariant = NonNullable<VariantProps<typeof alertVariants>['variant']>;
|
|
29
|
+
type AlertTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
30
|
+
interface AlertProps extends SharedComponentProps {
|
|
31
|
+
description?: ReactNode;
|
|
32
|
+
icon?: ReactNode;
|
|
33
|
+
tone?: AlertTone;
|
|
34
|
+
variant?: AlertVariant;
|
|
35
|
+
title?: ReactNode;
|
|
36
|
+
children?: ReactNode;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Status-aware alert panel with selectable variants, helper text, and optional iconography.
|
|
40
|
+
* @remarks
|
|
41
|
+
* Use `variant` (default/info/success/warning/destructive) and `size` (sm/md/lg) to tune the tone, show `description` or `helperText`, and decorate with a spinner via `loading`.
|
|
42
|
+
*/
|
|
43
|
+
declare const Alert: react.ForwardRefExoticComponent<AlertProps & react.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
|
|
45
|
+
declare const badgeVariants: (props?: ({
|
|
46
|
+
variant?: "success" | "warning" | "destructive" | "solid" | "outline" | null | undefined;
|
|
47
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
48
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
49
|
+
type BadgeVariant = VariantProps<typeof badgeVariants>['variant'];
|
|
50
|
+
interface BadgeProps extends SharedComponentProps {
|
|
51
|
+
variant?: BadgeVariant;
|
|
52
|
+
text?: ReactNode;
|
|
53
|
+
children?: ReactNode;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Compact badge that communicates status or metadata with variant styling and optional loading state.
|
|
57
|
+
* @remarks
|
|
58
|
+
* Choose `variant` (solid/outline/success/warning/destructive) and `size` (sm/md/lg), add helper text, and optionally display `loading` or `disabled` states.
|
|
59
|
+
*/
|
|
60
|
+
declare function Badge({ variant, size, label, helperText, errorMessage, loading, disabled, className, style, text, children, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
61
|
+
|
|
62
|
+
type BreadcrumbItem = {
|
|
63
|
+
label: ReactNode;
|
|
64
|
+
onClick?: () => void;
|
|
65
|
+
href?: string;
|
|
66
|
+
current?: boolean;
|
|
67
|
+
};
|
|
68
|
+
type BreadcrumbProps = {
|
|
69
|
+
items: BreadcrumbItem[];
|
|
70
|
+
className?: string;
|
|
71
|
+
separator?: ReactNode;
|
|
72
|
+
};
|
|
73
|
+
declare function Breadcrumb({ items, className, separator, }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
74
|
+
|
|
75
|
+
declare const buttonVariants$1: (props?: ({
|
|
76
|
+
variant?: "link" | "default" | "destructive" | "outline" | "confirm" | "secondary" | "ghost" | "create" | null | undefined;
|
|
77
|
+
size?: "sm" | "md" | "lg" | "icon" | null | undefined;
|
|
78
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
79
|
+
type ButtonVariant$1 = VariantProps<typeof buttonVariants$1>['variant'];
|
|
80
|
+
type ButtonSize$1 = 'sm' | 'md' | 'lg' | 'icon';
|
|
81
|
+
interface ButtonProps$1 extends Omit<SharedComponentProps, 'size'>, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'size' | 'className'> {
|
|
82
|
+
variant?: ButtonVariant$1;
|
|
83
|
+
size?: ButtonSize$1;
|
|
84
|
+
startIcon?: ReactNode;
|
|
85
|
+
endIcon?: ReactNode;
|
|
86
|
+
children?: ReactNode;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Primary action button with shadcn-inspired variants, helper text, and optional loading rewards.
|
|
90
|
+
* @remarks
|
|
91
|
+
* Support `variant` (default/destructive/outline/secondary/ghost/link) and `size` (sm/md/lg), adorn with icons, and surface helper or error text without needing custom wrappers.
|
|
92
|
+
*/
|
|
93
|
+
declare const Button$1: react.ForwardRefExoticComponent<ButtonProps$1 & react.RefAttributes<HTMLButtonElement>>;
|
|
94
|
+
|
|
95
|
+
declare const inputVariants$1: (props?: ({
|
|
96
|
+
variant?: "default" | "outline" | "ghost" | null | undefined;
|
|
97
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
98
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
99
|
+
type InputVariant$1 = VariantProps<typeof inputVariants$1>['variant'];
|
|
100
|
+
interface InputProps$1 extends SharedComponentProps, Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'size' | 'prefix'> {
|
|
101
|
+
variant?: InputVariant$1;
|
|
102
|
+
prefix?: ReactNode;
|
|
103
|
+
suffix?: ReactNode;
|
|
104
|
+
inputClassName?: string;
|
|
105
|
+
onValueChange?: (value: string) => void;
|
|
106
|
+
showPasswordToggle?: boolean;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Accessible input surface with shadcn styling, optional prefix/suffix, and helpers for feedback.
|
|
110
|
+
* @remarks
|
|
111
|
+
* Swap `variant` (default/ghost/outline) and `size` (sm/md/lg), keep adornments with `prefix`/`suffix`, display helper/error text, and show a spinner via `loading`.
|
|
112
|
+
*/
|
|
113
|
+
declare const Input$1: react.ForwardRefExoticComponent<InputProps$1 & react.RefAttributes<HTMLInputElement>>;
|
|
114
|
+
|
|
115
|
+
type FormatOnBlur = 'trim' | 'fixed' | 'none';
|
|
116
|
+
type NumericMode = 'integer' | 'decimal';
|
|
117
|
+
type DecimalSeparator = '.' | ',' | 'auto';
|
|
118
|
+
|
|
119
|
+
interface NumericInputProps extends Omit<InputProps$1, 'type' | 'inputMode' | 'value' | 'defaultValue' | 'onChange' | 'onValueChange'>, Pick<InputHTMLAttributes<HTMLInputElement>, 'onBlur' | 'onFocus' | 'name'> {
|
|
120
|
+
value?: string | number;
|
|
121
|
+
defaultValue?: string | number;
|
|
122
|
+
onValueChange?: (raw: string) => void;
|
|
123
|
+
onNumberChange?: (num: number | null) => void;
|
|
124
|
+
mode?: NumericMode;
|
|
125
|
+
decimalScale?: number;
|
|
126
|
+
maxDecimalScale?: number;
|
|
127
|
+
scale?: number;
|
|
128
|
+
min?: number;
|
|
129
|
+
max?: number;
|
|
130
|
+
allowNegative?: boolean;
|
|
131
|
+
decimalSeparator?: DecimalSeparator;
|
|
132
|
+
formatOnBlur?: FormatOnBlur;
|
|
133
|
+
clampOnBlur?: boolean;
|
|
134
|
+
}
|
|
135
|
+
declare const NumericInput: react.ForwardRefExoticComponent<NumericInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
136
|
+
|
|
137
|
+
declare function Card$1({ className, ...props }: react.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
138
|
+
declare function CardHeader$1({ className, ...props }: react.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
139
|
+
declare function CardTitle$1({ className, ...props }: react.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
140
|
+
declare function CardDescription$1({ className, ...props }: react.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
141
|
+
declare function CardAction$1({ className, ...props }: react.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
142
|
+
declare function CardContent$1({ className, ...props }: react.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
143
|
+
declare function CardFooter$1({ className, ...props }: react.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
144
|
+
|
|
145
|
+
type ComboboxOption$2 = {
|
|
146
|
+
label: string;
|
|
147
|
+
value: string | number;
|
|
148
|
+
description?: string;
|
|
149
|
+
searchValue?: string;
|
|
150
|
+
disabled?: boolean;
|
|
151
|
+
};
|
|
152
|
+
interface ComboboxProps$1 extends SharedComponentProps {
|
|
153
|
+
options: ComboboxOption$2[];
|
|
154
|
+
value?: string | number;
|
|
155
|
+
placeholder?: string;
|
|
156
|
+
onChange?: (value: ComboboxOption$2['value']) => void;
|
|
157
|
+
onInputChange?: (value: string) => void;
|
|
158
|
+
loading?: boolean;
|
|
159
|
+
disabled?: boolean;
|
|
160
|
+
searchPlaceholder?: string;
|
|
161
|
+
helperId?: string;
|
|
162
|
+
errorId?: string;
|
|
163
|
+
allowClear?: boolean;
|
|
164
|
+
onClear?: () => void;
|
|
165
|
+
portal?: boolean;
|
|
166
|
+
}
|
|
167
|
+
declare const Combobox$1: react.ForwardRefExoticComponent<ComboboxProps$1 & react.RefAttributes<HTMLInputElement>>;
|
|
168
|
+
|
|
169
|
+
type ComboboxOption$1 = {
|
|
170
|
+
label: string;
|
|
171
|
+
value: string | number;
|
|
172
|
+
description?: string;
|
|
173
|
+
searchValue?: string;
|
|
174
|
+
disabled?: boolean;
|
|
175
|
+
};
|
|
176
|
+
interface AsyncComboboxProps extends SharedComponentProps {
|
|
177
|
+
options: ComboboxOption$1[];
|
|
178
|
+
value?: string | number;
|
|
179
|
+
placeholder?: string;
|
|
180
|
+
onChange?: (value: ComboboxOption$1['value']) => void;
|
|
181
|
+
onInputChange?: (value: string) => void;
|
|
182
|
+
onInputFocus?: () => void;
|
|
183
|
+
onScrollEnd?: () => void;
|
|
184
|
+
loading?: boolean;
|
|
185
|
+
disabled?: boolean;
|
|
186
|
+
searchPlaceholder?: string;
|
|
187
|
+
helperId?: string;
|
|
188
|
+
errorId?: string;
|
|
189
|
+
allowClear?: boolean;
|
|
190
|
+
onClear?: () => void;
|
|
191
|
+
portal?: boolean;
|
|
192
|
+
}
|
|
193
|
+
declare const AsyncCombobox: react.ForwardRefExoticComponent<AsyncComboboxProps & react.RefAttributes<HTMLInputElement>>;
|
|
194
|
+
|
|
195
|
+
type MultiSelectOption = {
|
|
196
|
+
label: string;
|
|
197
|
+
value: string | number;
|
|
198
|
+
disabled?: boolean;
|
|
199
|
+
searchValue?: string;
|
|
200
|
+
};
|
|
201
|
+
interface MultiSelectProps extends SharedComponentProps {
|
|
202
|
+
options: MultiSelectOption[];
|
|
203
|
+
value?: Array<MultiSelectOption['value']>;
|
|
204
|
+
placeholder?: string;
|
|
205
|
+
onChange?: (value: Array<MultiSelectOption['value']>) => void;
|
|
206
|
+
onSearch?: (value: string) => void;
|
|
207
|
+
loading?: boolean;
|
|
208
|
+
disabled?: boolean;
|
|
209
|
+
searchable?: boolean;
|
|
210
|
+
searchPlaceholder?: string;
|
|
211
|
+
}
|
|
212
|
+
declare const MultiSelect: react.ForwardRefExoticComponent<MultiSelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Vertical form wrapper that keeps consistent spacing between fields.
|
|
216
|
+
* @remarks
|
|
217
|
+
* Extend `className` or pass native form props while maintaining consistent letter spacing for each child row.
|
|
218
|
+
*/
|
|
219
|
+
declare function Form({ className, ...props }: FormHTMLAttributes<HTMLFormElement>): react_jsx_runtime.JSX.Element;
|
|
220
|
+
interface FormFieldProps extends HTMLAttributes<HTMLDivElement> {
|
|
221
|
+
children: ReactNode;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Grid-aligned form field wrapper for label/control/description clusters.
|
|
225
|
+
*/
|
|
226
|
+
declare const FormField: react.ForwardRefExoticComponent<FormFieldProps & react.RefAttributes<HTMLDivElement>>;
|
|
227
|
+
/**
|
|
228
|
+
* Container for a single form item to stack label, control, and messages vertically.
|
|
229
|
+
*/
|
|
230
|
+
declare const FormItem: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
231
|
+
/**
|
|
232
|
+
* Styled label with strong typography and surface-aware coloring.
|
|
233
|
+
*/
|
|
234
|
+
declare const FormLabel: react.ForwardRefExoticComponent<LabelHTMLAttributes<HTMLLabelElement> & react.RefAttributes<HTMLLabelElement>>;
|
|
235
|
+
/**
|
|
236
|
+
* Flex container that aligns inputs and accessory controls horizontally.
|
|
237
|
+
*/
|
|
238
|
+
declare const FormControl: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
239
|
+
/**
|
|
240
|
+
* Neutral description text for a form field.
|
|
241
|
+
*/
|
|
242
|
+
declare const FormDescription: react.ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & react.RefAttributes<HTMLParagraphElement>>;
|
|
243
|
+
/**
|
|
244
|
+
* Inline error message text for destructive validation states.
|
|
245
|
+
*/
|
|
246
|
+
declare const FormMessage: react.ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & react.RefAttributes<HTMLParagraphElement>>;
|
|
247
|
+
|
|
248
|
+
type Option = {
|
|
249
|
+
label: ReactNode;
|
|
250
|
+
value: string | number;
|
|
251
|
+
disabled?: boolean;
|
|
252
|
+
};
|
|
253
|
+
declare const triggerVariants$1: (props?: ({
|
|
254
|
+
variant?: "default" | "outline" | "ghost" | null | undefined;
|
|
255
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
256
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
257
|
+
type SelectVariant$1 = VariantProps<typeof triggerVariants$1>['variant'];
|
|
258
|
+
interface SelectProps extends SharedComponentProps, Omit<SelectPrimitive.SelectProps, 'defaultValue' | 'value' | 'children' | 'onValueChange'> {
|
|
259
|
+
options: Option[];
|
|
260
|
+
value?: string | number;
|
|
261
|
+
defaultValue?: string | number;
|
|
262
|
+
placeholder?: string;
|
|
263
|
+
onChange?: (value: Option['value']) => void;
|
|
264
|
+
variant?: SelectVariant$1;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Select field powered by Radix primitives with customizable trigger variants and accessible helpers.
|
|
268
|
+
* @remarks
|
|
269
|
+
* Provide `options`, manage `value`/`defaultValue`, and style via `variant` (default/outline/ghost) plus `size` (sm/md/lg); show helper/error text and `loading`.
|
|
270
|
+
*/
|
|
271
|
+
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
272
|
+
|
|
273
|
+
type SearchableSelectOption = {
|
|
274
|
+
label: ReactNode;
|
|
275
|
+
value: string | number;
|
|
276
|
+
disabled?: boolean;
|
|
277
|
+
searchValue?: string;
|
|
278
|
+
};
|
|
279
|
+
declare const triggerVariants: (props?: ({
|
|
280
|
+
variant?: "default" | "outline" | "ghost" | null | undefined;
|
|
281
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
282
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
283
|
+
type SelectVariant = VariantProps<typeof triggerVariants>['variant'];
|
|
284
|
+
interface SearchableSelectProps extends SharedComponentProps, Omit<SelectPrimitive.SelectProps, 'defaultValue' | 'value' | 'children' | 'onValueChange'> {
|
|
285
|
+
options: SearchableSelectOption[];
|
|
286
|
+
value?: string | number;
|
|
287
|
+
defaultValue?: string | number;
|
|
288
|
+
placeholder?: string;
|
|
289
|
+
onChange?: (value: SearchableSelectOption['value']) => void;
|
|
290
|
+
variant?: SelectVariant;
|
|
291
|
+
onSearch?: (query: string) => void;
|
|
292
|
+
loading?: boolean;
|
|
293
|
+
size?: 'sm' | 'md' | 'lg';
|
|
294
|
+
searchPlaceholder?: string;
|
|
295
|
+
}
|
|
296
|
+
declare const SearchableSelect: react.ForwardRefExoticComponent<SearchableSelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
297
|
+
|
|
298
|
+
type Trend = 'up' | 'down' | 'flat';
|
|
299
|
+
interface StatProps extends SharedComponentProps {
|
|
300
|
+
value: ReactNode;
|
|
301
|
+
helper?: ReactNode;
|
|
302
|
+
delta?: ReactNode;
|
|
303
|
+
trend?: Trend;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Metric card that exposes a primary `value`, optional `delta`, and severity-aware `trend` indicator.
|
|
307
|
+
* @remarks
|
|
308
|
+
* Accepts `size` (sm/md/lg), shows `helper` or helper text, and can render `loading`/`disabled` states while aligning helper/error messaging.
|
|
309
|
+
*/
|
|
310
|
+
declare function Stat({ label, value, helper, delta, trend, helperText, errorMessage, loading, disabled, size, className, style, }: StatProps): react_jsx_runtime.JSX.Element;
|
|
311
|
+
|
|
312
|
+
type DataTableSortDirection$1 = 'asc' | 'desc';
|
|
313
|
+
type DataTableAlign$1 = 'left' | 'center' | 'right';
|
|
314
|
+
type DataTableSortState$1 = {
|
|
315
|
+
key: string;
|
|
316
|
+
direction: DataTableSortDirection$1;
|
|
317
|
+
};
|
|
318
|
+
type DataTableColumn$1<T> = {
|
|
319
|
+
key: string;
|
|
320
|
+
title: ReactNode;
|
|
321
|
+
dataIndex?: keyof T;
|
|
322
|
+
width?: number | string;
|
|
323
|
+
render?: (value: T[keyof T] | undefined, record: T, index: number) => ReactNode;
|
|
324
|
+
sortable?: boolean;
|
|
325
|
+
sorter?: (a: T, b: T) => number;
|
|
326
|
+
sortValue?: (record: T) => string | number | Date | null | undefined;
|
|
327
|
+
headerAlign?: DataTableAlign$1;
|
|
328
|
+
cellAlign?: DataTableAlign$1;
|
|
329
|
+
};
|
|
330
|
+
type DataTablePagination$1 = {
|
|
331
|
+
page: number;
|
|
332
|
+
pageSize: number;
|
|
333
|
+
total: number;
|
|
334
|
+
onChange: (page: number) => void;
|
|
335
|
+
pageSizeOptions?: number[];
|
|
336
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
337
|
+
};
|
|
338
|
+
type RowKey$1 = string | number;
|
|
339
|
+
type DataTableRowSelection$1 = {
|
|
340
|
+
selectedRowKeys: Array<RowKey$1>;
|
|
341
|
+
onChange: (selectedRowKeys: Array<RowKey$1>) => void;
|
|
342
|
+
};
|
|
343
|
+
type DataTableProps$1<T> = {
|
|
344
|
+
columns: Array<DataTableColumn$1<T>>;
|
|
345
|
+
data: T[];
|
|
346
|
+
rowKey: keyof T | ((record: T) => RowKey$1);
|
|
347
|
+
loading?: boolean;
|
|
348
|
+
emptyText?: ReactNode;
|
|
349
|
+
pagination?: DataTablePagination$1;
|
|
350
|
+
sort?: DataTableSortState$1 | null;
|
|
351
|
+
onSortChange?: (sort: DataTableSortState$1 | null) => void;
|
|
352
|
+
sortMode?: 'client' | 'server';
|
|
353
|
+
onRowClick?: (record: T) => void;
|
|
354
|
+
rowSelection?: DataTableRowSelection$1;
|
|
355
|
+
renderActions?: (record: T) => ReactNode;
|
|
356
|
+
className?: string;
|
|
357
|
+
headerAlign?: DataTableAlign$1;
|
|
358
|
+
cellAlign?: DataTableAlign$1;
|
|
359
|
+
stickyOffset?: number;
|
|
360
|
+
/** When false, table container does not scroll (overflow-visible). Default true. */
|
|
361
|
+
scrollable?: boolean;
|
|
362
|
+
};
|
|
363
|
+
declare function DataTable$1<T>({ columns, data, rowKey, loading, emptyText, pagination, sort, onSortChange, sortMode, onRowClick, rowSelection, renderActions, className, headerAlign, stickyOffset, scrollable, }: DataTableProps$1<T>): react_jsx_runtime.JSX.Element;
|
|
364
|
+
declare const Table$1: react.ForwardRefExoticComponent<TableHTMLAttributes<HTMLTableElement> & react.RefAttributes<HTMLTableElement>>;
|
|
365
|
+
declare const TableHeader$1: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
366
|
+
declare const TableBody$1: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
367
|
+
declare const TableRow$1: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableRowElement> & react.RefAttributes<HTMLTableRowElement>>;
|
|
368
|
+
declare const TableCell$1: react.ForwardRefExoticComponent<TdHTMLAttributes<HTMLTableCellElement> & ThHTMLAttributes<HTMLTableCellElement> & {
|
|
369
|
+
as?: "td" | "th";
|
|
370
|
+
} & react.RefAttributes<HTMLTableCellElement>>;
|
|
371
|
+
|
|
372
|
+
type PaginationInfo = {
|
|
373
|
+
page: number;
|
|
374
|
+
pageSize: number;
|
|
375
|
+
total: number;
|
|
376
|
+
totalPages: number;
|
|
377
|
+
showingStart: number;
|
|
378
|
+
showingEnd: number;
|
|
379
|
+
};
|
|
380
|
+
type PaginationProps = {
|
|
381
|
+
page: number;
|
|
382
|
+
pageSize: number;
|
|
383
|
+
total: number;
|
|
384
|
+
onChange: (page: number) => void;
|
|
385
|
+
pageSizeOptions?: number[];
|
|
386
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
387
|
+
className?: string;
|
|
388
|
+
showFirstLast?: boolean;
|
|
389
|
+
label?: (info: PaginationInfo) => ReactNode;
|
|
390
|
+
};
|
|
391
|
+
declare const Pagination: ({ page, pageSize, total, onChange, pageSizeOptions, onPageSizeChange, className, showFirstLast, label, }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
392
|
+
|
|
393
|
+
type PageTitleProps = {
|
|
394
|
+
title: string;
|
|
395
|
+
subtitle?: string;
|
|
396
|
+
size?: 'default' | 'compact';
|
|
397
|
+
rightSlot?: React.ReactNode;
|
|
398
|
+
};
|
|
399
|
+
declare function PageTitle$1({ title, subtitle, size, rightSlot, }: PageTitleProps): react_jsx_runtime.JSX.Element;
|
|
400
|
+
|
|
401
|
+
type SectionTitleProps$1 = {
|
|
402
|
+
title: string;
|
|
403
|
+
subtitle?: string;
|
|
404
|
+
icon?: ReactNode;
|
|
405
|
+
iconClassName?: string;
|
|
406
|
+
rightSlot?: ReactNode;
|
|
407
|
+
};
|
|
408
|
+
declare function SectionTitle$1({ title, subtitle, icon, iconClassName, rightSlot, }: SectionTitleProps$1): react_jsx_runtime.JSX.Element;
|
|
409
|
+
|
|
410
|
+
interface TabItem {
|
|
411
|
+
value: string;
|
|
412
|
+
label: ReactNode;
|
|
413
|
+
content: ReactNode;
|
|
414
|
+
badge?: ReactNode;
|
|
415
|
+
}
|
|
416
|
+
interface TabsProps {
|
|
417
|
+
items: TabItem[];
|
|
418
|
+
defaultValue?: string;
|
|
419
|
+
onChange?: (value: string) => void;
|
|
420
|
+
className?: string;
|
|
421
|
+
listClassName?: string;
|
|
422
|
+
contentClassName?: string;
|
|
423
|
+
}
|
|
424
|
+
declare function Tabs({ items, defaultValue, onChange, className, listClassName, contentClassName, }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
425
|
+
|
|
426
|
+
interface LoadingProps extends HTMLAttributes<HTMLDivElement> {
|
|
427
|
+
label?: ReactNode;
|
|
428
|
+
size?: LoadingSpinnerProps['size'];
|
|
429
|
+
}
|
|
430
|
+
declare function Loading({ label, size, className, ...props }: LoadingProps): react_jsx_runtime.JSX.Element;
|
|
431
|
+
|
|
432
|
+
type TooltipSide$2 = 'top' | 'right' | 'bottom' | 'left';
|
|
433
|
+
type TooltipAlign$2 = 'start' | 'center' | 'end';
|
|
434
|
+
type TooltipProps = {
|
|
435
|
+
content: ReactNode;
|
|
436
|
+
children: ReactNode;
|
|
437
|
+
side?: TooltipSide$2;
|
|
438
|
+
align?: TooltipAlign$2;
|
|
439
|
+
className?: string;
|
|
440
|
+
contentClassName?: string;
|
|
441
|
+
wrap?: boolean;
|
|
442
|
+
portal?: boolean;
|
|
443
|
+
};
|
|
444
|
+
declare function Tooltip({ content, children, side, align, className, contentClassName, wrap, portal, }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
445
|
+
|
|
446
|
+
type TooltipSide$1 = 'top' | 'right' | 'bottom' | 'left';
|
|
447
|
+
type TooltipAlign$1 = 'start' | 'center' | 'end';
|
|
448
|
+
type OverflowTooltipProps = {
|
|
449
|
+
content: ReactNode;
|
|
450
|
+
children: ReactNode;
|
|
451
|
+
targetRef?: RefObject<HTMLElement | null>;
|
|
452
|
+
side?: TooltipSide$1;
|
|
453
|
+
align?: TooltipAlign$1;
|
|
454
|
+
className?: string;
|
|
455
|
+
contentClassName?: string;
|
|
456
|
+
wrap?: boolean;
|
|
457
|
+
portal?: boolean;
|
|
458
|
+
disabled?: boolean;
|
|
459
|
+
watch?: ReadonlyArray<unknown>;
|
|
460
|
+
};
|
|
461
|
+
declare function OverflowTooltip({ content, children, targetRef, side, align, className, contentClassName, wrap, portal, disabled, watch, }: OverflowTooltipProps): react_jsx_runtime.JSX.Element;
|
|
462
|
+
|
|
463
|
+
type TooltipSide = 'top' | 'right' | 'bottom' | 'left';
|
|
464
|
+
type TooltipAlign = 'start' | 'center' | 'end';
|
|
465
|
+
type LineClampTooltipProps = {
|
|
466
|
+
text: string;
|
|
467
|
+
lineClamp?: number;
|
|
468
|
+
className?: string;
|
|
469
|
+
side?: TooltipSide;
|
|
470
|
+
align?: TooltipAlign;
|
|
471
|
+
wrap?: boolean;
|
|
472
|
+
portal?: boolean;
|
|
473
|
+
};
|
|
474
|
+
declare function LineClampTooltip({ text, lineClamp, className, side, align, wrap, portal, }: LineClampTooltipProps): react_jsx_runtime.JSX.Element;
|
|
475
|
+
|
|
476
|
+
type TruncatedTextProps = {
|
|
477
|
+
email: string;
|
|
478
|
+
};
|
|
479
|
+
declare function TruncatedText({ email, }: TruncatedTextProps): react_jsx_runtime.JSX.Element;
|
|
480
|
+
|
|
481
|
+
type SidebarItem$1 = {
|
|
482
|
+
id: string;
|
|
483
|
+
title?: string;
|
|
484
|
+
titleKey?: string;
|
|
485
|
+
icon?: ReactNode | ElementType;
|
|
486
|
+
href?: string;
|
|
487
|
+
permission?: string | string[];
|
|
488
|
+
children?: SidebarItem$1[];
|
|
489
|
+
};
|
|
490
|
+
type PermissionChecker = (permission: string | string[] | undefined, userPermissions?: string[]) => boolean;
|
|
491
|
+
interface SidebarProps extends HTMLAttributes<HTMLElement> {
|
|
492
|
+
items: SidebarItem$1[];
|
|
493
|
+
userPermissions?: string[];
|
|
494
|
+
permissionChecker?: PermissionChecker;
|
|
495
|
+
activeItemId?: string;
|
|
496
|
+
onItemClick?: (item: SidebarItem$1) => void;
|
|
497
|
+
listClassName?: string;
|
|
498
|
+
nestedListClassName?: string;
|
|
499
|
+
itemClassName?: string;
|
|
500
|
+
indentSize?: number;
|
|
501
|
+
ariaLabel?: string;
|
|
502
|
+
collapsible?: boolean;
|
|
503
|
+
collapsed?: boolean;
|
|
504
|
+
defaultCollapsed?: boolean;
|
|
505
|
+
onCollapseChange?: (collapsed: boolean) => void;
|
|
506
|
+
collapsedWidth?: number | string;
|
|
507
|
+
expandedWidth?: number | string;
|
|
508
|
+
collapseButtonLabel?: string;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
declare function Sidebar({ items, userPermissions, permissionChecker, activeItemId, onItemClick, listClassName, nestedListClassName, itemClassName, indentSize, ariaLabel, className, collapsible, collapsed, defaultCollapsed, onCollapseChange, collapsedWidth, expandedWidth, collapseButtonLabel, style, ...rest }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
512
|
+
|
|
513
|
+
type SidebarItemProps = {
|
|
514
|
+
item: SidebarItem$1;
|
|
515
|
+
depth: number;
|
|
516
|
+
activeItemId?: string;
|
|
517
|
+
onItemClick?: (item: SidebarItem$1) => void;
|
|
518
|
+
indentSize?: number;
|
|
519
|
+
nestedListClassName?: string;
|
|
520
|
+
itemClassName?: string;
|
|
521
|
+
collapsed?: boolean;
|
|
522
|
+
};
|
|
523
|
+
declare function SidebarItem({ item, depth, activeItemId, onItemClick, indentSize, nestedListClassName, itemClassName, collapsed, }: SidebarItemProps): react_jsx_runtime.JSX.Element;
|
|
524
|
+
|
|
525
|
+
declare const defaultPermissionChecker: PermissionChecker;
|
|
526
|
+
declare function filterSidebarItems(items: SidebarItem$1[], userPermissions: string[] | undefined, permissionChecker?: PermissionChecker): SidebarItem$1[];
|
|
527
|
+
declare function hasActiveDescendant(item: SidebarItem$1, activeItemId?: string): boolean;
|
|
528
|
+
|
|
529
|
+
type ArgonSidebarHeaderRender = (state: {
|
|
530
|
+
collapsed: boolean;
|
|
531
|
+
hoverExpanded: boolean;
|
|
532
|
+
}) => React.ReactNode;
|
|
533
|
+
type ArgonSidebarProps = SidebarProps & {
|
|
534
|
+
onHoverChange?: (hovered: boolean) => void;
|
|
535
|
+
header?: React.ReactNode | ArgonSidebarHeaderRender;
|
|
536
|
+
};
|
|
537
|
+
declare function ArgonSidebar({ items, userPermissions, permissionChecker, activeItemId, onItemClick, listClassName, nestedListClassName, itemClassName, indentSize, ariaLabel, className, collapsible, collapsed, defaultCollapsed, onCollapseChange, collapsedWidth, expandedWidth, collapseButtonLabel, style, onHoverChange, header, ...rest }: ArgonSidebarProps): react_jsx_runtime.JSX.Element;
|
|
538
|
+
|
|
539
|
+
declare const buttonVariants: (props?: ({
|
|
540
|
+
variant?: "link" | "default" | "destructive" | "outline" | "confirm" | "secondary" | "ghost" | "create" | null | undefined;
|
|
541
|
+
size?: "sm" | "md" | "lg" | "icon" | null | undefined;
|
|
542
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
543
|
+
type ButtonVariant = VariantProps<typeof buttonVariants>['variant'];
|
|
544
|
+
type ButtonSize = 'sm' | 'md' | 'lg' | 'icon';
|
|
545
|
+
interface ButtonProps extends Omit<SharedComponentProps, 'size'>, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'size' | 'className'> {
|
|
546
|
+
variant?: ButtonVariant;
|
|
547
|
+
size?: ButtonSize;
|
|
548
|
+
startIcon?: ReactNode;
|
|
549
|
+
endIcon?: ReactNode;
|
|
550
|
+
children?: ReactNode;
|
|
551
|
+
}
|
|
552
|
+
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
553
|
+
|
|
554
|
+
declare function Card({ className, ...props }: react.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
555
|
+
declare function CardHeader({ className, ...props }: react.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
556
|
+
declare function CardTitle({ className, ...props }: react.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
557
|
+
declare function CardDescription({ className, ...props }: react.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
558
|
+
declare function CardAction({ className, ...props }: react.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
559
|
+
declare function CardContent({ className, ...props }: react.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
560
|
+
declare function CardFooter({ className, ...props }: react.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
561
|
+
|
|
562
|
+
type SectionTitleProps = {
|
|
563
|
+
title: string;
|
|
564
|
+
subtitle?: string;
|
|
565
|
+
icon?: ReactNode;
|
|
566
|
+
iconClassName?: string;
|
|
567
|
+
rightSlot?: ReactNode;
|
|
568
|
+
};
|
|
569
|
+
declare function SectionTitle({ title, subtitle, icon, iconClassName, rightSlot, }: SectionTitleProps): react_jsx_runtime.JSX.Element;
|
|
570
|
+
|
|
571
|
+
declare const inputVariants: (props?: ({
|
|
572
|
+
variant?: "default" | "outline" | "ghost" | null | undefined;
|
|
573
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
574
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
575
|
+
type InputVariant = VariantProps<typeof inputVariants>['variant'];
|
|
576
|
+
interface InputProps extends SharedComponentProps, Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'size' | 'prefix'> {
|
|
577
|
+
variant?: InputVariant;
|
|
578
|
+
prefix?: ReactNode;
|
|
579
|
+
suffix?: ReactNode;
|
|
580
|
+
inputClassName?: string;
|
|
581
|
+
onValueChange?: (value: string) => void;
|
|
582
|
+
showPasswordToggle?: boolean;
|
|
583
|
+
}
|
|
584
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
585
|
+
|
|
586
|
+
type ComboboxOption = {
|
|
587
|
+
label: string;
|
|
588
|
+
value: string | number;
|
|
589
|
+
description?: string;
|
|
590
|
+
searchValue?: string;
|
|
591
|
+
disabled?: boolean;
|
|
592
|
+
};
|
|
593
|
+
type ComboboxAsyncConfig = {
|
|
594
|
+
onSearch?: (value: string) => void;
|
|
595
|
+
onLoadMore?: () => void;
|
|
596
|
+
hasMore?: boolean;
|
|
597
|
+
resetSearchOnFocus?: boolean;
|
|
598
|
+
restoreSelectedOnBlur?: boolean;
|
|
599
|
+
};
|
|
600
|
+
interface ComboboxProps extends SharedComponentProps {
|
|
601
|
+
options: ComboboxOption[];
|
|
602
|
+
value?: string | number;
|
|
603
|
+
placeholder?: string;
|
|
604
|
+
onChange?: (value: ComboboxOption['value']) => void;
|
|
605
|
+
onInputChange?: (value: string) => void;
|
|
606
|
+
onLoadMore?: () => void;
|
|
607
|
+
hasMore?: boolean;
|
|
608
|
+
asyncConfig?: ComboboxAsyncConfig;
|
|
609
|
+
loading?: boolean;
|
|
610
|
+
disabled?: boolean;
|
|
611
|
+
searchPlaceholder?: string;
|
|
612
|
+
helperId?: string;
|
|
613
|
+
errorId?: string;
|
|
614
|
+
allowClear?: boolean;
|
|
615
|
+
onClear?: () => void;
|
|
616
|
+
portal?: boolean;
|
|
617
|
+
dropdownClassName?: string;
|
|
618
|
+
/** Override dropdown max height (e.g. for testing scroll with few items). */
|
|
619
|
+
dropdownMaxHeight?: number;
|
|
620
|
+
/** Keep error state styling but do not render error text below field. */
|
|
621
|
+
hideErrorMessage?: boolean;
|
|
622
|
+
}
|
|
623
|
+
declare const Combobox: react.ForwardRefExoticComponent<ComboboxProps & react.RefAttributes<HTMLInputElement>>;
|
|
624
|
+
|
|
625
|
+
interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size' | 'className' | 'onChange'> {
|
|
626
|
+
className?: string;
|
|
627
|
+
trackClassName?: string;
|
|
628
|
+
thumbClassName?: string;
|
|
629
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
630
|
+
}
|
|
631
|
+
declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLInputElement>>;
|
|
632
|
+
|
|
633
|
+
type MultiTabItem = {
|
|
634
|
+
label: ReactNode;
|
|
635
|
+
value: string;
|
|
636
|
+
};
|
|
637
|
+
interface MultiTabsProps {
|
|
638
|
+
items: MultiTabItem[];
|
|
639
|
+
value: string;
|
|
640
|
+
onChange: (value: string) => void;
|
|
641
|
+
className?: string;
|
|
642
|
+
style?: CSSProperties;
|
|
643
|
+
}
|
|
644
|
+
declare function MultiTabs({ items, value, onChange, className, style, }: MultiTabsProps): react_jsx_runtime.JSX.Element;
|
|
645
|
+
|
|
646
|
+
type StatTone = 'emerald' | 'sky' | 'violet' | 'rose';
|
|
647
|
+
type StatCardProps = {
|
|
648
|
+
label: ReactNode;
|
|
649
|
+
value: ReactNode;
|
|
650
|
+
tone?: StatTone;
|
|
651
|
+
icon?: ReactNode;
|
|
652
|
+
className?: string;
|
|
653
|
+
};
|
|
654
|
+
declare function StatCard({ label, value, tone, icon, className, }: StatCardProps): react_jsx_runtime.JSX.Element;
|
|
655
|
+
|
|
656
|
+
type DataTableSortDirection = 'asc' | 'desc';
|
|
657
|
+
type DataTableAlign = 'left' | 'center' | 'right';
|
|
658
|
+
type DataTableSortState = {
|
|
659
|
+
key: string;
|
|
660
|
+
direction: DataTableSortDirection;
|
|
661
|
+
};
|
|
662
|
+
type DataTableColumn<T> = {
|
|
663
|
+
key: string;
|
|
664
|
+
title: ReactNode;
|
|
665
|
+
dataIndex?: keyof T;
|
|
666
|
+
width?: number | string;
|
|
667
|
+
render?: (value: T[keyof T] | undefined, record: T, index: number) => ReactNode;
|
|
668
|
+
sortable?: boolean;
|
|
669
|
+
sorter?: (a: T, b: T) => number;
|
|
670
|
+
sortValue?: (record: T) => string | number | Date | null | undefined;
|
|
671
|
+
headerAlign?: DataTableAlign;
|
|
672
|
+
cellAlign?: DataTableAlign;
|
|
673
|
+
};
|
|
674
|
+
type DataTablePagination = {
|
|
675
|
+
page: number;
|
|
676
|
+
pageSize: number;
|
|
677
|
+
total: number;
|
|
678
|
+
onChange: (page: number) => void;
|
|
679
|
+
pageSizeOptions?: number[];
|
|
680
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
681
|
+
};
|
|
682
|
+
type RowKey = string | number;
|
|
683
|
+
type DataTableRowSelection = {
|
|
684
|
+
selectedRowKeys: Array<RowKey>;
|
|
685
|
+
onChange: (selectedRowKeys: Array<RowKey>) => void;
|
|
686
|
+
};
|
|
687
|
+
type DataTableProps<T> = {
|
|
688
|
+
columns: Array<DataTableColumn<T>>;
|
|
689
|
+
data: T[];
|
|
690
|
+
rowKey: keyof T | ((record: T) => RowKey);
|
|
691
|
+
loading?: boolean;
|
|
692
|
+
emptyText?: ReactNode;
|
|
693
|
+
pagination?: DataTablePagination;
|
|
694
|
+
sort?: DataTableSortState | null;
|
|
695
|
+
onSortChange?: (sort: DataTableSortState | null) => void;
|
|
696
|
+
sortMode?: 'client' | 'server';
|
|
697
|
+
onRowClick?: (record: T) => void;
|
|
698
|
+
rowSelection?: DataTableRowSelection;
|
|
699
|
+
renderActions?: (record: T) => ReactNode;
|
|
700
|
+
actionColumnWidth?: number | string;
|
|
701
|
+
className?: string;
|
|
702
|
+
headerAlign?: DataTableAlign;
|
|
703
|
+
cellAlign?: DataTableAlign;
|
|
704
|
+
stickyOffset?: number;
|
|
705
|
+
};
|
|
706
|
+
declare function DataTable<T>({ columns, data, rowKey, loading, emptyText, pagination, sort, onSortChange, sortMode, onRowClick, rowSelection, renderActions, actionColumnWidth, className, headerAlign, stickyOffset, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
707
|
+
declare const Table: react.ForwardRefExoticComponent<TableHTMLAttributes<HTMLTableElement> & react.RefAttributes<HTMLTableElement>>;
|
|
708
|
+
declare const TableHeader: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
709
|
+
declare const TableBody: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
710
|
+
declare const TableRow: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableRowElement> & react.RefAttributes<HTMLTableRowElement>>;
|
|
711
|
+
declare const TableCell: react.ForwardRefExoticComponent<TdHTMLAttributes<HTMLTableCellElement> & ThHTMLAttributes<HTMLTableCellElement> & {
|
|
712
|
+
as?: "td" | "th";
|
|
713
|
+
} & react.RefAttributes<HTMLTableCellElement>>;
|
|
714
|
+
|
|
715
|
+
type StatusAction = {
|
|
716
|
+
label: ReactNode;
|
|
717
|
+
color?: string;
|
|
718
|
+
href?: string;
|
|
719
|
+
onClick?: () => void;
|
|
720
|
+
};
|
|
721
|
+
type StatusOption = {
|
|
722
|
+
value: string | number;
|
|
723
|
+
label: ReactNode;
|
|
724
|
+
color?: string;
|
|
725
|
+
action?: StatusAction;
|
|
726
|
+
};
|
|
727
|
+
type StatusPresentation = {
|
|
728
|
+
label: ReactNode;
|
|
729
|
+
color?: string;
|
|
730
|
+
action?: StatusAction;
|
|
731
|
+
};
|
|
732
|
+
declare function getStatusPresentation(status: string | number | null | undefined, options: StatusOption[]): StatusPresentation | null;
|
|
733
|
+
|
|
734
|
+
type RemoteLoadingProps = {
|
|
735
|
+
className?: string;
|
|
736
|
+
};
|
|
737
|
+
declare function RemoteLoading({ className }: RemoteLoadingProps): react_jsx_runtime.JSX.Element;
|
|
738
|
+
|
|
739
|
+
type DateRangePickerValue = {
|
|
740
|
+
startDate?: string | null;
|
|
741
|
+
endDate?: string | null;
|
|
742
|
+
};
|
|
743
|
+
interface DateRangePickerProps {
|
|
744
|
+
value?: DateRangePickerValue;
|
|
745
|
+
onChange: (next: Required<DateRangePickerValue>) => void;
|
|
746
|
+
label?: string;
|
|
747
|
+
placeholder?: string;
|
|
748
|
+
className?: string;
|
|
749
|
+
}
|
|
750
|
+
declare function DateRangePicker({ value, onChange, label, placeholder, className, }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
751
|
+
|
|
752
|
+
type QuickOption = {
|
|
753
|
+
label: string;
|
|
754
|
+
value: string;
|
|
755
|
+
};
|
|
756
|
+
interface DateTimePickerProps {
|
|
757
|
+
label?: ReactNode;
|
|
758
|
+
placeholder?: string;
|
|
759
|
+
value?: string;
|
|
760
|
+
onChange: (value: string) => void;
|
|
761
|
+
disabled?: boolean;
|
|
762
|
+
errorMessage?: string;
|
|
763
|
+
className?: string;
|
|
764
|
+
parseFormat?: string;
|
|
765
|
+
outputFormat?: string;
|
|
766
|
+
displayFormat?: string;
|
|
767
|
+
minDateTime?: Date;
|
|
768
|
+
quickOptions?: QuickOption[];
|
|
769
|
+
onQuickSelect?: (value: string) => void;
|
|
770
|
+
onClear?: () => void;
|
|
771
|
+
quickRangesLabel?: string;
|
|
772
|
+
clearLabel?: string;
|
|
773
|
+
portal?: boolean;
|
|
774
|
+
}
|
|
775
|
+
declare function DateTimePicker({ label, placeholder, value, onChange, disabled, errorMessage, className, parseFormat, outputFormat, displayFormat, minDateTime, quickOptions, onQuickSelect, onClear, quickRangesLabel, clearLabel, portal, }: DateTimePickerProps): react_jsx_runtime.JSX.Element;
|
|
776
|
+
|
|
777
|
+
type MainFePageTitleProps = {
|
|
778
|
+
title: string;
|
|
779
|
+
subtitle?: string;
|
|
780
|
+
size?: 'default' | 'compact';
|
|
781
|
+
topSlot?: React.ReactNode;
|
|
782
|
+
rightSlot?: React.ReactNode;
|
|
783
|
+
};
|
|
784
|
+
declare function PageTitle({ title, subtitle, size, topSlot, rightSlot, }: MainFePageTitleProps): react_jsx_runtime.JSX.Element;
|
|
785
|
+
|
|
786
|
+
declare const index_ArgonSidebar: typeof ArgonSidebar;
|
|
787
|
+
declare const index_Badge: typeof Badge;
|
|
788
|
+
type index_BadgeProps = BadgeProps;
|
|
789
|
+
declare const index_Button: typeof Button;
|
|
790
|
+
type index_ButtonProps = ButtonProps;
|
|
791
|
+
declare const index_Card: typeof Card;
|
|
792
|
+
declare const index_CardAction: typeof CardAction;
|
|
793
|
+
declare const index_CardContent: typeof CardContent;
|
|
794
|
+
declare const index_CardDescription: typeof CardDescription;
|
|
795
|
+
declare const index_CardFooter: typeof CardFooter;
|
|
796
|
+
declare const index_CardHeader: typeof CardHeader;
|
|
797
|
+
declare const index_CardTitle: typeof CardTitle;
|
|
798
|
+
declare const index_Combobox: typeof Combobox;
|
|
799
|
+
type index_ComboboxAsyncConfig = ComboboxAsyncConfig;
|
|
800
|
+
type index_ComboboxOption = ComboboxOption;
|
|
801
|
+
type index_ComboboxProps = ComboboxProps;
|
|
802
|
+
declare const index_DataTable: typeof DataTable;
|
|
803
|
+
type index_DataTableAlign = DataTableAlign;
|
|
804
|
+
type index_DataTableColumn<T> = DataTableColumn<T>;
|
|
805
|
+
type index_DataTablePagination = DataTablePagination;
|
|
806
|
+
type index_DataTableProps<T> = DataTableProps<T>;
|
|
807
|
+
type index_DataTableRowSelection = DataTableRowSelection;
|
|
808
|
+
type index_DataTableSortDirection = DataTableSortDirection;
|
|
809
|
+
type index_DataTableSortState = DataTableSortState;
|
|
810
|
+
declare const index_DateRangePicker: typeof DateRangePicker;
|
|
811
|
+
type index_DateRangePickerProps = DateRangePickerProps;
|
|
812
|
+
declare const index_DateTimePicker: typeof DateTimePicker;
|
|
813
|
+
type index_DateTimePickerProps = DateTimePickerProps;
|
|
814
|
+
declare const index_Input: typeof Input;
|
|
815
|
+
type index_InputProps = InputProps;
|
|
816
|
+
type index_MultiTabItem = MultiTabItem;
|
|
817
|
+
declare const index_MultiTabs: typeof MultiTabs;
|
|
818
|
+
type index_MultiTabsProps = MultiTabsProps;
|
|
819
|
+
declare const index_PageTitle: typeof PageTitle;
|
|
820
|
+
declare const index_RemoteLoading: typeof RemoteLoading;
|
|
821
|
+
type index_RemoteLoadingProps = RemoteLoadingProps;
|
|
822
|
+
declare const index_SectionTitle: typeof SectionTitle;
|
|
823
|
+
declare const index_StatCard: typeof StatCard;
|
|
824
|
+
type index_StatusAction = StatusAction;
|
|
825
|
+
type index_StatusOption = StatusOption;
|
|
826
|
+
type index_StatusPresentation = StatusPresentation;
|
|
827
|
+
declare const index_Switch: typeof Switch;
|
|
828
|
+
type index_SwitchProps = SwitchProps;
|
|
829
|
+
declare const index_Table: typeof Table;
|
|
830
|
+
declare const index_TableBody: typeof TableBody;
|
|
831
|
+
declare const index_TableCell: typeof TableCell;
|
|
832
|
+
declare const index_TableHeader: typeof TableHeader;
|
|
833
|
+
declare const index_TableRow: typeof TableRow;
|
|
834
|
+
declare const index_getStatusPresentation: typeof getStatusPresentation;
|
|
835
|
+
declare namespace index {
|
|
836
|
+
export { index_ArgonSidebar as ArgonSidebar, index_Badge as Badge, type index_BadgeProps as BadgeProps, index_Button as Button, type index_ButtonProps as ButtonProps, index_Card as Card, index_CardAction as CardAction, index_CardContent as CardContent, index_CardDescription as CardDescription, index_CardFooter as CardFooter, index_CardHeader as CardHeader, index_CardTitle as CardTitle, index_Combobox as Combobox, type index_ComboboxAsyncConfig as ComboboxAsyncConfig, type index_ComboboxOption as ComboboxOption, type index_ComboboxProps as ComboboxProps, index_DataTable as DataTable, type index_DataTableAlign as DataTableAlign, type index_DataTableColumn as DataTableColumn, type index_DataTablePagination as DataTablePagination, type index_DataTableProps as DataTableProps, type index_DataTableRowSelection as DataTableRowSelection, type index_DataTableSortDirection as DataTableSortDirection, type index_DataTableSortState as DataTableSortState, index_DateRangePicker as DateRangePicker, type index_DateRangePickerProps as DateRangePickerProps, index_DateTimePicker as DateTimePicker, type index_DateTimePickerProps as DateTimePickerProps, index_Input as Input, type index_InputProps as InputProps, type index_MultiTabItem as MultiTabItem, index_MultiTabs as MultiTabs, type index_MultiTabsProps as MultiTabsProps, index_PageTitle as PageTitle, index_RemoteLoading as RemoteLoading, type index_RemoteLoadingProps as RemoteLoadingProps, index_SectionTitle as SectionTitle, index_StatCard as StatCard, type index_StatusAction as StatusAction, type index_StatusOption as StatusOption, type index_StatusPresentation as StatusPresentation, index_Switch as Switch, type index_SwitchProps as SwitchProps, index_Table as Table, index_TableBody as TableBody, index_TableCell as TableCell, index_TableHeader as TableHeader, index_TableRow as TableRow, index_getStatusPresentation as getStatusPresentation };
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
type ClassValue = string | false | null | undefined;
|
|
840
|
+
declare function cn(...values: ClassValue[]): string;
|
|
841
|
+
|
|
842
|
+
export { Alert, type AlertProps, ArgonSidebar, AsyncCombobox, type AsyncComboboxProps, Badge, type BadgeProps, Breadcrumb, type BreadcrumbItem, Button$1 as Button, type ButtonProps$1 as ButtonProps, Card$1 as Card, CardAction$1 as CardAction, CardContent$1 as CardContent, CardDescription$1 as CardDescription, CardFooter$1 as CardFooter, CardHeader$1 as CardHeader, CardTitle$1 as CardTitle, Combobox$1 as Combobox, type ComboboxOption$2 as ComboboxOption, DataTable$1 as DataTable, type DataTableAlign$1 as DataTableAlign, type DataTableColumn$1 as DataTableColumn, type DataTablePagination$1 as DataTablePagination, type DataTableProps$1 as DataTableProps, type DataTableRowSelection$1 as DataTableRowSelection, type DataTableSortDirection$1 as DataTableSortDirection, type DataTableSortState$1 as DataTableSortState, FormField as Field, Form, FormControl, FormDescription, FormField, type FormFieldProps, FormItem, FormLabel, FormMessage, Input$1 as Input, type InputProps$1 as InputProps, LineClampTooltip, type LineClampTooltipProps, Loading, type LoadingProps, index as MainFe, MultiSelect, type MultiSelectOption, NumericInput, type NumericInputProps, type Option, OverflowTooltip, type OverflowTooltipProps, PageTitle$1 as PageTitle, Pagination, type PaginationInfo, type PaginationProps, type PermissionChecker, SearchableSelect, type SearchableSelectOption, type SearchableSelectProps, SectionTitle$1 as SectionTitle, Select, type SelectProps, Sidebar, SidebarItem, type SidebarProps, Stat, type StatProps, type TabItem, Table$1 as Table, TableBody$1 as TableBody, TableCell$1 as TableCell, TableHeader$1 as TableHeader, TableRow$1 as TableRow, Tabs, type TabsProps, Tooltip, type Trend, TruncatedText, type TruncatedTextProps, cn, defaultPermissionChecker, filterSidebarItems, hasActiveDescendant };
|