@underverse-ui/underverse 1.0.206 → 1.0.208
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/api-reference.json +30 -2
- package/dist/index.cjs +160 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +57 -1
- package/dist/index.d.ts +57 -1
- package/dist/index.js +156 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1896,6 +1896,62 @@ interface RadioGroupItemProps {
|
|
|
1896
1896
|
}>;
|
|
1897
1897
|
}
|
|
1898
1898
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1899
|
+
/** Public props for the `SimpleRadioGroup` component. */
|
|
1900
|
+
interface SimpleRadioGroupProps {
|
|
1901
|
+
items: Array<{
|
|
1902
|
+
value: string;
|
|
1903
|
+
label: string;
|
|
1904
|
+
description?: string;
|
|
1905
|
+
disabled?: boolean;
|
|
1906
|
+
icon?: React$1.ComponentType<{
|
|
1907
|
+
className?: string;
|
|
1908
|
+
}>;
|
|
1909
|
+
}>;
|
|
1910
|
+
value?: string;
|
|
1911
|
+
defaultValue?: string;
|
|
1912
|
+
onValueChange?: (value: string) => void;
|
|
1913
|
+
name?: string;
|
|
1914
|
+
disabled?: boolean;
|
|
1915
|
+
orientation?: "horizontal" | "vertical";
|
|
1916
|
+
size?: "sm" | "md" | "lg";
|
|
1917
|
+
variant?: "default" | "card" | "button";
|
|
1918
|
+
borderMode?: BorderMode;
|
|
1919
|
+
className?: string;
|
|
1920
|
+
required?: boolean;
|
|
1921
|
+
error?: boolean;
|
|
1922
|
+
errorMessage?: string;
|
|
1923
|
+
}
|
|
1924
|
+
declare const SimpleRadioGroup: React$1.FC<SimpleRadioGroupProps>;
|
|
1925
|
+
/** Public props for the `RadioButtonGroup` component. */
|
|
1926
|
+
interface RadioButtonGroupProps {
|
|
1927
|
+
items: Array<{
|
|
1928
|
+
value: string;
|
|
1929
|
+
label: string;
|
|
1930
|
+
icon?: React$1.ComponentType<{
|
|
1931
|
+
className?: string;
|
|
1932
|
+
}>;
|
|
1933
|
+
disabled?: boolean;
|
|
1934
|
+
}>;
|
|
1935
|
+
value?: string;
|
|
1936
|
+
defaultValue?: string;
|
|
1937
|
+
onValueChange?: (value: string) => void;
|
|
1938
|
+
name?: string;
|
|
1939
|
+
disabled?: boolean;
|
|
1940
|
+
size?: "sm" | "md" | "lg";
|
|
1941
|
+
variant?: "default" | "outline" | "solid";
|
|
1942
|
+
borderMode?: BorderMode;
|
|
1943
|
+
className?: string;
|
|
1944
|
+
fullWidth?: boolean;
|
|
1945
|
+
}
|
|
1946
|
+
declare const RadioButtonGroup: React$1.FC<RadioButtonGroupProps>;
|
|
1947
|
+
/** Public props for the `SegmentedControl` component. */
|
|
1948
|
+
interface SegmentedControlProps extends Omit<RadioButtonGroupProps, "variant"> {
|
|
1949
|
+
}
|
|
1950
|
+
declare const SegmentedControl: React$1.FC<SegmentedControlProps>;
|
|
1951
|
+
/** Public props for the `ToggleGroup` component. */
|
|
1952
|
+
interface ToggleGroupProps extends Omit<RadioButtonGroupProps, "variant"> {
|
|
1953
|
+
}
|
|
1954
|
+
declare const ToggleGroup: React$1.FC<ToggleGroupProps>;
|
|
1899
1955
|
|
|
1900
1956
|
/** Public props for the `Slider` component. */
|
|
1901
1957
|
interface SliderProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> {
|
|
@@ -7084,4 +7140,4 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
7084
7140
|
};
|
|
7085
7141
|
};
|
|
7086
7142
|
|
|
7087
|
-
export { AccessDenied, type AccessDeniedProps, Alert, Avatar, Badge, Badge as BadgeBase, BatteryProgress, BottomSheet, type BottomSheetProps, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarHoliday, type CalendarProps, CalendarTimeline, type CalendarTimelineDateInput, type CalendarTimelineDayRangeMode, type CalendarTimelineEvent, type CalendarTimelineFormatters, type CalendarTimelineGroup, type CalendarTimelineInteractions, type CalendarTimelineLabels, type CalendarTimelineProps, type CalendarTimelineResource, type CalendarTimelineSize, type CalendarTimelineView, type CalendarTimelineVirtualization, Card, type CardProps, Carousel, type CarouselEffectOptions, type CarouselEffectPreset, type Category, CategoryTreeSelect, type CategoryTreeSelectBaseProps, type CategoryTreeSelectLabels, type CategoryTreeSelectMultiProps, type CategoryTreeSelectProps, type CategoryTreeSelectSingleProps, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxOption, type ComboboxProps, CompactDatePicker, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableDensity, type DataTableLabels, type DataTableProps, type DataTableQuery, type DataTableSize, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, EmojiPicker, type EmojiPickerProps, FallingIcons, FileUpload, type FileUploadProps, type FilterType, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, type GlobalI18nConfig, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, type ImageUploadProps, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type LoadingState, type Locale, LunarDatePicker, type LunarDatePickerProps, LunarDateRangePicker, type LunarDateRangePickerProps, type LunarDateValue, type LunarPickerValue, lunar as LunarUtils, MiniProgress, Modal, MonthYearPicker, MonthYearPicker as MonthYearPickerBase, type MonthYearPickerProps, MultiCombobox, type MultiComboboxOption, type MultiComboboxProps, MusicPlayer, MusicPlayer as MusicPlayerDefault, type MusicPlayerProps, NextIntlAdapter, NotificationBadge, NotificationModal, NumberInput, type NumberInputProps, OverlayControls, type OverlayControlsProps, OverlayScrollArea, type OverlayScrollAreaProps, OverlayScrollbarProvider, type OverlayScrollbarProviderProps, PageLoading, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, PillTabs, Popover, Progress, PulseBadge, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, SegmentedProgress, SelectDropdown, Sheet, type SheetProps, SidebarSheet, type SidebarSheetProps, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, type SlideOverProps, Slider, type SliderProps, SmartImage, type Song, type Sorter, StatusBadge, StepProgress, type StickerAssetVariant, type StickerImageUrlOptions, StickerPicker, type StickerPickerProps, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableHeaderProps, type TableProps, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type TextareaProps, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UnderverseConfigProvider, type UnderverseConfigProviderProps, type UnderverseLocale, UnderverseNextIntlProvider, UnderverseProvider, type UnderverseProviderProps, type UnderverseUIConfig, type UploadedFile, type UploadedImage, type UseOverlayScrollbarTargetOptions, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VIETNAM_HOLIDAYS, VerticalTabs, Watermark, type WatermarkProps, cn, cn as cnLocal, getAnimationStyles, getEmojiImageUrl, getEmojiUnifiedCode, getStickerImageUrl, getUnderverseMessages, injectAnimationStyles, loading, setEmojiBaseUrl, setStickerBaseUrl, shadcnAnimationStyles, underverseMessages, useFormField, useGlobalI18n, useOverlayScrollbarTarget, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations, useUnderverseUIConfig };
|
|
7143
|
+
export { AccessDenied, type AccessDeniedProps, Alert, Avatar, Badge, Badge as BadgeBase, BatteryProgress, BottomSheet, type BottomSheetProps, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarHoliday, type CalendarProps, CalendarTimeline, type CalendarTimelineDateInput, type CalendarTimelineDayRangeMode, type CalendarTimelineEvent, type CalendarTimelineFormatters, type CalendarTimelineGroup, type CalendarTimelineInteractions, type CalendarTimelineLabels, type CalendarTimelineProps, type CalendarTimelineResource, type CalendarTimelineSize, type CalendarTimelineView, type CalendarTimelineVirtualization, Card, type CardProps, Carousel, type CarouselEffectOptions, type CarouselEffectPreset, type Category, CategoryTreeSelect, type CategoryTreeSelectBaseProps, type CategoryTreeSelectLabels, type CategoryTreeSelectMultiProps, type CategoryTreeSelectProps, type CategoryTreeSelectSingleProps, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxOption, type ComboboxProps, CompactDatePicker, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableDensity, type DataTableLabels, type DataTableProps, type DataTableQuery, type DataTableSize, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, EmojiPicker, type EmojiPickerProps, FallingIcons, FileUpload, type FileUploadProps, type FilterType, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, type GlobalI18nConfig, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, type ImageUploadProps, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type LoadingState, type Locale, LunarDatePicker, type LunarDatePickerProps, LunarDateRangePicker, type LunarDateRangePickerProps, type LunarDateValue, type LunarPickerValue, lunar as LunarUtils, MiniProgress, Modal, MonthYearPicker, MonthYearPicker as MonthYearPickerBase, type MonthYearPickerProps, MultiCombobox, type MultiComboboxOption, type MultiComboboxProps, MusicPlayer, MusicPlayer as MusicPlayerDefault, type MusicPlayerProps, NextIntlAdapter, NotificationBadge, NotificationModal, NumberInput, type NumberInputProps, OverlayControls, type OverlayControlsProps, OverlayScrollArea, type OverlayScrollAreaProps, OverlayScrollbarProvider, type OverlayScrollbarProviderProps, PageLoading, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, PillTabs, Popover, Progress, PulseBadge, RadioButtonGroup, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, SegmentedControl, SegmentedProgress, SelectDropdown, Sheet, type SheetProps, SidebarSheet, type SidebarSheetProps, SimplePagination, type SimplePaginationProps, SimpleRadioGroup, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, type SlideOverProps, Slider, type SliderProps, SmartImage, type Song, type Sorter, StatusBadge, StepProgress, type StickerAssetVariant, type StickerImageUrlOptions, StickerPicker, type StickerPickerProps, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableHeaderProps, type TableProps, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type TextareaProps, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, ToggleGroup, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UnderverseConfigProvider, type UnderverseConfigProviderProps, type UnderverseLocale, UnderverseNextIntlProvider, UnderverseProvider, type UnderverseProviderProps, type UnderverseUIConfig, type UploadedFile, type UploadedImage, type UseOverlayScrollbarTargetOptions, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VIETNAM_HOLIDAYS, VerticalTabs, Watermark, type WatermarkProps, cn, cn as cnLocal, getAnimationStyles, getEmojiImageUrl, getEmojiUnifiedCode, getStickerImageUrl, getUnderverseMessages, injectAnimationStyles, loading, setEmojiBaseUrl, setStickerBaseUrl, shadcnAnimationStyles, underverseMessages, useFormField, useGlobalI18n, useOverlayScrollbarTarget, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations, useUnderverseUIConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1896,6 +1896,62 @@ interface RadioGroupItemProps {
|
|
|
1896
1896
|
}>;
|
|
1897
1897
|
}
|
|
1898
1898
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1899
|
+
/** Public props for the `SimpleRadioGroup` component. */
|
|
1900
|
+
interface SimpleRadioGroupProps {
|
|
1901
|
+
items: Array<{
|
|
1902
|
+
value: string;
|
|
1903
|
+
label: string;
|
|
1904
|
+
description?: string;
|
|
1905
|
+
disabled?: boolean;
|
|
1906
|
+
icon?: React$1.ComponentType<{
|
|
1907
|
+
className?: string;
|
|
1908
|
+
}>;
|
|
1909
|
+
}>;
|
|
1910
|
+
value?: string;
|
|
1911
|
+
defaultValue?: string;
|
|
1912
|
+
onValueChange?: (value: string) => void;
|
|
1913
|
+
name?: string;
|
|
1914
|
+
disabled?: boolean;
|
|
1915
|
+
orientation?: "horizontal" | "vertical";
|
|
1916
|
+
size?: "sm" | "md" | "lg";
|
|
1917
|
+
variant?: "default" | "card" | "button";
|
|
1918
|
+
borderMode?: BorderMode;
|
|
1919
|
+
className?: string;
|
|
1920
|
+
required?: boolean;
|
|
1921
|
+
error?: boolean;
|
|
1922
|
+
errorMessage?: string;
|
|
1923
|
+
}
|
|
1924
|
+
declare const SimpleRadioGroup: React$1.FC<SimpleRadioGroupProps>;
|
|
1925
|
+
/** Public props for the `RadioButtonGroup` component. */
|
|
1926
|
+
interface RadioButtonGroupProps {
|
|
1927
|
+
items: Array<{
|
|
1928
|
+
value: string;
|
|
1929
|
+
label: string;
|
|
1930
|
+
icon?: React$1.ComponentType<{
|
|
1931
|
+
className?: string;
|
|
1932
|
+
}>;
|
|
1933
|
+
disabled?: boolean;
|
|
1934
|
+
}>;
|
|
1935
|
+
value?: string;
|
|
1936
|
+
defaultValue?: string;
|
|
1937
|
+
onValueChange?: (value: string) => void;
|
|
1938
|
+
name?: string;
|
|
1939
|
+
disabled?: boolean;
|
|
1940
|
+
size?: "sm" | "md" | "lg";
|
|
1941
|
+
variant?: "default" | "outline" | "solid";
|
|
1942
|
+
borderMode?: BorderMode;
|
|
1943
|
+
className?: string;
|
|
1944
|
+
fullWidth?: boolean;
|
|
1945
|
+
}
|
|
1946
|
+
declare const RadioButtonGroup: React$1.FC<RadioButtonGroupProps>;
|
|
1947
|
+
/** Public props for the `SegmentedControl` component. */
|
|
1948
|
+
interface SegmentedControlProps extends Omit<RadioButtonGroupProps, "variant"> {
|
|
1949
|
+
}
|
|
1950
|
+
declare const SegmentedControl: React$1.FC<SegmentedControlProps>;
|
|
1951
|
+
/** Public props for the `ToggleGroup` component. */
|
|
1952
|
+
interface ToggleGroupProps extends Omit<RadioButtonGroupProps, "variant"> {
|
|
1953
|
+
}
|
|
1954
|
+
declare const ToggleGroup: React$1.FC<ToggleGroupProps>;
|
|
1899
1955
|
|
|
1900
1956
|
/** Public props for the `Slider` component. */
|
|
1901
1957
|
interface SliderProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> {
|
|
@@ -7084,4 +7140,4 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
7084
7140
|
};
|
|
7085
7141
|
};
|
|
7086
7142
|
|
|
7087
|
-
export { AccessDenied, type AccessDeniedProps, Alert, Avatar, Badge, Badge as BadgeBase, BatteryProgress, BottomSheet, type BottomSheetProps, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarHoliday, type CalendarProps, CalendarTimeline, type CalendarTimelineDateInput, type CalendarTimelineDayRangeMode, type CalendarTimelineEvent, type CalendarTimelineFormatters, type CalendarTimelineGroup, type CalendarTimelineInteractions, type CalendarTimelineLabels, type CalendarTimelineProps, type CalendarTimelineResource, type CalendarTimelineSize, type CalendarTimelineView, type CalendarTimelineVirtualization, Card, type CardProps, Carousel, type CarouselEffectOptions, type CarouselEffectPreset, type Category, CategoryTreeSelect, type CategoryTreeSelectBaseProps, type CategoryTreeSelectLabels, type CategoryTreeSelectMultiProps, type CategoryTreeSelectProps, type CategoryTreeSelectSingleProps, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxOption, type ComboboxProps, CompactDatePicker, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableDensity, type DataTableLabels, type DataTableProps, type DataTableQuery, type DataTableSize, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, EmojiPicker, type EmojiPickerProps, FallingIcons, FileUpload, type FileUploadProps, type FilterType, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, type GlobalI18nConfig, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, type ImageUploadProps, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type LoadingState, type Locale, LunarDatePicker, type LunarDatePickerProps, LunarDateRangePicker, type LunarDateRangePickerProps, type LunarDateValue, type LunarPickerValue, lunar as LunarUtils, MiniProgress, Modal, MonthYearPicker, MonthYearPicker as MonthYearPickerBase, type MonthYearPickerProps, MultiCombobox, type MultiComboboxOption, type MultiComboboxProps, MusicPlayer, MusicPlayer as MusicPlayerDefault, type MusicPlayerProps, NextIntlAdapter, NotificationBadge, NotificationModal, NumberInput, type NumberInputProps, OverlayControls, type OverlayControlsProps, OverlayScrollArea, type OverlayScrollAreaProps, OverlayScrollbarProvider, type OverlayScrollbarProviderProps, PageLoading, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, PillTabs, Popover, Progress, PulseBadge, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, SegmentedProgress, SelectDropdown, Sheet, type SheetProps, SidebarSheet, type SidebarSheetProps, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, type SlideOverProps, Slider, type SliderProps, SmartImage, type Song, type Sorter, StatusBadge, StepProgress, type StickerAssetVariant, type StickerImageUrlOptions, StickerPicker, type StickerPickerProps, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableHeaderProps, type TableProps, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type TextareaProps, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UnderverseConfigProvider, type UnderverseConfigProviderProps, type UnderverseLocale, UnderverseNextIntlProvider, UnderverseProvider, type UnderverseProviderProps, type UnderverseUIConfig, type UploadedFile, type UploadedImage, type UseOverlayScrollbarTargetOptions, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VIETNAM_HOLIDAYS, VerticalTabs, Watermark, type WatermarkProps, cn, cn as cnLocal, getAnimationStyles, getEmojiImageUrl, getEmojiUnifiedCode, getStickerImageUrl, getUnderverseMessages, injectAnimationStyles, loading, setEmojiBaseUrl, setStickerBaseUrl, shadcnAnimationStyles, underverseMessages, useFormField, useGlobalI18n, useOverlayScrollbarTarget, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations, useUnderverseUIConfig };
|
|
7143
|
+
export { AccessDenied, type AccessDeniedProps, Alert, Avatar, Badge, Badge as BadgeBase, BatteryProgress, BottomSheet, type BottomSheetProps, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarHoliday, type CalendarProps, CalendarTimeline, type CalendarTimelineDateInput, type CalendarTimelineDayRangeMode, type CalendarTimelineEvent, type CalendarTimelineFormatters, type CalendarTimelineGroup, type CalendarTimelineInteractions, type CalendarTimelineLabels, type CalendarTimelineProps, type CalendarTimelineResource, type CalendarTimelineSize, type CalendarTimelineView, type CalendarTimelineVirtualization, Card, type CardProps, Carousel, type CarouselEffectOptions, type CarouselEffectPreset, type Category, CategoryTreeSelect, type CategoryTreeSelectBaseProps, type CategoryTreeSelectLabels, type CategoryTreeSelectMultiProps, type CategoryTreeSelectProps, type CategoryTreeSelectSingleProps, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxOption, type ComboboxProps, CompactDatePicker, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableDensity, type DataTableLabels, type DataTableProps, type DataTableQuery, type DataTableSize, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, EmojiPicker, type EmojiPickerProps, FallingIcons, FileUpload, type FileUploadProps, type FilterType, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, type GlobalI18nConfig, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, type ImageUploadProps, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type LoadingState, type Locale, LunarDatePicker, type LunarDatePickerProps, LunarDateRangePicker, type LunarDateRangePickerProps, type LunarDateValue, type LunarPickerValue, lunar as LunarUtils, MiniProgress, Modal, MonthYearPicker, MonthYearPicker as MonthYearPickerBase, type MonthYearPickerProps, MultiCombobox, type MultiComboboxOption, type MultiComboboxProps, MusicPlayer, MusicPlayer as MusicPlayerDefault, type MusicPlayerProps, NextIntlAdapter, NotificationBadge, NotificationModal, NumberInput, type NumberInputProps, OverlayControls, type OverlayControlsProps, OverlayScrollArea, type OverlayScrollAreaProps, OverlayScrollbarProvider, type OverlayScrollbarProviderProps, PageLoading, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, PillTabs, Popover, Progress, PulseBadge, RadioButtonGroup, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, SegmentedControl, SegmentedProgress, SelectDropdown, Sheet, type SheetProps, SidebarSheet, type SidebarSheetProps, SimplePagination, type SimplePaginationProps, SimpleRadioGroup, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, type SlideOverProps, Slider, type SliderProps, SmartImage, type Song, type Sorter, StatusBadge, StepProgress, type StickerAssetVariant, type StickerImageUrlOptions, StickerPicker, type StickerPickerProps, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableHeaderProps, type TableProps, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type TextareaProps, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, ToggleGroup, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UnderverseConfigProvider, type UnderverseConfigProviderProps, type UnderverseLocale, UnderverseNextIntlProvider, UnderverseProvider, type UnderverseProviderProps, type UnderverseUIConfig, type UploadedFile, type UploadedImage, type UseOverlayScrollbarTargetOptions, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VIETNAM_HOLIDAYS, VerticalTabs, Watermark, type WatermarkProps, cn, cn as cnLocal, getAnimationStyles, getEmojiImageUrl, getEmojiUnifiedCode, getStickerImageUrl, getUnderverseMessages, injectAnimationStyles, loading, setEmojiBaseUrl, setStickerBaseUrl, shadcnAnimationStyles, underverseMessages, useFormField, useGlobalI18n, useOverlayScrollbarTarget, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations, useUnderverseUIConfig };
|
package/dist/index.js
CHANGED
|
@@ -15612,6 +15612,158 @@ var RadioGroupItem = React36.forwardRef(
|
|
|
15612
15612
|
}
|
|
15613
15613
|
);
|
|
15614
15614
|
RadioGroupItem.displayName = "RadioGroupItem";
|
|
15615
|
+
var SimpleRadioGroup = ({
|
|
15616
|
+
items,
|
|
15617
|
+
value,
|
|
15618
|
+
defaultValue,
|
|
15619
|
+
onValueChange,
|
|
15620
|
+
name,
|
|
15621
|
+
disabled = false,
|
|
15622
|
+
orientation = "vertical",
|
|
15623
|
+
size = "md",
|
|
15624
|
+
variant = "default",
|
|
15625
|
+
borderMode,
|
|
15626
|
+
className,
|
|
15627
|
+
required = false,
|
|
15628
|
+
error = false,
|
|
15629
|
+
errorMessage
|
|
15630
|
+
}) => {
|
|
15631
|
+
return /* @__PURE__ */ jsx40(
|
|
15632
|
+
RadioGroup,
|
|
15633
|
+
{
|
|
15634
|
+
value,
|
|
15635
|
+
defaultValue,
|
|
15636
|
+
onValueChange,
|
|
15637
|
+
name,
|
|
15638
|
+
disabled,
|
|
15639
|
+
orientation,
|
|
15640
|
+
size,
|
|
15641
|
+
variant,
|
|
15642
|
+
borderMode,
|
|
15643
|
+
className,
|
|
15644
|
+
required,
|
|
15645
|
+
error,
|
|
15646
|
+
errorMessage,
|
|
15647
|
+
children: items.map((item) => /* @__PURE__ */ jsx40(
|
|
15648
|
+
RadioGroupItem,
|
|
15649
|
+
{
|
|
15650
|
+
value: item.value,
|
|
15651
|
+
label: item.label,
|
|
15652
|
+
description: item.description,
|
|
15653
|
+
disabled: item.disabled,
|
|
15654
|
+
icon: item.icon
|
|
15655
|
+
},
|
|
15656
|
+
item.value
|
|
15657
|
+
))
|
|
15658
|
+
}
|
|
15659
|
+
);
|
|
15660
|
+
};
|
|
15661
|
+
var RadioButtonGroup = ({
|
|
15662
|
+
items,
|
|
15663
|
+
value,
|
|
15664
|
+
defaultValue,
|
|
15665
|
+
onValueChange,
|
|
15666
|
+
name,
|
|
15667
|
+
disabled = false,
|
|
15668
|
+
size = "md",
|
|
15669
|
+
variant = "default",
|
|
15670
|
+
borderMode,
|
|
15671
|
+
className,
|
|
15672
|
+
fullWidth = false
|
|
15673
|
+
}) => {
|
|
15674
|
+
const globalConfig = useUnderverseUIConfig();
|
|
15675
|
+
const resolvedBorderMode = borderMode ?? globalConfig.input?.borderMode ?? globalConfig.borderMode ?? "full";
|
|
15676
|
+
const [internalValue, setInternalValue] = React36.useState(defaultValue || "");
|
|
15677
|
+
const isControlled = value !== void 0;
|
|
15678
|
+
const currentValue = isControlled ? value : internalValue;
|
|
15679
|
+
const handleValueChange = (newValue) => {
|
|
15680
|
+
if (!disabled) {
|
|
15681
|
+
if (!isControlled) {
|
|
15682
|
+
setInternalValue(newValue);
|
|
15683
|
+
}
|
|
15684
|
+
onValueChange?.(newValue);
|
|
15685
|
+
}
|
|
15686
|
+
};
|
|
15687
|
+
const sizeClasses2 = {
|
|
15688
|
+
sm: "px-3 py-1.5 text-xs",
|
|
15689
|
+
md: "px-4 py-2 text-sm",
|
|
15690
|
+
lg: "px-6 py-3 text-base"
|
|
15691
|
+
};
|
|
15692
|
+
const variantClasses3 = {
|
|
15693
|
+
default: {
|
|
15694
|
+
container: "bg-muted p-1",
|
|
15695
|
+
base: "bg-transparent hover:bg-background/50",
|
|
15696
|
+
selected: "bg-background text-foreground shadow-sm"
|
|
15697
|
+
},
|
|
15698
|
+
outline: {
|
|
15699
|
+
container: "border border-border/50 overflow-hidden",
|
|
15700
|
+
base: "bg-background border-r border-border/50 hover:bg-accent",
|
|
15701
|
+
selected: "bg-primary text-primary-foreground border-primary"
|
|
15702
|
+
},
|
|
15703
|
+
solid: {
|
|
15704
|
+
container: "border border-border/50 overflow-hidden",
|
|
15705
|
+
base: "bg-background hover:bg-accent",
|
|
15706
|
+
selected: "bg-primary text-primary-foreground"
|
|
15707
|
+
},
|
|
15708
|
+
primary: {
|
|
15709
|
+
container: "bg-muted py-1 px-2",
|
|
15710
|
+
base: "bg-transparent hover:bg-background/50",
|
|
15711
|
+
selected: "bg-primary text-primary-foreground shadow-sm"
|
|
15712
|
+
}
|
|
15713
|
+
};
|
|
15714
|
+
const uniqueId = React36.useId();
|
|
15715
|
+
const radioName = name || `radio-button-group-${uniqueId}`;
|
|
15716
|
+
return /* @__PURE__ */ jsx40("div", { className: cn("inline-flex", variantClasses3[variant].container, getBorderRadiusClass(resolvedBorderMode), fullWidth && "w-full", className), role: "radiogroup", children: items.map((item, index) => {
|
|
15717
|
+
const isSelected = currentValue === item.value;
|
|
15718
|
+
const isDisabled = item.disabled || disabled;
|
|
15719
|
+
const Icon = item.icon;
|
|
15720
|
+
const isLast = index === items.length - 1;
|
|
15721
|
+
return /* @__PURE__ */ jsxs33(
|
|
15722
|
+
"button",
|
|
15723
|
+
{
|
|
15724
|
+
type: "button",
|
|
15725
|
+
disabled: isDisabled,
|
|
15726
|
+
role: "radio",
|
|
15727
|
+
"aria-checked": isSelected,
|
|
15728
|
+
className: cn(
|
|
15729
|
+
"relative inline-flex items-center justify-center gap-2 font-medium transition-all duration-200",
|
|
15730
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
|
|
15731
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
15732
|
+
sizeClasses2[size],
|
|
15733
|
+
isSelected ? variantClasses3[variant].selected : variantClasses3[variant].base,
|
|
15734
|
+
variant === "outline" && !isLast && "border-r border-border/50",
|
|
15735
|
+
variant === "default" && getBorderRadiusClass(resolvedBorderMode),
|
|
15736
|
+
fullWidth && "flex-1"
|
|
15737
|
+
),
|
|
15738
|
+
onClick: () => handleValueChange(item.value),
|
|
15739
|
+
children: [
|
|
15740
|
+
Icon && /* @__PURE__ */ jsx40(Icon, { className: "w-4 h-4" }),
|
|
15741
|
+
item.label,
|
|
15742
|
+
/* @__PURE__ */ jsx40(
|
|
15743
|
+
"input",
|
|
15744
|
+
{
|
|
15745
|
+
type: "radio",
|
|
15746
|
+
name: radioName,
|
|
15747
|
+
value: item.value,
|
|
15748
|
+
checked: isSelected,
|
|
15749
|
+
onChange: () => {
|
|
15750
|
+
},
|
|
15751
|
+
className: "sr-only",
|
|
15752
|
+
tabIndex: -1
|
|
15753
|
+
}
|
|
15754
|
+
)
|
|
15755
|
+
]
|
|
15756
|
+
},
|
|
15757
|
+
item.value
|
|
15758
|
+
);
|
|
15759
|
+
}) });
|
|
15760
|
+
};
|
|
15761
|
+
var SegmentedControl = (props) => {
|
|
15762
|
+
return /* @__PURE__ */ jsx40(RadioButtonGroup, { ...props, variant: "default" });
|
|
15763
|
+
};
|
|
15764
|
+
var ToggleGroup = (props) => {
|
|
15765
|
+
return /* @__PURE__ */ jsx40(RadioButtonGroup, { ...props, variant: "outline" });
|
|
15766
|
+
};
|
|
15615
15767
|
|
|
15616
15768
|
// src/components/Slider.tsx
|
|
15617
15769
|
import * as React37 from "react";
|
|
@@ -23448,17 +23600,20 @@ export {
|
|
|
23448
23600
|
Popover,
|
|
23449
23601
|
Progress,
|
|
23450
23602
|
PulseBadge,
|
|
23603
|
+
RadioButtonGroup,
|
|
23451
23604
|
RadioGroup,
|
|
23452
23605
|
RadioGroupItem,
|
|
23453
23606
|
SIZE_STYLES_BTN,
|
|
23454
23607
|
ScrollArea,
|
|
23455
23608
|
SearchInput,
|
|
23456
23609
|
Section_default as Section,
|
|
23610
|
+
SegmentedControl,
|
|
23457
23611
|
SegmentedProgress,
|
|
23458
23612
|
SelectDropdown,
|
|
23459
23613
|
Sheet,
|
|
23460
23614
|
SidebarSheet,
|
|
23461
23615
|
SimplePagination,
|
|
23616
|
+
SimpleRadioGroup,
|
|
23462
23617
|
SimpleTabs,
|
|
23463
23618
|
Skeleton_default as Skeleton,
|
|
23464
23619
|
SkeletonAvatar,
|
|
@@ -23495,6 +23650,7 @@ export {
|
|
|
23495
23650
|
Timeline_default as Timeline,
|
|
23496
23651
|
TimelineItem,
|
|
23497
23652
|
Toast_default as ToastProvider,
|
|
23653
|
+
ToggleGroup,
|
|
23498
23654
|
Tooltip,
|
|
23499
23655
|
TranslationProvider,
|
|
23500
23656
|
UEditor_default as UEditor,
|