@reifydb/ui 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +33 -34
- package/dist/index.d.ts +33 -34
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as react from 'react';
|
|
3
2
|
import { ReactNode, ButtonHTMLAttributes, InputHTMLAttributes, SelectHTMLAttributes } from 'react';
|
|
4
3
|
|
|
@@ -9,7 +8,7 @@ interface BadgeProps {
|
|
|
9
8
|
className?: string;
|
|
10
9
|
onClick?: () => void;
|
|
11
10
|
}
|
|
12
|
-
declare function Badge({ variant, children, className, onClick }: BadgeProps):
|
|
11
|
+
declare function Badge({ variant, children, className, onClick }: BadgeProps): react.JSX.Element;
|
|
13
12
|
|
|
14
13
|
type ButtonVariant = "primary" | "secondary" | "ghost" | "forest" | "danger" | "destructive" | "link";
|
|
15
14
|
type ButtonSize = "sm" | "md" | "lg" | "icon";
|
|
@@ -23,24 +22,24 @@ interface CardProps {
|
|
|
23
22
|
children: ReactNode;
|
|
24
23
|
className?: string;
|
|
25
24
|
}
|
|
26
|
-
declare function Card({ children, className }: CardProps):
|
|
27
|
-
declare function CardHeader({ children, className }: CardProps):
|
|
25
|
+
declare function Card({ children, className }: CardProps): react.JSX.Element;
|
|
26
|
+
declare function CardHeader({ children, className }: CardProps): react.JSX.Element;
|
|
28
27
|
declare function CardTitle({ children, className }: {
|
|
29
28
|
children: ReactNode;
|
|
30
29
|
className?: string;
|
|
31
|
-
}):
|
|
30
|
+
}): react.JSX.Element;
|
|
32
31
|
declare function CardDescription({ children, className }: {
|
|
33
32
|
children: ReactNode;
|
|
34
33
|
className?: string;
|
|
35
|
-
}):
|
|
34
|
+
}): react.JSX.Element;
|
|
36
35
|
declare function CardContent({ children, className }: {
|
|
37
36
|
children: ReactNode;
|
|
38
37
|
className?: string;
|
|
39
|
-
}):
|
|
38
|
+
}): react.JSX.Element;
|
|
40
39
|
declare function CardFooter({ children, className }: {
|
|
41
40
|
children: ReactNode;
|
|
42
41
|
className?: string;
|
|
43
|
-
}):
|
|
42
|
+
}): react.JSX.Element;
|
|
44
43
|
|
|
45
44
|
interface ChipProps {
|
|
46
45
|
active: boolean;
|
|
@@ -48,7 +47,7 @@ interface ChipProps {
|
|
|
48
47
|
children: ReactNode;
|
|
49
48
|
className?: string;
|
|
50
49
|
}
|
|
51
|
-
declare function Chip({ active, onClick, children, className }: ChipProps):
|
|
50
|
+
declare function Chip({ active, onClick, children, className }: ChipProps): react.JSX.Element;
|
|
52
51
|
|
|
53
52
|
interface ChipGroupOption {
|
|
54
53
|
value: string;
|
|
@@ -69,7 +68,7 @@ interface ChipGroupMultipleProps extends ChipGroupBaseProps {
|
|
|
69
68
|
onChange: (value: string[]) => void;
|
|
70
69
|
}
|
|
71
70
|
type ChipGroupProps = ChipGroupSingleProps | ChipGroupMultipleProps;
|
|
72
|
-
declare function ChipGroup(props: ChipGroupProps):
|
|
71
|
+
declare function ChipGroup(props: ChipGroupProps): react.JSX.Element;
|
|
73
72
|
|
|
74
73
|
interface CodeBlockProps {
|
|
75
74
|
code: string;
|
|
@@ -77,7 +76,7 @@ interface CodeBlockProps {
|
|
|
77
76
|
showCopy?: boolean;
|
|
78
77
|
className?: string;
|
|
79
78
|
}
|
|
80
|
-
declare function CodeBlock({ code, language, showCopy, className }: CodeBlockProps):
|
|
79
|
+
declare function CodeBlock({ code, language, showCopy, className }: CodeBlockProps): react.JSX.Element;
|
|
81
80
|
|
|
82
81
|
interface CopyButtonProps {
|
|
83
82
|
text: string;
|
|
@@ -85,14 +84,14 @@ interface CopyButtonProps {
|
|
|
85
84
|
label?: string;
|
|
86
85
|
onCopy?: () => void;
|
|
87
86
|
}
|
|
88
|
-
declare function CopyButton({ text, className, label, onCopy }: CopyButtonProps):
|
|
87
|
+
declare function CopyButton({ text, className, label, onCopy }: CopyButtonProps): react.JSX.Element;
|
|
89
88
|
|
|
90
89
|
interface DialogProps {
|
|
91
90
|
open: boolean;
|
|
92
91
|
onOpenChange: (open: boolean) => void;
|
|
93
92
|
children: ReactNode;
|
|
94
93
|
}
|
|
95
|
-
declare function Dialog({ open, onOpenChange, children }: DialogProps):
|
|
94
|
+
declare function Dialog({ open, onOpenChange, children }: DialogProps): react.JSX.Element | null;
|
|
96
95
|
interface DialogContentProps {
|
|
97
96
|
className?: string;
|
|
98
97
|
children: ReactNode;
|
|
@@ -101,7 +100,7 @@ declare const DialogContent: react.ForwardRefExoticComponent<DialogContentProps
|
|
|
101
100
|
declare function DialogHeader({ children, className }: {
|
|
102
101
|
children: ReactNode;
|
|
103
102
|
className?: string;
|
|
104
|
-
}):
|
|
103
|
+
}): react.JSX.Element;
|
|
105
104
|
declare const DialogTitle: react.ForwardRefExoticComponent<{
|
|
106
105
|
children: ReactNode;
|
|
107
106
|
className?: string;
|
|
@@ -114,7 +113,7 @@ declare const DialogClose: react.ForwardRefExoticComponent<ButtonHTMLAttributes<
|
|
|
114
113
|
declare function DialogFooter({ children, className }: {
|
|
115
114
|
children: ReactNode;
|
|
116
115
|
className?: string;
|
|
117
|
-
}):
|
|
116
|
+
}): react.JSX.Element;
|
|
118
117
|
|
|
119
118
|
interface EmptyStateProps {
|
|
120
119
|
icon?: ReactNode;
|
|
@@ -122,7 +121,7 @@ interface EmptyStateProps {
|
|
|
122
121
|
description?: string;
|
|
123
122
|
action?: ReactNode;
|
|
124
123
|
}
|
|
125
|
-
declare function EmptyState({ icon, title, description, action }: EmptyStateProps):
|
|
124
|
+
declare function EmptyState({ icon, title, description, action }: EmptyStateProps): react.JSX.Element;
|
|
126
125
|
|
|
127
126
|
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
128
127
|
label?: string;
|
|
@@ -134,13 +133,13 @@ interface KbdProps {
|
|
|
134
133
|
children: ReactNode;
|
|
135
134
|
className?: string;
|
|
136
135
|
}
|
|
137
|
-
declare function Kbd({ children, className }: KbdProps):
|
|
136
|
+
declare function Kbd({ children, className }: KbdProps): react.JSX.Element;
|
|
138
137
|
|
|
139
138
|
interface LoadingProps {
|
|
140
139
|
text?: string;
|
|
141
140
|
className?: string;
|
|
142
141
|
}
|
|
143
|
-
declare function Loading({ text, className }: LoadingProps):
|
|
142
|
+
declare function Loading({ text, className }: LoadingProps): react.JSX.Element;
|
|
144
143
|
|
|
145
144
|
interface ModalProps {
|
|
146
145
|
open: boolean;
|
|
@@ -149,7 +148,7 @@ interface ModalProps {
|
|
|
149
148
|
children: ReactNode;
|
|
150
149
|
className?: string;
|
|
151
150
|
}
|
|
152
|
-
declare function Modal({ open, onClose, title, children, className }: ModalProps):
|
|
151
|
+
declare function Modal({ open, onClose, title, children, className }: ModalProps): react.JSX.Element | null;
|
|
153
152
|
|
|
154
153
|
interface NavTabItem {
|
|
155
154
|
label: string;
|
|
@@ -166,14 +165,14 @@ interface NavTabsProps {
|
|
|
166
165
|
children: ReactNode;
|
|
167
166
|
}) => ReactNode;
|
|
168
167
|
}
|
|
169
|
-
declare function NavTabs({ items, variant, className, renderLink }: NavTabsProps):
|
|
168
|
+
declare function NavTabs({ items, variant, className, renderLink }: NavTabsProps): react.JSX.Element;
|
|
170
169
|
|
|
171
170
|
interface SectionHeaderProps {
|
|
172
171
|
title: string;
|
|
173
172
|
badge?: ReactNode;
|
|
174
173
|
className?: string;
|
|
175
174
|
}
|
|
176
|
-
declare function SectionHeader({ title, badge, className }: SectionHeaderProps):
|
|
175
|
+
declare function SectionHeader({ title, badge, className }: SectionHeaderProps): react.JSX.Element;
|
|
177
176
|
|
|
178
177
|
interface SelectOption {
|
|
179
178
|
value: string;
|
|
@@ -188,24 +187,24 @@ declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAtt
|
|
|
188
187
|
interface SeparatorProps {
|
|
189
188
|
className?: string;
|
|
190
189
|
}
|
|
191
|
-
declare function Separator({ className }: SeparatorProps):
|
|
190
|
+
declare function Separator({ className }: SeparatorProps): react.JSX.Element;
|
|
192
191
|
|
|
193
192
|
interface SkeletonProps {
|
|
194
193
|
className?: string;
|
|
195
194
|
}
|
|
196
|
-
declare function Skeleton({ className }: SkeletonProps):
|
|
195
|
+
declare function Skeleton({ className }: SkeletonProps): react.JSX.Element;
|
|
197
196
|
|
|
198
197
|
interface SparklineProps {
|
|
199
198
|
trend: number[];
|
|
200
199
|
className?: string;
|
|
201
200
|
}
|
|
202
|
-
declare function Sparkline({ trend, className }: SparklineProps):
|
|
201
|
+
declare function Sparkline({ trend, className }: SparklineProps): react.JSX.Element;
|
|
203
202
|
|
|
204
203
|
interface SpinnerProps {
|
|
205
204
|
size?: "sm" | "md" | "lg";
|
|
206
205
|
className?: string;
|
|
207
206
|
}
|
|
208
|
-
declare function Spinner({ size, className }: SpinnerProps):
|
|
207
|
+
declare function Spinner({ size, className }: SpinnerProps): react.JSX.Element;
|
|
209
208
|
|
|
210
209
|
type StatusDot = "success" | "warning" | "danger" | "idle";
|
|
211
210
|
interface StatusBarItem {
|
|
@@ -217,35 +216,35 @@ interface StatusBarProps {
|
|
|
217
216
|
trailing?: ReactNode;
|
|
218
217
|
className?: string;
|
|
219
218
|
}
|
|
220
|
-
declare function StatusBar({ items, trailing, className }: StatusBarProps):
|
|
219
|
+
declare function StatusBar({ items, trailing, className }: StatusBarProps): react.JSX.Element;
|
|
221
220
|
|
|
222
221
|
interface TableProps {
|
|
223
222
|
children: ReactNode;
|
|
224
223
|
className?: string;
|
|
225
224
|
}
|
|
226
|
-
declare function Table({ children, className }: TableProps):
|
|
225
|
+
declare function Table({ children, className }: TableProps): react.JSX.Element;
|
|
227
226
|
declare function TableHead({ children }: {
|
|
228
227
|
children: ReactNode;
|
|
229
|
-
}):
|
|
228
|
+
}): react.JSX.Element;
|
|
230
229
|
interface TableHeaderProps {
|
|
231
230
|
children?: ReactNode;
|
|
232
231
|
className?: string;
|
|
233
232
|
onClick?: () => void;
|
|
234
233
|
}
|
|
235
|
-
declare function TableHeader({ children, className, onClick }: TableHeaderProps):
|
|
234
|
+
declare function TableHeader({ children, className, onClick }: TableHeaderProps): react.JSX.Element;
|
|
236
235
|
declare function TableBody({ children }: {
|
|
237
236
|
children: ReactNode;
|
|
238
|
-
}):
|
|
237
|
+
}): react.JSX.Element;
|
|
239
238
|
interface TableRowProps {
|
|
240
239
|
children: ReactNode;
|
|
241
240
|
className?: string;
|
|
242
241
|
onClick?: () => void;
|
|
243
242
|
}
|
|
244
|
-
declare function TableRow({ children, className, onClick }: TableRowProps):
|
|
243
|
+
declare function TableRow({ children, className, onClick }: TableRowProps): react.JSX.Element;
|
|
245
244
|
declare function TableCell({ children, className }: {
|
|
246
245
|
children: ReactNode;
|
|
247
246
|
className?: string;
|
|
248
|
-
}):
|
|
247
|
+
}): react.JSX.Element;
|
|
249
248
|
|
|
250
249
|
interface Tab {
|
|
251
250
|
value: string;
|
|
@@ -257,7 +256,7 @@ interface TabsProps {
|
|
|
257
256
|
onChange: (value: string) => void;
|
|
258
257
|
className?: string;
|
|
259
258
|
}
|
|
260
|
-
declare function Tabs({ tabs, value, onChange, className }: TabsProps):
|
|
259
|
+
declare function Tabs({ tabs, value, onChange, className }: TabsProps): react.JSX.Element;
|
|
261
260
|
|
|
262
261
|
interface ToggleProps {
|
|
263
262
|
options: [string, string];
|
|
@@ -265,6 +264,6 @@ interface ToggleProps {
|
|
|
265
264
|
onChange: (value: string) => void;
|
|
266
265
|
className?: string;
|
|
267
266
|
}
|
|
268
|
-
declare function Toggle({ options, value, onChange, className }: ToggleProps):
|
|
267
|
+
declare function Toggle({ options, value, onChange, className }: ToggleProps): react.JSX.Element;
|
|
269
268
|
|
|
270
269
|
export { Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Chip, ChipGroup, type ChipGroupOption, type ChipGroupProps, type ChipProps, CodeBlock, type CodeBlockProps, CopyButton, type CopyButtonProps, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, EmptyState, type EmptyStateProps, Input, type InputProps, Kbd, type KbdProps, Loading, type LoadingProps, Modal, type ModalProps, type NavTabItem, NavTabs, type NavTabsProps, SectionHeader, type SectionHeaderProps, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, Sparkline, type SparklineProps, Spinner, type SpinnerProps, StatusBar, type StatusBarItem, type StatusBarProps, type Tab, Table, TableBody, TableCell, TableHead, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Toggle, type ToggleProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as react from 'react';
|
|
3
2
|
import { ReactNode, ButtonHTMLAttributes, InputHTMLAttributes, SelectHTMLAttributes } from 'react';
|
|
4
3
|
|
|
@@ -9,7 +8,7 @@ interface BadgeProps {
|
|
|
9
8
|
className?: string;
|
|
10
9
|
onClick?: () => void;
|
|
11
10
|
}
|
|
12
|
-
declare function Badge({ variant, children, className, onClick }: BadgeProps):
|
|
11
|
+
declare function Badge({ variant, children, className, onClick }: BadgeProps): react.JSX.Element;
|
|
13
12
|
|
|
14
13
|
type ButtonVariant = "primary" | "secondary" | "ghost" | "forest" | "danger" | "destructive" | "link";
|
|
15
14
|
type ButtonSize = "sm" | "md" | "lg" | "icon";
|
|
@@ -23,24 +22,24 @@ interface CardProps {
|
|
|
23
22
|
children: ReactNode;
|
|
24
23
|
className?: string;
|
|
25
24
|
}
|
|
26
|
-
declare function Card({ children, className }: CardProps):
|
|
27
|
-
declare function CardHeader({ children, className }: CardProps):
|
|
25
|
+
declare function Card({ children, className }: CardProps): react.JSX.Element;
|
|
26
|
+
declare function CardHeader({ children, className }: CardProps): react.JSX.Element;
|
|
28
27
|
declare function CardTitle({ children, className }: {
|
|
29
28
|
children: ReactNode;
|
|
30
29
|
className?: string;
|
|
31
|
-
}):
|
|
30
|
+
}): react.JSX.Element;
|
|
32
31
|
declare function CardDescription({ children, className }: {
|
|
33
32
|
children: ReactNode;
|
|
34
33
|
className?: string;
|
|
35
|
-
}):
|
|
34
|
+
}): react.JSX.Element;
|
|
36
35
|
declare function CardContent({ children, className }: {
|
|
37
36
|
children: ReactNode;
|
|
38
37
|
className?: string;
|
|
39
|
-
}):
|
|
38
|
+
}): react.JSX.Element;
|
|
40
39
|
declare function CardFooter({ children, className }: {
|
|
41
40
|
children: ReactNode;
|
|
42
41
|
className?: string;
|
|
43
|
-
}):
|
|
42
|
+
}): react.JSX.Element;
|
|
44
43
|
|
|
45
44
|
interface ChipProps {
|
|
46
45
|
active: boolean;
|
|
@@ -48,7 +47,7 @@ interface ChipProps {
|
|
|
48
47
|
children: ReactNode;
|
|
49
48
|
className?: string;
|
|
50
49
|
}
|
|
51
|
-
declare function Chip({ active, onClick, children, className }: ChipProps):
|
|
50
|
+
declare function Chip({ active, onClick, children, className }: ChipProps): react.JSX.Element;
|
|
52
51
|
|
|
53
52
|
interface ChipGroupOption {
|
|
54
53
|
value: string;
|
|
@@ -69,7 +68,7 @@ interface ChipGroupMultipleProps extends ChipGroupBaseProps {
|
|
|
69
68
|
onChange: (value: string[]) => void;
|
|
70
69
|
}
|
|
71
70
|
type ChipGroupProps = ChipGroupSingleProps | ChipGroupMultipleProps;
|
|
72
|
-
declare function ChipGroup(props: ChipGroupProps):
|
|
71
|
+
declare function ChipGroup(props: ChipGroupProps): react.JSX.Element;
|
|
73
72
|
|
|
74
73
|
interface CodeBlockProps {
|
|
75
74
|
code: string;
|
|
@@ -77,7 +76,7 @@ interface CodeBlockProps {
|
|
|
77
76
|
showCopy?: boolean;
|
|
78
77
|
className?: string;
|
|
79
78
|
}
|
|
80
|
-
declare function CodeBlock({ code, language, showCopy, className }: CodeBlockProps):
|
|
79
|
+
declare function CodeBlock({ code, language, showCopy, className }: CodeBlockProps): react.JSX.Element;
|
|
81
80
|
|
|
82
81
|
interface CopyButtonProps {
|
|
83
82
|
text: string;
|
|
@@ -85,14 +84,14 @@ interface CopyButtonProps {
|
|
|
85
84
|
label?: string;
|
|
86
85
|
onCopy?: () => void;
|
|
87
86
|
}
|
|
88
|
-
declare function CopyButton({ text, className, label, onCopy }: CopyButtonProps):
|
|
87
|
+
declare function CopyButton({ text, className, label, onCopy }: CopyButtonProps): react.JSX.Element;
|
|
89
88
|
|
|
90
89
|
interface DialogProps {
|
|
91
90
|
open: boolean;
|
|
92
91
|
onOpenChange: (open: boolean) => void;
|
|
93
92
|
children: ReactNode;
|
|
94
93
|
}
|
|
95
|
-
declare function Dialog({ open, onOpenChange, children }: DialogProps):
|
|
94
|
+
declare function Dialog({ open, onOpenChange, children }: DialogProps): react.JSX.Element | null;
|
|
96
95
|
interface DialogContentProps {
|
|
97
96
|
className?: string;
|
|
98
97
|
children: ReactNode;
|
|
@@ -101,7 +100,7 @@ declare const DialogContent: react.ForwardRefExoticComponent<DialogContentProps
|
|
|
101
100
|
declare function DialogHeader({ children, className }: {
|
|
102
101
|
children: ReactNode;
|
|
103
102
|
className?: string;
|
|
104
|
-
}):
|
|
103
|
+
}): react.JSX.Element;
|
|
105
104
|
declare const DialogTitle: react.ForwardRefExoticComponent<{
|
|
106
105
|
children: ReactNode;
|
|
107
106
|
className?: string;
|
|
@@ -114,7 +113,7 @@ declare const DialogClose: react.ForwardRefExoticComponent<ButtonHTMLAttributes<
|
|
|
114
113
|
declare function DialogFooter({ children, className }: {
|
|
115
114
|
children: ReactNode;
|
|
116
115
|
className?: string;
|
|
117
|
-
}):
|
|
116
|
+
}): react.JSX.Element;
|
|
118
117
|
|
|
119
118
|
interface EmptyStateProps {
|
|
120
119
|
icon?: ReactNode;
|
|
@@ -122,7 +121,7 @@ interface EmptyStateProps {
|
|
|
122
121
|
description?: string;
|
|
123
122
|
action?: ReactNode;
|
|
124
123
|
}
|
|
125
|
-
declare function EmptyState({ icon, title, description, action }: EmptyStateProps):
|
|
124
|
+
declare function EmptyState({ icon, title, description, action }: EmptyStateProps): react.JSX.Element;
|
|
126
125
|
|
|
127
126
|
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
128
127
|
label?: string;
|
|
@@ -134,13 +133,13 @@ interface KbdProps {
|
|
|
134
133
|
children: ReactNode;
|
|
135
134
|
className?: string;
|
|
136
135
|
}
|
|
137
|
-
declare function Kbd({ children, className }: KbdProps):
|
|
136
|
+
declare function Kbd({ children, className }: KbdProps): react.JSX.Element;
|
|
138
137
|
|
|
139
138
|
interface LoadingProps {
|
|
140
139
|
text?: string;
|
|
141
140
|
className?: string;
|
|
142
141
|
}
|
|
143
|
-
declare function Loading({ text, className }: LoadingProps):
|
|
142
|
+
declare function Loading({ text, className }: LoadingProps): react.JSX.Element;
|
|
144
143
|
|
|
145
144
|
interface ModalProps {
|
|
146
145
|
open: boolean;
|
|
@@ -149,7 +148,7 @@ interface ModalProps {
|
|
|
149
148
|
children: ReactNode;
|
|
150
149
|
className?: string;
|
|
151
150
|
}
|
|
152
|
-
declare function Modal({ open, onClose, title, children, className }: ModalProps):
|
|
151
|
+
declare function Modal({ open, onClose, title, children, className }: ModalProps): react.JSX.Element | null;
|
|
153
152
|
|
|
154
153
|
interface NavTabItem {
|
|
155
154
|
label: string;
|
|
@@ -166,14 +165,14 @@ interface NavTabsProps {
|
|
|
166
165
|
children: ReactNode;
|
|
167
166
|
}) => ReactNode;
|
|
168
167
|
}
|
|
169
|
-
declare function NavTabs({ items, variant, className, renderLink }: NavTabsProps):
|
|
168
|
+
declare function NavTabs({ items, variant, className, renderLink }: NavTabsProps): react.JSX.Element;
|
|
170
169
|
|
|
171
170
|
interface SectionHeaderProps {
|
|
172
171
|
title: string;
|
|
173
172
|
badge?: ReactNode;
|
|
174
173
|
className?: string;
|
|
175
174
|
}
|
|
176
|
-
declare function SectionHeader({ title, badge, className }: SectionHeaderProps):
|
|
175
|
+
declare function SectionHeader({ title, badge, className }: SectionHeaderProps): react.JSX.Element;
|
|
177
176
|
|
|
178
177
|
interface SelectOption {
|
|
179
178
|
value: string;
|
|
@@ -188,24 +187,24 @@ declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAtt
|
|
|
188
187
|
interface SeparatorProps {
|
|
189
188
|
className?: string;
|
|
190
189
|
}
|
|
191
|
-
declare function Separator({ className }: SeparatorProps):
|
|
190
|
+
declare function Separator({ className }: SeparatorProps): react.JSX.Element;
|
|
192
191
|
|
|
193
192
|
interface SkeletonProps {
|
|
194
193
|
className?: string;
|
|
195
194
|
}
|
|
196
|
-
declare function Skeleton({ className }: SkeletonProps):
|
|
195
|
+
declare function Skeleton({ className }: SkeletonProps): react.JSX.Element;
|
|
197
196
|
|
|
198
197
|
interface SparklineProps {
|
|
199
198
|
trend: number[];
|
|
200
199
|
className?: string;
|
|
201
200
|
}
|
|
202
|
-
declare function Sparkline({ trend, className }: SparklineProps):
|
|
201
|
+
declare function Sparkline({ trend, className }: SparklineProps): react.JSX.Element;
|
|
203
202
|
|
|
204
203
|
interface SpinnerProps {
|
|
205
204
|
size?: "sm" | "md" | "lg";
|
|
206
205
|
className?: string;
|
|
207
206
|
}
|
|
208
|
-
declare function Spinner({ size, className }: SpinnerProps):
|
|
207
|
+
declare function Spinner({ size, className }: SpinnerProps): react.JSX.Element;
|
|
209
208
|
|
|
210
209
|
type StatusDot = "success" | "warning" | "danger" | "idle";
|
|
211
210
|
interface StatusBarItem {
|
|
@@ -217,35 +216,35 @@ interface StatusBarProps {
|
|
|
217
216
|
trailing?: ReactNode;
|
|
218
217
|
className?: string;
|
|
219
218
|
}
|
|
220
|
-
declare function StatusBar({ items, trailing, className }: StatusBarProps):
|
|
219
|
+
declare function StatusBar({ items, trailing, className }: StatusBarProps): react.JSX.Element;
|
|
221
220
|
|
|
222
221
|
interface TableProps {
|
|
223
222
|
children: ReactNode;
|
|
224
223
|
className?: string;
|
|
225
224
|
}
|
|
226
|
-
declare function Table({ children, className }: TableProps):
|
|
225
|
+
declare function Table({ children, className }: TableProps): react.JSX.Element;
|
|
227
226
|
declare function TableHead({ children }: {
|
|
228
227
|
children: ReactNode;
|
|
229
|
-
}):
|
|
228
|
+
}): react.JSX.Element;
|
|
230
229
|
interface TableHeaderProps {
|
|
231
230
|
children?: ReactNode;
|
|
232
231
|
className?: string;
|
|
233
232
|
onClick?: () => void;
|
|
234
233
|
}
|
|
235
|
-
declare function TableHeader({ children, className, onClick }: TableHeaderProps):
|
|
234
|
+
declare function TableHeader({ children, className, onClick }: TableHeaderProps): react.JSX.Element;
|
|
236
235
|
declare function TableBody({ children }: {
|
|
237
236
|
children: ReactNode;
|
|
238
|
-
}):
|
|
237
|
+
}): react.JSX.Element;
|
|
239
238
|
interface TableRowProps {
|
|
240
239
|
children: ReactNode;
|
|
241
240
|
className?: string;
|
|
242
241
|
onClick?: () => void;
|
|
243
242
|
}
|
|
244
|
-
declare function TableRow({ children, className, onClick }: TableRowProps):
|
|
243
|
+
declare function TableRow({ children, className, onClick }: TableRowProps): react.JSX.Element;
|
|
245
244
|
declare function TableCell({ children, className }: {
|
|
246
245
|
children: ReactNode;
|
|
247
246
|
className?: string;
|
|
248
|
-
}):
|
|
247
|
+
}): react.JSX.Element;
|
|
249
248
|
|
|
250
249
|
interface Tab {
|
|
251
250
|
value: string;
|
|
@@ -257,7 +256,7 @@ interface TabsProps {
|
|
|
257
256
|
onChange: (value: string) => void;
|
|
258
257
|
className?: string;
|
|
259
258
|
}
|
|
260
|
-
declare function Tabs({ tabs, value, onChange, className }: TabsProps):
|
|
259
|
+
declare function Tabs({ tabs, value, onChange, className }: TabsProps): react.JSX.Element;
|
|
261
260
|
|
|
262
261
|
interface ToggleProps {
|
|
263
262
|
options: [string, string];
|
|
@@ -265,6 +264,6 @@ interface ToggleProps {
|
|
|
265
264
|
onChange: (value: string) => void;
|
|
266
265
|
className?: string;
|
|
267
266
|
}
|
|
268
|
-
declare function Toggle({ options, value, onChange, className }: ToggleProps):
|
|
267
|
+
declare function Toggle({ options, value, onChange, className }: ToggleProps): react.JSX.Element;
|
|
269
268
|
|
|
270
269
|
export { Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Chip, ChipGroup, type ChipGroupOption, type ChipGroupProps, type ChipProps, CodeBlock, type CodeBlockProps, CopyButton, type CopyButtonProps, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, EmptyState, type EmptyStateProps, Input, type InputProps, Kbd, type KbdProps, Loading, type LoadingProps, Modal, type ModalProps, type NavTabItem, NavTabs, type NavTabsProps, SectionHeader, type SectionHeaderProps, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, Sparkline, type SparklineProps, Spinner, type SpinnerProps, StatusBar, type StatusBarItem, type StatusBarProps, type Tab, Table, TableBody, TableCell, TableHead, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Toggle, type ToggleProps };
|