@onesaz/ui 0.3.17 → 0.3.20

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.ts CHANGED
@@ -293,6 +293,8 @@ interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
293
293
  declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
294
294
 
295
295
  interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
296
+ /** Renders a dash instead of a checkmark — useful for "select some" states */
297
+ indeterminate?: boolean;
296
298
  }
297
299
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
298
300
 
@@ -384,6 +386,28 @@ interface SliderProps extends Omit<React.ComponentPropsWithoutRef<typeof SliderP
384
386
  }
385
387
  declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
386
388
 
389
+ interface RangeSliderProps extends Omit<React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>, "onValueChange" | "value" | "defaultValue" | "onChange"> {
390
+ /** Current min and max values as tuple [min, max] */
391
+ value?: [number, number];
392
+ /** Default min and max values as tuple [min, max] */
393
+ defaultValue?: [number, number];
394
+ /** Change handler - receives [min, max] tuple */
395
+ onChange?: (value: [number, number]) => void;
396
+ /** Show value labels */
397
+ showValues?: boolean;
398
+ /** Value labels position */
399
+ valuePosition?: "top" | "bottom";
400
+ /** Custom value formatter */
401
+ valueFormatter?: (value: number) => string;
402
+ /** Min label */
403
+ minLabel?: string;
404
+ /** Max label */
405
+ maxLabel?: string;
406
+ /** Additional CSS classes */
407
+ className?: string;
408
+ }
409
+ declare const RangeSlider: React.ForwardRefExoticComponent<RangeSliderProps & React.RefAttributes<HTMLSpanElement>>;
410
+
387
411
  declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
388
412
  declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
389
413
  declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
@@ -774,6 +798,10 @@ interface ComboboxSharedProps<T extends ComboboxOptionInput = ComboboxOptionInpu
774
798
  endAdornment?: React.ReactNode;
775
799
  /** Click handler for the end adornment — renders it as a button when provided */
776
800
  onEndAdornmentClick?: (e: React.MouseEvent) => void;
801
+ /** Enable virtual rendering for large option lists */
802
+ virtual?: boolean;
803
+ /** Height of each option item in pixels (used for virtual rendering) */
804
+ virtualItemHeight?: number;
777
805
  }
