@underverse-ui/underverse 0.2.75 → 0.2.77
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 +1909 -155
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -3
- package/dist/index.d.ts +34 -3
- package/dist/index.js +1974 -155
- package/dist/index.js.map +1 -1
- package/package.json +49 -2
package/dist/index.d.cts
CHANGED
|
@@ -1658,9 +1658,12 @@ type FilterType = "text" | "select" | "date";
|
|
|
1658
1658
|
type DataTableColumn<T> = {
|
|
1659
1659
|
key: string;
|
|
1660
1660
|
title: React__default.ReactNode;
|
|
1661
|
+
/** Multi-row header support: Columns can be grouped by defining children.
|
|
1662
|
+
* Group columns (with children) are header-only and don't render data.
|
|
1663
|
+
* Leaf columns (without children) render data and support sort/filter/render.
|
|
1664
|
+
*/
|
|
1665
|
+
children?: DataTableColumn<T>[];
|
|
1661
1666
|
dataIndex?: keyof T | string;
|
|
1662
|
-
width?: number | string;
|
|
1663
|
-
align?: "left" | "center" | "right";
|
|
1664
1667
|
sortable?: boolean;
|
|
1665
1668
|
filter?: {
|
|
1666
1669
|
type: FilterType;
|
|
@@ -1668,9 +1671,15 @@ type DataTableColumn<T> = {
|
|
|
1668
1671
|
placeholder?: string;
|
|
1669
1672
|
};
|
|
1670
1673
|
render?: (value: any, record: T, index: number) => React__default.ReactNode;
|
|
1674
|
+
width?: number | string;
|
|
1675
|
+
align?: "left" | "center" | "right";
|
|
1671
1676
|
visible?: boolean;
|
|
1672
1677
|
/** Cố định cột bên trái hoặc phải khi cuộn ngang */
|
|
1673
1678
|
fixed?: "left" | "right";
|
|
1679
|
+
/** Advanced: Override auto-calculated colspan (defaults to number of leaf descendants) */
|
|
1680
|
+
colSpan?: number;
|
|
1681
|
+
/** Advanced: Override auto-calculated rowspan (defaults based on depth) */
|
|
1682
|
+
rowSpan?: number;
|
|
1674
1683
|
};
|
|
1675
1684
|
type Sorter = {
|
|
1676
1685
|
key: string;
|
|
@@ -2163,6 +2172,28 @@ declare function useSmartTranslations(namespace: string): (key: string) => strin
|
|
|
2163
2172
|
*/
|
|
2164
2173
|
declare function useSmartLocale(): Locale$1;
|
|
2165
2174
|
|
|
2175
|
+
interface UEditorProps {
|
|
2176
|
+
content?: string;
|
|
2177
|
+
onChange?: (content: string) => void;
|
|
2178
|
+
onHtmlChange?: (html: string) => void;
|
|
2179
|
+
onJsonChange?: (json: object) => void;
|
|
2180
|
+
placeholder?: string;
|
|
2181
|
+
className?: string;
|
|
2182
|
+
editable?: boolean;
|
|
2183
|
+
autofocus?: boolean;
|
|
2184
|
+
showToolbar?: boolean;
|
|
2185
|
+
showBubbleMenu?: boolean;
|
|
2186
|
+
showFloatingMenu?: boolean;
|
|
2187
|
+
showCharacterCount?: boolean;
|
|
2188
|
+
maxCharacters?: number;
|
|
2189
|
+
minHeight?: number | string;
|
|
2190
|
+
maxHeight?: number | string;
|
|
2191
|
+
variant?: "default" | "minimal" | "notion";
|
|
2192
|
+
}
|
|
2193
|
+
type UEditorVariant = NonNullable<UEditorProps["variant"]>;
|
|
2194
|
+
|
|
2195
|
+
declare const UEditor: ({ content, onChange, onHtmlChange, onJsonChange, placeholder, className, editable, autofocus, showToolbar, showBubbleMenu, showFloatingMenu, showCharacterCount, maxCharacters, minHeight, maxHeight, variant, }: UEditorProps) => react_jsx_runtime.JSX.Element;
|
|
2196
|
+
|
|
2166
2197
|
declare const underverseMessages: {
|
|
2167
2198
|
readonly en: {
|
|
2168
2199
|
Common: {
|
|
@@ -2748,4 +2779,4 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
2748
2779
|
};
|
|
2749
2780
|
};
|
|
2750
2781
|
|
|
2751
|
-
export { AccessDenied, Alert, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, Avatar, Badge, Badge as BadgeBase, BarChart, type BarChartDataPoint, type BarChartProps, BatteryProgress, BottomSheet, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, Card, Carousel, CategoryTreeSelect, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxProps, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableQuery, DatePicker, type DatePickerProps, DateRangePicker, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, FallingIcons, FloatingContacts, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, GaugeChart, type GaugeChartProps, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, LineChart, type LineChartDataPoint, type LineChartProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type Locale$1 as Locale, MiniProgress, Modal, MultiCombobox, type MultiComboboxProps, NotificationBadge, NotificationModal, NumberInput, OverlayControls, PageLoading, Pagination, type PaginationProps, PasswordInput, PieChart, type PieChartDataPoint, type PieChartProps, PillTabs, Popover, Progress, PulseBadge, RadarChart, type RadarChartDataPoint, type RadarChartProps, type RadarChartSeries, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, SearchInput, Section, SegmentedProgress, SelectDropdown, Sheet, SidebarSheet, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, Slider, SmartImage, type Sorter, Sparkline, type SparklineDataPoint, type SparklineProps, StatusBadge, StepProgress, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, type UnderverseLocale, UnderverseProvider, type UnderverseProviderProps, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VerticalTabs, Watermark, type WatermarkProps, cn$1 as cn, cn as cnLocal, getAnimationStyles, getUnderverseMessages, injectAnimationStyles, shadcnAnimationStyles, underverseMessages, useFormField, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations };
|
|
2782
|
+
export { AccessDenied, Alert, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, Avatar, Badge, Badge as BadgeBase, BarChart, type BarChartDataPoint, type BarChartProps, BatteryProgress, BottomSheet, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, Card, Carousel, CategoryTreeSelect, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxProps, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableQuery, DatePicker, type DatePickerProps, DateRangePicker, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, FallingIcons, FloatingContacts, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, GaugeChart, type GaugeChartProps, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, LineChart, type LineChartDataPoint, type LineChartProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type Locale$1 as Locale, MiniProgress, Modal, MultiCombobox, type MultiComboboxProps, NotificationBadge, NotificationModal, NumberInput, OverlayControls, PageLoading, Pagination, type PaginationProps, PasswordInput, PieChart, type PieChartDataPoint, type PieChartProps, PillTabs, Popover, Progress, PulseBadge, RadarChart, type RadarChartDataPoint, type RadarChartProps, type RadarChartSeries, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, SearchInput, Section, SegmentedProgress, SelectDropdown, Sheet, SidebarSheet, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, Slider, SmartImage, type Sorter, Sparkline, type SparklineDataPoint, type SparklineProps, StatusBadge, StepProgress, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UEditor, type UEditorProps, type UEditorVariant, type UnderverseLocale, UnderverseProvider, type UnderverseProviderProps, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VerticalTabs, Watermark, type WatermarkProps, cn$1 as cn, cn as cnLocal, getAnimationStyles, getUnderverseMessages, injectAnimationStyles, shadcnAnimationStyles, underverseMessages, useFormField, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations };
|
package/dist/index.d.ts
CHANGED
|
@@ -1658,9 +1658,12 @@ type FilterType = "text" | "select" | "date";
|
|
|
1658
1658
|
type DataTableColumn<T> = {
|
|
1659
1659
|
key: string;
|
|
1660
1660
|
title: React__default.ReactNode;
|
|
1661
|
+
/** Multi-row header support: Columns can be grouped by defining children.
|
|
1662
|
+
* Group columns (with children) are header-only and don't render data.
|
|
1663
|
+
* Leaf columns (without children) render data and support sort/filter/render.
|
|
1664
|
+
*/
|
|
1665
|
+
children?: DataTableColumn<T>[];
|
|
1661
1666
|
dataIndex?: keyof T | string;
|
|
1662
|
-
width?: number | string;
|
|
1663
|
-
align?: "left" | "center" | "right";
|
|
1664
1667
|
sortable?: boolean;
|
|
1665
1668
|
filter?: {
|
|
1666
1669
|
type: FilterType;
|
|
@@ -1668,9 +1671,15 @@ type DataTableColumn<T> = {
|
|
|
1668
1671
|
placeholder?: string;
|
|
1669
1672
|
};
|
|
1670
1673
|
render?: (value: any, record: T, index: number) => React__default.ReactNode;
|
|
1674
|
+
width?: number | string;
|
|
1675
|
+
align?: "left" | "center" | "right";
|
|
1671
1676
|
visible?: boolean;
|
|
1672
1677
|
/** Cố định cột bên trái hoặc phải khi cuộn ngang */
|
|
1673
1678
|
fixed?: "left" | "right";
|
|
1679
|
+
/** Advanced: Override auto-calculated colspan (defaults to number of leaf descendants) */
|
|
1680
|
+
colSpan?: number;
|
|
1681
|
+
/** Advanced: Override auto-calculated rowspan (defaults based on depth) */
|
|
1682
|
+
rowSpan?: number;
|
|
1674
1683
|
};
|
|
1675
1684
|
type Sorter = {
|
|
1676
1685
|
key: string;
|
|
@@ -2163,6 +2172,28 @@ declare function useSmartTranslations(namespace: string): (key: string) => strin
|
|
|
2163
2172
|
*/
|
|
2164
2173
|
declare function useSmartLocale(): Locale$1;
|
|
2165
2174
|
|
|
2175
|
+
interface UEditorProps {
|
|
2176
|
+
content?: string;
|
|
2177
|
+
onChange?: (content: string) => void;
|
|
2178
|
+
onHtmlChange?: (html: string) => void;
|
|
2179
|
+
onJsonChange?: (json: object) => void;
|
|
2180
|
+
placeholder?: string;
|
|
2181
|
+
className?: string;
|
|
2182
|
+
editable?: boolean;
|
|
2183
|
+
autofocus?: boolean;
|
|
2184
|
+
showToolbar?: boolean;
|
|
2185
|
+
showBubbleMenu?: boolean;
|
|
2186
|
+
showFloatingMenu?: boolean;
|
|
2187
|
+
showCharacterCount?: boolean;
|
|
2188
|
+
maxCharacters?: number;
|
|
2189
|
+
minHeight?: number | string;
|
|
2190
|
+
maxHeight?: number | string;
|
|
2191
|
+
variant?: "default" | "minimal" | "notion";
|
|
2192
|
+
}
|
|
2193
|
+
type UEditorVariant = NonNullable<UEditorProps["variant"]>;
|
|
2194
|
+
|
|
2195
|
+
declare const UEditor: ({ content, onChange, onHtmlChange, onJsonChange, placeholder, className, editable, autofocus, showToolbar, showBubbleMenu, showFloatingMenu, showCharacterCount, maxCharacters, minHeight, maxHeight, variant, }: UEditorProps) => react_jsx_runtime.JSX.Element;
|
|
2196
|
+
|
|
2166
2197
|
declare const underverseMessages: {
|
|
2167
2198
|
readonly en: {
|
|
2168
2199
|
Common: {
|
|
@@ -2748,4 +2779,4 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
2748
2779
|
};
|
|
2749
2780
|
};
|
|
2750
2781
|
|
|
2751
|
-
export { AccessDenied, Alert, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, Avatar, Badge, Badge as BadgeBase, BarChart, type BarChartDataPoint, type BarChartProps, BatteryProgress, BottomSheet, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, Card, Carousel, CategoryTreeSelect, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxProps, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableQuery, DatePicker, type DatePickerProps, DateRangePicker, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, FallingIcons, FloatingContacts, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, GaugeChart, type GaugeChartProps, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, LineChart, type LineChartDataPoint, type LineChartProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type Locale$1 as Locale, MiniProgress, Modal, MultiCombobox, type MultiComboboxProps, NotificationBadge, NotificationModal, NumberInput, OverlayControls, PageLoading, Pagination, type PaginationProps, PasswordInput, PieChart, type PieChartDataPoint, type PieChartProps, PillTabs, Popover, Progress, PulseBadge, RadarChart, type RadarChartDataPoint, type RadarChartProps, type RadarChartSeries, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, SearchInput, Section, SegmentedProgress, SelectDropdown, Sheet, SidebarSheet, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, Slider, SmartImage, type Sorter, Sparkline, type SparklineDataPoint, type SparklineProps, StatusBadge, StepProgress, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, type UnderverseLocale, UnderverseProvider, type UnderverseProviderProps, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VerticalTabs, Watermark, type WatermarkProps, cn$1 as cn, cn as cnLocal, getAnimationStyles, getUnderverseMessages, injectAnimationStyles, shadcnAnimationStyles, underverseMessages, useFormField, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations };
|
|
2782
|
+
export { AccessDenied, Alert, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, Avatar, Badge, Badge as BadgeBase, BarChart, type BarChartDataPoint, type BarChartProps, BatteryProgress, BottomSheet, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, Card, Carousel, CategoryTreeSelect, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxProps, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableQuery, DatePicker, type DatePickerProps, DateRangePicker, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, FallingIcons, FloatingContacts, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, GaugeChart, type GaugeChartProps, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, LineChart, type LineChartDataPoint, type LineChartProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type Locale$1 as Locale, MiniProgress, Modal, MultiCombobox, type MultiComboboxProps, NotificationBadge, NotificationModal, NumberInput, OverlayControls, PageLoading, Pagination, type PaginationProps, PasswordInput, PieChart, type PieChartDataPoint, type PieChartProps, PillTabs, Popover, Progress, PulseBadge, RadarChart, type RadarChartDataPoint, type RadarChartProps, type RadarChartSeries, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, SearchInput, Section, SegmentedProgress, SelectDropdown, Sheet, SidebarSheet, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, Slider, SmartImage, type Sorter, Sparkline, type SparklineDataPoint, type SparklineProps, StatusBadge, StepProgress, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UEditor, type UEditorProps, type UEditorVariant, type UnderverseLocale, UnderverseProvider, type UnderverseProviderProps, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VerticalTabs, Watermark, type WatermarkProps, cn$1 as cn, cn as cnLocal, getAnimationStyles, getUnderverseMessages, injectAnimationStyles, shadcnAnimationStyles, underverseMessages, useFormField, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations };
|