@lolmath/ui 8.1.0 → 9.1.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 +2262 -0
- package/dist/index.d.mts +498 -0
- package/dist/index.mjs +1422 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +36 -33
- package/dist/es/index.css +0 -1400
- package/dist/es/index.d.ts +0 -366
- package/dist/es/index.js +0 -1713
- 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 -1400
- package/dist/lib/index.d.cts +0 -366
package/dist/es/index.d.ts
DELETED
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
import * as react_aria_components from 'react-aria-components';
|
|
2
|
-
import { BreadcrumbsProps, BreadcrumbProps, ButtonProps as ButtonProps$1, LinkProps, CheckboxProps, DisclosureProps, DisclosurePanelProps, MenuTrigger as MenuTrigger$1, MenuProps, MenuItemProps, PopoverProps, MenuSectionProps, Header, SeparatorProps, VirtualizerProps, HeadingProps as HeadingProps$1, ModalOverlayProps, DialogProps, NumberFieldProps, Input, Group, ProgressBarProps as ProgressBarProps$1, RadioGroupProps, RadioProps, SearchFieldProps, SelectProps, Key, ListBoxProps, ListBoxItemProps, SliderProps, SliderTrackProps, SliderThumbProps, SliderTrackRenderProps, SliderOutputProps, SwitchProps, TabListProps, TabProps, TabPanelProps, TagProps as TagProps$1, TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TextFieldProps, TextAreaProps, InputProps, ToggleButtonProps as ToggleButtonProps$1, TextProps as TextProps$1, LabelProps as LabelProps$1 } from 'react-aria-components';
|
|
3
|
-
export { Autocomplete, Collection, Dialog, DialogTrigger, FieldError, GridLayout, Key, ListBoxItem, ListLayout, MenuItemProps, MenuProps, RouterProvider, Select, SelectValue, Selection, Size, TableLayout, Popover as UnstyledPopover, Virtualizer, WaterfallLayout, useFilter } from 'react-aria-components';
|
|
4
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import * as cva from 'cva';
|
|
6
|
-
import * as react from 'react';
|
|
7
|
-
import react__default, { Ref, ComponentProps, JSX } from 'react';
|
|
8
|
-
import { ExternalToast as ExternalToast$1, ToasterProps } from 'sonner';
|
|
9
|
-
|
|
10
|
-
declare function Breadcrumbs<T extends object>({ className, ...props }: BreadcrumbsProps<T>): react_jsx_runtime.JSX.Element;
|
|
11
|
-
declare function Breadcrumb({ className, children, href, ...props }: BreadcrumbProps & {
|
|
12
|
-
href?: string;
|
|
13
|
-
}): react_jsx_runtime.JSX.Element;
|
|
14
|
-
|
|
15
|
-
type ButtonShape = "round" | "square" | "normal";
|
|
16
|
-
type ButtonPreset = "primary" | "secondary" | "text" | "hextech" | "dimmed";
|
|
17
|
-
type ButtonSize = "small" | "medium" | "large";
|
|
18
|
-
interface ButtonProps extends ButtonProps$1 {
|
|
19
|
-
preset?: ButtonPreset;
|
|
20
|
-
thin?: boolean;
|
|
21
|
-
shape?: ButtonShape;
|
|
22
|
-
size?: ButtonSize;
|
|
23
|
-
}
|
|
24
|
-
declare const button: (props?: ({
|
|
25
|
-
preset?: "primary" | "secondary" | "text" | "hextech" | "dimmed" | undefined;
|
|
26
|
-
shape?: "round" | "square" | "normal" | undefined;
|
|
27
|
-
thin?: boolean | undefined;
|
|
28
|
-
size?: "small" | "medium" | "large" | undefined;
|
|
29
|
-
} & ({
|
|
30
|
-
class?: cva.ClassValue;
|
|
31
|
-
className?: never;
|
|
32
|
-
} | {
|
|
33
|
-
class?: never;
|
|
34
|
-
className?: cva.ClassValue;
|
|
35
|
-
})) | undefined) => string;
|
|
36
|
-
declare function Button({ children, className, preset, shape, size, thin, ref, ...props }: ButtonProps & {
|
|
37
|
-
ref?: Ref<HTMLButtonElement>;
|
|
38
|
-
}): react_jsx_runtime.JSX.Element;
|
|
39
|
-
|
|
40
|
-
interface ButtonLinkProps extends LinkProps {
|
|
41
|
-
preset?: ButtonPreset;
|
|
42
|
-
thin?: boolean;
|
|
43
|
-
shape?: ButtonShape;
|
|
44
|
-
size?: ButtonSize;
|
|
45
|
-
}
|
|
46
|
-
declare function ButtonLink({ children, className, preset, shape, size, ref, thin, ...props }: ButtonLinkProps & {
|
|
47
|
-
ref?: Ref<HTMLAnchorElement>;
|
|
48
|
-
}): react_jsx_runtime.JSX.Element;
|
|
49
|
-
|
|
50
|
-
declare function Checkbox({ children, className, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
51
|
-
|
|
52
|
-
declare const DisclosureGroup: react.ForwardRefExoticComponent<react_aria_components.DisclosureGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
53
|
-
declare function DisclosureButton({ children, className, ...props }: ButtonProps$1): react_jsx_runtime.JSX.Element;
|
|
54
|
-
declare function Disclosure({ className, ...props }: DisclosureProps): react_jsx_runtime.JSX.Element;
|
|
55
|
-
declare function DisclosurePanel({ className, ...props }: DisclosurePanelProps): react_jsx_runtime.JSX.Element;
|
|
56
|
-
|
|
57
|
-
interface DividerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
58
|
-
preset?: "left" | "center" | "right";
|
|
59
|
-
hrProps?: React.HTMLAttributes<HTMLHRElement>;
|
|
60
|
-
childrenWrapperProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
61
|
-
}
|
|
62
|
-
declare function Divider({ preset, hrProps: { className: hrClassName, ...hrProps }, childrenWrapperProps: { className: childrenWrapperClassName, ...childrenWrapperProps }, className, children, ...rest }: DividerProps): react_jsx_runtime.JSX.Element;
|
|
63
|
-
|
|
64
|
-
declare const MenuTrigger: typeof MenuTrigger$1;
|
|
65
|
-
declare const SubmenuTrigger: (props: react_aria_components.SubmenuTriggerProps & React.RefAttributes<HTMLDivElement>) => react.ReactElement | null;
|
|
66
|
-
declare function Menu<T extends object>({ className, ...props }: MenuProps<T>): react_jsx_runtime.JSX.Element;
|
|
67
|
-
declare function MenuItem<T extends object>({ className, ...props }: MenuItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
68
|
-
declare function MenuPopover({ className, ...props }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
69
|
-
declare function MenuSection<T extends object>({ className, ...props }: MenuSectionProps<T>): react_jsx_runtime.JSX.Element;
|
|
70
|
-
declare function MenuHeader({ className, ...props }: ComponentProps<typeof Header>): react_jsx_runtime.JSX.Element;
|
|
71
|
-
declare function MenuSeparator({ className, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
72
|
-
declare function MenuVirtualizer<T>(props: Omit<VirtualizerProps<T>, "layout" | "layoutOptions">): react_jsx_runtime.JSX.Element;
|
|
73
|
-
|
|
74
|
-
interface ModalProps extends Omit<ModalOverlayProps, "children"> {
|
|
75
|
-
modalOverlayClassName?: ModalOverlayProps["className"];
|
|
76
|
-
dialogProps?: Omit<DialogProps, "children">;
|
|
77
|
-
children?: DialogProps["children"];
|
|
78
|
-
}
|
|
79
|
-
declare function Modal({ modalOverlayClassName, dialogProps, children, className, ...modalProps }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
80
|
-
declare function DialogHeading({ className, ...props }: HeadingProps$1): react_jsx_runtime.JSX.Element;
|
|
81
|
-
declare function DialogButtons({ children }: {
|
|
82
|
-
children: React.ReactNode;
|
|
83
|
-
}): react_jsx_runtime.JSX.Element;
|
|
84
|
-
|
|
85
|
-
type NumberFieldPreset = "normal" | "dimmed";
|
|
86
|
-
declare function NumberField({ inputProps, groupProps, children, preset, size, ...props }: NumberFieldProps & {
|
|
87
|
-
inputProps?: ComponentProps<typeof Input>;
|
|
88
|
-
groupProps?: ComponentProps<typeof Group>;
|
|
89
|
-
preset?: NumberFieldPreset;
|
|
90
|
-
size?: "small" | "medium" | "large";
|
|
91
|
-
}): react_jsx_runtime.JSX.Element;
|
|
92
|
-
|
|
93
|
-
declare function Popover({ children, className, ...props }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
94
|
-
|
|
95
|
-
interface ProgressBarProps extends Omit<ProgressBarProps$1, "children"> {
|
|
96
|
-
label?: string;
|
|
97
|
-
}
|
|
98
|
-
declare function ProgressBar({ className, label, ...props }: ProgressBarProps): JSX.Element;
|
|
99
|
-
|
|
100
|
-
declare function RadioGroup({ className, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
101
|
-
declare function Radio({ className, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
|
|
102
|
-
|
|
103
|
-
declare function SearchField({ inputProps, borderProps, children, className, size, ...props }: SearchFieldProps & {
|
|
104
|
-
inputProps?: ComponentProps<typeof Input>;
|
|
105
|
-
borderProps?: ComponentProps<"div">;
|
|
106
|
-
size?: "small" | "medium" | "large";
|
|
107
|
-
}): react_jsx_runtime.JSX.Element;
|
|
108
|
-
|
|
109
|
-
interface MultipleSelectProps<T extends object = {}> extends Omit<SelectProps<T, "multiple">, "children" | "className" | "validationBehavior" | "selectionMode"> {
|
|
110
|
-
items: Array<T>;
|
|
111
|
-
className?: string;
|
|
112
|
-
size?: "small" | "medium" | "large";
|
|
113
|
-
emptyTags?: react__default.ReactNode;
|
|
114
|
-
emptyList?: react__default.ReactNode;
|
|
115
|
-
tagGroupLabel?: string;
|
|
116
|
-
selectId: (item: T) => Key;
|
|
117
|
-
selectLabel: (item: T) => string;
|
|
118
|
-
}
|
|
119
|
-
declare function MultipleSelect<T extends object = {}>({ items, className, size, emptyList, emptyTags, tagGroupLabel, selectId, selectLabel, ...selectProps }: MultipleSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
120
|
-
|
|
121
|
-
declare const select: (props?: ({
|
|
122
|
-
size?: "small" | "medium" | "large" | undefined;
|
|
123
|
-
selectionMode?: "multiple" | "single" | undefined;
|
|
124
|
-
} & ({
|
|
125
|
-
class?: cva.ClassValue;
|
|
126
|
-
className?: never;
|
|
127
|
-
} | {
|
|
128
|
-
class?: never;
|
|
129
|
-
className?: cva.ClassValue;
|
|
130
|
-
})) | undefined) => string;
|
|
131
|
-
declare function SelectButton({ className, size, ...props }: ButtonProps$1 & {
|
|
132
|
-
size?: "small" | "medium" | "large";
|
|
133
|
-
}): react_jsx_runtime.JSX.Element;
|
|
134
|
-
declare function SelectPopover({ className, ...props }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
135
|
-
declare function SelectListBox<T extends object>({ className, emptyList, ...props }: ListBoxProps<T> & {
|
|
136
|
-
emptyList?: React.ReactNode;
|
|
137
|
-
}): react_jsx_runtime.JSX.Element;
|
|
138
|
-
declare function SelectListBoxItem({ className, ...props }: ListBoxItemProps): react_jsx_runtime.JSX.Element;
|
|
139
|
-
declare function SelectVirtualizer<T>(props: Omit<VirtualizerProps<T>, "layout" | "layoutOptions">): react_jsx_runtime.JSX.Element;
|
|
140
|
-
|
|
141
|
-
declare function Slider<T extends number | number[]>({ children, className, sliderThumbProps, sliderTrackProps, sliderTrackBackgroundClassName, sliderTrackForegroundClassName, ...props }: SliderProps<T> & {
|
|
142
|
-
sliderTrackProps?: SliderTrackProps;
|
|
143
|
-
sliderThumbProps?: SliderThumbProps;
|
|
144
|
-
sliderTrackBackgroundClassName?: string | ((values: SliderTrackRenderProps) => string);
|
|
145
|
-
sliderTrackForegroundClassName?: string | ((values: SliderTrackRenderProps) => string);
|
|
146
|
-
}): react_jsx_runtime.JSX.Element;
|
|
147
|
-
declare function SliderOutput({ children, className, ...props }: SliderOutputProps): react_jsx_runtime.JSX.Element;
|
|
148
|
-
|
|
149
|
-
type ToastTypes = "normal" | "action" | "success" | "info" | "warning" | "error" | "loading" | "default";
|
|
150
|
-
type PromiseT<Data = unknown> = Promise<Data> | (() => Promise<Data>);
|
|
151
|
-
interface PromiseIExtendedResult extends ExternalToast {
|
|
152
|
-
message: React.ReactNode;
|
|
153
|
-
}
|
|
154
|
-
type PromiseTExtendedResult<Data = unknown> = PromiseIExtendedResult | ((data: Data) => PromiseIExtendedResult | Promise<PromiseIExtendedResult>);
|
|
155
|
-
type PromiseTResult<Data = unknown> = string | React.ReactNode | ((data: Data) => React.ReactNode | string | Promise<React.ReactNode | string>);
|
|
156
|
-
type PromiseExternalToast = Omit<ExternalToast, "description">;
|
|
157
|
-
type PromiseData<ToastData = unknown> = PromiseExternalToast & {
|
|
158
|
-
loading?: string | React.ReactNode;
|
|
159
|
-
success?: PromiseTResult<ToastData> | PromiseTExtendedResult<ToastData>;
|
|
160
|
-
error?: PromiseTResult | PromiseTExtendedResult;
|
|
161
|
-
description?: PromiseTResult;
|
|
162
|
-
finally?: () => void | Promise<void>;
|
|
163
|
-
};
|
|
164
|
-
interface ToastClassnames {
|
|
165
|
-
toast?: string;
|
|
166
|
-
title?: string;
|
|
167
|
-
description?: string;
|
|
168
|
-
loader?: string;
|
|
169
|
-
closeButton?: string;
|
|
170
|
-
cancelButton?: string;
|
|
171
|
-
actionButton?: string;
|
|
172
|
-
success?: string;
|
|
173
|
-
error?: string;
|
|
174
|
-
info?: string;
|
|
175
|
-
warning?: string;
|
|
176
|
-
loading?: string;
|
|
177
|
-
default?: string;
|
|
178
|
-
content?: string;
|
|
179
|
-
icon?: string;
|
|
180
|
-
}
|
|
181
|
-
interface Action {
|
|
182
|
-
label: React.ReactNode;
|
|
183
|
-
onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
184
|
-
actionButtonStyle?: React.CSSProperties;
|
|
185
|
-
}
|
|
186
|
-
interface ToastT {
|
|
187
|
-
id: number | string;
|
|
188
|
-
title?: (() => React.ReactNode) | React.ReactNode;
|
|
189
|
-
type?: ToastTypes;
|
|
190
|
-
icon?: React.ReactNode;
|
|
191
|
-
jsx?: React.ReactNode;
|
|
192
|
-
richColors?: boolean;
|
|
193
|
-
invert?: boolean;
|
|
194
|
-
closeButton?: boolean;
|
|
195
|
-
dismissible?: boolean;
|
|
196
|
-
description?: (() => React.ReactNode) | React.ReactNode;
|
|
197
|
-
duration?: number;
|
|
198
|
-
delete?: boolean;
|
|
199
|
-
action?: Action | React.ReactNode;
|
|
200
|
-
cancel?: Action | React.ReactNode;
|
|
201
|
-
onDismiss?: (toast: ToastT) => void;
|
|
202
|
-
onAutoClose?: (toast: ToastT) => void;
|
|
203
|
-
promise?: PromiseT;
|
|
204
|
-
cancelButtonStyle?: React.CSSProperties;
|
|
205
|
-
actionButtonStyle?: React.CSSProperties;
|
|
206
|
-
style?: React.CSSProperties;
|
|
207
|
-
unstyled?: boolean;
|
|
208
|
-
className?: string;
|
|
209
|
-
classNames?: ToastClassnames;
|
|
210
|
-
descriptionClassName?: string;
|
|
211
|
-
position?: Position;
|
|
212
|
-
}
|
|
213
|
-
type Position = "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center";
|
|
214
|
-
interface ToastToDismiss {
|
|
215
|
-
id: number | string;
|
|
216
|
-
dismiss: boolean;
|
|
217
|
-
}
|
|
218
|
-
type ExternalToast = Omit<ToastT, "id" | "type" | "title" | "jsx" | "delete" | "promise"> & {
|
|
219
|
-
id?: number | string;
|
|
220
|
-
};
|
|
221
|
-
type titleT = (() => React.ReactNode) | React.ReactNode;
|
|
222
|
-
type Toast = ((message: titleT, data?: ExternalToast) => string | number) & {
|
|
223
|
-
success: (message: titleT | React.ReactNode, data?: ExternalToast) => string | number;
|
|
224
|
-
info: (message: titleT | React.ReactNode, data?: ExternalToast) => string | number;
|
|
225
|
-
warning: (message: titleT | React.ReactNode, data?: ExternalToast) => string | number;
|
|
226
|
-
error: (message: titleT | React.ReactNode, data?: ExternalToast) => string | number;
|
|
227
|
-
custom: (jsx: (id: number | string) => React.ReactElement, data?: ExternalToast) => string | number;
|
|
228
|
-
message: (message: titleT | React.ReactNode, data?: ExternalToast) => string | number;
|
|
229
|
-
promise: <ToastData>(promise: PromiseT<ToastData>, data?: PromiseData<ToastData>) => (string & {
|
|
230
|
-
unwrap: () => Promise<ToastData>;
|
|
231
|
-
}) | (number & {
|
|
232
|
-
unwrap: () => Promise<ToastData>;
|
|
233
|
-
}) | {
|
|
234
|
-
unwrap: () => Promise<ToastData>;
|
|
235
|
-
};
|
|
236
|
-
dismiss: (id?: number | string) => string | number;
|
|
237
|
-
loading: (message: titleT | React.ReactNode, data?: ExternalToast) => string | number;
|
|
238
|
-
} & {
|
|
239
|
-
getHistory: () => (ToastT | ToastToDismiss)[];
|
|
240
|
-
getToasts: () => (ToastT | ToastToDismiss)[];
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
type ToastVariant = "default" | "hextech";
|
|
244
|
-
declare const sonner: Toast;
|
|
245
|
-
type SonnerProps = ExternalToast$1;
|
|
246
|
-
declare function Sonner(props: ToasterProps): react_jsx_runtime.JSX.Element;
|
|
247
|
-
|
|
248
|
-
interface SpinnerProps {
|
|
249
|
-
className?: string;
|
|
250
|
-
}
|
|
251
|
-
declare function Spinner({ className }: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
252
|
-
|
|
253
|
-
declare function Switch({ className, placeholder, children, ...props }: SwitchProps & {
|
|
254
|
-
placeholder?: string;
|
|
255
|
-
}): react_jsx_runtime.JSX.Element;
|
|
256
|
-
|
|
257
|
-
declare const Tabs: (props: react_aria_components.TabsProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
258
|
-
declare function TabList<T extends object>({ className, ...rest }: TabListProps<T>): react_jsx_runtime.JSX.Element;
|
|
259
|
-
declare function Tab({ children, className, ...rest }: TabProps): react_jsx_runtime.JSX.Element;
|
|
260
|
-
declare function TabPanel({ ...rest }: TabPanelProps): react_jsx_runtime.JSX.Element;
|
|
261
|
-
|
|
262
|
-
interface TagProps extends TagProps$1 {
|
|
263
|
-
variant?: "gold" | "hextech" | "grey";
|
|
264
|
-
}
|
|
265
|
-
declare function Tag({ children, className, variant, ...props }: TagProps): react_jsx_runtime.JSX.Element;
|
|
266
|
-
declare const tagGroup: (props?: ({
|
|
267
|
-
class?: cva.ClassValue;
|
|
268
|
-
className?: never;
|
|
269
|
-
} | {
|
|
270
|
-
class?: never;
|
|
271
|
-
className?: cva.ClassValue;
|
|
272
|
-
}) | undefined) => string;
|
|
273
|
-
interface TagGroupProps extends TagGroupProps$1 {
|
|
274
|
-
}
|
|
275
|
-
declare function TagGroup({ children, className, ...props }: TagGroupProps): react_jsx_runtime.JSX.Element;
|
|
276
|
-
declare const tagList: (props?: ({
|
|
277
|
-
class?: cva.ClassValue;
|
|
278
|
-
className?: never;
|
|
279
|
-
} | {
|
|
280
|
-
class?: never;
|
|
281
|
-
className?: cva.ClassValue;
|
|
282
|
-
}) | undefined) => string;
|
|
283
|
-
interface TagListProps<T extends object = {}> extends TagListProps$1<T> {
|
|
284
|
-
children?: React.ReactNode;
|
|
285
|
-
className?: string;
|
|
286
|
-
selectLabel: (item: T) => string;
|
|
287
|
-
variant?: TagProps["variant"];
|
|
288
|
-
}
|
|
289
|
-
declare function TagList<T extends object>({ children, className, selectLabel, variant, ...props }: TagListProps<T> & {
|
|
290
|
-
selectLabel: (item: T) => string;
|
|
291
|
-
variant?: TagProps["variant"];
|
|
292
|
-
}): react_jsx_runtime.JSX.Element;
|
|
293
|
-
|
|
294
|
-
declare function TextArea({ textAreaProps, children, ...props }: TextFieldProps & {
|
|
295
|
-
textAreaProps?: TextAreaProps;
|
|
296
|
-
}): react_jsx_runtime.JSX.Element;
|
|
297
|
-
|
|
298
|
-
declare const textField: (props?: ({
|
|
299
|
-
size?: "small" | "medium" | "large" | undefined;
|
|
300
|
-
isTextArea?: boolean | undefined;
|
|
301
|
-
} & ({
|
|
302
|
-
class?: cva.ClassValue;
|
|
303
|
-
className?: never;
|
|
304
|
-
} | {
|
|
305
|
-
class?: never;
|
|
306
|
-
className?: cva.ClassValue;
|
|
307
|
-
})) | undefined) => string;
|
|
308
|
-
declare function TextField({ inputProps, borderProps, children, size, ...props }: TextFieldProps & {
|
|
309
|
-
inputProps?: InputProps;
|
|
310
|
-
borderProps?: ComponentProps<"div">;
|
|
311
|
-
size?: "small" | "medium" | "large";
|
|
312
|
-
}): react_jsx_runtime.JSX.Element;
|
|
313
|
-
|
|
314
|
-
type ToggleButtonPreset = "secondary" | "hextech" | "dimmed";
|
|
315
|
-
interface ToggleButtonProps extends ToggleButtonProps$1 {
|
|
316
|
-
preset?: ToggleButtonPreset;
|
|
317
|
-
thin?: boolean;
|
|
318
|
-
shape?: ButtonShape;
|
|
319
|
-
size?: ButtonSize;
|
|
320
|
-
}
|
|
321
|
-
declare function ToggleButton({ children, className, preset, shape, size, thin, ...props }: ToggleButtonProps): react_jsx_runtime.JSX.Element;
|
|
322
|
-
|
|
323
|
-
type HeadingColor = "gold100" | "gold200" | "gold400" | "grey100";
|
|
324
|
-
type HeadingElement = "h1" | "h2" | "h3" | "h4" | "h5";
|
|
325
|
-
interface HeadingProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> {
|
|
326
|
-
preset?: HeadingElement;
|
|
327
|
-
color?: HeadingColor;
|
|
328
|
-
as?: HeadingElement | "span";
|
|
329
|
-
}
|
|
330
|
-
declare const heading: (props?: ({
|
|
331
|
-
color?: "gold100" | "gold200" | "gold400" | "grey100" | undefined;
|
|
332
|
-
preset?: "h1" | "h2" | "h3" | "h4" | "h5" | undefined;
|
|
333
|
-
} & ({
|
|
334
|
-
class?: cva.ClassValue;
|
|
335
|
-
className?: never;
|
|
336
|
-
} | {
|
|
337
|
-
class?: never;
|
|
338
|
-
className?: cva.ClassValue;
|
|
339
|
-
})) | undefined) => string;
|
|
340
|
-
declare function Heading({ as, preset, color, className, ...rest }: HeadingProps): JSX.Element;
|
|
341
|
-
|
|
342
|
-
type TextColor = "grey100" | "grey150" | "gold100";
|
|
343
|
-
type TextElement = "p" | "span" | "div";
|
|
344
|
-
type TextPreset = "sm" | "base" | "md" | "lg" | "largeNumber" | "stat";
|
|
345
|
-
declare const text: (props?: ({
|
|
346
|
-
color?: "gold100" | "grey100" | "grey150" | undefined;
|
|
347
|
-
preset?: "label" | "base" | "sm" | "md" | "lg" | "largeNumber" | "stat" | undefined;
|
|
348
|
-
} & ({
|
|
349
|
-
class?: cva.ClassValue;
|
|
350
|
-
className?: never;
|
|
351
|
-
} | {
|
|
352
|
-
class?: never;
|
|
353
|
-
className?: cva.ClassValue;
|
|
354
|
-
})) | undefined) => string;
|
|
355
|
-
interface TextProps extends TextProps$1 {
|
|
356
|
-
preset?: TextPreset;
|
|
357
|
-
color?: TextColor;
|
|
358
|
-
}
|
|
359
|
-
declare function Text({ preset, color, className, ...rest }: TextProps): JSX.Element;
|
|
360
|
-
interface LabelProps extends LabelProps$1 {
|
|
361
|
-
preset?: TextPreset | "label";
|
|
362
|
-
color?: TextColor;
|
|
363
|
-
}
|
|
364
|
-
declare function Label({ preset, color, className, ...rest }: LabelProps): JSX.Element;
|
|
365
|
-
|
|
366
|
-
export { Breadcrumb, Breadcrumbs, Button, ButtonLink, type ButtonPreset, type ButtonShape, type ButtonSize, Checkbox, DialogButtons, DialogHeading, Disclosure, DisclosureButton, DisclosureGroup, DisclosurePanel, Divider, Heading, type HeadingColor, type HeadingElement, Label, Menu, MenuHeader, MenuItem, MenuPopover, MenuSection, MenuSeparator, MenuTrigger, MenuVirtualizer, Modal, MultipleSelect, type MultipleSelectProps, NumberField, Popover, ProgressBar, Radio, RadioGroup, SearchField, SelectButton, SelectListBox, SelectListBoxItem, SelectPopover, SelectVirtualizer, Slider, SliderOutput, Sonner, type SonnerProps, Spinner, SubmenuTrigger, Switch, Tab, TabList, TabPanel, Tabs, Tag, TagGroup, type TagGroupProps, TagList, type TagListProps, type TagProps, Text, TextArea, type TextColor, type TextElement, TextField, type TextPreset, type ToastVariant, ToggleButton, type ToggleButtonPreset, button, heading, select, sonner, tagGroup, tagList, text, textField };
|