778
806
  interface ComboboxSingleProps<T extends ComboboxOptionInput = ComboboxOptionInput> extends ComboboxSharedProps<T> {
779
807
  value?: T | null;
@@ -959,10 +987,12 @@ declare namespace DataGrid {
959
987
  interface ListProps extends React.HTMLAttributes<HTMLUListElement> {
960
988
  /** Whether the list has dividers between items */
961
989
  dividers?: boolean;
962
- /** Padding for each list item */
990
+ /** Compact mode reduces item padding */
963
991
  dense?: boolean;
964
- /** Whether items are clickable (adds hover styles) */
992
+ /** Whether items are clickable (adds hover styles to all children) */
965
993
  clickable?: boolean;
994
+ /** Removes the list container's vertical padding */
995
+ disablePadding?: boolean;
966
996
  }
967
997
  declare const List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLUListElement>>;
968
998
  interface ListItemProps extends React.HTMLAttributes<HTMLLIElement> {
@@ -970,16 +1000,37 @@ interface ListItemProps extends React.HTMLAttributes<HTMLLIElement> {
970
1000
  selected?: boolean;
971
1001
  /** Whether this item is disabled */
972
1002
  disabled?: boolean;
973
- /** Whether this item is clickable */
1003
+ /** @deprecated Prefer using ListItemButton for interactive items */
974
1004
  clickable?: boolean;
975
1005
  /** Leading element (icon, avatar, etc.) */
976
1006
  leading?: React.ReactNode;
977
1007
  /** Trailing element (icon, action, etc.) */
978
1008
  trailing?: React.ReactNode;
979
- /** Secondary action element */
1009
+ /** Secondary action element (absolutely positioned at end) */
980
1010
  secondaryAction?: React.ReactNode;
1011
+ /** Indents the item to align with items that have a leading icon/avatar */
1012
+ inset?: boolean;
1013
+ /** Removes left and right padding */
1014
+ disableGutters?: boolean;
1015
+ /** Vertical alignment for multi-line content */
1016
+ alignItems?: 'center' | 'flex-start';
981
1017
  }
982
1018
  declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLLIElement>>;
1019
+ interface ListItemButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
1020
+ /** Whether this item is selected/active */
1021
+ selected?: boolean;
1022
+ /** Compact mode — reduces padding */
1023
+ dense?: boolean;
1024
+ /** Removes left and right padding */
1025
+ disableGutters?: boolean;
1026
+ /** Adds a bottom border to act as a divider */
1027
+ divider?: boolean;
1028
+ /** Vertical alignment for multi-line content */
1029
+ alignItems?: 'center' | 'flex-start';
1030
+ /** Auto-focuses this element on mount */
1031
+ autoFocus?: boolean;
1032
+ }
1033
+ declare const ListItemButton: React.ForwardRefExoticComponent<ListItemButtonProps & React.RefAttributes<HTMLButtonElement>>;
983
1034
  interface ListItemTextProps extends React.HTMLAttributes<HTMLDivElement> {
984
1035
  /** Primary text */
985
1036
  primary?: React.ReactNode;
@@ -987,6 +1038,12 @@ interface ListItemTextProps extends React.HTMLAttributes<HTMLDivElement> {
987
1038
  secondary?: React.ReactNode;
988
1039
  /** Whether to prevent text wrapping */
989
1040
  noWrap?: boolean;
1041
+ /** Indents text to align with items that have a leading icon/avatar */
1042
+ inset?: boolean;
1043
+ /** Additional props forwarded to the primary text element */
1044
+ primaryTypographyProps?: React.HTMLAttributes<HTMLParagraphElement>;
1045
+ /** Additional props forwarded to the secondary text element */
1046
+ secondaryTypographyProps?: React.HTMLAttributes<HTMLParagraphElement>;
990
1047
  }
991
1048
  declare const ListItemText: React.ForwardRefExoticComponent<ListItemTextProps & React.RefAttributes<HTMLDivElement>>;
992
1049
  interface ListItemIconProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -996,15 +1053,33 @@ interface ListItemAvatarProps extends React.HTMLAttributes<HTMLDivElement> {
996
1053
  }
997
1054
  declare const ListItemAvatar: React.ForwardRefExoticComponent<ListItemAvatarProps & React.RefAttributes<HTMLDivElement>>;
998
1055
  interface ListSubheaderProps extends React.HTMLAttributes<HTMLLIElement> {
999
- /** Whether the subheader is sticky */
1056
+ /** Disables sticky positioning (sticky is on by default) */
1057
+ disableSticky?: boolean;
1058
+ /** Removes left and right padding */
1059
+ disableGutters?: boolean;
1060
+ /** @deprecated Use disableSticky instead */
1000
1061
  sticky?: boolean;
1001
1062
  }
1002
1063
  declare const ListSubheader: React.ForwardRefExoticComponent<ListSubheaderProps & React.RefAttributes<HTMLLIElement>>;
1003
1064
  interface ListDividerProps extends React.HTMLAttributes<HTMLLIElement> {
1004
- /** Whether the divider is inset (indented) */
1065
+ /** Whether the divider is inset (indented to align with item text) */
1005
1066
  inset?: boolean;
1006
1067
  }
1007
1068
  declare const ListDivider: React.ForwardRefExoticComponent<ListDividerProps & React.RefAttributes<HTMLLIElement>>;
1069
+ interface VirtualListProps<T = unknown> {
1070
+ /** Array of items to render */
1071
+ items: T[];
1072
+ /** Fixed height of each row in pixels */
1073
+ itemHeight?: number;
1074
+ /** Height of the scrollable container in pixels */
1075
+ height?: number;
1076
+ /** Number of extra items to render beyond the visible area */
1077
+ overscan?: number;
1078
+ /** Render function called for each item */
1079
+ renderItem: (item: T, index: number) => React.ReactNode;
1080
+ className?: string;
1081
+ }
1082
+ declare function VirtualList<T = unknown>({ items, itemHeight, height, overscan, renderItem, className, }: VirtualListProps<T>): react_jsx_runtime.JSX.Element;
1008
1083
 
1009
1084
  interface BarChartProps {
1010
1085
  /** Chart data */
@@ -1764,4 +1839,4 @@ declare const RailPanelItem: React.ForwardRefExoticComponent<RailPanelItemProps
1764
1839
 
1765
1840
  declare const Playground: () => react_jsx_runtime.JSX.Element;
1766
1841
 
1767
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, AreaChart, type AreaChartProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, BarChart, type BarChartProps, Box, type BoxProps, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbPage, type BreadcrumbPageProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, Caption, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, type CircularProgressProps, type ColumnGroupModel, type ColumnVisibilityModel, Combobox, type ComboboxMultipleProps, type ComboboxOption, type ComboboxProps, type ComboboxSingleProps, DataGrid, type DataGridProps, DataGrid as DataGridV0, DialogNamespace as Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, type DonutChartProps, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, FormControl, type FormControlProps, FormGroup, type FormGroupProps, FormHelperText, type FormHelperTextProps, FormLabel, type FormLabelProps, Grid, type GridColDef, type GridProps, type GridRenderCellParams, type GridRenderHeaderParams, type GridRowSelectionModel, type GridSpanParams, type GridValueFormatterParams, type GridValueGetterParams, H1, H2, H3, H4, H5, H6, HStack, IconButton, type IconButtonProps, IconRail, IconRailContent, type IconRailContentProps, IconRailFooter, type IconRailFooterProps, IconRailHeader, type IconRailHeaderProps, IconRailItem, type IconRailItemProps, type IconRailProps, Input, InputAdornment, type InputAdornmentProps, type InputProps, Label, type LabelProps, LineChart, type LineChartProps, LinearProgress, type LinearProgressProps, List, ListDivider, type ListDividerProps, ListItem, ListItemAvatar, type ListItemAvatarProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MultiProgressDonut, type MultiProgressDonutProps, NativeSelect, NativeSelectOption, type NativeSelectOptionProps, type NativeSelectProps, PackedBubbleChart, type PackedBubbleChartProps, type PackedBubbleDataItem, PaginationNamespace as Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, type PaginationModel, PaginationNext, PaginationPrevious, type PaginationProps, PieChart, type PieChartProps, type PinnedColumnsModel, type PinnedRowsModel, Playground, Progress, ProgressCard, type ProgressCardProps, ProgressDonut, type ProgressDonutProps, type ProgressProps, RadarChart, type RadarChartProps, Radio, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type RadioProps, RailPanel, RailPanelGroup, type RailPanelGroupProps, RailPanelItem, type RailPanelItemProps, type RailPanelProps, ScatterChart, type ScatterChartProps, SelectNamespace as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarRail, type SidebarRailProps, SidebarSubMenu, type SidebarSubMenuProps, SidebarToggle, type SidebarToggleProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonCard, type SkeletonCardProps, type SkeletonProps, SkeletonTableRow, type SkeletonTableRowProps, SkeletonText, type SkeletonTextProps, Slider, type SliderProps, Spinner, type SpinnerProps, Stack, type StackProps, Switch, type SwitchProps, TableNamespace as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeContext, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, TopBar, TopBarBrand, type TopBarBrandProps, TopBarDivider, type TopBarDividerProps, TopBarNav, TopBarNavItem, type TopBarNavItemProps, type TopBarNavProps, type TopBarProps, TopBarSection, type TopBarSectionProps, Typography, type TypographyProps, UnderlineTabsContent, UnderlineTabsList, UnderlineTabsTrigger, type UnderlineTabsTriggerProps, VStack, VerticalTabs, VerticalTabsContent, VerticalTabsGroupLabel, type VerticalTabsGroupLabelProps, VerticalTabsList, VerticalTabsTrigger, type VerticalTabsTriggerProps, cn, useFormControl, useSidebar, useSidebarRail, useTheme };
1842
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, AreaChart, type AreaChartProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, BarChart, type BarChartProps, Box, type BoxProps, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbPage, type BreadcrumbPageProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, Caption, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, type CircularProgressProps, type ColumnGroupModel, type ColumnVisibilityModel, Combobox, type ComboboxMultipleProps, type ComboboxOption, type ComboboxProps, type ComboboxSingleProps, DataGrid, type DataGridProps, DataGrid as DataGridV0, DialogNamespace as Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, type DonutChartProps, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, FormControl, type FormControlProps, FormGroup, type FormGroupProps, FormHelperText, type FormHelperTextProps, FormLabel, type FormLabelProps, Grid, type GridColDef, type GridProps, type GridRenderCellParams, type GridRenderHeaderParams, type GridRowSelectionModel, type GridSpanParams, type GridValueFormatterParams, type GridValueGetterParams, H1, H2, H3, H4, H5, H6, HStack, IconButton, type IconButtonProps, IconRail, IconRailContent, type IconRailContentProps, IconRailFooter, type IconRailFooterProps, IconRailHeader, type IconRailHeaderProps, IconRailItem, type IconRailItemProps, type IconRailProps, Input, InputAdornment, type InputAdornmentProps, type InputProps, Label, type LabelProps, LineChart, type LineChartProps, LinearProgress, type LinearProgressProps, List, ListDivider, type ListDividerProps, ListItem, ListItemAvatar, type ListItemAvatarProps, ListItemButton, type ListItemButtonProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MultiProgressDonut, type MultiProgressDonutProps, NativeSelect, NativeSelectOption, type NativeSelectOptionProps, type NativeSelectProps, PackedBubbleChart, type PackedBubbleChartProps, type PackedBubbleDataItem, PaginationNamespace as Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, type PaginationModel, PaginationNext, PaginationPrevious, type PaginationProps, PieChart, type PieChartProps, type PinnedColumnsModel, type PinnedRowsModel, Playground, Progress, ProgressCard, type ProgressCardProps, ProgressDonut, type ProgressDonutProps, type ProgressProps, RadarChart, type RadarChartProps, Radio, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type RadioProps, RailPanel, RailPanelGroup, type RailPanelGroupProps, RailPanelItem, type RailPanelItemProps, type RailPanelProps, RangeSlider, type RangeSliderProps, ScatterChart, type ScatterChartProps, SelectNamespace as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarRail, type SidebarRailProps, SidebarSubMenu, type SidebarSubMenuProps, SidebarToggle, type SidebarToggleProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonCard, type SkeletonCardProps, type SkeletonProps, SkeletonTableRow, type SkeletonTableRowProps, SkeletonText, type SkeletonTextProps, Slider, type SliderProps, Spinner, type SpinnerProps, Stack, type StackProps, Switch, type SwitchProps, TableNamespace as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeContext, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, TopBar, TopBarBrand, type TopBarBrandProps, TopBarDivider, type TopBarDividerProps, TopBarNav, TopBarNavItem, type TopBarNavItemProps, type TopBarNavProps, type TopBarProps, TopBarSection, type TopBarSectionProps, Typography, type TypographyProps, UnderlineTabsContent, UnderlineTabsList, UnderlineTabsTrigger, type UnderlineTabsTriggerProps, VStack, VerticalTabs, VerticalTabsContent, VerticalTabsGroupLabel, type VerticalTabsGroupLabelProps, VerticalTabsList, VerticalTabsTrigger, type VerticalTabsTriggerProps, VirtualList, type VirtualListProps, cn, useFormControl, useSidebar, useSidebarRail, useTheme };