@juv/codego-react-ui 1.0.7 → 1.0.8
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.cjs +1624 -799
- package/dist/index.d.cts +208 -28
- package/dist/index.d.ts +208 -28
- package/dist/index.global.js +1684 -863
- package/dist/index.js +1640 -824
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -315,7 +315,21 @@ interface ComposableWidgetProps {
|
|
|
315
315
|
className?: string;
|
|
316
316
|
}
|
|
317
317
|
declare function ComposableWidget({ title, description, headerLeft, headerRight, toolbar, children, footer, padding, className, }: ComposableWidgetProps): react_jsx_runtime.JSX.Element;
|
|
318
|
+
interface MetricItem {
|
|
319
|
+
label: string;
|
|
320
|
+
value: string | number;
|
|
321
|
+
trend?: TrendDir;
|
|
322
|
+
trendValue?: string;
|
|
323
|
+
color?: SemanticColor;
|
|
324
|
+
}
|
|
325
|
+
interface MetricRowProps {
|
|
326
|
+
items: MetricItem[];
|
|
327
|
+
divided?: boolean;
|
|
328
|
+
className?: string;
|
|
329
|
+
}
|
|
330
|
+
declare function MetricRow({ items, divided, className }: MetricRowProps): react_jsx_runtime.JSX.Element;
|
|
318
331
|
|
|
332
|
+
type SortDir = "asc" | "desc" | null;
|
|
319
333
|
interface DataGridColumn<T> {
|
|
320
334
|
key: keyof T | string;
|
|
321
335
|
header: React.ReactNode;
|
|
@@ -396,6 +410,21 @@ interface DropdownProps {
|
|
|
396
410
|
className?: string;
|
|
397
411
|
}
|
|
398
412
|
declare function Dropdown({ trigger, children, align, placement, width, disabled, closeOnSelect, onOpenChange, className, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
413
|
+
declare function DropdownItem({ children, onClick, icon, disabled, variant, className, }: {
|
|
414
|
+
children: React.ReactNode;
|
|
415
|
+
onClick?: () => void;
|
|
416
|
+
icon?: React.ReactNode;
|
|
417
|
+
disabled?: boolean;
|
|
418
|
+
variant?: "default" | "danger";
|
|
419
|
+
className?: string;
|
|
420
|
+
}): react_jsx_runtime.JSX.Element;
|
|
421
|
+
declare function DropdownSeparator({ className }: {
|
|
422
|
+
className?: string;
|
|
423
|
+
}): react_jsx_runtime.JSX.Element;
|
|
424
|
+
declare function DropdownLabel({ children, className, }: {
|
|
425
|
+
children: React.ReactNode;
|
|
426
|
+
className?: string;
|
|
427
|
+
}): react_jsx_runtime.JSX.Element;
|
|
399
428
|
|
|
400
429
|
type ImageEditorMode = "crop" | "rotate" | "flip" | "brightness" | "contrast";
|
|
401
430
|
interface ImageEditorOptions {
|
|
@@ -455,7 +484,17 @@ interface FlexLayoutProps {
|
|
|
455
484
|
children: React.ReactNode;
|
|
456
485
|
className?: string;
|
|
457
486
|
}
|
|
487
|
+
interface FlexItemProps {
|
|
488
|
+
grow?: boolean | number;
|
|
489
|
+
shrink?: boolean | number;
|
|
490
|
+
basis?: string;
|
|
491
|
+
order?: number;
|
|
492
|
+
alignSelf?: FlexAlign;
|
|
493
|
+
children: React.ReactNode;
|
|
494
|
+
className?: string;
|
|
495
|
+
}
|
|
458
496
|
declare function FlexLayout({ direction, wrap, gap, align, justify, inline, children, className, }: FlexLayoutProps): react_jsx_runtime.JSX.Element;
|
|
497
|
+
declare function FlexItem({ grow, shrink, basis, order, alignSelf, children, className, }: FlexItemProps): react_jsx_runtime.JSX.Element;
|
|
459
498
|
|
|
460
499
|
type GridCols = 1 | 2 | 3 | 4 | 5 | 6 | 12;
|
|
461
500
|
type GridGap = "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
@@ -473,7 +512,14 @@ interface GridLayoutProps {
|
|
|
473
512
|
children: React.ReactNode;
|
|
474
513
|
className?: string;
|
|
475
514
|
}
|
|
515
|
+
interface GridItemProps {
|
|
516
|
+
span?: 1 | 2 | 3 | 4 | 5 | 6 | 12 | "full";
|
|
517
|
+
rowSpan?: 1 | 2 | 3;
|
|
518
|
+
children: React.ReactNode;
|
|
519
|
+
className?: string;
|
|
520
|
+
}
|
|
476
521
|
declare function GridLayout({ cols, smCols, mdCols, lgCols, gap, rowGap, colGap, align, justify, children, className, }: GridLayoutProps): react_jsx_runtime.JSX.Element;
|
|
522
|
+
declare function GridItem({ span, rowSpan, children, className }: GridItemProps): react_jsx_runtime.JSX.Element;
|
|
477
523
|
|
|
478
524
|
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "prefix" | "inputMode"> {
|
|
479
525
|
inputType?: "email" | "numeric" | "integer" | "password" | "tel" | "url" | "color" | "date" | "dateTime" | "time";
|
|
@@ -811,6 +857,33 @@ interface PaginationProps {
|
|
|
811
857
|
}
|
|
812
858
|
declare function Pagination({ page, total, pageSize, siblingCount, showFirstLast, showPageSize, pageSizeOptions, onPageChange, onPageSizeChange, className, }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
813
859
|
|
|
860
|
+
interface PanelProps {
|
|
861
|
+
sidebar?: React.ReactNode;
|
|
862
|
+
sidebarHeader?: React.ReactNode;
|
|
863
|
+
sidebarFooter?: React.ReactNode;
|
|
864
|
+
sidebarWidth?: string;
|
|
865
|
+
topbar?: React.ReactNode;
|
|
866
|
+
topbarTrailing?: React.ReactNode;
|
|
867
|
+
defaultCollapsed?: boolean;
|
|
868
|
+
collapsible?: boolean;
|
|
869
|
+
showThemeToggle?: boolean;
|
|
870
|
+
defaultPage?: string;
|
|
871
|
+
height?: string;
|
|
872
|
+
children?: React.ReactNode;
|
|
873
|
+
className?: string;
|
|
874
|
+
}
|
|
875
|
+
declare function Panel({ sidebar, sidebarHeader, sidebarFooter, sidebarWidth, topbar, topbarTrailing, defaultCollapsed, collapsible, showThemeToggle, defaultPage, height, children, className, }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
876
|
+
declare function PanelSidebarItem({ icon: Icon, label, active, onClick, }: {
|
|
877
|
+
icon?: React.ElementType;
|
|
878
|
+
label: string;
|
|
879
|
+
active?: boolean;
|
|
880
|
+
onClick?: () => void;
|
|
881
|
+
}): react_jsx_runtime.JSX.Element;
|
|
882
|
+
declare function PanelSidebarGroup({ title, children, }: {
|
|
883
|
+
title?: string;
|
|
884
|
+
children: React.ReactNode;
|
|
885
|
+
}): react_jsx_runtime.JSX.Element;
|
|
886
|
+
|
|
814
887
|
type PopoverPlacement = "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
|
|
815
888
|
interface PopoverProps {
|
|
816
889
|
trigger: React.ReactNode;
|
|
@@ -851,6 +924,17 @@ interface CircularProgressProps {
|
|
|
851
924
|
declare function Progress({ value, max, variant, size, label, showValue, animated, striped, indeterminate, className, }: ProgressProps): react_jsx_runtime.JSX.Element;
|
|
852
925
|
declare function CircularProgress({ value, max, variant, size, strokeWidth, label, showValue, indeterminate, className, }: CircularProgressProps): react_jsx_runtime.JSX.Element;
|
|
853
926
|
|
|
927
|
+
interface PropRow {
|
|
928
|
+
prop: string;
|
|
929
|
+
type: string;
|
|
930
|
+
default?: string;
|
|
931
|
+
description: string;
|
|
932
|
+
required?: boolean;
|
|
933
|
+
}
|
|
934
|
+
declare function PropsTable({ rows }: {
|
|
935
|
+
rows: PropRow[];
|
|
936
|
+
}): react_jsx_runtime.JSX.Element;
|
|
937
|
+
|
|
854
938
|
type RadioVariant = "default" | "card" | "button";
|
|
855
939
|
type RadioSize = "sm" | "md" | "lg";
|
|
856
940
|
interface RadioOption {
|
|
@@ -883,33 +967,6 @@ interface RepeaterProps<T> {
|
|
|
883
967
|
}
|
|
884
968
|
declare function Repeater<T>({ items, onAdd, onRemove, renderItem, addButtonText, className, }: RepeaterProps<T>): react_jsx_runtime.JSX.Element;
|
|
885
969
|
|
|
886
|
-
interface PanelProps {
|
|
887
|
-
sidebar?: React.ReactNode;
|
|
888
|
-
sidebarHeader?: React.ReactNode;
|
|
889
|
-
sidebarFooter?: React.ReactNode;
|
|
890
|
-
sidebarWidth?: string;
|
|
891
|
-
topbar?: React.ReactNode;
|
|
892
|
-
topbarTrailing?: React.ReactNode;
|
|
893
|
-
defaultCollapsed?: boolean;
|
|
894
|
-
collapsible?: boolean;
|
|
895
|
-
showThemeToggle?: boolean;
|
|
896
|
-
defaultPage?: string;
|
|
897
|
-
height?: string;
|
|
898
|
-
children?: React.ReactNode;
|
|
899
|
-
className?: string;
|
|
900
|
-
}
|
|
901
|
-
declare function Panel({ sidebar, sidebarHeader, sidebarFooter, sidebarWidth, topbar, topbarTrailing, defaultCollapsed, collapsible, showThemeToggle, defaultPage, height, children, className, }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
902
|
-
declare function PanelSidebarItem({ icon: Icon, label, active, onClick, }: {
|
|
903
|
-
icon?: React.ElementType;
|
|
904
|
-
label: string;
|
|
905
|
-
active?: boolean;
|
|
906
|
-
onClick?: () => void;
|
|
907
|
-
}): react_jsx_runtime.JSX.Element;
|
|
908
|
-
declare function PanelSidebarGroup({ title, children, }: {
|
|
909
|
-
title?: string;
|
|
910
|
-
children: React.ReactNode;
|
|
911
|
-
}): react_jsx_runtime.JSX.Element;
|
|
912
|
-
|
|
913
970
|
interface ResizablePanelsProps {
|
|
914
971
|
children: [React.ReactNode, React.ReactNode];
|
|
915
972
|
orientation?: "horizontal" | "vertical";
|
|
@@ -976,6 +1033,38 @@ interface SelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChan
|
|
|
976
1033
|
}
|
|
977
1034
|
declare function Select({ options, value, onChange, placeholder, searchable, native, label, loadingMessage, noSearchResultsMessage, searchingMessage, multiple, reorderable, disabled, createOptionForm, suffixIcon, suffixIconColor, className, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
978
1035
|
|
|
1036
|
+
type ThemeColors = {
|
|
1037
|
+
primary: string;
|
|
1038
|
+
primaryHover: string;
|
|
1039
|
+
secondary: string;
|
|
1040
|
+
secondaryHover: string;
|
|
1041
|
+
info: string;
|
|
1042
|
+
infoHover: string;
|
|
1043
|
+
warning: string;
|
|
1044
|
+
warningHover: string;
|
|
1045
|
+
danger: string;
|
|
1046
|
+
dangerHover: string;
|
|
1047
|
+
};
|
|
1048
|
+
|
|
1049
|
+
type SettingsTab = "appearance" | "colors" | "typography";
|
|
1050
|
+
interface SettingsProps {
|
|
1051
|
+
/** Initially active tab */
|
|
1052
|
+
defaultTab?: SettingsTab;
|
|
1053
|
+
/** Called when theme (light/dark/system) changes */
|
|
1054
|
+
onThemeChange?: (theme: "light" | "dark" | "system") => void;
|
|
1055
|
+
/** Called when any color token changes */
|
|
1056
|
+
onColorsChange?: (colors: Partial<ThemeColors>) => void;
|
|
1057
|
+
/** Called when font size changes */
|
|
1058
|
+
onFontSizeChange?: (size: string) => void;
|
|
1059
|
+
/** Called when font family changes */
|
|
1060
|
+
onFontFamilyChange?: (family: string) => void;
|
|
1061
|
+
/** Called when the user resets all settings to defaults */
|
|
1062
|
+
onReset?: () => void;
|
|
1063
|
+
/** Additional CSS classes on the root element */
|
|
1064
|
+
className?: string;
|
|
1065
|
+
}
|
|
1066
|
+
declare function Settings({ defaultTab, onThemeChange, onColorsChange, onFontSizeChange, onFontFamilyChange, onReset, className, }: SettingsProps): react_jsx_runtime.JSX.Element;
|
|
1067
|
+
|
|
979
1068
|
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
980
1069
|
|
|
981
1070
|
interface SliderProps {
|
|
@@ -1027,6 +1116,7 @@ interface StatCardProps {
|
|
|
1027
1116
|
}
|
|
1028
1117
|
declare function StatCard({ title, value, change, changeLabel, trend, icon, sparkline, description, loading, className, }: StatCardProps): react_jsx_runtime.JSX.Element;
|
|
1029
1118
|
|
|
1119
|
+
type StepStatus = "complete" | "current" | "upcoming" | "error";
|
|
1030
1120
|
interface Step {
|
|
1031
1121
|
label: React.ReactNode;
|
|
1032
1122
|
description?: React.ReactNode;
|
|
@@ -1204,4 +1294,94 @@ interface WidgetProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
1204
1294
|
}
|
|
1205
1295
|
declare function Widget({ title, value, previousValue, description, badge, footer, trendLabel, icon, iconColor, trend, trendValue, progress, progressColor, variant, size, loading, animate, pulse, onClick, className, ...props }: WidgetProps): react_jsx_runtime.JSX.Element;
|
|
1206
1296
|
|
|
1207
|
-
|
|
1297
|
+
type WizardVariant = "default" | "minimal" | "cards" | "sidebar" | "dots";
|
|
1298
|
+
type WizardLayout = "modal" | "page" | "inline";
|
|
1299
|
+
type WizardSize = "sm" | "md" | "lg" | "xl" | "full";
|
|
1300
|
+
interface WizardStep {
|
|
1301
|
+
/** Step title shown in the header / sidebar */
|
|
1302
|
+
title: string;
|
|
1303
|
+
/** Optional subtitle / description */
|
|
1304
|
+
description?: string;
|
|
1305
|
+
/** Optional icon rendered in the step indicator */
|
|
1306
|
+
icon?: React.ReactNode;
|
|
1307
|
+
/** Step body content */
|
|
1308
|
+
content: React.ReactNode;
|
|
1309
|
+
/** Mark step as optional */
|
|
1310
|
+
optional?: boolean;
|
|
1311
|
+
/** Prevent advancing past this step until resolved */
|
|
1312
|
+
validate?: () => boolean | string;
|
|
1313
|
+
}
|
|
1314
|
+
interface WizardActionProps {
|
|
1315
|
+
/** Current step index (0-based) */
|
|
1316
|
+
step: number;
|
|
1317
|
+
/** Total number of steps */
|
|
1318
|
+
total: number;
|
|
1319
|
+
/** Go to previous step */
|
|
1320
|
+
onBack: () => void;
|
|
1321
|
+
/** Go to next step / finish */
|
|
1322
|
+
onNext: () => void;
|
|
1323
|
+
/** Close / cancel the wizard */
|
|
1324
|
+
onClose?: () => void;
|
|
1325
|
+
/** Whether the wizard is on the last step */
|
|
1326
|
+
isLast: boolean;
|
|
1327
|
+
/** Whether the wizard is on the first step */
|
|
1328
|
+
isFirst: boolean;
|
|
1329
|
+
/** Whether the next action is loading */
|
|
1330
|
+
loading?: boolean;
|
|
1331
|
+
}
|
|
1332
|
+
interface WizardProps {
|
|
1333
|
+
steps: WizardStep[];
|
|
1334
|
+
/** Controlled current step (0-based) */
|
|
1335
|
+
step?: number;
|
|
1336
|
+
/** Initial step when uncontrolled */
|
|
1337
|
+
defaultStep?: number;
|
|
1338
|
+
/** Called when the step changes */
|
|
1339
|
+
onStepChange?: (step: number) => void;
|
|
1340
|
+
/** Called when the wizard finishes (last step → next) */
|
|
1341
|
+
onFinish?: () => void;
|
|
1342
|
+
/** Called when the wizard is closed / cancelled */
|
|
1343
|
+
onClose?: () => void;
|
|
1344
|
+
/** Render mode: modal overlay, full page, or inline block */
|
|
1345
|
+
layout?: WizardLayout;
|
|
1346
|
+
/** Visual design variant */
|
|
1347
|
+
variant?: WizardVariant;
|
|
1348
|
+
/** Size of the wizard panel */
|
|
1349
|
+
size?: WizardSize;
|
|
1350
|
+
/** Controls modal visibility (required when layout="modal") */
|
|
1351
|
+
isOpen?: boolean;
|
|
1352
|
+
/** Show the × close button in modal mode */
|
|
1353
|
+
showClose?: boolean;
|
|
1354
|
+
/** Prevent closing by clicking the backdrop */
|
|
1355
|
+
unchange?: boolean;
|
|
1356
|
+
/** Override the wizard title shown in the header */
|
|
1357
|
+
title?: React.ReactNode;
|
|
1358
|
+
/** Subtitle shown below the title */
|
|
1359
|
+
description?: React.ReactNode;
|
|
1360
|
+
/** Hide the step indicator header entirely */
|
|
1361
|
+
hideHeader?: boolean;
|
|
1362
|
+
/** Fully replace the footer with custom content */
|
|
1363
|
+
footer?: React.ReactNode;
|
|
1364
|
+
/** Replace only the action buttons with a render-prop */
|
|
1365
|
+
renderActions?: (props: WizardActionProps) => React.ReactNode;
|
|
1366
|
+
/** Label for the Back button */
|
|
1367
|
+
backLabel?: React.ReactNode;
|
|
1368
|
+
/** Label for the Next button */
|
|
1369
|
+
nextLabel?: React.ReactNode;
|
|
1370
|
+
/** Label for the Finish button (last step) */
|
|
1371
|
+
finishLabel?: React.ReactNode;
|
|
1372
|
+
/** Label for the Cancel button */
|
|
1373
|
+
cancelLabel?: React.ReactNode;
|
|
1374
|
+
/** Show a Cancel button in the footer */
|
|
1375
|
+
showCancel?: boolean;
|
|
1376
|
+
/** Show the Back button on the first step */
|
|
1377
|
+
showBackOnFirst?: boolean;
|
|
1378
|
+
/** Whether the next/finish action is in a loading state */
|
|
1379
|
+
loading?: boolean;
|
|
1380
|
+
/** Allow clicking step indicators to jump to any visited step */
|
|
1381
|
+
clickableSteps?: boolean;
|
|
1382
|
+
className?: string;
|
|
1383
|
+
contentClassName?: string;
|
|
1384
|
+
}
|
|
1385
|
+
declare function Wizard({ steps, step: controlledStep, defaultStep, onStepChange, onFinish, onClose, layout, variant, size, isOpen, showClose, unchange, title, description, hideHeader, footer, renderActions, backLabel, nextLabel, finishLabel, cancelLabel, showCancel, showBackOnFirst, loading, clickableSteps, className, contentClassName, }: WizardProps): react_jsx_runtime.JSX.Element;
|
|
1386
|
+
|
|
1387
|
+
export { Accordion, type AccordionItem, type AccordionProps, type AccordionVariant, AvatarStack, type AvatarStackProps, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartDataPoint, ChartWidget, type ChartWidgetProps, Checkbox, type CheckboxProps, CircularProgress, type CircularProgressProps, ColorPicker, type ColorPickerProps, type Column, Combobox, type ComboboxOption, type ComboboxProps, type CommandItem, CommandPalette, type CommandPaletteProps, ComposableWidget, type ComposableWidgetProps, type ConfirmVariant, ContextMenu, type ContextMenuItem, type ContextMenuProps, DataGrid, type DataGridColumn, type DataGridProps, DatePickerPopup, type DateRange, DateRangePicker, type DateRangePickerProps, Drawer, type DrawerProps, type DrawerSide, Dropdown, DropdownItem, DropdownLabel, type DropdownProps, DropdownSeparator, type FileTypeValidation, FileUpload, type FileUploadProps, type FlexAlign, type FlexDirection, type FlexGap, FlexItem, type FlexItemProps, type FlexJustify, FlexLayout, type FlexLayoutProps, type FlexWrap, type FormField, type GridAlign, type GridCols, type GridGap, GridItem, type GridItemProps, GridLayout, type GridLayoutProps, GroupNavigation, type GroupNavigationProps, type ImageEditorMode, type ImageEditorOptions, Input, type InputProps, KanbanBoard, type KanbanBoardProps, type KanbanCard, type KanbanColumn, Label, LeftSidebar, type LeftSidebarProps, type MetricItem, MetricRow, type MetricRowProps, Modal, ModalConfirmation, type ModalConfirmationProps, type ModalProps, ModalUnchange, type ModalUnchangeProps, ModalWithForms, type ModalWithFormsProps, type NavGroup, type NavItem, Navigation, type NavigationProps, NotificationBanner, type NotificationBannerProps, type NotificationItem, NotificationPanel, type NotificationPanelProps, type NotificationVariant, OtpInput, type OtpInputProps, Pagination, type PaginationProps, Panel, type PanelProps, PanelSidebarGroup, PanelSidebarItem, Popover, type PopoverPlacement, type PopoverProps, Progress, type ProgressProps, type ProgressSize, type ProgressVariant, type PropRow, PropsTable, RadioGroup, type RadioGroupProps, type RadioOption, type RadioSize, type RadioVariant, RangeSlider, type RangeSliderProps, Repeater, type RepeaterProps, ResizablePanels, type ResizablePanelsProps, RichTextEditor, type RichTextEditorProps, RightSidebar, type RightSidebarProps, ScrollArea, type ScrollAreaProps, SectionBlock, type SectionProps, type SectionVariant, Select, type SelectOption, type SelectProps, type SemanticColor, Settings, type SettingsProps, type SettingsTab, Skeleton, Slider, type SliderProps, type SortDir, StatCard, type StatCardProps, type StatTrend, StatsWidget, type StatsWidgetProps, type Step, type StepStatus, Stepper, type StepperProps, type TabItem, type TabSize, type TabVariant, Table, type TableProps, TableWidget, type TableWidgetProps, Tabs, type TabsProps, TagInput, type TagInputProps, Textarea, type TextareaProps, Timeline, type TimelineItem, type TimelineProps, type TimelineVariant, type ToastItem, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, ToggleSwitch, type ToggleSwitchProps, Tooltip, type TooltipProps, Topbar, type TopbarProps, type TreeNode, TreeView, type TreeViewProps, type TrendDir, Widget, type WidgetProps, Wizard, type WizardActionProps, type WizardLayout, type WizardProps, type WizardSize, type WizardStep, type WizardVariant, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -315,7 +315,21 @@ interface ComposableWidgetProps {
|
|
|
315
315
|
className?: string;
|
|
316
316
|
}
|
|
317
317
|
declare function ComposableWidget({ title, description, headerLeft, headerRight, toolbar, children, footer, padding, className, }: ComposableWidgetProps): react_jsx_runtime.JSX.Element;
|
|
318
|
+
interface MetricItem {
|
|
319
|
+
label: string;
|
|
320
|
+
value: string | number;
|
|
321
|
+
trend?: TrendDir;
|
|
322
|
+
trendValue?: string;
|
|
323
|
+
color?: SemanticColor;
|
|
324
|
+
}
|
|
325
|
+
interface MetricRowProps {
|
|
326
|
+
items: MetricItem[];
|
|
327
|
+
divided?: boolean;
|
|
328
|
+
className?: string;
|
|
329
|
+
}
|
|
330
|
+
declare function MetricRow({ items, divided, className }: MetricRowProps): react_jsx_runtime.JSX.Element;
|
|
318
331
|
|
|
332
|
+
type SortDir = "asc" | "desc" | null;
|
|
319
333
|
interface DataGridColumn<T> {
|
|
320
334
|
key: keyof T | string;
|
|
321
335
|
header: React.ReactNode;
|
|
@@ -396,6 +410,21 @@ interface DropdownProps {
|
|
|
396
410
|
className?: string;
|
|
397
411
|
}
|
|
398
412
|
declare function Dropdown({ trigger, children, align, placement, width, disabled, closeOnSelect, onOpenChange, className, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
413
|
+
declare function DropdownItem({ children, onClick, icon, disabled, variant, className, }: {
|
|
414
|
+
children: React.ReactNode;
|
|
415
|
+
onClick?: () => void;
|
|
416
|
+
icon?: React.ReactNode;
|
|
417
|
+
disabled?: boolean;
|
|
418
|
+
variant?: "default" | "danger";
|
|
419
|
+
className?: string;
|
|
420
|
+
}): react_jsx_runtime.JSX.Element;
|
|
421
|
+
declare function DropdownSeparator({ className }: {
|
|
422
|
+
className?: string;
|
|
423
|
+
}): react_jsx_runtime.JSX.Element;
|
|
424
|
+
declare function DropdownLabel({ children, className, }: {
|
|
425
|
+
children: React.ReactNode;
|
|
426
|
+
className?: string;
|
|
427
|
+
}): react_jsx_runtime.JSX.Element;
|
|
399
428
|
|
|
400
429
|
type ImageEditorMode = "crop" | "rotate" | "flip" | "brightness" | "contrast";
|
|
401
430
|
interface ImageEditorOptions {
|
|
@@ -455,7 +484,17 @@ interface FlexLayoutProps {
|
|
|
455
484
|
children: React.ReactNode;
|
|
456
485
|
className?: string;
|
|
457
486
|
}
|
|
487
|
+
interface FlexItemProps {
|
|
488
|
+
grow?: boolean | number;
|
|
489
|
+
shrink?: boolean | number;
|
|
490
|
+
basis?: string;
|
|
491
|
+
order?: number;
|
|
492
|
+
alignSelf?: FlexAlign;
|
|
493
|
+
children: React.ReactNode;
|
|
494
|
+
className?: string;
|
|
495
|
+
}
|
|
458
496
|
declare function FlexLayout({ direction, wrap, gap, align, justify, inline, children, className, }: FlexLayoutProps): react_jsx_runtime.JSX.Element;
|
|
497
|
+
declare function FlexItem({ grow, shrink, basis, order, alignSelf, children, className, }: FlexItemProps): react_jsx_runtime.JSX.Element;
|
|
459
498
|
|
|
460
499
|
type GridCols = 1 | 2 | 3 | 4 | 5 | 6 | 12;
|
|
461
500
|
type GridGap = "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
@@ -473,7 +512,14 @@ interface GridLayoutProps {
|
|
|
473
512
|
children: React.ReactNode;
|
|
474
513
|
className?: string;
|
|
475
514
|
}
|
|
515
|
+
interface GridItemProps {
|
|
516
|
+
span?: 1 | 2 | 3 | 4 | 5 | 6 | 12 | "full";
|
|
517
|
+
rowSpan?: 1 | 2 | 3;
|
|
518
|
+
children: React.ReactNode;
|
|
519
|
+
className?: string;
|
|
520
|
+
}
|
|
476
521
|
declare function GridLayout({ cols, smCols, mdCols, lgCols, gap, rowGap, colGap, align, justify, children, className, }: GridLayoutProps): react_jsx_runtime.JSX.Element;
|
|
522
|
+
declare function GridItem({ span, rowSpan, children, className }: GridItemProps): react_jsx_runtime.JSX.Element;
|
|
477
523
|
|
|
478
524
|
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "prefix" | "inputMode"> {
|
|
479
525
|
inputType?: "email" | "numeric" | "integer" | "password" | "tel" | "url" | "color" | "date" | "dateTime" | "time";
|
|
@@ -811,6 +857,33 @@ interface PaginationProps {
|
|
|
811
857
|
}
|
|
812
858
|
declare function Pagination({ page, total, pageSize, siblingCount, showFirstLast, showPageSize, pageSizeOptions, onPageChange, onPageSizeChange, className, }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
813
859
|
|
|
860
|
+
interface PanelProps {
|
|
861
|
+
sidebar?: React.ReactNode;
|
|
862
|
+
sidebarHeader?: React.ReactNode;
|
|
863
|
+
sidebarFooter?: React.ReactNode;
|
|
864
|
+
sidebarWidth?: string;
|
|
865
|
+
topbar?: React.ReactNode;
|
|
866
|
+
topbarTrailing?: React.ReactNode;
|
|
867
|
+
defaultCollapsed?: boolean;
|
|
868
|
+
collapsible?: boolean;
|
|
869
|
+
showThemeToggle?: boolean;
|
|
870
|
+
defaultPage?: string;
|
|
871
|
+
height?: string;
|
|
872
|
+
children?: React.ReactNode;
|
|
873
|
+
className?: string;
|
|
874
|
+
}
|
|
875
|
+
declare function Panel({ sidebar, sidebarHeader, sidebarFooter, sidebarWidth, topbar, topbarTrailing, defaultCollapsed, collapsible, showThemeToggle, defaultPage, height, children, className, }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
876
|
+
declare function PanelSidebarItem({ icon: Icon, label, active, onClick, }: {
|
|
877
|
+
icon?: React.ElementType;
|
|
878
|
+
label: string;
|
|
879
|
+
active?: boolean;
|
|
880
|
+
onClick?: () => void;
|
|
881
|
+
}): react_jsx_runtime.JSX.Element;
|
|
882
|
+
declare function PanelSidebarGroup({ title, children, }: {
|
|
883
|
+
title?: string;
|
|
884
|
+
children: React.ReactNode;
|
|
885
|
+
}): react_jsx_runtime.JSX.Element;
|
|
886
|
+
|
|
814
887
|
type PopoverPlacement = "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
|
|
815
888
|
interface PopoverProps {
|
|
816
889
|
trigger: React.ReactNode;
|
|
@@ -851,6 +924,17 @@ interface CircularProgressProps {
|
|
|
851
924
|
declare function Progress({ value, max, variant, size, label, showValue, animated, striped, indeterminate, className, }: ProgressProps): react_jsx_runtime.JSX.Element;
|
|
852
925
|
declare function CircularProgress({ value, max, variant, size, strokeWidth, label, showValue, indeterminate, className, }: CircularProgressProps): react_jsx_runtime.JSX.Element;
|
|
853
926
|
|
|
927
|
+
interface PropRow {
|
|
928
|
+
prop: string;
|
|
929
|
+
type: string;
|
|
930
|
+
default?: string;
|
|
931
|
+
description: string;
|
|
932
|
+
required?: boolean;
|
|
933
|
+
}
|
|
934
|
+
declare function PropsTable({ rows }: {
|
|
935
|
+
rows: PropRow[];
|
|
936
|
+
}): react_jsx_runtime.JSX.Element;
|
|
937
|
+
|
|
854
938
|
type RadioVariant = "default" | "card" | "button";
|
|
855
939
|
type RadioSize = "sm" | "md" | "lg";
|
|
856
940
|
interface RadioOption {
|
|
@@ -883,33 +967,6 @@ interface RepeaterProps<T> {
|
|
|
883
967
|
}
|
|
884
968
|
declare function Repeater<T>({ items, onAdd, onRemove, renderItem, addButtonText, className, }: RepeaterProps<T>): react_jsx_runtime.JSX.Element;
|
|
885
969
|
|
|
886
|
-
interface PanelProps {
|
|
887
|
-
sidebar?: React.ReactNode;
|
|
888
|
-
sidebarHeader?: React.ReactNode;
|
|
889
|
-
sidebarFooter?: React.ReactNode;
|
|
890
|
-
sidebarWidth?: string;
|
|
891
|
-
topbar?: React.ReactNode;
|
|
892
|
-
topbarTrailing?: React.ReactNode;
|
|
893
|
-
defaultCollapsed?: boolean;
|
|
894
|
-
collapsible?: boolean;
|
|
895
|
-
showThemeToggle?: boolean;
|
|
896
|
-
defaultPage?: string;
|
|
897
|
-
height?: string;
|
|
898
|
-
children?: React.ReactNode;
|
|
899
|
-
className?: string;
|
|
900
|
-
}
|
|
901
|
-
declare function Panel({ sidebar, sidebarHeader, sidebarFooter, sidebarWidth, topbar, topbarTrailing, defaultCollapsed, collapsible, showThemeToggle, defaultPage, height, children, className, }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
902
|
-
declare function PanelSidebarItem({ icon: Icon, label, active, onClick, }: {
|
|
903
|
-
icon?: React.ElementType;
|
|
904
|
-
label: string;
|
|
905
|
-
active?: boolean;
|
|
906
|
-
onClick?: () => void;
|
|
907
|
-
}): react_jsx_runtime.JSX.Element;
|
|
908
|
-
declare function PanelSidebarGroup({ title, children, }: {
|
|
909
|
-
title?: string;
|
|
910
|
-
children: React.ReactNode;
|
|
911
|
-
}): react_jsx_runtime.JSX.Element;
|
|
912
|
-
|
|
913
970
|
interface ResizablePanelsProps {
|
|
914
971
|
children: [React.ReactNode, React.ReactNode];
|
|
915
972
|
orientation?: "horizontal" | "vertical";
|
|
@@ -976,6 +1033,38 @@ interface SelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChan
|
|
|
976
1033
|
}
|
|
977
1034
|
declare function Select({ options, value, onChange, placeholder, searchable, native, label, loadingMessage, noSearchResultsMessage, searchingMessage, multiple, reorderable, disabled, createOptionForm, suffixIcon, suffixIconColor, className, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
978
1035
|
|
|
1036
|
+
type ThemeColors = {
|
|
1037
|
+
primary: string;
|
|
1038
|
+
primaryHover: string;
|
|
1039
|
+
secondary: string;
|
|
1040
|
+
secondaryHover: string;
|
|
1041
|
+
info: string;
|
|
1042
|
+
infoHover: string;
|
|
1043
|
+
warning: string;
|
|
1044
|
+
warningHover: string;
|
|
1045
|
+
danger: string;
|
|
1046
|
+
dangerHover: string;
|
|
1047
|
+
};
|
|
1048
|
+
|
|
1049
|
+
type SettingsTab = "appearance" | "colors" | "typography";
|
|
1050
|
+
interface SettingsProps {
|
|
1051
|
+
/** Initially active tab */
|
|
1052
|
+
defaultTab?: SettingsTab;
|
|
1053
|
+
/** Called when theme (light/dark/system) changes */
|
|
1054
|
+
onThemeChange?: (theme: "light" | "dark" | "system") => void;
|
|
1055
|
+
/** Called when any color token changes */
|
|
1056
|
+
onColorsChange?: (colors: Partial<ThemeColors>) => void;
|
|
1057
|
+
/** Called when font size changes */
|
|
1058
|
+
onFontSizeChange?: (size: string) => void;
|
|
1059
|
+
/** Called when font family changes */
|
|
1060
|
+
onFontFamilyChange?: (family: string) => void;
|
|
1061
|
+
/** Called when the user resets all settings to defaults */
|
|
1062
|
+
onReset?: () => void;
|
|
1063
|
+
/** Additional CSS classes on the root element */
|
|
1064
|
+
className?: string;
|
|
1065
|
+
}
|
|
1066
|
+
declare function Settings({ defaultTab, onThemeChange, onColorsChange, onFontSizeChange, onFontFamilyChange, onReset, className, }: SettingsProps): react_jsx_runtime.JSX.Element;
|
|
1067
|
+
|
|
979
1068
|
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
980
1069
|
|
|
981
1070
|
interface SliderProps {
|
|
@@ -1027,6 +1116,7 @@ interface StatCardProps {
|
|
|
1027
1116
|
}
|
|
1028
1117
|
declare function StatCard({ title, value, change, changeLabel, trend, icon, sparkline, description, loading, className, }: StatCardProps): react_jsx_runtime.JSX.Element;
|
|
1029
1118
|
|
|
1119
|
+
type StepStatus = "complete" | "current" | "upcoming" | "error";
|
|
1030
1120
|
interface Step {
|
|
1031
1121
|
label: React.ReactNode;
|
|
1032
1122
|
description?: React.ReactNode;
|
|
@@ -1204,4 +1294,94 @@ interface WidgetProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
1204
1294
|
}
|
|
1205
1295
|
declare function Widget({ title, value, previousValue, description, badge, footer, trendLabel, icon, iconColor, trend, trendValue, progress, progressColor, variant, size, loading, animate, pulse, onClick, className, ...props }: WidgetProps): react_jsx_runtime.JSX.Element;
|
|
1206
1296
|
|
|
1207
|
-
|
|
1297
|
+
type WizardVariant = "default" | "minimal" | "cards" | "sidebar" | "dots";
|
|
1298
|
+
type WizardLayout = "modal" | "page" | "inline";
|
|
1299
|
+
type WizardSize = "sm" | "md" | "lg" | "xl" | "full";
|
|
1300
|
+
interface WizardStep {
|
|
1301
|
+
/** Step title shown in the header / sidebar */
|
|
1302
|
+
title: string;
|
|
1303
|
+
/** Optional subtitle / description */
|
|
1304
|
+
description?: string;
|
|
1305
|
+
/** Optional icon rendered in the step indicator */
|
|
1306
|
+
icon?: React.ReactNode;
|
|
1307
|
+
/** Step body content */
|
|
1308
|
+
content: React.ReactNode;
|
|
1309
|
+
/** Mark step as optional */
|
|
1310
|
+
optional?: boolean;
|
|
1311
|
+
/** Prevent advancing past this step until resolved */
|
|
1312
|
+
validate?: () => boolean | string;
|
|
1313
|
+
}
|
|
1314
|
+
interface WizardActionProps {
|
|
1315
|
+
/** Current step index (0-based) */
|
|
1316
|
+
step: number;
|
|
1317
|
+
/** Total number of steps */
|
|
1318
|
+
total: number;
|
|
1319
|
+
/** Go to previous step */
|
|
1320
|
+
onBack: () => void;
|
|
1321
|
+
/** Go to next step / finish */
|
|
1322
|
+
onNext: () => void;
|
|
1323
|
+
/** Close / cancel the wizard */
|
|
1324
|
+
onClose?: () => void;
|
|
1325
|
+
/** Whether the wizard is on the last step */
|
|
1326
|
+
isLast: boolean;
|
|
1327
|
+
/** Whether the wizard is on the first step */
|
|
1328
|
+
isFirst: boolean;
|
|
1329
|
+
/** Whether the next action is loading */
|
|
1330
|
+
loading?: boolean;
|
|
1331
|
+
}
|
|
1332
|
+
interface WizardProps {
|
|
1333
|
+
steps: WizardStep[];
|
|
1334
|
+
/** Controlled current step (0-based) */
|
|
1335
|
+
step?: number;
|
|
1336
|
+
/** Initial step when uncontrolled */
|
|
1337
|
+
defaultStep?: number;
|
|
1338
|
+
/** Called when the step changes */
|
|
1339
|
+
onStepChange?: (step: number) => void;
|
|
1340
|
+
/** Called when the wizard finishes (last step → next) */
|
|
1341
|
+
onFinish?: () => void;
|
|
1342
|
+
/** Called when the wizard is closed / cancelled */
|
|
1343
|
+
onClose?: () => void;
|
|
1344
|
+
/** Render mode: modal overlay, full page, or inline block */
|
|
1345
|
+
layout?: WizardLayout;
|
|
1346
|
+
/** Visual design variant */
|
|
1347
|
+
variant?: WizardVariant;
|
|
1348
|
+
/** Size of the wizard panel */
|
|
1349
|
+
size?: WizardSize;
|
|
1350
|
+
/** Controls modal visibility (required when layout="modal") */
|
|
1351
|
+
isOpen?: boolean;
|
|
1352
|
+
/** Show the × close button in modal mode */
|
|
1353
|
+
showClose?: boolean;
|
|
1354
|
+
/** Prevent closing by clicking the backdrop */
|
|
1355
|
+
unchange?: boolean;
|
|
1356
|
+
/** Override the wizard title shown in the header */
|
|
1357
|
+
title?: React.ReactNode;
|
|
1358
|
+
/** Subtitle shown below the title */
|
|
1359
|
+
description?: React.ReactNode;
|
|
1360
|
+
/** Hide the step indicator header entirely */
|
|
1361
|
+
hideHeader?: boolean;
|
|
1362
|
+
/** Fully replace the footer with custom content */
|
|
1363
|
+
footer?: React.ReactNode;
|
|
1364
|
+
/** Replace only the action buttons with a render-prop */
|
|
1365
|
+
renderActions?: (props: WizardActionProps) => React.ReactNode;
|
|
1366
|
+
/** Label for the Back button */
|
|
1367
|
+
backLabel?: React.ReactNode;
|
|
1368
|
+
/** Label for the Next button */
|
|
1369
|
+
nextLabel?: React.ReactNode;
|
|
1370
|
+
/** Label for the Finish button (last step) */
|
|
1371
|
+
finishLabel?: React.ReactNode;
|
|
1372
|
+
/** Label for the Cancel button */
|
|
1373
|
+
cancelLabel?: React.ReactNode;
|
|
1374
|
+
/** Show a Cancel button in the footer */
|
|
1375
|
+
showCancel?: boolean;
|
|
1376
|
+
/** Show the Back button on the first step */
|
|
1377
|
+
showBackOnFirst?: boolean;
|
|
1378
|
+
/** Whether the next/finish action is in a loading state */
|
|
1379
|
+
loading?: boolean;
|
|
1380
|
+
/** Allow clicking step indicators to jump to any visited step */
|
|
1381
|
+
clickableSteps?: boolean;
|
|
1382
|
+
className?: string;
|
|
1383
|
+
contentClassName?: string;
|
|
1384
|
+
}
|
|
1385
|
+
declare function Wizard({ steps, step: controlledStep, defaultStep, onStepChange, onFinish, onClose, layout, variant, size, isOpen, showClose, unchange, title, description, hideHeader, footer, renderActions, backLabel, nextLabel, finishLabel, cancelLabel, showCancel, showBackOnFirst, loading, clickableSteps, className, contentClassName, }: WizardProps): react_jsx_runtime.JSX.Element;
|
|
1386
|
+
|
|
1387
|
+
export { Accordion, type AccordionItem, type AccordionProps, type AccordionVariant, AvatarStack, type AvatarStackProps, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartDataPoint, ChartWidget, type ChartWidgetProps, Checkbox, type CheckboxProps, CircularProgress, type CircularProgressProps, ColorPicker, type ColorPickerProps, type Column, Combobox, type ComboboxOption, type ComboboxProps, type CommandItem, CommandPalette, type CommandPaletteProps, ComposableWidget, type ComposableWidgetProps, type ConfirmVariant, ContextMenu, type ContextMenuItem, type ContextMenuProps, DataGrid, type DataGridColumn, type DataGridProps, DatePickerPopup, type DateRange, DateRangePicker, type DateRangePickerProps, Drawer, type DrawerProps, type DrawerSide, Dropdown, DropdownItem, DropdownLabel, type DropdownProps, DropdownSeparator, type FileTypeValidation, FileUpload, type FileUploadProps, type FlexAlign, type FlexDirection, type FlexGap, FlexItem, type FlexItemProps, type FlexJustify, FlexLayout, type FlexLayoutProps, type FlexWrap, type FormField, type GridAlign, type GridCols, type GridGap, GridItem, type GridItemProps, GridLayout, type GridLayoutProps, GroupNavigation, type GroupNavigationProps, type ImageEditorMode, type ImageEditorOptions, Input, type InputProps, KanbanBoard, type KanbanBoardProps, type KanbanCard, type KanbanColumn, Label, LeftSidebar, type LeftSidebarProps, type MetricItem, MetricRow, type MetricRowProps, Modal, ModalConfirmation, type ModalConfirmationProps, type ModalProps, ModalUnchange, type ModalUnchangeProps, ModalWithForms, type ModalWithFormsProps, type NavGroup, type NavItem, Navigation, type NavigationProps, NotificationBanner, type NotificationBannerProps, type NotificationItem, NotificationPanel, type NotificationPanelProps, type NotificationVariant, OtpInput, type OtpInputProps, Pagination, type PaginationProps, Panel, type PanelProps, PanelSidebarGroup, PanelSidebarItem, Popover, type PopoverPlacement, type PopoverProps, Progress, type ProgressProps, type ProgressSize, type ProgressVariant, type PropRow, PropsTable, RadioGroup, type RadioGroupProps, type RadioOption, type RadioSize, type RadioVariant, RangeSlider, type RangeSliderProps, Repeater, type RepeaterProps, ResizablePanels, type ResizablePanelsProps, RichTextEditor, type RichTextEditorProps, RightSidebar, type RightSidebarProps, ScrollArea, type ScrollAreaProps, SectionBlock, type SectionProps, type SectionVariant, Select, type SelectOption, type SelectProps, type SemanticColor, Settings, type SettingsProps, type SettingsTab, Skeleton, Slider, type SliderProps, type SortDir, StatCard, type StatCardProps, type StatTrend, StatsWidget, type StatsWidgetProps, type Step, type StepStatus, Stepper, type StepperProps, type TabItem, type TabSize, type TabVariant, Table, type TableProps, TableWidget, type TableWidgetProps, Tabs, type TabsProps, TagInput, type TagInputProps, Textarea, type TextareaProps, Timeline, type TimelineItem, type TimelineProps, type TimelineVariant, type ToastItem, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, ToggleSwitch, type ToggleSwitchProps, Tooltip, type TooltipProps, Topbar, type TopbarProps, type TreeNode, TreeView, type TreeViewProps, type TrendDir, Widget, type WidgetProps, Wizard, type WizardActionProps, type WizardLayout, type WizardProps, type WizardSize, type WizardStep, type WizardVariant, useToast };
|