@umami/react-zen 0.20.0 → 0.22.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/README.md +8 -0
- package/dist/index.css +1213 -991
- package/dist/index.d.ts +838 -0
- package/dist/index.js +107 -22
- package/dist/index.mjs +29 -18
- package/dist/styles.css +1268 -1007
- package/package.json +1 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,838 @@
|
|
|
1
|
+
// Generated by dts-bundle v0.7.3
|
|
2
|
+
// Dependencies for this module:
|
|
3
|
+
// ../../react-aria-components
|
|
4
|
+
// ../../@/components/forms/Form
|
|
5
|
+
// ../../@/components/forms/FormField
|
|
6
|
+
// ../../@/components/forms/FormResetButton
|
|
7
|
+
// ../../@/components/forms/FormSubmitButton
|
|
8
|
+
// ../../react
|
|
9
|
+
// ../../@/lib/types
|
|
10
|
+
// ../../@radix-ui/react-slot
|
|
11
|
+
// ../../@radix-ui/react-toast
|
|
12
|
+
|
|
13
|
+
declare module '@umami/react-zen' {
|
|
14
|
+
import { DialogTrigger, FileTrigger, MenuTrigger, SubmenuTrigger, TooltipTrigger } from 'react-aria-components';
|
|
15
|
+
import { Form } from '@/components/forms/Form';
|
|
16
|
+
import { FormField } from '@/components/forms/FormField';
|
|
17
|
+
import { FormResetButton } from '@/components/forms/FormResetButton';
|
|
18
|
+
import { FormSubmitButton } from '@/components/forms/FormSubmitButton';
|
|
19
|
+
import { useDebounce } from '@umami/react-zen/hooks/useDebounce';
|
|
20
|
+
import { useTheme } from '@umami/react-zen/hooks/useTheme';
|
|
21
|
+
import { useToast } from '@umami/react-zen/hooks/useToast';
|
|
22
|
+
import { Accordion, AccordionItem } from '@umami/react-zen/Accordion';
|
|
23
|
+
import { AlertBanner } from '@umami/react-zen/AlertBanner';
|
|
24
|
+
import { AlertDialog } from '@umami/react-zen/AlertDialog';
|
|
25
|
+
import { Blockquote } from '@umami/react-zen/Blockquote';
|
|
26
|
+
import { Box } from '@umami/react-zen/Box';
|
|
27
|
+
import { Breadcrumbs, Breadcrumb } from '@umami/react-zen/Breadcrumbs';
|
|
28
|
+
import { Button } from '@umami/react-zen/Button';
|
|
29
|
+
import { Calendar } from '@umami/react-zen/Calendar';
|
|
30
|
+
import { Checkbox } from '@umami/react-zen/Checkbox';
|
|
31
|
+
import { Code } from '@umami/react-zen/Code';
|
|
32
|
+
import { Column } from '@umami/react-zen/Column';
|
|
33
|
+
import { Combobox } from '@umami/react-zen/Combobox';
|
|
34
|
+
import { Container } from '@umami/react-zen/Container';
|
|
35
|
+
import { ConfirmationDialog } from '@umami/react-zen/ConfirmationDialog';
|
|
36
|
+
import { Dialog } from '@umami/react-zen/Dialog';
|
|
37
|
+
import { DataTable, DataColumn } from '@umami/react-zen/DataTable';
|
|
38
|
+
import { Dots } from '@umami/react-zen/Dots';
|
|
39
|
+
import { Flexbox } from '@umami/react-zen/Flexbox';
|
|
40
|
+
import { Grid } from '@umami/react-zen/Grid';
|
|
41
|
+
import { Heading } from '@umami/react-zen/Heading';
|
|
42
|
+
import { HoverTrigger } from '@umami/react-zen/HoverTrigger';
|
|
43
|
+
import { Icon } from '@umami/react-zen/Icon';
|
|
44
|
+
import { Icons } from '@umami/react-zen/Icons';
|
|
45
|
+
import { InlineEditField } from '@umami/react-zen/InlineEditField';
|
|
46
|
+
import { Label } from '@umami/react-zen/Label';
|
|
47
|
+
import { List } from '@umami/react-zen/List';
|
|
48
|
+
import { ListItem } from '@umami/react-zen/ListItem';
|
|
49
|
+
import { Loading } from '@umami/react-zen/Loading';
|
|
50
|
+
import { LoadingButton } from '@umami/react-zen/LoadingButton';
|
|
51
|
+
import { Menu } from '@umami/react-zen/Menu';
|
|
52
|
+
import { MenuItem } from '@umami/react-zen/MenuItem';
|
|
53
|
+
import { Modal } from '@umami/react-zen/Modal';
|
|
54
|
+
import { NavigationMenu, NavigationMenuItem } from '@umami/react-zen/NavigationMenu';
|
|
55
|
+
import { PasswordField } from '@umami/react-zen/PasswordField';
|
|
56
|
+
import { Popover } from '@umami/react-zen/Popover';
|
|
57
|
+
import { ProgressBar } from '@umami/react-zen/ProgressBar';
|
|
58
|
+
import { ProgressCircle } from '@umami/react-zen/ProgressCircle';
|
|
59
|
+
import { Radio, RadioGroup } from '@umami/react-zen/RadioGroup';
|
|
60
|
+
import { Row } from '@umami/react-zen/Row';
|
|
61
|
+
import { SearchField } from '@umami/react-zen/SearchField';
|
|
62
|
+
import { Select } from '@umami/react-zen/Select';
|
|
63
|
+
import { Slider } from '@umami/react-zen/Slider';
|
|
64
|
+
import { Slot } from '@umami/react-zen/Slot';
|
|
65
|
+
import { Spinner } from '@umami/react-zen/Spinner';
|
|
66
|
+
import { StatusLight } from '@umami/react-zen/StatusLight';
|
|
67
|
+
import { Switch } from '@umami/react-zen/Switch';
|
|
68
|
+
import { Table, TableHeader, TableBody, TableRow, TableColumn, TableCell } from '@umami/react-zen/Table';
|
|
69
|
+
import { Tabs, TabList, Tab, TabPanel } from '@umami/react-zen/Tabs';
|
|
70
|
+
import { Text } from '@umami/react-zen/Text';
|
|
71
|
+
import { TextOverflow } from '@umami/react-zen/TextOverflow';
|
|
72
|
+
import { TextField } from '@umami/react-zen/TextField';
|
|
73
|
+
import { TextArea } from '@umami/react-zen/TextArea';
|
|
74
|
+
import { Toast, ToastProvider, Toaster } from '@umami/react-zen/Toast';
|
|
75
|
+
import { Toggle } from '@umami/react-zen/Toggle';
|
|
76
|
+
import { ToggleGroup, ToggleGroupItem } from '@umami/react-zen/ToggleGroup';
|
|
77
|
+
import { Tooltip } from '@umami/react-zen/Tooltip';
|
|
78
|
+
import { ZenProvider } from '@umami/react-zen/ZenProvider';
|
|
79
|
+
export { Form, FormField, FormResetButton, FormSubmitButton, useDebounce, useTheme, useToast, Accordion, AccordionItem, AlertBanner, AlertDialog, Blockquote, Box, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Code, Column, Combobox, Container, ConfirmationDialog, DataTable, DataColumn, Dialog, DialogTrigger, Dots, FileTrigger, Flexbox, Grid, Heading, HoverTrigger, Icon, Icons, InlineEditField, Label, List, ListItem, Loading, LoadingButton, Menu, MenuItem, MenuTrigger, Modal, NavigationMenu, NavigationMenuItem, PasswordField, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, Slider, Slot, Spinner, StatusLight, SubmenuTrigger, Switch, Table, TableHeader, TableBody, TableRow, TableColumn, TableCell, Tab, Tabs, TabList, TabPanel, Text, TextOverflow, TextField, TextArea, Toast, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipTrigger, ZenProvider, };
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare module '@umami/react-zen/hooks/useDebounce' {
|
|
83
|
+
function useDebounce(value: string, delay: number): string;
|
|
84
|
+
export { useDebounce };
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
declare module '@umami/react-zen/hooks/useTheme' {
|
|
88
|
+
function setTheme(name: string): void;
|
|
89
|
+
function useTheme(): {
|
|
90
|
+
theme: {
|
|
91
|
+
name: string;
|
|
92
|
+
};
|
|
93
|
+
setTheme: typeof setTheme;
|
|
94
|
+
};
|
|
95
|
+
export { useTheme, setTheme };
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
declare module '@umami/react-zen/hooks/useToast' {
|
|
99
|
+
import { ToastProps } from '@umami/react-zen/Toast';
|
|
100
|
+
interface ToastState {
|
|
101
|
+
id: number;
|
|
102
|
+
message: string;
|
|
103
|
+
props: ToastProps;
|
|
104
|
+
}
|
|
105
|
+
function toast(message: string, props?: ToastProps): void;
|
|
106
|
+
function useToast(): {
|
|
107
|
+
toast: typeof toast;
|
|
108
|
+
toasts: ToastState[];
|
|
109
|
+
};
|
|
110
|
+
export { useToast, toast };
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare module '@umami/react-zen/Accordion' {
|
|
114
|
+
import { ReactNode } from 'react';
|
|
115
|
+
import { DisclosureProps, DisclosureGroupProps } from 'react-aria-components';
|
|
116
|
+
export interface AccordionProps extends DisclosureGroupProps {
|
|
117
|
+
type: 'single' | 'multiple';
|
|
118
|
+
className?: string;
|
|
119
|
+
children?: ReactNode;
|
|
120
|
+
}
|
|
121
|
+
export interface AccordionItemProps extends DisclosureProps {
|
|
122
|
+
}
|
|
123
|
+
export function Accordion({ className, children, ...props }: AccordionProps): import("react").JSX.Element;
|
|
124
|
+
export function AccordionItem({ defaultExpanded, className, children, ...props }: AccordionItemProps): import("react").JSX.Element;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
declare module '@umami/react-zen/AlertBanner' {
|
|
128
|
+
import React, { ReactNode } from 'react';
|
|
129
|
+
interface AlertBannerProps {
|
|
130
|
+
title?: string;
|
|
131
|
+
description?: string;
|
|
132
|
+
icon?: ReactNode;
|
|
133
|
+
variant?: 'error' | 'info';
|
|
134
|
+
allowClose?: boolean;
|
|
135
|
+
onClose?: () => void;
|
|
136
|
+
className?: string;
|
|
137
|
+
children?: ReactNode;
|
|
138
|
+
}
|
|
139
|
+
function AlertBanner({ title, description, icon, variant, allowClose, onClose, children, className, ...props }: AlertBannerProps): React.JSX.Element;
|
|
140
|
+
export { AlertBanner };
|
|
141
|
+
export type { AlertBannerProps };
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare module '@umami/react-zen/AlertDialog' {
|
|
145
|
+
import { ReactNode } from 'react';
|
|
146
|
+
import { DialogProps } from '@umami/react-zen/Dialog';
|
|
147
|
+
interface AlertDialogProps extends DialogProps {
|
|
148
|
+
title?: ReactNode;
|
|
149
|
+
description?: ReactNode;
|
|
150
|
+
isDanger?: boolean;
|
|
151
|
+
isConfirmDisabled?: boolean;
|
|
152
|
+
confirmLabel?: ReactNode;
|
|
153
|
+
cancelLabel?: ReactNode;
|
|
154
|
+
onConfirm?: () => void;
|
|
155
|
+
onCancel?: () => void;
|
|
156
|
+
}
|
|
157
|
+
function AlertDialog({ title, description, isDanger, isConfirmDisabled, confirmLabel, cancelLabel, onConfirm, onCancel, className, children, ...props }: AlertDialogProps): import("react").JSX.Element;
|
|
158
|
+
export { AlertDialog };
|
|
159
|
+
export type { AlertDialogProps };
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
declare module '@umami/react-zen/Blockquote' {
|
|
163
|
+
import { HTMLAttributes } from 'react';
|
|
164
|
+
import { FontWeight, Responsive, TextWrap } from '@/lib/types';
|
|
165
|
+
export interface BlockquoteProps extends HTMLAttributes<HTMLElement> {
|
|
166
|
+
asChild?: boolean;
|
|
167
|
+
weight?: Responsive<FontWeight>;
|
|
168
|
+
wrap?: Responsive<TextWrap>;
|
|
169
|
+
}
|
|
170
|
+
export function Blockquote({ asChild, children }: BlockquoteProps): import("react").JSX.Element;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
declare module '@umami/react-zen/Box' {
|
|
174
|
+
import { HTMLAttributes } from 'react';
|
|
175
|
+
import { BackgroundColor, BorderSize, BorderRadius, BoxShadow, Spacing, Responsive, Position, Display, TextAlign, FlexGrow, FlexShrink, Top, Right, Bottom, Left, Overflow, AlignSelf, JustifySelf, AccentColor, BaseColor } from '@/lib/types';
|
|
176
|
+
interface BoxProps extends HTMLAttributes<HTMLElement> {
|
|
177
|
+
display?: Responsive<Display>;
|
|
178
|
+
color?: BaseColor | AccentColor;
|
|
179
|
+
backgroundColor?: BackgroundColor | BaseColor | AccentColor;
|
|
180
|
+
borderSize?: Responsive<BorderSize>;
|
|
181
|
+
borderRadius?: Responsive<BorderRadius>;
|
|
182
|
+
shadow?: Responsive<BoxShadow>;
|
|
183
|
+
padding?: Responsive<Spacing>;
|
|
184
|
+
paddingX?: Responsive<Spacing>;
|
|
185
|
+
paddingY?: Responsive<Spacing>;
|
|
186
|
+
paddingTop?: Responsive<Spacing>;
|
|
187
|
+
paddingRight?: Responsive<Spacing>;
|
|
188
|
+
paddingBottom?: Responsive<Spacing>;
|
|
189
|
+
paddingLeft?: Responsive<Spacing>;
|
|
190
|
+
margin?: Responsive<Spacing>;
|
|
191
|
+
marginX?: Responsive<Spacing>;
|
|
192
|
+
marginY?: Responsive<Spacing>;
|
|
193
|
+
marginTop?: Responsive<Spacing>;
|
|
194
|
+
marginRight?: Responsive<Spacing>;
|
|
195
|
+
marginBottom?: Responsive<Spacing>;
|
|
196
|
+
marginLeft?: Responsive<Spacing>;
|
|
197
|
+
width?: Responsive<string>;
|
|
198
|
+
minWidth?: Responsive<string>;
|
|
199
|
+
maxWidth?: Responsive<string>;
|
|
200
|
+
height?: Responsive<string>;
|
|
201
|
+
minHeight?: Responsive<string>;
|
|
202
|
+
maxHeight?: Responsive<string>;
|
|
203
|
+
position?: Responsive<Position>;
|
|
204
|
+
align?: Responsive<TextAlign>;
|
|
205
|
+
top?: Responsive<Top>;
|
|
206
|
+
right?: Responsive<Right>;
|
|
207
|
+
bottom?: Responsive<Bottom>;
|
|
208
|
+
left?: Responsive<Left>;
|
|
209
|
+
overflow?: Responsive<Overflow>;
|
|
210
|
+
overflowX?: Responsive<Overflow>;
|
|
211
|
+
overflowY?: Responsive<Overflow>;
|
|
212
|
+
alignSelf?: Responsive<AlignSelf>;
|
|
213
|
+
justifySelf?: Responsive<JustifySelf>;
|
|
214
|
+
flexBasis?: Responsive<string>;
|
|
215
|
+
flexGrow?: Responsive<FlexGrow>;
|
|
216
|
+
flexShrink?: Responsive<FlexShrink>;
|
|
217
|
+
gridArea?: Responsive<string>;
|
|
218
|
+
gridRow?: Responsive<string>;
|
|
219
|
+
gridColumn?: Responsive<string>;
|
|
220
|
+
order?: Responsive<number>;
|
|
221
|
+
as?: string;
|
|
222
|
+
asChild?: boolean;
|
|
223
|
+
}
|
|
224
|
+
function Box({ display, color, backgroundColor, borderSize, borderRadius, shadow, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, width, minWidth, maxWidth, height, minHeight, maxHeight, position, align, top, right, bottom, left, flexBasis, flexGrow, flexShrink, gridArea, gridRow, gridColumn, order, as, asChild, className, style, children, ...props }: BoxProps): import("react").JSX.Element;
|
|
225
|
+
export { Box };
|
|
226
|
+
export type { BoxProps };
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
declare module '@umami/react-zen/Breadcrumbs' {
|
|
230
|
+
import { BreadcrumbsProps, BreadcrumbProps } from 'react-aria-components';
|
|
231
|
+
function Breadcrumbs({ children, className, ...props }: BreadcrumbsProps<any>): import("react").JSX.Element;
|
|
232
|
+
function Breadcrumb({ children, className, ...props }: BreadcrumbProps): import("react").JSX.Element;
|
|
233
|
+
export { Breadcrumb, Breadcrumbs };
|
|
234
|
+
export type { BreadcrumbProps, BreadcrumbsProps };
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
declare module '@umami/react-zen/Button' {
|
|
238
|
+
import { ReactNode } from 'react';
|
|
239
|
+
import { ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
240
|
+
interface ButtonProps extends AriaButtonProps {
|
|
241
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'quiet' | 'danger' | 'zero';
|
|
242
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
243
|
+
asChild?: boolean;
|
|
244
|
+
slot?: string;
|
|
245
|
+
children?: ReactNode;
|
|
246
|
+
}
|
|
247
|
+
const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<any>>;
|
|
248
|
+
export { Button };
|
|
249
|
+
export type { ButtonProps };
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
declare module '@umami/react-zen/Calendar' {
|
|
253
|
+
import { CalendarProps } from 'react-aria-components';
|
|
254
|
+
function Calendar({ className, ...props }: CalendarProps<any>): import("react").JSX.Element;
|
|
255
|
+
export { Calendar };
|
|
256
|
+
export type { CalendarProps };
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
declare module '@umami/react-zen/Checkbox' {
|
|
260
|
+
import { CheckboxProps as AriaCheckboxProps } from 'react-aria-components';
|
|
261
|
+
interface CheckboxProps extends AriaCheckboxProps {
|
|
262
|
+
label?: string;
|
|
263
|
+
}
|
|
264
|
+
const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<any>>;
|
|
265
|
+
export { Checkbox };
|
|
266
|
+
export type { CheckboxProps };
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
declare module '@umami/react-zen/Code' {
|
|
270
|
+
import { HTMLAttributes } from 'react';
|
|
271
|
+
import { FontWeight, Responsive, TextWrap } from '@/lib/types';
|
|
272
|
+
export interface CodeProps extends HTMLAttributes<HTMLElement> {
|
|
273
|
+
asChild?: boolean;
|
|
274
|
+
weight?: Responsive<FontWeight>;
|
|
275
|
+
wrap?: Responsive<TextWrap>;
|
|
276
|
+
}
|
|
277
|
+
export function Code({ asChild, children }: CodeProps): import("react").JSX.Element;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
declare module '@umami/react-zen/Column' {
|
|
281
|
+
import { FlexboxProps } from '@umami/react-zen/Flexbox';
|
|
282
|
+
interface ColumnProps extends FlexboxProps {
|
|
283
|
+
reverse?: boolean;
|
|
284
|
+
}
|
|
285
|
+
function Column({ reverse, children, ...props }: ColumnProps): import("react").JSX.Element;
|
|
286
|
+
export { Column };
|
|
287
|
+
export type { ColumnProps };
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
declare module '@umami/react-zen/Combobox' {
|
|
291
|
+
import { ComboBoxProps } from 'react-aria-components';
|
|
292
|
+
interface ComboboxProps extends ComboBoxProps<any> {
|
|
293
|
+
items: any[];
|
|
294
|
+
className?: string;
|
|
295
|
+
}
|
|
296
|
+
function Combobox({ items, className, ...props }: ComboboxProps): import("react").JSX.Element;
|
|
297
|
+
export { Combobox };
|
|
298
|
+
export type { ComboboxProps };
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
declare module '@umami/react-zen/Container' {
|
|
302
|
+
import { BoxProps } from '@umami/react-zen/Box';
|
|
303
|
+
export interface ContainerProps extends BoxProps {
|
|
304
|
+
isFluid?: boolean;
|
|
305
|
+
isCentered?: boolean;
|
|
306
|
+
}
|
|
307
|
+
export function Container({ isCentered, isFluid, className, children, ...props }: ContainerProps): import("react").JSX.Element;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
declare module '@umami/react-zen/ConfirmationDialog' {
|
|
311
|
+
import { ReactNode } from 'react';
|
|
312
|
+
import { AlertDialogProps } from '@umami/react-zen/AlertDialog';
|
|
313
|
+
interface ConfirmationDialogProps extends AlertDialogProps {
|
|
314
|
+
value?: string;
|
|
315
|
+
confirmMessage?: ReactNode;
|
|
316
|
+
}
|
|
317
|
+
function ConfirmationDialog({ value, confirmMessage, className, children, ...props }: ConfirmationDialogProps): import("react").JSX.Element;
|
|
318
|
+
export { ConfirmationDialog };
|
|
319
|
+
export type { ConfirmationDialogProps };
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
declare module '@umami/react-zen/Dialog' {
|
|
323
|
+
import { ReactNode } from 'react';
|
|
324
|
+
import { DialogProps as AriaDialogProps } from 'react-aria-components';
|
|
325
|
+
interface DialogProps extends AriaDialogProps {
|
|
326
|
+
title?: ReactNode;
|
|
327
|
+
}
|
|
328
|
+
function Dialog({ title, children, className, ...props }: DialogProps): import("react").JSX.Element;
|
|
329
|
+
export { Dialog };
|
|
330
|
+
export type { DialogProps };
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
declare module '@umami/react-zen/DataTable' {
|
|
334
|
+
import { ReactNode } from 'react';
|
|
335
|
+
import { ColumnProps, TableProps } from 'react-aria-components';
|
|
336
|
+
interface DataTableProps extends TableProps {
|
|
337
|
+
data?: any[];
|
|
338
|
+
}
|
|
339
|
+
function DataTable({ data, className, children, ...props }: DataTableProps): import("react").JSX.Element;
|
|
340
|
+
interface DataColumnProps extends ColumnProps {
|
|
341
|
+
id: string;
|
|
342
|
+
label?: ReactNode;
|
|
343
|
+
}
|
|
344
|
+
function DataColumn(props: DataColumnProps): null;
|
|
345
|
+
export { DataTable, DataColumn };
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
declare module '@umami/react-zen/Dots' {
|
|
349
|
+
interface DotsProps {
|
|
350
|
+
className?: string;
|
|
351
|
+
}
|
|
352
|
+
function Dots({ className, ...props }: DotsProps): import("react").JSX.Element;
|
|
353
|
+
export { Dots };
|
|
354
|
+
export type { DotsProps };
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
declare module '@umami/react-zen/Flexbox' {
|
|
358
|
+
import { Spacing, Responsive, FlexDisplay, FlexDirection, FlexWrap, JustifyContent, JustifyItems, AlignContent, AlignItems } from '@/lib/types';
|
|
359
|
+
import { BoxProps } from '@umami/react-zen/Box';
|
|
360
|
+
export interface FlexboxProps extends Omit<BoxProps, 'display'> {
|
|
361
|
+
display?: Responsive<FlexDisplay>;
|
|
362
|
+
direction?: Responsive<FlexDirection>;
|
|
363
|
+
wrap?: Responsive<FlexWrap>;
|
|
364
|
+
justifyContent?: Responsive<JustifyContent>;
|
|
365
|
+
justifyItems?: Responsive<JustifyItems>;
|
|
366
|
+
alignContent?: AlignContent;
|
|
367
|
+
alignItems?: AlignItems;
|
|
368
|
+
gap?: Responsive<Spacing>;
|
|
369
|
+
gapX?: Responsive<Spacing>;
|
|
370
|
+
gapY?: Responsive<Spacing>;
|
|
371
|
+
}
|
|
372
|
+
export function Flexbox({ display, direction, wrap, justifyContent, justifyItems, alignContent, alignItems, gap, gapX, gapY, className, style, children, ...props }: FlexboxProps): import("react").JSX.Element;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
declare module '@umami/react-zen/Grid' {
|
|
376
|
+
import { GridDisplay, GridAutoFlow, Responsive, Spacing, GridTemplateRows, GridTemplateColumns, GridTemplateAreas, AlignContent, AlignItems, JustifyContent, JustifyItems } from '@/lib/types';
|
|
377
|
+
import { BoxProps } from '@umami/react-zen/Box';
|
|
378
|
+
export interface GridProps extends Omit<BoxProps, 'display'> {
|
|
379
|
+
display?: Responsive<GridDisplay>;
|
|
380
|
+
justifyContent?: Responsive<JustifyContent>;
|
|
381
|
+
justifyItems?: Responsive<JustifyItems>;
|
|
382
|
+
alignContent?: AlignContent;
|
|
383
|
+
alignItems?: AlignItems;
|
|
384
|
+
gap?: Responsive<Spacing>;
|
|
385
|
+
gapX?: Responsive<Spacing>;
|
|
386
|
+
gapY?: Responsive<Spacing>;
|
|
387
|
+
autoFlow?: Responsive<GridAutoFlow>;
|
|
388
|
+
rows?: Responsive<GridTemplateRows>;
|
|
389
|
+
columns?: Responsive<GridTemplateColumns>;
|
|
390
|
+
areas?: Responsive<GridTemplateAreas>;
|
|
391
|
+
}
|
|
392
|
+
export function Grid({ display, justifyContent, justifyItems, alignContent, alignItems, gap, gapX, gapY, autoFlow, rows, columns, areas, className, style, children, ...props }: GridProps): import("react").JSX.Element;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
declare module '@umami/react-zen/Heading' {
|
|
396
|
+
import type { Responsive, FontSize, FontWeight, LetterSpacing } from '@/lib/types';
|
|
397
|
+
import { BoxProps } from '@umami/react-zen/Box';
|
|
398
|
+
interface HeadingProps extends BoxProps {
|
|
399
|
+
size?: Responsive<FontSize>;
|
|
400
|
+
weight?: Responsive<FontWeight>;
|
|
401
|
+
spacing?: Responsive<LetterSpacing>;
|
|
402
|
+
}
|
|
403
|
+
function Heading({ size, weight, align, spacing, className, style, children, ...props }: HeadingProps): import("react").JSX.Element;
|
|
404
|
+
export { Heading };
|
|
405
|
+
export type { HeadingProps };
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
declare module '@umami/react-zen/HoverTrigger' {
|
|
409
|
+
import { ReactElement } from 'react';
|
|
410
|
+
export interface HoverButtonProps {
|
|
411
|
+
isOpen?: boolean;
|
|
412
|
+
onHoverStart?: () => void;
|
|
413
|
+
onHoverEnd?: () => void;
|
|
414
|
+
closeDelay?: number;
|
|
415
|
+
children: ReactElement[];
|
|
416
|
+
}
|
|
417
|
+
export function HoverTrigger({ isOpen, onHoverStart, onHoverEnd, closeDelay, children, }: HoverButtonProps): import("react").JSX.Element;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
declare module '@umami/react-zen/Icon' {
|
|
421
|
+
import { HTMLAttributes } from 'react';
|
|
422
|
+
export interface IconProps extends HTMLAttributes<HTMLElement> {
|
|
423
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
424
|
+
variant?: 'input';
|
|
425
|
+
rotate?: number;
|
|
426
|
+
}
|
|
427
|
+
export function Icon({ size, variant, rotate, style, className, children, ...props }: IconProps & HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
declare module '@umami/react-zen/Icons' {
|
|
431
|
+
export const Icons: {
|
|
432
|
+
Alert: import("react-icons/lib").IconType;
|
|
433
|
+
Arrow: import("react-icons/lib").IconType;
|
|
434
|
+
Check: import("react-icons/lib").IconType;
|
|
435
|
+
Chevron: import("react-icons/lib").IconType;
|
|
436
|
+
Close: import("react-icons/lib").IconType;
|
|
437
|
+
Copy: import("react-icons/lib").IconType;
|
|
438
|
+
Edit: import("react-icons/lib").IconType;
|
|
439
|
+
ExternalLink: import("react-icons/lib").IconType;
|
|
440
|
+
Eye: import("react-icons/lib").IconType;
|
|
441
|
+
EyeSlash: import("react-icons/lib").IconType;
|
|
442
|
+
Info: import("react-icons/lib").IconType;
|
|
443
|
+
Logout: import("react-icons/lib").IconType;
|
|
444
|
+
MagnifyingGlass: import("react-icons/lib").IconType;
|
|
445
|
+
Menu: import("react-icons/lib").IconType;
|
|
446
|
+
Minus: import("react-icons/lib").IconType;
|
|
447
|
+
More: import("react-icons/lib").IconType;
|
|
448
|
+
Plus: import("react-icons/lib").IconType;
|
|
449
|
+
Refresh: import("react-icons/lib").IconType;
|
|
450
|
+
Trash: import("react-icons/lib").IconType;
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
declare module '@umami/react-zen/InlineEditField' {
|
|
455
|
+
import { ReactNode } from 'react';
|
|
456
|
+
interface InlineEditFieldProps {
|
|
457
|
+
value: string;
|
|
458
|
+
defaultEdit?: boolean;
|
|
459
|
+
onChange?: (value: string) => void;
|
|
460
|
+
onCommit?: (value: string) => void;
|
|
461
|
+
onCancel?: () => void;
|
|
462
|
+
className?: string;
|
|
463
|
+
children?: ReactNode;
|
|
464
|
+
}
|
|
465
|
+
function InlineEditField({ value: defaultValue, defaultEdit, className, children, onChange, onCommit, onCancel, ...props }: InlineEditFieldProps): import("react").JSX.Element;
|
|
466
|
+
export { InlineEditField };
|
|
467
|
+
export type { InlineEditFieldProps };
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
declare module '@umami/react-zen/Label' {
|
|
471
|
+
import { LabelProps as AriaLabelProps } from 'react-aria-components';
|
|
472
|
+
interface LabelProps extends AriaLabelProps {
|
|
473
|
+
className?: string;
|
|
474
|
+
}
|
|
475
|
+
function Label({ className, ...props }: LabelProps): import("react").JSX.Element;
|
|
476
|
+
export { Label };
|
|
477
|
+
export type { LabelProps };
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
declare module '@umami/react-zen/List' {
|
|
481
|
+
import { ReactNode } from 'react';
|
|
482
|
+
import { ListBoxProps } from 'react-aria-components';
|
|
483
|
+
interface ListProps extends ListBoxProps<any> {
|
|
484
|
+
items?: any[];
|
|
485
|
+
className?: string;
|
|
486
|
+
children?: ReactNode;
|
|
487
|
+
}
|
|
488
|
+
function List({ items, className, children, ...props }: ListProps): import("react").JSX.Element;
|
|
489
|
+
export { List };
|
|
490
|
+
export type { ListProps };
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
declare module '@umami/react-zen/ListItem' {
|
|
494
|
+
import { ListBoxItemProps } from 'react-aria-components';
|
|
495
|
+
function ListItem({ children, className, ...props }: ListBoxItemProps<any>): import("react").JSX.Element;
|
|
496
|
+
export { ListItem };
|
|
497
|
+
export type { ListBoxItemProps as ListItemProps };
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
declare module '@umami/react-zen/Loading' {
|
|
501
|
+
export interface LoadingProps {
|
|
502
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
503
|
+
icon?: 'dots' | 'spinner';
|
|
504
|
+
position?: 'page' | 'center' | 'inline';
|
|
505
|
+
className?: string;
|
|
506
|
+
}
|
|
507
|
+
export function Loading(props: LoadingProps): import("react").JSX.Element;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
declare module '@umami/react-zen/LoadingButton' {
|
|
511
|
+
import { ButtonProps } from '@umami/react-zen/Button';
|
|
512
|
+
interface LoadingButtonProps extends ButtonProps {
|
|
513
|
+
disabled?: boolean;
|
|
514
|
+
isLoading?: boolean;
|
|
515
|
+
}
|
|
516
|
+
function LoadingButton({ isLoading, children, ...props }: LoadingButtonProps): import("react").JSX.Element;
|
|
517
|
+
export { LoadingButton };
|
|
518
|
+
export type { LoadingButtonProps };
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
declare module '@umami/react-zen/Menu' {
|
|
522
|
+
import { ReactNode } from 'react';
|
|
523
|
+
import { MenuProps as AriaMenuProps } from 'react-aria-components';
|
|
524
|
+
interface MenuProps extends AriaMenuProps<any> {
|
|
525
|
+
items?: any[];
|
|
526
|
+
className?: string;
|
|
527
|
+
children?: ReactNode;
|
|
528
|
+
}
|
|
529
|
+
function Menu({ items, className, children, ...props }: MenuProps): import("react").JSX.Element;
|
|
530
|
+
export { Menu };
|
|
531
|
+
export type { MenuProps };
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
declare module '@umami/react-zen/MenuItem' {
|
|
535
|
+
import { MenuItemProps } from 'react-aria-components';
|
|
536
|
+
function MenuItem({ children, className, ...props }: MenuItemProps<any>): import("react").JSX.Element;
|
|
537
|
+
export { MenuItem };
|
|
538
|
+
export type { MenuItemProps };
|
|
539
|
+
export default MenuItem;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
declare module '@umami/react-zen/Modal' {
|
|
543
|
+
import { ReactNode } from 'react';
|
|
544
|
+
import { ModalRenderProps } from 'react-aria-components';
|
|
545
|
+
interface ModalProps {
|
|
546
|
+
className?: string;
|
|
547
|
+
children?: ReactNode | ((values: ModalRenderProps & {
|
|
548
|
+
defaultChildren: ReactNode;
|
|
549
|
+
}) => ReactNode);
|
|
550
|
+
}
|
|
551
|
+
function Modal({ children, className, ...props }: ModalProps): import("react").JSX.Element;
|
|
552
|
+
export { Modal };
|
|
553
|
+
export type { ModalProps };
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
declare module '@umami/react-zen/NavigationMenu' {
|
|
557
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
558
|
+
export interface NavigationMenuProps extends HTMLAttributes<HTMLElement> {
|
|
559
|
+
showArrow?: boolean;
|
|
560
|
+
}
|
|
561
|
+
export function NavigationMenu({ showArrow, className, children, ...props }: NavigationMenuProps): import("react").JSX.Element;
|
|
562
|
+
export interface NavigationMenuItemProps extends HTMLAttributes<HTMLElement> {
|
|
563
|
+
label: string;
|
|
564
|
+
children?: ReactNode;
|
|
565
|
+
}
|
|
566
|
+
export function NavigationMenuItem({ label, children, className, ...props }: NavigationMenuItemProps): import("react").JSX.Element;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
declare module '@umami/react-zen/PasswordField' {
|
|
570
|
+
import { TextFieldProps } from 'react-aria-components';
|
|
571
|
+
interface PasswordFieldProps extends TextFieldProps {
|
|
572
|
+
label?: string;
|
|
573
|
+
}
|
|
574
|
+
const PasswordField: import("react").ForwardRefExoticComponent<PasswordFieldProps & import("react").RefAttributes<any>>;
|
|
575
|
+
export { PasswordField };
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
declare module '@umami/react-zen/Popover' {
|
|
579
|
+
import { PopoverProps } from 'react-aria-components';
|
|
580
|
+
function Popover({ children, className, ...props }: PopoverProps): import("react").JSX.Element;
|
|
581
|
+
export { Popover };
|
|
582
|
+
export type { PopoverProps };
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
declare module '@umami/react-zen/ProgressBar' {
|
|
586
|
+
import { ProgressBarProps as AriaProgressBarProps } from 'react-aria-components';
|
|
587
|
+
interface ProgressBarProps extends AriaProgressBarProps {
|
|
588
|
+
showValue?: boolean;
|
|
589
|
+
}
|
|
590
|
+
function ProgressBar({ className, showValue, ...props }: ProgressBarProps): import("react").JSX.Element;
|
|
591
|
+
export { ProgressBar };
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
declare module '@umami/react-zen/ProgressCircle' {
|
|
595
|
+
import { ProgressBarProps } from 'react-aria-components';
|
|
596
|
+
interface ProgressCircleProps extends ProgressBarProps {
|
|
597
|
+
showValue?: boolean;
|
|
598
|
+
}
|
|
599
|
+
function ProgressCircle({ className, showValue, ...props }: ProgressCircleProps): import("react").JSX.Element;
|
|
600
|
+
export { ProgressCircle };
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
declare module '@umami/react-zen/RadioGroup' {
|
|
604
|
+
import { RadioGroupProps as AriaRadioGroupProps, RadioProps } from 'react-aria-components';
|
|
605
|
+
interface RadioGroupProps extends AriaRadioGroupProps {
|
|
606
|
+
label?: string;
|
|
607
|
+
}
|
|
608
|
+
const RadioGroup: import("react").ForwardRefExoticComponent<RadioGroupProps & import("react").RefAttributes<any>>;
|
|
609
|
+
function Radio({ children, className, ...props }: RadioProps): import("react").JSX.Element;
|
|
610
|
+
export { RadioGroup, Radio };
|
|
611
|
+
export type { RadioProps, RadioGroupProps };
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
declare module '@umami/react-zen/Row' {
|
|
615
|
+
import { FlexboxProps } from '@umami/react-zen/Flexbox';
|
|
616
|
+
interface RowProps extends FlexboxProps {
|
|
617
|
+
reverse?: boolean;
|
|
618
|
+
}
|
|
619
|
+
function Row({ reverse, children, ...props }: RowProps): import("react").JSX.Element;
|
|
620
|
+
export { Row };
|
|
621
|
+
export type { RowProps };
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
declare module '@umami/react-zen/SearchField' {
|
|
625
|
+
import { SearchFieldProps as AriaSearchFieldProps } from 'react-aria-components';
|
|
626
|
+
interface SearchFieldProps extends AriaSearchFieldProps {
|
|
627
|
+
label?: string;
|
|
628
|
+
value?: string;
|
|
629
|
+
delay?: number;
|
|
630
|
+
onSearch?: (value: string) => void;
|
|
631
|
+
}
|
|
632
|
+
const SearchField: import("react").ForwardRefExoticComponent<SearchFieldProps & import("react").RefAttributes<any>>;
|
|
633
|
+
export { SearchField };
|
|
634
|
+
export type { SearchFieldProps };
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
declare module '@umami/react-zen/Select' {
|
|
638
|
+
import { SelectProps as AriaSelectProps } from 'react-aria-components';
|
|
639
|
+
interface SelectProps extends AriaSelectProps<HTMLSelectElement> {
|
|
640
|
+
items: any[];
|
|
641
|
+
value?: string;
|
|
642
|
+
label?: string;
|
|
643
|
+
onChange?: (e: any) => void;
|
|
644
|
+
}
|
|
645
|
+
const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<any>>;
|
|
646
|
+
export { Select };
|
|
647
|
+
export type { SelectProps };
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
declare module '@umami/react-zen/Slider' {
|
|
651
|
+
import { ReactNode } from 'react';
|
|
652
|
+
import { SliderProps as AriaSliderProps } from 'react-aria-components';
|
|
653
|
+
interface SliderProps extends AriaSliderProps {
|
|
654
|
+
label?: ReactNode;
|
|
655
|
+
showValue?: boolean;
|
|
656
|
+
}
|
|
657
|
+
const Slider: import("react").ForwardRefExoticComponent<SliderProps & import("react").RefAttributes<any>>;
|
|
658
|
+
export { Slider };
|
|
659
|
+
export type { SliderProps };
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
declare module '@umami/react-zen/Slot' {
|
|
663
|
+
export { Slot } from '@radix-ui/react-slot';
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
declare module '@umami/react-zen/Spinner' {
|
|
667
|
+
export interface SpinnerProps {
|
|
668
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
669
|
+
quiet?: boolean;
|
|
670
|
+
className?: string;
|
|
671
|
+
}
|
|
672
|
+
export function Spinner(props: SpinnerProps): import("react").JSX.Element;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
declare module '@umami/react-zen/StatusLight' {
|
|
676
|
+
import { ReactNode } from 'react';
|
|
677
|
+
interface StatusLightProps {
|
|
678
|
+
color?: string;
|
|
679
|
+
variant?: 'success' | 'warning' | 'error' | 'active' | 'inactive' | 'none';
|
|
680
|
+
className?: string;
|
|
681
|
+
children?: ReactNode;
|
|
682
|
+
}
|
|
683
|
+
function StatusLight(props: StatusLightProps): import("react").JSX.Element;
|
|
684
|
+
export { StatusLight };
|
|
685
|
+
export type { StatusLightProps };
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
declare module '@umami/react-zen/Switch' {
|
|
689
|
+
import { SwitchProps as AriaSwitchProps } from 'react-aria-components';
|
|
690
|
+
interface SwitchProps extends AriaSwitchProps {
|
|
691
|
+
label?: string;
|
|
692
|
+
}
|
|
693
|
+
const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<any>>;
|
|
694
|
+
export { Switch };
|
|
695
|
+
export type { SwitchProps };
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
declare module '@umami/react-zen/Table' {
|
|
699
|
+
import { CellProps, ColumnProps, RowProps, TableProps, TableBodyProps, TableHeaderProps } from 'react-aria-components';
|
|
700
|
+
interface TableColumnProps extends ColumnProps {
|
|
701
|
+
alignment?: 'start' | 'center' | 'end';
|
|
702
|
+
}
|
|
703
|
+
interface TableCellProps extends CellProps {
|
|
704
|
+
alignment?: 'start' | 'center' | 'end';
|
|
705
|
+
}
|
|
706
|
+
function Table({ children, className, ...props }: TableProps): import("react").JSX.Element;
|
|
707
|
+
function TableHeader({ children, className, ...props }: TableHeaderProps<any>): import("react").JSX.Element;
|
|
708
|
+
function TableBody({ children, className, ...props }: TableBodyProps<any>): import("react").JSX.Element;
|
|
709
|
+
function TableRow({ children, className, ...props }: RowProps<any>): import("react").JSX.Element;
|
|
710
|
+
function TableColumn({ children, className, alignment, ...props }: TableColumnProps): import("react").JSX.Element;
|
|
711
|
+
function TableCell({ children, className, alignment, ...props }: TableCellProps): import("react").JSX.Element;
|
|
712
|
+
export { Table, TableHeader, TableBody, TableRow, TableColumn, TableCell };
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
declare module '@umami/react-zen/Tabs' {
|
|
716
|
+
import { TabProps, TabsProps, TabPanelProps, TabListProps } from 'react-aria-components';
|
|
717
|
+
function Tabs({ children, ...props }: TabsProps): import("react").JSX.Element;
|
|
718
|
+
function TabList({ children, ...props }: TabListProps<any>): import("react").JSX.Element;
|
|
719
|
+
function Tab({ children, ...props }: TabProps): import("react").JSX.Element;
|
|
720
|
+
function TabPanel({ children, ...props }: TabPanelProps): import("react").JSX.Element;
|
|
721
|
+
export { Tabs, TabList, Tab, TabPanel };
|
|
722
|
+
export type { TabsProps, TabListProps, TabProps, TabPanelProps };
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
declare module '@umami/react-zen/Text' {
|
|
726
|
+
import { HTMLAttributes } from 'react';
|
|
727
|
+
import { Responsive, TextAlign, FontWeight, LetterSpacing, FontSize, TextWrap } from '@/lib/types';
|
|
728
|
+
export interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
729
|
+
type?: 'muted' | 'faded';
|
|
730
|
+
size?: Responsive<FontSize>;
|
|
731
|
+
spacing?: Responsive<LetterSpacing>;
|
|
732
|
+
weight?: Responsive<FontWeight>;
|
|
733
|
+
align?: Responsive<TextAlign>;
|
|
734
|
+
wrap?: Responsive<TextWrap>;
|
|
735
|
+
as?: 'span' | 'div' | 'label' | 'p';
|
|
736
|
+
asChild?: boolean;
|
|
737
|
+
}
|
|
738
|
+
export function Text({ type, size, spacing, weight, align, wrap, color, as, asChild, className, style, children, ...props }: TextProps): import("react").JSX.Element;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
declare module '@umami/react-zen/TextOverflow' {
|
|
742
|
+
import { HTMLAttributes } from 'react';
|
|
743
|
+
interface TextOverflowProps extends HTMLAttributes<HTMLDivElement> {
|
|
744
|
+
asChild?: boolean;
|
|
745
|
+
}
|
|
746
|
+
function TextOverflow({ asChild, children, className, ...props }: TextOverflowProps): import("react").JSX.Element;
|
|
747
|
+
export { TextOverflow };
|
|
748
|
+
export type { TextOverflowProps };
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
declare module '@umami/react-zen/TextField' {
|
|
752
|
+
import { TextFieldProps as AriaTextFieldProps } from 'react-aria-components';
|
|
753
|
+
interface TextFieldProps extends AriaTextFieldProps {
|
|
754
|
+
label?: string;
|
|
755
|
+
placeholder?: string;
|
|
756
|
+
allowCopy?: boolean;
|
|
757
|
+
asChild?: boolean;
|
|
758
|
+
onChange?: (e: any) => void;
|
|
759
|
+
}
|
|
760
|
+
const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
761
|
+
export { TextField };
|
|
762
|
+
export type { TextFieldProps };
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
declare module '@umami/react-zen/TextArea' {
|
|
766
|
+
import { TextFieldProps } from '@umami/react-zen/TextField';
|
|
767
|
+
interface TextAreaProps extends TextFieldProps {
|
|
768
|
+
rows?: number;
|
|
769
|
+
cols?: number;
|
|
770
|
+
resize?: 'none' | 'vertical' | 'horizontal';
|
|
771
|
+
children?: React.ReactNode;
|
|
772
|
+
}
|
|
773
|
+
const TextArea: import("react").ForwardRefExoticComponent<TextAreaProps & import("react").RefAttributes<any>>;
|
|
774
|
+
export { TextArea };
|
|
775
|
+
export type { TextAreaProps };
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
declare module '@umami/react-zen/Toast' {
|
|
779
|
+
import { ToastProvider, ToastProviderProps, ToastProps, ToastViewportProps } from '@radix-ui/react-toast';
|
|
780
|
+
interface _ToastProps extends ToastProps {
|
|
781
|
+
title?: string;
|
|
782
|
+
description?: string;
|
|
783
|
+
actionText?: string;
|
|
784
|
+
allowClose?: boolean;
|
|
785
|
+
variant?: 'info' | 'error';
|
|
786
|
+
}
|
|
787
|
+
function Toast({ title, description, actionText, allowClose, variant, className, children, ...props }: _ToastProps): import("react").JSX.Element;
|
|
788
|
+
function Toaster(props: ToastViewportProps): import("react").JSX.Element;
|
|
789
|
+
export { Toast, ToastProvider, Toaster };
|
|
790
|
+
export type { _ToastProps as ToastProps, ToastProviderProps, ToastViewportProps as ToasterProps };
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
declare module '@umami/react-zen/Toggle' {
|
|
794
|
+
import { ToggleButtonProps } from 'react-aria-components';
|
|
795
|
+
interface ToggleProps extends ToggleButtonProps {
|
|
796
|
+
label?: string;
|
|
797
|
+
value?: string;
|
|
798
|
+
}
|
|
799
|
+
const Toggle: import("react").ForwardRefExoticComponent<ToggleProps & import("react").RefAttributes<any>>;
|
|
800
|
+
export { Toggle };
|
|
801
|
+
export type { ToggleButtonProps as ToggleProps };
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
declare module '@umami/react-zen/ToggleGroup' {
|
|
805
|
+
import { TagGroupProps, TagProps } from 'react-aria-components';
|
|
806
|
+
export interface ToggleGroupProps extends TagGroupProps {
|
|
807
|
+
label?: string;
|
|
808
|
+
}
|
|
809
|
+
function ToggleGroup({ label, className, children, ...props }: ToggleGroupProps): import("react").JSX.Element;
|
|
810
|
+
export interface ToggleGroupItemProps extends TagProps {
|
|
811
|
+
}
|
|
812
|
+
function ToggleGroupItem({ className, children, ...props }: ToggleGroupItemProps): import("react").JSX.Element;
|
|
813
|
+
export { ToggleGroup, ToggleGroupItem };
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
declare module '@umami/react-zen/Tooltip' {
|
|
817
|
+
import { TooltipProps } from 'react-aria-components';
|
|
818
|
+
function Tooltip({ children, className, ...props }: TooltipProps): import("react").JSX.Element;
|
|
819
|
+
export { Tooltip };
|
|
820
|
+
export type { TooltipProps };
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
declare module '@umami/react-zen/ZenProvider' {
|
|
824
|
+
import { ReactNode } from 'react';
|
|
825
|
+
import { ToastProviderProps } from '@umami/react-zen/Toast';
|
|
826
|
+
interface ZenProviderProps {
|
|
827
|
+
config?: {
|
|
828
|
+
theme?: string;
|
|
829
|
+
colorScheme?: 'light' | 'dark' | 'system';
|
|
830
|
+
toast?: ToastProviderProps;
|
|
831
|
+
};
|
|
832
|
+
children: ReactNode;
|
|
833
|
+
}
|
|
834
|
+
function ZenProvider({ config, children }: ZenProviderProps): import("react").JSX.Element;
|
|
835
|
+
export { ZenProvider };
|
|
836
|
+
export type { ZenProviderProps };
|
|
837
|
+
}
|
|
838
|
+
|