@marcoschwartz/lite-ui 0.26.4 → 0.27.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/dist/index.d.mts CHANGED
@@ -438,6 +438,43 @@ interface RadioProps {
438
438
  }
439
439
  declare const Radio: React.FC<RadioProps>;
440
440
 
441
+ interface SegmentOption {
442
+ value: string;
443
+ label: React.ReactNode;
444
+ disabled?: boolean;
445
+ }
446
+ interface SegmentedControlProps {
447
+ /** Options to display - array of strings or objects with value/label */
448
+ data: string[] | SegmentOption[];
449
+ /** Controlled value */
450
+ value?: string;
451
+ /** Default value for uncontrolled usage */
452
+ defaultValue?: string;
453
+ /** Change handler */
454
+ onChange?: (value: string) => void;
455
+ /** Control size */
456
+ size?: 'xs' | 'sm' | 'md' | 'lg';
457
+ /** Border radius */
458
+ radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
459
+ /** Active segment color */
460
+ color?: 'primary' | 'secondary' | 'neutral';
461
+ /** Stretch to fill container width */
462
+ fullWidth?: boolean;
463
+ /** Disable all segments */
464
+ disabled?: boolean;
465
+ /** Layout direction */
466
+ orientation?: 'horizontal' | 'vertical';
467
+ /** Custom class name */
468
+ className?: string;
469
+ /** Transition duration in ms */
470
+ transitionDuration?: number;
471
+ /** Name attribute for the radio group */
472
+ name?: string;
473
+ /** ARIA label */
474
+ ariaLabel?: string;
475
+ }
476
+ declare const SegmentedControl: React.FC<SegmentedControlProps>;
477
+
441
478
  interface ProgressBarProps {
442
479
  value: number;
443
480
  max?: number;
@@ -1618,4 +1655,4 @@ declare const YouTubeIcon: IconComponent;
1618
1655
 
1619
1656
  declare const SlackIcon: IconComponent;
1620
1657
 
1621
- export { ActionMenu, type ActionMenuItem, type ActionMenuProps, Alert, AlertCircleIcon, type AlertProps, AppShell, type AppShellAsideConfig, type AppShellFooterConfig, type AppShellHeaderConfig, type AppShellNavbarConfig, type AppShellProps, AppShellSection, type AppShellSectionProps, AppleIcon, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, Badge, type BadgeProps, BarChart, type BarChartDataPoint, type BarChartProps, type BarChartSeries, BeakerIcon, BellIcon, BookIcon, BrainIcon, Button, type ButtonProps, type ButtonTheme, CHART_DEFAULTS, Calendar, CalendarHeatmap, type CalendarHeatmapProps, CalendarIcon, type CalendarProps, CameraIcon, Card, type CardProps, CartesianGrid, type CartesianGridProps, type Chapter, ChartTooltip, ChatIcon, CheckCircleIcon, CheckIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CloudIcon, Code, CodeIcon, type CodeProps, type ColorMode, ColorSchemeScript, type ColorSchemeScriptProps, type Column, CopyIcon, DatabaseIcon, DatePicker, type DatePickerProps, DateTimePicker, type DateTimePickerProps, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FileIcon, FileUpload, type FileUploadProps, FolderIcon, FullscreenExitIcon, FullscreenIcon, GitHubIcon, GlobeIcon, GoogleIcon, HeartIcon, Heatmap, type HeatmapDataPoint, type HeatmapProps, HomeIcon, type IconComponent, type IconProps, ImageIcon, InfoCircleIcon, KeyIcon, Legend, type LegendItem, type LegendProps, LineChart, type LineChartDataPoint, type LineChartProps, type LineChartSeries, LinkedInIcon, LockIcon, MailIcon, MenuIcon, Modal, type ModalProps, Navbar, type NavbarProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, PauseIcon, PieChart, type PieChartDataPoint, type PieChartProps, PlayIcon, PlugIcon, PlusIcon, ProgressBar, type ProgressBarProps, Radio, type RadioOption, type RadioProps, ReferenceArea, type ReferenceAreaProps, ReferenceLine, type ReferenceLineProps, RefreshIcon, ResponsiveContainer, type ResponsiveContainerProps, RichTextEditor, type RichTextEditorProps, SaveIcon, ScatterChart, type ScatterChartDataPoint, type ScatterChartProps, type ScatterChartSeries, SearchIcon, Select, type SelectOption, type SelectProps, type SelectTheme, SettingsIcon, ShieldIcon, Sidebar, type SidebarContextValue, SidebarNav, SidebarNavCollapseToggle, type SidebarNavCollapseToggleProps, type SidebarNavContextValue, SidebarNavDivider, type SidebarNavDividerProps, SidebarNavGroup, type SidebarNavGroupProps, SidebarNavItem, type SidebarNavItemProps, SidebarNavLabel, type SidebarNavLabelProps, type SidebarNavProps, SidebarNavSection, type SidebarNavSectionProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, SkipBackIcon, SkipForwardIcon, SlackIcon, Slider, type SliderProps, SparklesIcon, Spinner, type SpinnerProps, StarIcon, type Step, Stepper, type StepperProps, StopIcon, type Tab, Table, type TableProps, Tabs, type TabsProps, TerminalIcon, TextInput, type TextInputProps, Textarea, type TextareaProps, type Theme, type ThemeName, ThemeProvider, TimePicker, type TimePickerProps, type Toast, ToastProvider, type ToastProviderProps, Toggle, type ToggleProps, type TooltipPayloadItem, type TooltipProps, TrashIcon, TwitterIcon, UploadIcon, UserIcon, VideoPlayer, type VideoPlayerProps, VolumeOffIcon, VolumeUpIcon, YouTubeIcon, getColorSchemeScriptString, getThemeScript, themeScript, themes, toast, useAppShell, useSidebar, useSidebarNav, useSidebarNavOptional, useTheme, useToast, useTooltip };
1658
+ export { ActionMenu, type ActionMenuItem, type ActionMenuProps, Alert, AlertCircleIcon, type AlertProps, AppShell, type AppShellAsideConfig, type AppShellFooterConfig, type AppShellHeaderConfig, type AppShellNavbarConfig, type AppShellProps, AppShellSection, type AppShellSectionProps, AppleIcon, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, Badge, type BadgeProps, BarChart, type BarChartDataPoint, type BarChartProps, type BarChartSeries, BeakerIcon, BellIcon, BookIcon, BrainIcon, Button, type ButtonProps, type ButtonTheme, CHART_DEFAULTS, Calendar, CalendarHeatmap, type CalendarHeatmapProps, CalendarIcon, type CalendarProps, CameraIcon, Card, type CardProps, CartesianGrid, type CartesianGridProps, type Chapter, ChartTooltip, ChatIcon, CheckCircleIcon, CheckIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CloudIcon, Code, CodeIcon, type CodeProps, type ColorMode, ColorSchemeScript, type ColorSchemeScriptProps, type Column, CopyIcon, DatabaseIcon, DatePicker, type DatePickerProps, DateTimePicker, type DateTimePickerProps, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FileIcon, FileUpload, type FileUploadProps, FolderIcon, FullscreenExitIcon, FullscreenIcon, GitHubIcon, GlobeIcon, GoogleIcon, HeartIcon, Heatmap, type HeatmapDataPoint, type HeatmapProps, HomeIcon, type IconComponent, type IconProps, ImageIcon, InfoCircleIcon, KeyIcon, Legend, type LegendItem, type LegendProps, LineChart, type LineChartDataPoint, type LineChartProps, type LineChartSeries, LinkedInIcon, LockIcon, MailIcon, MenuIcon, Modal, type ModalProps, Navbar, type NavbarProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, PauseIcon, PieChart, type PieChartDataPoint, type PieChartProps, PlayIcon, PlugIcon, PlusIcon, ProgressBar, type ProgressBarProps, Radio, type RadioOption, type RadioProps, ReferenceArea, type ReferenceAreaProps, ReferenceLine, type ReferenceLineProps, RefreshIcon, ResponsiveContainer, type ResponsiveContainerProps, RichTextEditor, type RichTextEditorProps, SaveIcon, ScatterChart, type ScatterChartDataPoint, type ScatterChartProps, type ScatterChartSeries, SearchIcon, type SegmentOption, SegmentedControl, type SegmentedControlProps, Select, type SelectOption, type SelectProps, type SelectTheme, SettingsIcon, ShieldIcon, Sidebar, type SidebarContextValue, SidebarNav, SidebarNavCollapseToggle, type SidebarNavCollapseToggleProps, type SidebarNavContextValue, SidebarNavDivider, type SidebarNavDividerProps, SidebarNavGroup, type SidebarNavGroupProps, SidebarNavItem, type SidebarNavItemProps, SidebarNavLabel, type SidebarNavLabelProps, type SidebarNavProps, SidebarNavSection, type SidebarNavSectionProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, SkipBackIcon, SkipForwardIcon, SlackIcon, Slider, type SliderProps, SparklesIcon, Spinner, type SpinnerProps, StarIcon, type Step, Stepper, type StepperProps, StopIcon, type Tab, Table, type TableProps, Tabs, type TabsProps, TerminalIcon, TextInput, type TextInputProps, Textarea, type TextareaProps, type Theme, type ThemeName, ThemeProvider, TimePicker, type TimePickerProps, type Toast, ToastProvider, type ToastProviderProps, Toggle, type ToggleProps, type TooltipPayloadItem, type TooltipProps, TrashIcon, TwitterIcon, UploadIcon, UserIcon, VideoPlayer, type VideoPlayerProps, VolumeOffIcon, VolumeUpIcon, YouTubeIcon, getColorSchemeScriptString, getThemeScript, themeScript, themes, toast, useAppShell, useSidebar, useSidebarNav, useSidebarNavOptional, useTheme, useToast, useTooltip };
package/dist/index.d.ts CHANGED
@@ -438,6 +438,43 @@ interface RadioProps {
438
438
  }
439
439
  declare const Radio: React.FC<RadioProps>;
440
440
 
441
+ interface SegmentOption {
442
+ value: string;
443
+ label: React.ReactNode;
444
+ disabled?: boolean;
445
+ }
446
+ interface SegmentedControlProps {
447
+ /** Options to display - array of strings or objects with value/label */
448
+ data: string[] | SegmentOption[];
449
+ /** Controlled value */
450
+ value?: string;
451
+ /** Default value for uncontrolled usage */
452
+ defaultValue?: string;
453
+ /** Change handler */
454
+ onChange?: (value: string) => void;
455
+ /** Control size */
456
+ size?: 'xs' | 'sm' | 'md' | 'lg';
457
+ /** Border radius */
458
+ radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
459
+ /** Active segment color */
460
+ color?: 'primary' | 'secondary' | 'neutral';
461
+ /** Stretch to fill container width */
462
+ fullWidth?: boolean;
463
+ /** Disable all segments */
464
+ disabled?: boolean;
465
+ /** Layout direction */
466
+ orientation?: 'horizontal' | 'vertical';
467
+ /** Custom class name */
468
+ className?: string;
469
+ /** Transition duration in ms */
470
+ transitionDuration?: number;
471
+ /** Name attribute for the radio group */
472
+ name?: string;
473
+ /** ARIA label */
474
+ ariaLabel?: string;
475
+ }
476
+ declare const SegmentedControl: React.FC<SegmentedControlProps>;
477
+
441
478
  interface ProgressBarProps {
442
479
  value: number;
443
480
  max?: number;
@@ -1618,4 +1655,4 @@ declare const YouTubeIcon: IconComponent;
1618
1655
 
1619
1656
  declare const SlackIcon: IconComponent;
1620
1657
 
1621
- export { ActionMenu, type ActionMenuItem, type ActionMenuProps, Alert, AlertCircleIcon, type AlertProps, AppShell, type AppShellAsideConfig, type AppShellFooterConfig, type AppShellHeaderConfig, type AppShellNavbarConfig, type AppShellProps, AppShellSection, type AppShellSectionProps, AppleIcon, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, Badge, type BadgeProps, BarChart, type BarChartDataPoint, type BarChartProps, type BarChartSeries, BeakerIcon, BellIcon, BookIcon, BrainIcon, Button, type ButtonProps, type ButtonTheme, CHART_DEFAULTS, Calendar, CalendarHeatmap, type CalendarHeatmapProps, CalendarIcon, type CalendarProps, CameraIcon, Card, type CardProps, CartesianGrid, type CartesianGridProps, type Chapter, ChartTooltip, ChatIcon, CheckCircleIcon, CheckIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CloudIcon, Code, CodeIcon, type CodeProps, type ColorMode, ColorSchemeScript, type ColorSchemeScriptProps, type Column, CopyIcon, DatabaseIcon, DatePicker, type DatePickerProps, DateTimePicker, type DateTimePickerProps, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FileIcon, FileUpload, type FileUploadProps, FolderIcon, FullscreenExitIcon, FullscreenIcon, GitHubIcon, GlobeIcon, GoogleIcon, HeartIcon, Heatmap, type HeatmapDataPoint, type HeatmapProps, HomeIcon, type IconComponent, type IconProps, ImageIcon, InfoCircleIcon, KeyIcon, Legend, type LegendItem, type LegendProps, LineChart, type LineChartDataPoint, type LineChartProps, type LineChartSeries, LinkedInIcon, LockIcon, MailIcon, MenuIcon, Modal, type ModalProps, Navbar, type NavbarProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, PauseIcon, PieChart, type PieChartDataPoint, type PieChartProps, PlayIcon, PlugIcon, PlusIcon, ProgressBar, type ProgressBarProps, Radio, type RadioOption, type RadioProps, ReferenceArea, type ReferenceAreaProps, ReferenceLine, type ReferenceLineProps, RefreshIcon, ResponsiveContainer, type ResponsiveContainerProps, RichTextEditor, type RichTextEditorProps, SaveIcon, ScatterChart, type ScatterChartDataPoint, type ScatterChartProps, type ScatterChartSeries, SearchIcon, Select, type SelectOption, type SelectProps, type SelectTheme, SettingsIcon, ShieldIcon, Sidebar, type SidebarContextValue, SidebarNav, SidebarNavCollapseToggle, type SidebarNavCollapseToggleProps, type SidebarNavContextValue, SidebarNavDivider, type SidebarNavDividerProps, SidebarNavGroup, type SidebarNavGroupProps, SidebarNavItem, type SidebarNavItemProps, SidebarNavLabel, type SidebarNavLabelProps, type SidebarNavProps, SidebarNavSection, type SidebarNavSectionProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, SkipBackIcon, SkipForwardIcon, SlackIcon, Slider, type SliderProps, SparklesIcon, Spinner, type SpinnerProps, StarIcon, type Step, Stepper, type StepperProps, StopIcon, type Tab, Table, type TableProps, Tabs, type TabsProps, TerminalIcon, TextInput, type TextInputProps, Textarea, type TextareaProps, type Theme, type ThemeName, ThemeProvider, TimePicker, type TimePickerProps, type Toast, ToastProvider, type ToastProviderProps, Toggle, type ToggleProps, type TooltipPayloadItem, type TooltipProps, TrashIcon, TwitterIcon, UploadIcon, UserIcon, VideoPlayer, type VideoPlayerProps, VolumeOffIcon, VolumeUpIcon, YouTubeIcon, getColorSchemeScriptString, getThemeScript, themeScript, themes, toast, useAppShell, useSidebar, useSidebarNav, useSidebarNavOptional, useTheme, useToast, useTooltip };
1658
+ export { ActionMenu, type ActionMenuItem, type ActionMenuProps, Alert, AlertCircleIcon, type AlertProps, AppShell, type AppShellAsideConfig, type AppShellFooterConfig, type AppShellHeaderConfig, type AppShellNavbarConfig, type AppShellProps, AppShellSection, type AppShellSectionProps, AppleIcon, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, Badge, type BadgeProps, BarChart, type BarChartDataPoint, type BarChartProps, type BarChartSeries, BeakerIcon, BellIcon, BookIcon, BrainIcon, Button, type ButtonProps, type ButtonTheme, CHART_DEFAULTS, Calendar, CalendarHeatmap, type CalendarHeatmapProps, CalendarIcon, type CalendarProps, CameraIcon, Card, type CardProps, CartesianGrid, type CartesianGridProps, type Chapter, ChartTooltip, ChatIcon, CheckCircleIcon, CheckIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CloudIcon, Code, CodeIcon, type CodeProps, type ColorMode, ColorSchemeScript, type ColorSchemeScriptProps, type Column, CopyIcon, DatabaseIcon, DatePicker, type DatePickerProps, DateTimePicker, type DateTimePickerProps, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FileIcon, FileUpload, type FileUploadProps, FolderIcon, FullscreenExitIcon, FullscreenIcon, GitHubIcon, GlobeIcon, GoogleIcon, HeartIcon, Heatmap, type HeatmapDataPoint, type HeatmapProps, HomeIcon, type IconComponent, type IconProps, ImageIcon, InfoCircleIcon, KeyIcon, Legend, type LegendItem, type LegendProps, LineChart, type LineChartDataPoint, type LineChartProps, type LineChartSeries, LinkedInIcon, LockIcon, MailIcon, MenuIcon, Modal, type ModalProps, Navbar, type NavbarProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, PauseIcon, PieChart, type PieChartDataPoint, type PieChartProps, PlayIcon, PlugIcon, PlusIcon, ProgressBar, type ProgressBarProps, Radio, type RadioOption, type RadioProps, ReferenceArea, type ReferenceAreaProps, ReferenceLine, type ReferenceLineProps, RefreshIcon, ResponsiveContainer, type ResponsiveContainerProps, RichTextEditor, type RichTextEditorProps, SaveIcon, ScatterChart, type ScatterChartDataPoint, type ScatterChartProps, type ScatterChartSeries, SearchIcon, type SegmentOption, SegmentedControl, type SegmentedControlProps, Select, type SelectOption, type SelectProps, type SelectTheme, SettingsIcon, ShieldIcon, Sidebar, type SidebarContextValue, SidebarNav, SidebarNavCollapseToggle, type SidebarNavCollapseToggleProps, type SidebarNavContextValue, SidebarNavDivider, type SidebarNavDividerProps, SidebarNavGroup, type SidebarNavGroupProps, SidebarNavItem, type SidebarNavItemProps, SidebarNavLabel, type SidebarNavLabelProps, type SidebarNavProps, SidebarNavSection, type SidebarNavSectionProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, SkipBackIcon, SkipForwardIcon, SlackIcon, Slider, type SliderProps, SparklesIcon, Spinner, type SpinnerProps, StarIcon, type Step, Stepper, type StepperProps, StopIcon, type Tab, Table, type TableProps, Tabs, type TabsProps, TerminalIcon, TextInput, type TextInputProps, Textarea, type TextareaProps, type Theme, type ThemeName, ThemeProvider, TimePicker, type TimePickerProps, type Toast, ToastProvider, type ToastProviderProps, Toggle, type ToggleProps, type TooltipPayloadItem, type TooltipProps, TrashIcon, TwitterIcon, UploadIcon, UserIcon, VideoPlayer, type VideoPlayerProps, VolumeOffIcon, VolumeUpIcon, YouTubeIcon, getColorSchemeScriptString, getThemeScript, themeScript, themes, toast, useAppShell, useSidebar, useSidebarNav, useSidebarNavOptional, useTheme, useToast, useTooltip };