@lolmath/ui 8.0.0 → 9.0.0
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/css.d.ts +2 -0
- package/dist/index.css +2005 -0
- package/dist/index.d.mts +705 -0
- package/dist/index.mjs +1320 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +38 -34
- package/dist/es/index.css +0 -1393
- package/dist/es/index.d.ts +0 -366
- package/dist/es/index.js +0 -1712
- package/dist/es/index.js.map +0 -1
- package/dist/lib/index.cjs +0 -1696
- package/dist/lib/index.cjs.map +0 -1
- package/dist/lib/index.css +0 -1393
- package/dist/lib/index.d.cts +0 -366
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,705 @@
|
|
|
1
|
+
import { Autocomplete, AutocompleteContext, AutocompleteStateContext, BreadcrumbProps, BreadcrumbsProps, ButtonProps, CellProps, CheckboxButtonProps, CheckboxFieldProps, Collection, ColumnProps, ColumnResizerProps, Dialog, DialogProps, DialogTrigger, DisclosurePanelProps, DisclosureProps, FieldError, GridLayout, Group, Header, HeadingProps, Input, InputProps, Key, Key as Key$1, LabelProps, LinkProps, ListBoxItem, ListBoxItemProps, ListBoxProps, ListLayout, MenuItemProps, MenuItemProps as MenuItemProps$1, MenuProps, MenuProps as MenuProps$1, MenuSectionProps, MenuTrigger as MenuTrigger$1, ModalOverlayProps, NumberFieldProps, Popover as UnstyledPopover, PopoverProps, ProgressBarProps, RadioButtonProps, RadioFieldProps, RadioGroupProps, ResizableTableContainer, RouterProvider, RowProps, SearchFieldProps, Select, SelectProps, SelectValue, Selection, SeparatorProps, Size, SliderFillRenderProps, SliderOutputProps, SliderProps, SliderThumbProps, SliderTrackProps, SliderTrackRenderProps, SortDescriptor, SortDirection, SwitchButtonProps, SwitchFieldProps, TabListProps, TabPanelProps, TabProps, TableBodyProps as TableBodyProps$1, TableFooterProps as TableFooterProps$1, TableHeader, TableLayout, TableProps as TableProps$1, TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TagProps as TagProps$1, TextAreaProps, TextFieldProps, TextProps, ToggleButtonProps, Virtualizer, VirtualizerProps, WaterfallLayout, useFilter } from "react-aria-components";
|
|
2
|
+
import React$1, { ComponentProps, JSX, Ref } from "react";
|
|
3
|
+
import { ExternalToast, ToasterProps } from "sonner";
|
|
4
|
+
|
|
5
|
+
//#region src/components/breadcrumbs/breadcrumbs.d.ts
|
|
6
|
+
declare function Breadcrumbs<T extends object>({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: BreadcrumbsProps<T>): import("react").JSX.Element;
|
|
10
|
+
declare function Breadcrumb({
|
|
11
|
+
className,
|
|
12
|
+
children,
|
|
13
|
+
href,
|
|
14
|
+
...props
|
|
15
|
+
}: BreadcrumbProps & {
|
|
16
|
+
href?: string;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/components/button.d.ts
|
|
20
|
+
type ButtonShape = "round" | "square" | "normal";
|
|
21
|
+
type ButtonPreset = "primary" | "secondary" | "text" | "hextech" | "dimmed";
|
|
22
|
+
type ButtonSize = "small" | "medium" | "large";
|
|
23
|
+
interface ButtonProps$1 extends ButtonProps {
|
|
24
|
+
preset?: ButtonPreset;
|
|
25
|
+
thin?: boolean;
|
|
26
|
+
shape?: ButtonShape;
|
|
27
|
+
size?: ButtonSize;
|
|
28
|
+
}
|
|
29
|
+
declare const button: (props?: ({
|
|
30
|
+
preset?: "primary" | "secondary" | "text" | "hextech" | "dimmed" | undefined;
|
|
31
|
+
shape?: "round" | "square" | "normal" | undefined;
|
|
32
|
+
thin?: boolean | undefined;
|
|
33
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
34
|
+
} & ({
|
|
35
|
+
class?: import("cva").ClassValue;
|
|
36
|
+
className?: never;
|
|
37
|
+
} | {
|
|
38
|
+
class?: never;
|
|
39
|
+
className?: import("cva").ClassValue;
|
|
40
|
+
})) | undefined) => string;
|
|
41
|
+
declare function Button({
|
|
42
|
+
children,
|
|
43
|
+
className,
|
|
44
|
+
preset,
|
|
45
|
+
shape,
|
|
46
|
+
size,
|
|
47
|
+
thin,
|
|
48
|
+
ref,
|
|
49
|
+
...props
|
|
50
|
+
}: ButtonProps$1 & {
|
|
51
|
+
ref?: Ref<HTMLButtonElement>;
|
|
52
|
+
}): import("react").JSX.Element;
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/components/button-link.d.ts
|
|
55
|
+
interface ButtonLinkProps extends LinkProps {
|
|
56
|
+
preset?: ButtonPreset;
|
|
57
|
+
thin?: boolean;
|
|
58
|
+
shape?: ButtonShape;
|
|
59
|
+
size?: ButtonSize;
|
|
60
|
+
}
|
|
61
|
+
declare function ButtonLink({
|
|
62
|
+
children,
|
|
63
|
+
className,
|
|
64
|
+
preset,
|
|
65
|
+
shape,
|
|
66
|
+
size,
|
|
67
|
+
ref,
|
|
68
|
+
thin,
|
|
69
|
+
...props
|
|
70
|
+
}: ButtonLinkProps & {
|
|
71
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
72
|
+
}): import("react").JSX.Element;
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/components/checkbox/checkbox.d.ts
|
|
75
|
+
declare function CheckboxButton({
|
|
76
|
+
children,
|
|
77
|
+
className,
|
|
78
|
+
...props
|
|
79
|
+
}: CheckboxButtonProps): import("react").JSX.Element;
|
|
80
|
+
declare function CheckboxField({
|
|
81
|
+
className,
|
|
82
|
+
...props
|
|
83
|
+
}: CheckboxFieldProps): import("react").JSX.Element;
|
|
84
|
+
declare function Checkbox({
|
|
85
|
+
children,
|
|
86
|
+
className,
|
|
87
|
+
...props
|
|
88
|
+
}: Omit<CheckboxFieldProps, "children" | "className"> & Pick<CheckboxButtonProps, "children" | "className">): import("react").JSX.Element;
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/components/disclosure.d.ts
|
|
91
|
+
declare const DisclosureGroup: import("react").ForwardRefExoticComponent<import("react-aria-components").DisclosureGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
92
|
+
declare function DisclosureButton({
|
|
93
|
+
children,
|
|
94
|
+
className,
|
|
95
|
+
...props
|
|
96
|
+
}: ButtonProps): import("react").JSX.Element;
|
|
97
|
+
declare function Disclosure({
|
|
98
|
+
className,
|
|
99
|
+
...props
|
|
100
|
+
}: DisclosureProps): import("react").JSX.Element;
|
|
101
|
+
declare function DisclosurePanel({
|
|
102
|
+
className,
|
|
103
|
+
...props
|
|
104
|
+
}: DisclosurePanelProps): import("react").JSX.Element;
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/components/divider.d.ts
|
|
107
|
+
interface DividerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
108
|
+
preset?: "left" | "center" | "right";
|
|
109
|
+
hrProps?: React.HTMLAttributes<HTMLHRElement>;
|
|
110
|
+
childrenWrapperProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
111
|
+
}
|
|
112
|
+
declare function Divider({
|
|
113
|
+
preset,
|
|
114
|
+
hrProps: {
|
|
115
|
+
className: hrClassName,
|
|
116
|
+
...hrProps
|
|
117
|
+
},
|
|
118
|
+
childrenWrapperProps: {
|
|
119
|
+
className: childrenWrapperClassName,
|
|
120
|
+
...childrenWrapperProps
|
|
121
|
+
},
|
|
122
|
+
className,
|
|
123
|
+
children,
|
|
124
|
+
...rest
|
|
125
|
+
}: DividerProps): import("react").JSX.Element;
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/components/menu/menu.d.ts
|
|
128
|
+
declare const MenuTrigger: typeof MenuTrigger$1;
|
|
129
|
+
declare const SubmenuTrigger: (props: import("react-aria-components").SubmenuTriggerProps & React.RefAttributes<HTMLDivElement>) => import("react").ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
130
|
+
declare function Menu<T extends object>({
|
|
131
|
+
className,
|
|
132
|
+
...props
|
|
133
|
+
}: MenuProps$1<T>): import("react").JSX.Element;
|
|
134
|
+
declare function MenuItem<T extends object>({
|
|
135
|
+
className,
|
|
136
|
+
...props
|
|
137
|
+
}: MenuItemProps$1<T>): import("react").JSX.Element;
|
|
138
|
+
declare function MenuPopover({
|
|
139
|
+
className,
|
|
140
|
+
...props
|
|
141
|
+
}: PopoverProps): import("react").JSX.Element;
|
|
142
|
+
declare function MenuSection<T extends object>({
|
|
143
|
+
className,
|
|
144
|
+
...props
|
|
145
|
+
}: MenuSectionProps<T>): import("react").JSX.Element;
|
|
146
|
+
declare function MenuHeader({
|
|
147
|
+
className,
|
|
148
|
+
...props
|
|
149
|
+
}: ComponentProps<typeof Header>): import("react").JSX.Element;
|
|
150
|
+
declare function MenuSeparator({
|
|
151
|
+
className,
|
|
152
|
+
...props
|
|
153
|
+
}: SeparatorProps): import("react").JSX.Element;
|
|
154
|
+
declare function MenuVirtualizer<T>(props: Omit<VirtualizerProps<T>, "layout" | "layoutOptions">): import("react").JSX.Element;
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/components/modal.d.ts
|
|
157
|
+
interface ModalProps extends Omit<ModalOverlayProps, "children"> {
|
|
158
|
+
modalOverlayClassName?: ModalOverlayProps["className"];
|
|
159
|
+
dialogProps?: Omit<DialogProps, "children">;
|
|
160
|
+
children?: DialogProps["children"];
|
|
161
|
+
}
|
|
162
|
+
declare function Modal({
|
|
163
|
+
modalOverlayClassName,
|
|
164
|
+
dialogProps,
|
|
165
|
+
children,
|
|
166
|
+
className,
|
|
167
|
+
...modalProps
|
|
168
|
+
}: ModalProps): import("react").JSX.Element;
|
|
169
|
+
declare function DialogHeading({
|
|
170
|
+
className,
|
|
171
|
+
...props
|
|
172
|
+
}: HeadingProps): import("react").JSX.Element;
|
|
173
|
+
declare function DialogButtons({
|
|
174
|
+
children
|
|
175
|
+
}: {
|
|
176
|
+
children: React.ReactNode;
|
|
177
|
+
}): import("react").JSX.Element;
|
|
178
|
+
//#endregion
|
|
179
|
+
//#region src/components/number-field.d.ts
|
|
180
|
+
type NumberFieldPreset = "normal" | "dimmed";
|
|
181
|
+
declare function NumberField({
|
|
182
|
+
inputProps,
|
|
183
|
+
groupProps,
|
|
184
|
+
children,
|
|
185
|
+
preset,
|
|
186
|
+
size,
|
|
187
|
+
...props
|
|
188
|
+
}: NumberFieldProps & {
|
|
189
|
+
inputProps?: ComponentProps<typeof Input>;
|
|
190
|
+
groupProps?: ComponentProps<typeof Group>;
|
|
191
|
+
preset?: NumberFieldPreset;
|
|
192
|
+
size?: "small" | "medium" | "large";
|
|
193
|
+
}): import("react").JSX.Element;
|
|
194
|
+
//#endregion
|
|
195
|
+
//#region src/components/popover.d.ts
|
|
196
|
+
declare function Popover({
|
|
197
|
+
children,
|
|
198
|
+
className,
|
|
199
|
+
...props
|
|
200
|
+
}: PopoverProps): import("react").JSX.Element;
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/components/progress-bar.d.ts
|
|
203
|
+
interface ProgressBarProps$1 extends Omit<ProgressBarProps, "children"> {
|
|
204
|
+
label?: string;
|
|
205
|
+
}
|
|
206
|
+
declare function ProgressBar({
|
|
207
|
+
className,
|
|
208
|
+
label,
|
|
209
|
+
...props
|
|
210
|
+
}: ProgressBarProps$1): JSX.Element;
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region src/components/radio-group/radio-group.d.ts
|
|
213
|
+
declare function RadioGroup({
|
|
214
|
+
className,
|
|
215
|
+
...props
|
|
216
|
+
}: RadioGroupProps): import("react").JSX.Element;
|
|
217
|
+
declare function RadioButton({
|
|
218
|
+
className,
|
|
219
|
+
...props
|
|
220
|
+
}: RadioButtonProps): import("react").JSX.Element;
|
|
221
|
+
declare function RadioField({
|
|
222
|
+
className,
|
|
223
|
+
...props
|
|
224
|
+
}: RadioFieldProps): import("react").JSX.Element;
|
|
225
|
+
declare function Radio({
|
|
226
|
+
children,
|
|
227
|
+
className,
|
|
228
|
+
...props
|
|
229
|
+
}: Omit<RadioFieldProps, "children" | "className"> & Pick<RadioButtonProps, "children" | "className">): import("react").JSX.Element;
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region src/components/search-field/search-field.d.ts
|
|
232
|
+
declare function SearchField({
|
|
233
|
+
inputProps,
|
|
234
|
+
borderProps,
|
|
235
|
+
children,
|
|
236
|
+
className,
|
|
237
|
+
size,
|
|
238
|
+
...props
|
|
239
|
+
}: SearchFieldProps & {
|
|
240
|
+
inputProps?: ComponentProps<typeof Input>;
|
|
241
|
+
borderProps?: ComponentProps<"div">;
|
|
242
|
+
size?: "small" | "medium" | "large";
|
|
243
|
+
}): import("react").JSX.Element;
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/components/select/multiple-select.d.ts
|
|
246
|
+
interface MultipleSelectProps<T extends object = {}> extends Omit<SelectProps<T, "multiple">, "children" | "className" | "validationBehavior" | "selectionMode"> {
|
|
247
|
+
items: Array<T>;
|
|
248
|
+
className?: string;
|
|
249
|
+
size?: "small" | "medium" | "large";
|
|
250
|
+
emptyTags?: React$1.ReactNode;
|
|
251
|
+
emptyList?: React$1.ReactNode;
|
|
252
|
+
tagGroupLabel?: string;
|
|
253
|
+
selectId: (item: T) => Key$1;
|
|
254
|
+
selectLabel: (item: T) => string;
|
|
255
|
+
}
|
|
256
|
+
declare function MultipleSelect<T extends object = {}>({
|
|
257
|
+
items,
|
|
258
|
+
className,
|
|
259
|
+
size,
|
|
260
|
+
emptyList,
|
|
261
|
+
emptyTags,
|
|
262
|
+
tagGroupLabel,
|
|
263
|
+
selectId,
|
|
264
|
+
selectLabel,
|
|
265
|
+
...selectProps
|
|
266
|
+
}: MultipleSelectProps<T>): React$1.JSX.Element;
|
|
267
|
+
//#endregion
|
|
268
|
+
//#region src/components/select/select.d.ts
|
|
269
|
+
declare const select: (props?: ({
|
|
270
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
271
|
+
selectionMode?: "single" | "multiple" | undefined;
|
|
272
|
+
} & ({
|
|
273
|
+
class?: import("cva").ClassValue;
|
|
274
|
+
className?: never;
|
|
275
|
+
} | {
|
|
276
|
+
class?: never;
|
|
277
|
+
className?: import("cva").ClassValue;
|
|
278
|
+
})) | undefined) => string;
|
|
279
|
+
declare function SelectButton({
|
|
280
|
+
className,
|
|
281
|
+
size,
|
|
282
|
+
...props
|
|
283
|
+
}: ButtonProps & {
|
|
284
|
+
size?: "small" | "medium" | "large";
|
|
285
|
+
}): import("react").JSX.Element;
|
|
286
|
+
declare function SelectPopover({
|
|
287
|
+
className,
|
|
288
|
+
...props
|
|
289
|
+
}: PopoverProps): import("react").JSX.Element;
|
|
290
|
+
declare function SelectListBox<T extends object>({
|
|
291
|
+
className,
|
|
292
|
+
emptyList,
|
|
293
|
+
...props
|
|
294
|
+
}: ListBoxProps<T> & {
|
|
295
|
+
emptyList?: React.ReactNode;
|
|
296
|
+
}): import("react").JSX.Element;
|
|
297
|
+
declare function SelectListBoxItem({
|
|
298
|
+
className,
|
|
299
|
+
...props
|
|
300
|
+
}: ListBoxItemProps): import("react").JSX.Element;
|
|
301
|
+
declare function SelectVirtualizer<T>(props: Omit<VirtualizerProps<T>, "layout" | "layoutOptions">): import("react").JSX.Element;
|
|
302
|
+
//#endregion
|
|
303
|
+
//#region src/components/slider/slider.d.ts
|
|
304
|
+
declare function Slider<T extends number | number[]>({
|
|
305
|
+
children,
|
|
306
|
+
className,
|
|
307
|
+
sliderThumbProps,
|
|
308
|
+
sliderTrackProps,
|
|
309
|
+
sliderTrackBackgroundClassName,
|
|
310
|
+
sliderTrackForegroundClassName,
|
|
311
|
+
...props
|
|
312
|
+
}: SliderProps<T> & {
|
|
313
|
+
sliderTrackProps?: SliderTrackProps;
|
|
314
|
+
sliderThumbProps?: SliderThumbProps;
|
|
315
|
+
sliderTrackBackgroundClassName?: string | ((values: SliderTrackRenderProps) => string);
|
|
316
|
+
sliderTrackForegroundClassName?: string | ((values: SliderFillRenderProps) => string);
|
|
317
|
+
}): import("react").JSX.Element;
|
|
318
|
+
declare function SliderOutput({
|
|
319
|
+
children,
|
|
320
|
+
className,
|
|
321
|
+
...props
|
|
322
|
+
}: SliderOutputProps): import("react").JSX.Element;
|
|
323
|
+
//#endregion
|
|
324
|
+
//#region src/components/sonner/sonner-types.d.ts
|
|
325
|
+
type ToastTypes = "normal" | "action" | "success" | "info" | "warning" | "error" | "loading" | "default";
|
|
326
|
+
type PromiseT<Data = unknown> = Promise<Data> | (() => Promise<Data>);
|
|
327
|
+
interface PromiseIExtendedResult extends ExternalToast$1 {
|
|
328
|
+
message: React.ReactNode;
|
|
329
|
+
}
|
|
330
|
+
type PromiseTExtendedResult<Data = unknown> = PromiseIExtendedResult | ((data: Data) => PromiseIExtendedResult | Promise<PromiseIExtendedResult>);
|
|
331
|
+
type PromiseTResult<Data = unknown> = string | React.ReactNode | ((data: Data) => React.ReactNode | string | Promise<React.ReactNode | string>);
|
|
332
|
+
type PromiseExternalToast = Omit<ExternalToast$1, "description">;
|
|
333
|
+
type PromiseData<ToastData = unknown> = PromiseExternalToast & {
|
|
334
|
+
loading?: string | React.ReactNode;
|
|
335
|
+
success?: PromiseTResult<ToastData> | PromiseTExtendedResult<ToastData>;
|
|
336
|
+
error?: PromiseTResult | PromiseTExtendedResult;
|
|
337
|
+
description?: PromiseTResult;
|
|
338
|
+
finally?: () => void | Promise<void>;
|
|
339
|
+
};
|
|
340
|
+
interface ToastClassnames {
|
|
341
|
+
toast?: string;
|
|
342
|
+
title?: string;
|
|
343
|
+
description?: string;
|
|
344
|
+
loader?: string;
|
|
345
|
+
closeButton?: string;
|
|
346
|
+
cancelButton?: string;
|
|
347
|
+
actionButton?: string;
|
|
348
|
+
success?: string;
|
|
349
|
+
error?: string;
|
|
350
|
+
info?: string;
|
|
351
|
+
warning?: string;
|
|
352
|
+
loading?: string;
|
|
353
|
+
default?: string;
|
|
354
|
+
content?: string;
|
|
355
|
+
icon?: string;
|
|
356
|
+
}
|
|
357
|
+
interface Action {
|
|
358
|
+
label: React.ReactNode;
|
|
359
|
+
onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
360
|
+
actionButtonStyle?: React.CSSProperties;
|
|
361
|
+
}
|
|
362
|
+
interface ToastT {
|
|
363
|
+
id: number | string;
|
|
364
|
+
title?: (() => React.ReactNode) | React.ReactNode;
|
|
365
|
+
type?: ToastTypes;
|
|
366
|
+
icon?: React.ReactNode;
|
|
367
|
+
jsx?: React.ReactNode;
|
|
368
|
+
richColors?: boolean;
|
|
369
|
+
invert?: boolean;
|
|
370
|
+
closeButton?: boolean;
|
|
371
|
+
dismissible?: boolean;
|
|
372
|
+
description?: (() => React.ReactNode) | React.ReactNode;
|
|
373
|
+
duration?: number;
|
|
374
|
+
delete?: boolean;
|
|
375
|
+
action?: Action | React.ReactNode;
|
|
376
|
+
cancel?: Action | React.ReactNode;
|
|
377
|
+
onDismiss?: (toast: ToastT) => void;
|
|
378
|
+
onAutoClose?: (toast: ToastT) => void;
|
|
379
|
+
promise?: PromiseT;
|
|
380
|
+
cancelButtonStyle?: React.CSSProperties;
|
|
381
|
+
actionButtonStyle?: React.CSSProperties;
|
|
382
|
+
style?: React.CSSProperties;
|
|
383
|
+
unstyled?: boolean;
|
|
384
|
+
className?: string;
|
|
385
|
+
classNames?: ToastClassnames;
|
|
386
|
+
descriptionClassName?: string;
|
|
387
|
+
position?: Position;
|
|
388
|
+
}
|
|
389
|
+
type Position = "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center";
|
|
390
|
+
interface ToastToDismiss {
|
|
391
|
+
id: number | string;
|
|
392
|
+
dismiss: boolean;
|
|
393
|
+
}
|
|
394
|
+
type ExternalToast$1 = Omit<ToastT, "id" | "type" | "title" | "jsx" | "delete" | "promise"> & {
|
|
395
|
+
id?: number | string;
|
|
396
|
+
};
|
|
397
|
+
type titleT = (() => React.ReactNode) | React.ReactNode;
|
|
398
|
+
type Toast = ((message: titleT, data?: ExternalToast$1) => string | number) & {
|
|
399
|
+
success: (message: titleT | React.ReactNode, data?: ExternalToast$1) => string | number;
|
|
400
|
+
info: (message: titleT | React.ReactNode, data?: ExternalToast$1) => string | number;
|
|
401
|
+
warning: (message: titleT | React.ReactNode, data?: ExternalToast$1) => string | number;
|
|
402
|
+
error: (message: titleT | React.ReactNode, data?: ExternalToast$1) => string | number;
|
|
403
|
+
custom: (jsx: (id: number | string) => React.ReactElement, data?: ExternalToast$1) => string | number;
|
|
404
|
+
message: (message: titleT | React.ReactNode, data?: ExternalToast$1) => string | number;
|
|
405
|
+
promise: <ToastData>(promise: PromiseT<ToastData>, data?: PromiseData<ToastData>) => (string & {
|
|
406
|
+
unwrap: () => Promise<ToastData>;
|
|
407
|
+
}) | (number & {
|
|
408
|
+
unwrap: () => Promise<ToastData>;
|
|
409
|
+
}) | {
|
|
410
|
+
unwrap: () => Promise<ToastData>;
|
|
411
|
+
};
|
|
412
|
+
dismiss: (id?: number | string) => string | number;
|
|
413
|
+
loading: (message: titleT | React.ReactNode, data?: ExternalToast$1) => string | number;
|
|
414
|
+
} & {
|
|
415
|
+
getHistory: () => (ToastT | ToastToDismiss)[];
|
|
416
|
+
getToasts: () => (ToastT | ToastToDismiss)[];
|
|
417
|
+
};
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region src/components/sonner/sonner.d.ts
|
|
420
|
+
type ToastVariant = "default" | "hextech";
|
|
421
|
+
declare const sonner: Toast;
|
|
422
|
+
type SonnerProps = ExternalToast;
|
|
423
|
+
declare function Sonner(props: ToasterProps): import("react").JSX.Element;
|
|
424
|
+
//#endregion
|
|
425
|
+
//#region src/components/spinner/spinner.d.ts
|
|
426
|
+
interface SpinnerProps {
|
|
427
|
+
className?: string;
|
|
428
|
+
}
|
|
429
|
+
declare function Spinner({
|
|
430
|
+
className
|
|
431
|
+
}: SpinnerProps): import("react").JSX.Element;
|
|
432
|
+
//#endregion
|
|
433
|
+
//#region src/components/switch.d.ts
|
|
434
|
+
declare function SwitchButton({
|
|
435
|
+
className,
|
|
436
|
+
children,
|
|
437
|
+
...props
|
|
438
|
+
}: SwitchButtonProps): import("react").JSX.Element;
|
|
439
|
+
declare function SwitchField({
|
|
440
|
+
className,
|
|
441
|
+
...props
|
|
442
|
+
}: SwitchFieldProps): import("react").JSX.Element;
|
|
443
|
+
declare function Switch({
|
|
444
|
+
children,
|
|
445
|
+
className,
|
|
446
|
+
...props
|
|
447
|
+
}: Omit<SwitchFieldProps, "children" | "className"> & Pick<SwitchButtonProps, "children" | "className">): import("react").JSX.Element;
|
|
448
|
+
//#endregion
|
|
449
|
+
//#region src/components/table.d.ts
|
|
450
|
+
/** Horizontal alignment shared by `TableColumn` and `TableCell`. */
|
|
451
|
+
type TableAlign = "start" | "center" | "end";
|
|
452
|
+
declare const table: (props?: ({
|
|
453
|
+
class?: import("cva").ClassValue;
|
|
454
|
+
className?: never;
|
|
455
|
+
} | {
|
|
456
|
+
class?: never;
|
|
457
|
+
className?: import("cva").ClassValue;
|
|
458
|
+
}) | undefined) => string;
|
|
459
|
+
interface TableProps extends TableProps$1 {}
|
|
460
|
+
declare function Table({
|
|
461
|
+
className,
|
|
462
|
+
...props
|
|
463
|
+
}: TableProps): import("react").JSX.Element;
|
|
464
|
+
declare const tableColumn: (props?: ({
|
|
465
|
+
align?: "start" | "center" | "end" | undefined;
|
|
466
|
+
} & ({
|
|
467
|
+
class?: import("cva").ClassValue;
|
|
468
|
+
className?: never;
|
|
469
|
+
} | {
|
|
470
|
+
class?: never;
|
|
471
|
+
className?: import("cva").ClassValue;
|
|
472
|
+
})) | undefined) => string;
|
|
473
|
+
interface TableColumnProps extends ColumnProps {
|
|
474
|
+
align?: TableAlign;
|
|
475
|
+
}
|
|
476
|
+
declare function TableColumn({
|
|
477
|
+
align,
|
|
478
|
+
children,
|
|
479
|
+
className,
|
|
480
|
+
...props
|
|
481
|
+
}: TableColumnProps): import("react").JSX.Element;
|
|
482
|
+
interface TableColumnResizerProps extends ColumnResizerProps {}
|
|
483
|
+
declare function TableColumnResizer({
|
|
484
|
+
className,
|
|
485
|
+
...props
|
|
486
|
+
}: TableColumnResizerProps): import("react").JSX.Element;
|
|
487
|
+
interface TableBodyProps<T extends object> extends TableBodyProps$1<T> {
|
|
488
|
+
/** Rendered when the table has no rows. */
|
|
489
|
+
emptyState?: React.ReactNode;
|
|
490
|
+
}
|
|
491
|
+
declare function TableBody<T extends object>({
|
|
492
|
+
emptyState,
|
|
493
|
+
renderEmptyState,
|
|
494
|
+
...props
|
|
495
|
+
}: TableBodyProps<T>): import("react").JSX.Element;
|
|
496
|
+
declare const tableRow: (props?: ({
|
|
497
|
+
class?: import("cva").ClassValue;
|
|
498
|
+
className?: never;
|
|
499
|
+
} | {
|
|
500
|
+
class?: never;
|
|
501
|
+
className?: import("cva").ClassValue;
|
|
502
|
+
}) | undefined) => string;
|
|
503
|
+
interface TableRowProps<T extends object> extends RowProps<T> {}
|
|
504
|
+
declare function TableRow<T extends object>({
|
|
505
|
+
className,
|
|
506
|
+
...props
|
|
507
|
+
}: TableRowProps<T>): import("react").JSX.Element;
|
|
508
|
+
declare const tableCell: (props?: ({
|
|
509
|
+
align?: "start" | "center" | "end" | undefined;
|
|
510
|
+
} & ({
|
|
511
|
+
class?: import("cva").ClassValue;
|
|
512
|
+
className?: never;
|
|
513
|
+
} | {
|
|
514
|
+
class?: never;
|
|
515
|
+
className?: import("cva").ClassValue;
|
|
516
|
+
})) | undefined) => string;
|
|
517
|
+
interface TableCellProps extends CellProps {
|
|
518
|
+
align?: TableAlign;
|
|
519
|
+
}
|
|
520
|
+
declare function TableCell({
|
|
521
|
+
align,
|
|
522
|
+
className,
|
|
523
|
+
...props
|
|
524
|
+
}: TableCellProps): import("react").JSX.Element;
|
|
525
|
+
interface TableFooterProps<T extends object> extends TableFooterProps$1<T> {}
|
|
526
|
+
declare function TableFooter<T extends object>({
|
|
527
|
+
className,
|
|
528
|
+
...props
|
|
529
|
+
}: TableFooterProps<T>): import("react").JSX.Element;
|
|
530
|
+
//#endregion
|
|
531
|
+
//#region src/components/tabs.d.ts
|
|
532
|
+
declare const Tabs: (props: import("react-aria-components").TabsProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
533
|
+
declare function TabList<T extends object>({
|
|
534
|
+
className,
|
|
535
|
+
...rest
|
|
536
|
+
}: TabListProps<T>): import("react").JSX.Element;
|
|
537
|
+
declare function Tab({
|
|
538
|
+
children,
|
|
539
|
+
className,
|
|
540
|
+
...rest
|
|
541
|
+
}: TabProps): import("react").JSX.Element;
|
|
542
|
+
declare function TabPanel({
|
|
543
|
+
...rest
|
|
544
|
+
}: TabPanelProps): import("react").JSX.Element;
|
|
545
|
+
//#endregion
|
|
546
|
+
//#region src/components/tag-group/tag-group.d.ts
|
|
547
|
+
interface TagProps extends TagProps$1 {
|
|
548
|
+
variant?: "gold" | "hextech" | "grey";
|
|
549
|
+
}
|
|
550
|
+
declare function Tag({
|
|
551
|
+
children,
|
|
552
|
+
className,
|
|
553
|
+
variant,
|
|
554
|
+
...props
|
|
555
|
+
}: TagProps): import("react").JSX.Element;
|
|
556
|
+
declare const tagGroup: (props?: ({
|
|
557
|
+
class?: import("cva").ClassValue;
|
|
558
|
+
className?: never;
|
|
559
|
+
} | {
|
|
560
|
+
class?: never;
|
|
561
|
+
className?: import("cva").ClassValue;
|
|
562
|
+
}) | undefined) => string;
|
|
563
|
+
interface TagGroupProps extends TagGroupProps$1 {}
|
|
564
|
+
declare function TagGroup({
|
|
565
|
+
children,
|
|
566
|
+
className,
|
|
567
|
+
...props
|
|
568
|
+
}: TagGroupProps): import("react").JSX.Element;
|
|
569
|
+
declare const tagList: (props?: ({
|
|
570
|
+
class?: import("cva").ClassValue;
|
|
571
|
+
className?: never;
|
|
572
|
+
} | {
|
|
573
|
+
class?: never;
|
|
574
|
+
className?: import("cva").ClassValue;
|
|
575
|
+
}) | undefined) => string;
|
|
576
|
+
interface TagListProps<T extends object = {}> extends TagListProps$1<T> {
|
|
577
|
+
children?: React.ReactNode;
|
|
578
|
+
className?: string;
|
|
579
|
+
selectLabel: (item: T) => string;
|
|
580
|
+
variant?: TagProps["variant"];
|
|
581
|
+
}
|
|
582
|
+
declare function TagList<T extends object>({
|
|
583
|
+
children,
|
|
584
|
+
className,
|
|
585
|
+
selectLabel,
|
|
586
|
+
variant,
|
|
587
|
+
...props
|
|
588
|
+
}: TagListProps<T> & {
|
|
589
|
+
selectLabel: (item: T) => string;
|
|
590
|
+
variant?: TagProps["variant"];
|
|
591
|
+
}): import("react").JSX.Element;
|
|
592
|
+
//#endregion
|
|
593
|
+
//#region src/components/text-area.d.ts
|
|
594
|
+
declare function TextArea({
|
|
595
|
+
textAreaProps,
|
|
596
|
+
children,
|
|
597
|
+
...props
|
|
598
|
+
}: TextFieldProps & {
|
|
599
|
+
textAreaProps?: TextAreaProps;
|
|
600
|
+
}): import("react").JSX.Element;
|
|
601
|
+
//#endregion
|
|
602
|
+
//#region src/components/text-field.d.ts
|
|
603
|
+
declare const textField: (props?: ({
|
|
604
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
605
|
+
isTextArea?: boolean | undefined;
|
|
606
|
+
} & ({
|
|
607
|
+
class?: import("cva").ClassValue;
|
|
608
|
+
className?: never;
|
|
609
|
+
} | {
|
|
610
|
+
class?: never;
|
|
611
|
+
className?: import("cva").ClassValue;
|
|
612
|
+
})) | undefined) => string;
|
|
613
|
+
declare function TextField({
|
|
614
|
+
inputProps,
|
|
615
|
+
borderProps,
|
|
616
|
+
children,
|
|
617
|
+
size,
|
|
618
|
+
...props
|
|
619
|
+
}: TextFieldProps & {
|
|
620
|
+
inputProps?: InputProps;
|
|
621
|
+
borderProps?: ComponentProps<"div">;
|
|
622
|
+
size?: "small" | "medium" | "large";
|
|
623
|
+
}): import("react").JSX.Element;
|
|
624
|
+
//#endregion
|
|
625
|
+
//#region src/components/toggle-button.d.ts
|
|
626
|
+
type ToggleButtonPreset = "secondary" | "hextech" | "dimmed";
|
|
627
|
+
interface ToggleButtonProps$1 extends ToggleButtonProps {
|
|
628
|
+
preset?: ToggleButtonPreset;
|
|
629
|
+
thin?: boolean;
|
|
630
|
+
shape?: ButtonShape;
|
|
631
|
+
size?: ButtonSize;
|
|
632
|
+
}
|
|
633
|
+
declare function ToggleButton({
|
|
634
|
+
children,
|
|
635
|
+
className,
|
|
636
|
+
preset,
|
|
637
|
+
shape,
|
|
638
|
+
size,
|
|
639
|
+
thin,
|
|
640
|
+
...props
|
|
641
|
+
}: ToggleButtonProps$1): import("react").JSX.Element;
|
|
642
|
+
//#endregion
|
|
643
|
+
//#region src/components/typography/heading.d.ts
|
|
644
|
+
type HeadingColor = "gold100" | "gold200" | "gold400" | "grey100";
|
|
645
|
+
type HeadingElement = "h1" | "h2" | "h3" | "h4" | "h5";
|
|
646
|
+
interface HeadingProps$1 extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> {
|
|
647
|
+
preset?: HeadingElement;
|
|
648
|
+
color?: HeadingColor;
|
|
649
|
+
as?: HeadingElement | "span";
|
|
650
|
+
}
|
|
651
|
+
declare const heading: (props?: ({
|
|
652
|
+
color?: "grey100" | "gold100" | "gold200" | "gold400" | undefined;
|
|
653
|
+
preset?: "h1" | "h2" | "h3" | "h4" | "h5" | undefined;
|
|
654
|
+
} & ({
|
|
655
|
+
class?: import("cva").ClassValue;
|
|
656
|
+
className?: never;
|
|
657
|
+
} | {
|
|
658
|
+
class?: never;
|
|
659
|
+
className?: import("cva").ClassValue;
|
|
660
|
+
})) | undefined) => string;
|
|
661
|
+
declare function Heading({
|
|
662
|
+
as,
|
|
663
|
+
preset,
|
|
664
|
+
color,
|
|
665
|
+
className,
|
|
666
|
+
...rest
|
|
667
|
+
}: HeadingProps$1): JSX.Element;
|
|
668
|
+
//#endregion
|
|
669
|
+
//#region src/components/typography/text.d.ts
|
|
670
|
+
type TextColor = "grey100" | "grey150" | "gold100";
|
|
671
|
+
type TextElement = "p" | "span" | "div";
|
|
672
|
+
type TextPreset = "sm" | "base" | "md" | "lg" | "largeNumber" | "stat";
|
|
673
|
+
declare const text: (props?: ({
|
|
674
|
+
color?: "grey100" | "grey150" | "gold100" | undefined;
|
|
675
|
+
preset?: "sm" | "base" | "md" | "lg" | "label" | "largeNumber" | "stat" | undefined;
|
|
676
|
+
} & ({
|
|
677
|
+
class?: import("cva").ClassValue;
|
|
678
|
+
className?: never;
|
|
679
|
+
} | {
|
|
680
|
+
class?: never;
|
|
681
|
+
className?: import("cva").ClassValue;
|
|
682
|
+
})) | undefined) => string;
|
|
683
|
+
interface TextProps$1 extends TextProps {
|
|
684
|
+
preset?: TextPreset;
|
|
685
|
+
color?: TextColor;
|
|
686
|
+
}
|
|
687
|
+
declare function Text({
|
|
688
|
+
preset,
|
|
689
|
+
color,
|
|
690
|
+
className,
|
|
691
|
+
...rest
|
|
692
|
+
}: TextProps$1): JSX.Element;
|
|
693
|
+
interface LabelProps$1 extends LabelProps {
|
|
694
|
+
preset?: TextPreset | "label";
|
|
695
|
+
color?: TextColor;
|
|
696
|
+
}
|
|
697
|
+
declare function Label({
|
|
698
|
+
preset,
|
|
699
|
+
color,
|
|
700
|
+
className,
|
|
701
|
+
...rest
|
|
702
|
+
}: LabelProps$1): JSX.Element;
|
|
703
|
+
//#endregion
|
|
704
|
+
export { Autocomplete, AutocompleteContext, AutocompleteStateContext, Breadcrumb, Breadcrumbs, Button, ButtonLink, ButtonPreset, ButtonShape, ButtonSize, Checkbox, CheckboxButton, CheckboxField, Collection, Dialog, DialogButtons, DialogHeading, DialogTrigger, Disclosure, DisclosureButton, DisclosureGroup, DisclosurePanel, Divider, FieldError, GridLayout, Heading, HeadingColor, HeadingElement, type Key, Label, ListBoxItem, ListLayout, Menu, MenuHeader, MenuItem, type MenuItemProps, MenuPopover, type MenuProps, MenuSection, MenuSeparator, MenuTrigger, MenuVirtualizer, Modal, MultipleSelect, MultipleSelectProps, NumberField, Popover, ProgressBar, Radio, RadioButton, RadioField, RadioGroup, ResizableTableContainer, RouterProvider, SearchField, Select, SelectButton, SelectListBox, SelectListBoxItem, SelectPopover, SelectValue, SelectVirtualizer, type Selection, Size, Slider, SliderOutput, Sonner, SonnerProps, type SortDescriptor, type SortDirection, Spinner, SubmenuTrigger, Switch, SwitchButton, SwitchField, Tab, TabList, TabPanel, Table, TableAlign, TableBody, TableBodyProps, TableCell, TableCellProps, TableColumn, TableColumnProps, TableColumnResizer, TableColumnResizerProps, TableFooter, TableFooterProps, TableHeader, TableLayout, TableProps, TableRow, TableRowProps, Tabs, Tag, TagGroup, TagGroupProps, TagList, TagListProps, TagProps, Text, TextArea, TextColor, TextElement, TextField, TextPreset, ToastVariant, ToggleButton, ToggleButtonPreset, UnstyledPopover, Virtualizer, WaterfallLayout, button, heading, select, sonner, table, tableCell, tableColumn, tableRow, tagGroup, tagList, text, textField, useFilter };
|
|
705
|
+
//# sourceMappingURL=index.d.mts.map
|