@camtomlabs/malix-design-system 0.1.2 → 0.1.3
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/LICENSE +19 -5
- package/dist/index.cjs +2338 -0
- package/dist/index.d.cts +524 -0
- package/dist/index.d.ts +524 -0
- package/dist/index.js +2251 -0
- package/package.json +21 -8
- package/src/components/Accordion.tsx +0 -52
- package/src/components/Avatar.tsx +0 -18
- package/src/components/Badge.tsx +0 -27
- package/src/components/Banner.tsx +0 -75
- package/src/components/Breadcrumb.tsx +0 -58
- package/src/components/Button.tsx +0 -47
- package/src/components/Card.tsx +0 -34
- package/src/components/ChatInput.tsx +0 -53
- package/src/components/Checkbox.tsx +0 -85
- package/src/components/CreditsIndicator.tsx +0 -41
- package/src/components/DataTable.tsx +0 -75
- package/src/components/DateInput.tsx +0 -57
- package/src/components/Divider.tsx +0 -12
- package/src/components/Dropzone.tsx +0 -94
- package/src/components/EmptyState.tsx +0 -65
- package/src/components/FileCard.tsx +0 -78
- package/src/components/FilterTabs.tsx +0 -49
- package/src/components/FlyoutMenu.tsx +0 -36
- package/src/components/GlassPopover.tsx +0 -38
- package/src/components/Header.tsx +0 -22
- package/src/components/Input.tsx +0 -18
- package/src/components/InputGroup.tsx +0 -37
- package/src/components/LanguageSelector.tsx +0 -81
- package/src/components/Modal.tsx +0 -104
- package/src/components/OnboardingPopover.tsx +0 -61
- package/src/components/OperationStatus.tsx +0 -73
- package/src/components/Overlay.tsx +0 -66
- package/src/components/Pagination.tsx +0 -89
- package/src/components/Pill.tsx +0 -19
- package/src/components/PricingCard.tsx +0 -74
- package/src/components/ProgressBar.tsx +0 -47
- package/src/components/Radio.tsx +0 -56
- package/src/components/SectionHeader.tsx +0 -32
- package/src/components/SegmentedControl.tsx +0 -42
- package/src/components/Select.tsx +0 -62
- package/src/components/SelectGroup.tsx +0 -32
- package/src/components/SelectionCard.tsx +0 -47
- package/src/components/SidebarItem.tsx +0 -27
- package/src/components/SidebarPanel.tsx +0 -84
- package/src/components/SplitPane.tsx +0 -85
- package/src/components/StatCard.tsx +0 -64
- package/src/components/StatusDot.tsx +0 -26
- package/src/components/Stepper.tsx +0 -40
- package/src/components/TabBar.tsx +0 -45
- package/src/components/Textarea.tsx +0 -43
- package/src/components/Toggle.tsx +0 -50
- package/src/components/Tooltip.tsx +0 -33
- package/src/components/UserProfilePopover.tsx +0 -100
- package/src/components/ValidationAlert.tsx +0 -72
- package/src/index.ts +0 -177
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
var version = 1;
|
|
5
|
+
var tokens = [
|
|
6
|
+
"--malix-background-main",
|
|
7
|
+
"--malix-surface",
|
|
8
|
+
"--malix-surface-secondary",
|
|
9
|
+
"--malix-surface-hover",
|
|
10
|
+
"--malix-foreground",
|
|
11
|
+
"--malix-foreground-secondary",
|
|
12
|
+
"--malix-foreground-tertiary",
|
|
13
|
+
"--malix-foreground-disabled",
|
|
14
|
+
"--malix-border",
|
|
15
|
+
"--malix-border-strong",
|
|
16
|
+
"--malix-border-focus",
|
|
17
|
+
"--malix-overlay",
|
|
18
|
+
"--malix-cta-primary-bg",
|
|
19
|
+
"--malix-primary-hover",
|
|
20
|
+
"--malix-primary-active",
|
|
21
|
+
"--malix-primary-foreground",
|
|
22
|
+
"--malix-primary-light",
|
|
23
|
+
"--malix-success",
|
|
24
|
+
"--malix-success-light",
|
|
25
|
+
"--malix-success-foreground",
|
|
26
|
+
"--malix-warning",
|
|
27
|
+
"--malix-warning-light",
|
|
28
|
+
"--malix-warning-foreground",
|
|
29
|
+
"--malix-error",
|
|
30
|
+
"--malix-error-light",
|
|
31
|
+
"--malix-error-foreground",
|
|
32
|
+
"--malix-info",
|
|
33
|
+
"--malix-info-light",
|
|
34
|
+
"--malix-info-foreground",
|
|
35
|
+
"--malix-glass-bg",
|
|
36
|
+
"--malix-glass-border",
|
|
37
|
+
"--malix-glass-blur",
|
|
38
|
+
"--malix-sidebar-bg",
|
|
39
|
+
"--malix-sidebar-hover-bg",
|
|
40
|
+
"--malix-sidebar-active-bg",
|
|
41
|
+
"--malix-space-xs",
|
|
42
|
+
"--malix-space-sm",
|
|
43
|
+
"--malix-space-md",
|
|
44
|
+
"--malix-space-lg",
|
|
45
|
+
"--malix-space-xl",
|
|
46
|
+
"--malix-space-2xl",
|
|
47
|
+
"--malix-space-3xl",
|
|
48
|
+
"--malix-radius-sm",
|
|
49
|
+
"--malix-radius-md",
|
|
50
|
+
"--malix-radius-lg",
|
|
51
|
+
"--malix-radius-xl",
|
|
52
|
+
"--malix-radius-pill",
|
|
53
|
+
"--malix-text-xs",
|
|
54
|
+
"--malix-text-sm",
|
|
55
|
+
"--malix-text-base",
|
|
56
|
+
"--malix-text-lg",
|
|
57
|
+
"--malix-text-xl",
|
|
58
|
+
"--malix-text-2xl",
|
|
59
|
+
"--malix-font-body",
|
|
60
|
+
"--malix-font-heading",
|
|
61
|
+
"--malix-weight-normal",
|
|
62
|
+
"--malix-weight-medium",
|
|
63
|
+
"--malix-weight-semibold",
|
|
64
|
+
"--malix-weight-bold",
|
|
65
|
+
"--malix-shadow-btn-primary",
|
|
66
|
+
"--malix-shadow-btn-secondary",
|
|
67
|
+
"--malix-shadow-input",
|
|
68
|
+
"--malix-shadow-depth",
|
|
69
|
+
"--malix-shadow-card-l1",
|
|
70
|
+
"--malix-shadow-card-l2",
|
|
71
|
+
"--malix-shadow-card-l3",
|
|
72
|
+
"--malix-shadow-overlay",
|
|
73
|
+
"--malix-shadow-tooltip",
|
|
74
|
+
"--malix-shadow-sidebar",
|
|
75
|
+
"--malix-shadow-header"
|
|
76
|
+
];
|
|
77
|
+
var tokens_registry = {
|
|
78
|
+
version: version,
|
|
79
|
+
tokens: tokens
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
type DividerProps = React.HTMLAttributes<HTMLHRElement>;
|
|
83
|
+
declare function Divider({ className, ...props }: DividerProps): react_jsx_runtime.JSX.Element;
|
|
84
|
+
|
|
85
|
+
type AvatarProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
86
|
+
initials: string;
|
|
87
|
+
size?: number;
|
|
88
|
+
};
|
|
89
|
+
declare function Avatar({ initials, size, className, style, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
90
|
+
|
|
91
|
+
type PillVariant = 'default' | 'primary' | 'success' | 'error' | 'warning' | 'info';
|
|
92
|
+
type PillProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
93
|
+
variant?: PillVariant;
|
|
94
|
+
};
|
|
95
|
+
declare function Pill({ variant, children, className, ...props }: PillProps): react_jsx_runtime.JSX.Element;
|
|
96
|
+
|
|
97
|
+
type ButtonHierarchy = 'primary' | 'secondary' | 'tertiary' | 'ghost';
|
|
98
|
+
type ButtonVariant = 'text' | 'leading-icon-text' | 'icon-only' | 'icon-badge';
|
|
99
|
+
type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
100
|
+
hierarchy?: ButtonHierarchy;
|
|
101
|
+
variant?: ButtonVariant;
|
|
102
|
+
icon?: React.ReactNode;
|
|
103
|
+
badge?: React.ReactNode;
|
|
104
|
+
loading?: boolean;
|
|
105
|
+
label?: string;
|
|
106
|
+
};
|
|
107
|
+
declare function Button({ hierarchy, variant, icon, badge, loading, disabled, children, label, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
108
|
+
|
|
109
|
+
type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
110
|
+
leadingIcon?: React.ReactNode;
|
|
111
|
+
};
|
|
112
|
+
declare function Input({ leadingIcon, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
113
|
+
declare function SearchInput(props: Omit<InputProps, 'type'>): react_jsx_runtime.JSX.Element;
|
|
114
|
+
|
|
115
|
+
type InputGroupProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
116
|
+
label?: string;
|
|
117
|
+
helperText?: string;
|
|
118
|
+
leadingIcon?: React.ReactNode;
|
|
119
|
+
error?: boolean;
|
|
120
|
+
};
|
|
121
|
+
declare function InputGroup({ label, helperText, leadingIcon, error, id, className, ...props }: InputGroupProps): react_jsx_runtime.JSX.Element;
|
|
122
|
+
|
|
123
|
+
type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
124
|
+
type TooltipProps = {
|
|
125
|
+
content: React.ReactNode;
|
|
126
|
+
children: React.ReactElement;
|
|
127
|
+
placement?: TooltipPlacement;
|
|
128
|
+
};
|
|
129
|
+
declare function Tooltip({ content, children, placement }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
130
|
+
|
|
131
|
+
type SidebarItemProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
132
|
+
icon?: React.ReactNode;
|
|
133
|
+
active?: boolean;
|
|
134
|
+
};
|
|
135
|
+
declare function SidebarItem({ icon, active, children, className, ...props }: SidebarItemProps): react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
137
|
+
type FlyoutMenuItem = {
|
|
138
|
+
icon?: React.ReactNode;
|
|
139
|
+
label: string;
|
|
140
|
+
active?: boolean;
|
|
141
|
+
onClick?: () => void;
|
|
142
|
+
};
|
|
143
|
+
type FlyoutMenuProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
144
|
+
items: FlyoutMenuItem[];
|
|
145
|
+
};
|
|
146
|
+
declare function FlyoutMenu({ items, className, ...props }: FlyoutMenuProps): react_jsx_runtime.JSX.Element;
|
|
147
|
+
|
|
148
|
+
type SidebarPanelProps = React.HTMLAttributes<HTMLElement> & {
|
|
149
|
+
collapsed?: boolean;
|
|
150
|
+
logo?: React.ReactNode;
|
|
151
|
+
collapsedLogo?: React.ReactNode;
|
|
152
|
+
navigation?: React.ReactNode;
|
|
153
|
+
footer?: React.ReactNode;
|
|
154
|
+
onToggleCollapse?: () => void;
|
|
155
|
+
};
|
|
156
|
+
declare function SidebarPanel({ collapsed, logo, collapsedLogo, navigation, footer, onToggleCollapse, className, ...props }: SidebarPanelProps): react_jsx_runtime.JSX.Element;
|
|
157
|
+
|
|
158
|
+
type HeaderProps = React.HTMLAttributes<HTMLElement> & {
|
|
159
|
+
pageTitle: string;
|
|
160
|
+
actions?: React.ReactNode;
|
|
161
|
+
};
|
|
162
|
+
declare function Header({ pageTitle, actions, className, ...props }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
163
|
+
|
|
164
|
+
type CardLevel = 1 | 2 | 3;
|
|
165
|
+
type CardProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
166
|
+
level?: CardLevel;
|
|
167
|
+
title?: string;
|
|
168
|
+
description?: string;
|
|
169
|
+
};
|
|
170
|
+
declare function Card({ level, title, description, children, className, ...props }: CardProps): react_jsx_runtime.JSX.Element;
|
|
171
|
+
|
|
172
|
+
type StatCardChangeType = 'positive' | 'negative' | 'neutral';
|
|
173
|
+
type StatCardProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
174
|
+
label: string;
|
|
175
|
+
value: string;
|
|
176
|
+
change?: string;
|
|
177
|
+
changeType?: StatCardChangeType;
|
|
178
|
+
};
|
|
179
|
+
declare function StatCard({ label, value, change, changeType, className, ...props }: StatCardProps): react_jsx_runtime.JSX.Element;
|
|
180
|
+
|
|
181
|
+
type DateInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange'> & {
|
|
182
|
+
value?: string;
|
|
183
|
+
placeholder?: string;
|
|
184
|
+
onChange?: (value: string) => void;
|
|
185
|
+
disabled?: boolean;
|
|
186
|
+
};
|
|
187
|
+
declare function DateInput({ value, placeholder, onChange, disabled, className, id, ...props }: DateInputProps): react_jsx_runtime.JSX.Element;
|
|
188
|
+
|
|
189
|
+
type FilterTabItem = {
|
|
190
|
+
label: string;
|
|
191
|
+
count?: number;
|
|
192
|
+
value: string;
|
|
193
|
+
};
|
|
194
|
+
type FilterTabsProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
195
|
+
items: FilterTabItem[];
|
|
196
|
+
value: string;
|
|
197
|
+
onChange: (value: string) => void;
|
|
198
|
+
};
|
|
199
|
+
declare function FilterTabs({ items, value, onChange, className, ...props }: FilterTabsProps): react_jsx_runtime.JSX.Element;
|
|
200
|
+
|
|
201
|
+
type BreadcrumbItem = {
|
|
202
|
+
label: string;
|
|
203
|
+
href?: string;
|
|
204
|
+
icon?: React.ReactNode;
|
|
205
|
+
active?: boolean;
|
|
206
|
+
};
|
|
207
|
+
type BreadcrumbProps = React.HTMLAttributes<HTMLElement> & {
|
|
208
|
+
items: BreadcrumbItem[];
|
|
209
|
+
separator?: React.ReactNode;
|
|
210
|
+
};
|
|
211
|
+
declare function Breadcrumb({ items, separator, className, ...props }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
212
|
+
|
|
213
|
+
type ProgressBarVariant = 'default' | 'success';
|
|
214
|
+
type ProgressBarProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
215
|
+
value: number;
|
|
216
|
+
label?: string;
|
|
217
|
+
showPercent?: boolean;
|
|
218
|
+
variant?: ProgressBarVariant;
|
|
219
|
+
};
|
|
220
|
+
declare function ProgressBar({ value, label, showPercent, variant, className, ...props }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
221
|
+
|
|
222
|
+
type EmptyStateProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
223
|
+
icon?: React.ReactNode;
|
|
224
|
+
title: string;
|
|
225
|
+
description?: string;
|
|
226
|
+
action?: React.ReactNode;
|
|
227
|
+
};
|
|
228
|
+
declare function EmptyState({ icon, title, description, action, className, ...props }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
229
|
+
|
|
230
|
+
type StepStatus = 'completed' | 'active' | 'pending';
|
|
231
|
+
type StepItem = {
|
|
232
|
+
label: string;
|
|
233
|
+
icon?: React.ReactNode;
|
|
234
|
+
status: StepStatus;
|
|
235
|
+
};
|
|
236
|
+
type StepperProps = {
|
|
237
|
+
steps: StepItem[];
|
|
238
|
+
className?: string;
|
|
239
|
+
};
|
|
240
|
+
declare function Stepper({ steps, className }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
241
|
+
|
|
242
|
+
type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
243
|
+
label?: string;
|
|
244
|
+
helperText?: string;
|
|
245
|
+
error?: boolean;
|
|
246
|
+
errorMessage?: string;
|
|
247
|
+
};
|
|
248
|
+
declare function Textarea({ label, helperText, error, errorMessage, id, className, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
249
|
+
|
|
250
|
+
type ChatInputProps = {
|
|
251
|
+
value: string;
|
|
252
|
+
onChange: (value: string) => void;
|
|
253
|
+
onSend: () => void;
|
|
254
|
+
placeholder?: string;
|
|
255
|
+
disabled?: boolean;
|
|
256
|
+
className?: string;
|
|
257
|
+
};
|
|
258
|
+
declare function ChatInput({ value, onChange, onSend, placeholder, disabled, className, }: ChatInputProps): react_jsx_runtime.JSX.Element;
|
|
259
|
+
|
|
260
|
+
type SectionHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
261
|
+
title: string;
|
|
262
|
+
description?: string;
|
|
263
|
+
actions?: React.ReactNode;
|
|
264
|
+
};
|
|
265
|
+
declare function SectionHeader({ title, description, actions, className, ...props }: SectionHeaderProps): react_jsx_runtime.JSX.Element;
|
|
266
|
+
|
|
267
|
+
type FileCardProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
268
|
+
fileName: string;
|
|
269
|
+
meta?: string;
|
|
270
|
+
icon?: React.ReactNode;
|
|
271
|
+
onAction?: React.MouseEventHandler<HTMLButtonElement>;
|
|
272
|
+
};
|
|
273
|
+
declare function FileCard({ fileName, meta, icon, onAction, className, ...props }: FileCardProps): react_jsx_runtime.JSX.Element;
|
|
274
|
+
|
|
275
|
+
type TabItem = {
|
|
276
|
+
label: string;
|
|
277
|
+
value: string;
|
|
278
|
+
};
|
|
279
|
+
type TabBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
280
|
+
items: TabItem[];
|
|
281
|
+
value: string;
|
|
282
|
+
onChange: (value: string) => void;
|
|
283
|
+
};
|
|
284
|
+
declare function TabBar({ items, value, onChange, className, ...props }: TabBarProps): react_jsx_runtime.JSX.Element;
|
|
285
|
+
|
|
286
|
+
type OperationStatusType = 'active' | 'completed' | 'failed' | 'pending';
|
|
287
|
+
type OperationStatusProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
288
|
+
status: OperationStatusType;
|
|
289
|
+
label?: string;
|
|
290
|
+
};
|
|
291
|
+
declare function OperationStatus({ status, label, className, ...props }: OperationStatusProps): react_jsx_runtime.JSX.Element;
|
|
292
|
+
|
|
293
|
+
type ValidationAlertVariant = 'error' | 'warning' | 'info';
|
|
294
|
+
type ValidationAlertProps = {
|
|
295
|
+
title: string;
|
|
296
|
+
message: string;
|
|
297
|
+
onClose?: () => void;
|
|
298
|
+
variant?: ValidationAlertVariant;
|
|
299
|
+
className?: string;
|
|
300
|
+
};
|
|
301
|
+
declare function ValidationAlert({ title, message, onClose, variant, className, }: ValidationAlertProps): react_jsx_runtime.JSX.Element;
|
|
302
|
+
|
|
303
|
+
type SelectionCardProps = {
|
|
304
|
+
title: string;
|
|
305
|
+
description?: string;
|
|
306
|
+
icon?: React.ReactNode;
|
|
307
|
+
active?: boolean;
|
|
308
|
+
onClick?: () => void;
|
|
309
|
+
className?: string;
|
|
310
|
+
};
|
|
311
|
+
declare function SelectionCard({ title, description, icon, active, onClick, className, }: SelectionCardProps): react_jsx_runtime.JSX.Element;
|
|
312
|
+
|
|
313
|
+
type OverlayProps = {
|
|
314
|
+
open: boolean;
|
|
315
|
+
title: string;
|
|
316
|
+
onClose: () => void;
|
|
317
|
+
children: React.ReactNode;
|
|
318
|
+
};
|
|
319
|
+
declare function Overlay({ open, title, onClose, children }: OverlayProps): react_jsx_runtime.JSX.Element | null;
|
|
320
|
+
|
|
321
|
+
type ModalProps = {
|
|
322
|
+
open: boolean;
|
|
323
|
+
title: string;
|
|
324
|
+
onClose: () => void;
|
|
325
|
+
onConfirm?: () => void;
|
|
326
|
+
confirmLabel?: string;
|
|
327
|
+
cancelLabel?: string;
|
|
328
|
+
children: React.ReactNode;
|
|
329
|
+
};
|
|
330
|
+
declare function Modal({ open, title, onClose, onConfirm, confirmLabel, cancelLabel, children, }: ModalProps): react_jsx_runtime.JSX.Element | null;
|
|
331
|
+
|
|
332
|
+
type GlassPopoverProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
333
|
+
title?: string;
|
|
334
|
+
onClose?: () => void;
|
|
335
|
+
};
|
|
336
|
+
declare function GlassPopover({ title, onClose, children, className, ...props }: GlassPopoverProps): react_jsx_runtime.JSX.Element;
|
|
337
|
+
|
|
338
|
+
type AccordionProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
339
|
+
title: string;
|
|
340
|
+
children: React.ReactNode;
|
|
341
|
+
defaultOpen?: boolean;
|
|
342
|
+
icon?: React.ReactNode;
|
|
343
|
+
};
|
|
344
|
+
declare function Accordion({ title, children, defaultOpen, icon, className, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
345
|
+
|
|
346
|
+
type BadgeVariant = 'default' | 'primary' | 'success' | 'warning' | 'error';
|
|
347
|
+
type BadgeProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
348
|
+
variant?: BadgeVariant;
|
|
349
|
+
dot?: boolean;
|
|
350
|
+
};
|
|
351
|
+
declare function Badge({ variant, dot, children, className, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
352
|
+
|
|
353
|
+
type BannerVariant = 'info' | 'success' | 'warning' | 'error';
|
|
354
|
+
type BannerProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
355
|
+
variant?: BannerVariant;
|
|
356
|
+
onClose?: () => void;
|
|
357
|
+
icon?: React.ReactNode;
|
|
358
|
+
};
|
|
359
|
+
declare function Banner({ variant, onClose, icon, children, className, ...props }: BannerProps): react_jsx_runtime.JSX.Element;
|
|
360
|
+
|
|
361
|
+
type CheckboxProps = Omit<React.HTMLAttributes<HTMLButtonElement>, 'onChange'> & {
|
|
362
|
+
checked?: boolean;
|
|
363
|
+
onChange?: (checked: boolean) => void;
|
|
364
|
+
disabled?: boolean;
|
|
365
|
+
label?: string;
|
|
366
|
+
indeterminate?: boolean;
|
|
367
|
+
};
|
|
368
|
+
declare function Checkbox({ checked, onChange, disabled, label, indeterminate, className, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
369
|
+
|
|
370
|
+
type RadioProps = Omit<React.HTMLAttributes<HTMLButtonElement>, 'onChange'> & {
|
|
371
|
+
checked?: boolean;
|
|
372
|
+
onChange?: (value: string) => void;
|
|
373
|
+
disabled?: boolean;
|
|
374
|
+
label?: string;
|
|
375
|
+
name?: string;
|
|
376
|
+
value: string;
|
|
377
|
+
};
|
|
378
|
+
declare function Radio({ checked, onChange, disabled, label, name, value, className, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
|
|
379
|
+
|
|
380
|
+
type ToggleProps = Omit<React.HTMLAttributes<HTMLButtonElement>, 'onChange'> & {
|
|
381
|
+
checked?: boolean;
|
|
382
|
+
onChange?: (checked: boolean) => void;
|
|
383
|
+
disabled?: boolean;
|
|
384
|
+
label?: string;
|
|
385
|
+
};
|
|
386
|
+
declare function Toggle({ checked, onChange, disabled, label, className, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
387
|
+
|
|
388
|
+
type SelectOption = {
|
|
389
|
+
value: string;
|
|
390
|
+
label: string;
|
|
391
|
+
};
|
|
392
|
+
type SelectProps = Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'onChange'> & {
|
|
393
|
+
placeholder?: string;
|
|
394
|
+
options?: SelectOption[];
|
|
395
|
+
onChange?: (value: string) => void;
|
|
396
|
+
filled?: boolean;
|
|
397
|
+
};
|
|
398
|
+
declare function Select({ value, placeholder, options, onChange, disabled, filled, className, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
399
|
+
|
|
400
|
+
type SelectGroupProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
401
|
+
label?: string;
|
|
402
|
+
helperText?: string;
|
|
403
|
+
error?: boolean;
|
|
404
|
+
};
|
|
405
|
+
declare function SelectGroup({ label, helperText, error, children, className, ...props }: SelectGroupProps): react_jsx_runtime.JSX.Element;
|
|
406
|
+
|
|
407
|
+
type SegmentedControlItem = {
|
|
408
|
+
label: string;
|
|
409
|
+
value: string;
|
|
410
|
+
};
|
|
411
|
+
type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
412
|
+
items: SegmentedControlItem[];
|
|
413
|
+
value: string;
|
|
414
|
+
onChange: (value: string) => void;
|
|
415
|
+
};
|
|
416
|
+
declare function SegmentedControl({ items, value, onChange, className, ...props }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
|
|
417
|
+
|
|
418
|
+
type TableColumn = {
|
|
419
|
+
key: string;
|
|
420
|
+
header: string;
|
|
421
|
+
width?: string;
|
|
422
|
+
render?: (value: any, row: TableRow) => React.ReactNode;
|
|
423
|
+
};
|
|
424
|
+
type TableRow = Record<string, any>;
|
|
425
|
+
type DataTableProps = React.HTMLAttributes<HTMLTableElement> & {
|
|
426
|
+
columns: TableColumn[];
|
|
427
|
+
data: TableRow[];
|
|
428
|
+
onRowClick?: (row: TableRow) => void;
|
|
429
|
+
emptyMessage?: string;
|
|
430
|
+
className?: string;
|
|
431
|
+
};
|
|
432
|
+
declare function DataTable({ columns, data, onRowClick, emptyMessage, className, ...props }: DataTableProps): react_jsx_runtime.JSX.Element;
|
|
433
|
+
|
|
434
|
+
type PaginationVariant = 'full' | 'mini';
|
|
435
|
+
type PaginationProps = {
|
|
436
|
+
currentPage: number;
|
|
437
|
+
totalPages: number;
|
|
438
|
+
onPageChange: (page: number) => void;
|
|
439
|
+
variant?: PaginationVariant;
|
|
440
|
+
className?: string;
|
|
441
|
+
};
|
|
442
|
+
declare function Pagination({ currentPage, totalPages, onPageChange, variant, className, }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
443
|
+
|
|
444
|
+
type StatusDotVariant = 'success' | 'warning' | 'error' | 'default';
|
|
445
|
+
type StatusDotProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
446
|
+
variant?: StatusDotVariant;
|
|
447
|
+
label: string;
|
|
448
|
+
};
|
|
449
|
+
declare function StatusDot({ variant, label, className, ...props }: StatusDotProps): react_jsx_runtime.JSX.Element;
|
|
450
|
+
|
|
451
|
+
type DropzoneProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
452
|
+
onDrop?: (files: File[]) => void;
|
|
453
|
+
accept?: string;
|
|
454
|
+
title?: string;
|
|
455
|
+
hint?: string;
|
|
456
|
+
disabled?: boolean;
|
|
457
|
+
};
|
|
458
|
+
declare function Dropzone({ onDrop, accept, title, hint, disabled, className, ...props }: DropzoneProps): react_jsx_runtime.JSX.Element;
|
|
459
|
+
|
|
460
|
+
type SplitPaneProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
461
|
+
leftPanel: React.ReactNode;
|
|
462
|
+
rightPanel: React.ReactNode;
|
|
463
|
+
leftTitle?: string;
|
|
464
|
+
rightTitle?: string;
|
|
465
|
+
defaultSplit?: number;
|
|
466
|
+
};
|
|
467
|
+
declare function SplitPane({ leftPanel, rightPanel, leftTitle, rightTitle, defaultSplit, className, ...props }: SplitPaneProps): react_jsx_runtime.JSX.Element;
|
|
468
|
+
|
|
469
|
+
type PricingCardProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
470
|
+
planName: string;
|
|
471
|
+
price: string;
|
|
472
|
+
period?: string;
|
|
473
|
+
description?: string;
|
|
474
|
+
features: string[];
|
|
475
|
+
ctaLabel?: string;
|
|
476
|
+
onCtaClick?: () => void;
|
|
477
|
+
highlighted?: boolean;
|
|
478
|
+
};
|
|
479
|
+
declare function PricingCard({ planName, price, period, description, features, ctaLabel, onCtaClick, highlighted, className, ...props }: PricingCardProps): react_jsx_runtime.JSX.Element;
|
|
480
|
+
|
|
481
|
+
type OnboardingPopoverProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
482
|
+
step: number;
|
|
483
|
+
totalSteps: number;
|
|
484
|
+
title: string;
|
|
485
|
+
description: string;
|
|
486
|
+
onNext?: () => void;
|
|
487
|
+
onSkip?: () => void;
|
|
488
|
+
nextLabel?: string;
|
|
489
|
+
};
|
|
490
|
+
declare function OnboardingPopover({ step, totalSteps, title, description, onNext, onSkip, nextLabel, className, ...props }: OnboardingPopoverProps): react_jsx_runtime.JSX.Element;
|
|
491
|
+
|
|
492
|
+
type CreditsIndicatorProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
493
|
+
remaining: number;
|
|
494
|
+
label?: string;
|
|
495
|
+
};
|
|
496
|
+
declare function CreditsIndicator({ remaining, label, className, ...props }: CreditsIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
497
|
+
|
|
498
|
+
type LanguageSelectorOption = {
|
|
499
|
+
value: string;
|
|
500
|
+
label: string;
|
|
501
|
+
};
|
|
502
|
+
type LanguageSelectorProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
503
|
+
value: string;
|
|
504
|
+
options?: LanguageSelectorOption[];
|
|
505
|
+
onChange?: (value: string) => void;
|
|
506
|
+
};
|
|
507
|
+
declare function LanguageSelector({ value, options, onChange, className, ...props }: LanguageSelectorProps): react_jsx_runtime.JSX.Element;
|
|
508
|
+
|
|
509
|
+
type UserProfileMenuItem = {
|
|
510
|
+
icon?: React.ReactNode;
|
|
511
|
+
label: string;
|
|
512
|
+
onClick?: () => void;
|
|
513
|
+
};
|
|
514
|
+
type UserProfilePopoverProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
515
|
+
name: string;
|
|
516
|
+
email: string;
|
|
517
|
+
avatar?: React.ReactNode;
|
|
518
|
+
menuItems?: UserProfileMenuItem[];
|
|
519
|
+
onLogout?: () => void;
|
|
520
|
+
credits?: number;
|
|
521
|
+
};
|
|
522
|
+
declare function UserProfilePopover({ name, email, avatar, menuItems, onLogout, credits, className, ...props }: UserProfilePopoverProps): react_jsx_runtime.JSX.Element;
|
|
523
|
+
|
|
524
|
+
export { Accordion, type AccordionProps, Avatar, type AvatarProps, Badge, type BadgeProps, type BadgeVariant, Banner, type BannerProps, type BannerVariant, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonHierarchy, type ButtonProps, type ButtonVariant, Card, type CardLevel, type CardProps, ChatInput, type ChatInputProps, Checkbox, type CheckboxProps, CreditsIndicator, type CreditsIndicatorProps, DataTable, type DataTableProps, DateInput, type DateInputProps, Divider, type DividerProps, Dropzone, type DropzoneProps, EmptyState, type EmptyStateProps, FileCard, type FileCardProps, type FilterTabItem, FilterTabs, type FilterTabsProps, FlyoutMenu, type FlyoutMenuItem, type FlyoutMenuProps, GlassPopover, type GlassPopoverProps, Header, type HeaderProps, Input, InputGroup, type InputGroupProps, type InputProps, LanguageSelector, type LanguageSelectorOption, type LanguageSelectorProps, Modal, type ModalProps, OnboardingPopover, type OnboardingPopoverProps, OperationStatus, type OperationStatusProps, type OperationStatusType, Overlay, type OverlayProps, Pagination, type PaginationProps, type PaginationVariant, Pill, type PillProps, type PillVariant, PricingCard, type PricingCardProps, ProgressBar, type ProgressBarProps, type ProgressBarVariant, Radio, type RadioProps, SearchInput, SectionHeader, type SectionHeaderProps, SegmentedControl, type SegmentedControlItem, type SegmentedControlProps, Select, SelectGroup, type SelectGroupProps, type SelectOption, type SelectProps, SelectionCard, type SelectionCardProps, SidebarItem, type SidebarItemProps, SidebarPanel, type SidebarPanelProps, SplitPane, type SplitPaneProps, StatCard, type StatCardChangeType, type StatCardProps, StatusDot, type StatusDotProps, type StatusDotVariant, type StepItem, type StepStatus, Stepper, type StepperProps, TabBar, type TabBarProps, type TabItem, type TableColumn, type TableRow, Textarea, type TextareaProps, Toggle, type ToggleProps, Tooltip, type TooltipPlacement, type TooltipProps, type UserProfileMenuItem, UserProfilePopover, type UserProfilePopoverProps, ValidationAlert, type ValidationAlertProps, type ValidationAlertVariant, tokens_registry as tokenRegistry };
|