@underverse-ui/underverse 0.2.59 → 0.2.61
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 +555 -224
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -4
- package/dist/index.d.ts +36 -4
- package/dist/index.js +594 -263
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -626,13 +626,21 @@ interface DropdownMenuProps {
|
|
|
626
626
|
}>;
|
|
627
627
|
}
|
|
628
628
|
declare const DropdownMenu: React__default.FC<DropdownMenuProps>;
|
|
629
|
-
|
|
630
|
-
children
|
|
629
|
+
interface DropdownMenuItemProps {
|
|
630
|
+
children?: React__default.ReactNode;
|
|
631
|
+
label?: string;
|
|
632
|
+
description?: string;
|
|
633
|
+
icon?: React__default.ComponentType<{
|
|
634
|
+
className?: string;
|
|
635
|
+
}>;
|
|
631
636
|
onClick?: () => void;
|
|
632
637
|
disabled?: boolean;
|
|
633
638
|
destructive?: boolean;
|
|
639
|
+
active?: boolean;
|
|
640
|
+
shortcut?: string;
|
|
634
641
|
className?: string;
|
|
635
|
-
}
|
|
642
|
+
}
|
|
643
|
+
declare const DropdownMenuItem: React__default.FC<DropdownMenuItemProps>;
|
|
636
644
|
declare const DropdownMenuSeparator: React__default.FC<{
|
|
637
645
|
className?: string;
|
|
638
646
|
}>;
|
|
@@ -894,6 +902,9 @@ declare function Calendar({ month, defaultMonth, onMonthChange, value, defaultVa
|
|
|
894
902
|
type ComboboxOption = string | {
|
|
895
903
|
label: string;
|
|
896
904
|
value: any;
|
|
905
|
+
icon?: React$1.ReactNode;
|
|
906
|
+
description?: string;
|
|
907
|
+
disabled?: boolean;
|
|
897
908
|
};
|
|
898
909
|
interface ComboboxProps {
|
|
899
910
|
id?: string;
|
|
@@ -904,7 +915,7 @@ interface ComboboxProps {
|
|
|
904
915
|
className?: string;
|
|
905
916
|
disabled?: boolean;
|
|
906
917
|
size?: "sm" | "md" | "lg";
|
|
907
|
-
variant?: "default" | "outline" | "ghost";
|
|
918
|
+
variant?: "default" | "outline" | "ghost" | "filled";
|
|
908
919
|
allowClear?: boolean;
|
|
909
920
|
searchPlaceholder?: string;
|
|
910
921
|
emptyText?: string;
|
|
@@ -914,12 +925,23 @@ interface ComboboxProps {
|
|
|
914
925
|
fontBold?: boolean;
|
|
915
926
|
loading?: boolean;
|
|
916
927
|
loadingText?: string;
|
|
928
|
+
showSelectedIcon?: boolean;
|
|
929
|
+
maxHeight?: number;
|
|
930
|
+
groupBy?: (option: ComboboxOption) => string;
|
|
931
|
+
renderOption?: (option: ComboboxOption, isSelected: boolean) => React$1.ReactNode;
|
|
932
|
+
renderValue?: (option: ComboboxOption) => React$1.ReactNode;
|
|
933
|
+
error?: string;
|
|
934
|
+
helperText?: string;
|
|
917
935
|
}
|
|
918
936
|
declare const Combobox: React$1.FC<ComboboxProps>;
|
|
919
937
|
|
|
920
938
|
interface MultiComboboxOption {
|
|
921
939
|
value: string;
|
|
922
940
|
label: string;
|
|
941
|
+
icon?: React$1.ReactNode;
|
|
942
|
+
description?: string;
|
|
943
|
+
disabled?: boolean;
|
|
944
|
+
group?: string;
|
|
923
945
|
}
|
|
924
946
|
interface MultiComboboxProps {
|
|
925
947
|
id?: string;
|
|
@@ -927,6 +949,7 @@ interface MultiComboboxProps {
|
|
|
927
949
|
value: string[];
|
|
928
950
|
onChange: (value: string[]) => void;
|
|
929
951
|
placeholder?: string;
|
|
952
|
+
searchPlaceholder?: string;
|
|
930
953
|
maxSelected?: number;
|
|
931
954
|
disabledOptions?: string[];
|
|
932
955
|
showTags?: boolean;
|
|
@@ -934,6 +957,7 @@ interface MultiComboboxProps {
|
|
|
934
957
|
className?: string;
|
|
935
958
|
disabled?: boolean;
|
|
936
959
|
size?: "sm" | "md" | "lg";
|
|
960
|
+
variant?: "default" | "outline" | "ghost";
|
|
937
961
|
label?: string;
|
|
938
962
|
title?: string;
|
|
939
963
|
required?: boolean;
|
|
@@ -941,6 +965,14 @@ interface MultiComboboxProps {
|
|
|
941
965
|
loading?: boolean;
|
|
942
966
|
loadingText?: string;
|
|
943
967
|
emptyText?: string;
|
|
968
|
+
showSelectedIcons?: boolean;
|
|
969
|
+
maxHeight?: number;
|
|
970
|
+
groupBy?: (option: MultiComboboxOption) => string;
|
|
971
|
+
renderOption?: (option: MultiComboboxOption, isSelected: boolean) => React$1.ReactNode;
|
|
972
|
+
renderTag?: (option: MultiComboboxOption, onRemove: () => void) => React$1.ReactNode;
|
|
973
|
+
error?: string;
|
|
974
|
+
helperText?: string;
|
|
975
|
+
maxTagsVisible?: number;
|
|
944
976
|
}
|
|
945
977
|
declare const MultiCombobox: React$1.FC<MultiComboboxProps>;
|
|
946
978
|
|
package/dist/index.d.ts
CHANGED
|
@@ -626,13 +626,21 @@ interface DropdownMenuProps {
|
|
|
626
626
|
}>;
|
|
627
627
|
}
|
|
628
628
|
declare const DropdownMenu: React__default.FC<DropdownMenuProps>;
|
|
629
|
-
|
|
630
|
-
children
|
|
629
|
+
interface DropdownMenuItemProps {
|
|
630
|
+
children?: React__default.ReactNode;
|
|
631
|
+
label?: string;
|
|
632
|
+
description?: string;
|
|
633
|
+
icon?: React__default.ComponentType<{
|
|
634
|
+
className?: string;
|
|
635
|
+
}>;
|
|
631
636
|
onClick?: () => void;
|
|
632
637
|
disabled?: boolean;
|
|
633
638
|
destructive?: boolean;
|
|
639
|
+
active?: boolean;
|
|
640
|
+
shortcut?: string;
|
|
634
641
|
className?: string;
|
|
635
|
-
}
|
|
642
|
+
}
|
|
643
|
+
declare const DropdownMenuItem: React__default.FC<DropdownMenuItemProps>;
|
|
636
644
|
declare const DropdownMenuSeparator: React__default.FC<{
|
|
637
645
|
className?: string;
|
|
638
646
|
}>;
|
|
@@ -894,6 +902,9 @@ declare function Calendar({ month, defaultMonth, onMonthChange, value, defaultVa
|
|
|
894
902
|
type ComboboxOption = string | {
|
|
895
903
|
label: string;
|
|
896
904
|
value: any;
|
|
905
|
+
icon?: React$1.ReactNode;
|
|
906
|
+
description?: string;
|
|
907
|
+
disabled?: boolean;
|
|
897
908
|
};
|
|
898
909
|
interface ComboboxProps {
|
|
899
910
|
id?: string;
|
|
@@ -904,7 +915,7 @@ interface ComboboxProps {
|
|
|
904
915
|
className?: string;
|
|
905
916
|
disabled?: boolean;
|
|
906
917
|
size?: "sm" | "md" | "lg";
|
|
907
|
-
variant?: "default" | "outline" | "ghost";
|
|
918
|
+
variant?: "default" | "outline" | "ghost" | "filled";
|
|
908
919
|
allowClear?: boolean;
|
|
909
920
|
searchPlaceholder?: string;
|
|
910
921
|
emptyText?: string;
|
|
@@ -914,12 +925,23 @@ interface ComboboxProps {
|
|
|
914
925
|
fontBold?: boolean;
|
|
915
926
|
loading?: boolean;
|
|
916
927
|
loadingText?: string;
|
|
928
|
+
showSelectedIcon?: boolean;
|
|
929
|
+
maxHeight?: number;
|
|
930
|
+
groupBy?: (option: ComboboxOption) => string;
|
|
931
|
+
renderOption?: (option: ComboboxOption, isSelected: boolean) => React$1.ReactNode;
|
|
932
|
+
renderValue?: (option: ComboboxOption) => React$1.ReactNode;
|
|
933
|
+
error?: string;
|
|
934
|
+
helperText?: string;
|
|
917
935
|
}
|
|
918
936
|
declare const Combobox: React$1.FC<ComboboxProps>;
|
|
919
937
|
|
|
920
938
|
interface MultiComboboxOption {
|
|
921
939
|
value: string;
|
|
922
940
|
label: string;
|
|
941
|
+
icon?: React$1.ReactNode;
|
|
942
|
+
description?: string;
|
|
943
|
+
disabled?: boolean;
|
|
944
|
+
group?: string;
|
|
923
945
|
}
|
|
924
946
|
interface MultiComboboxProps {
|
|
925
947
|
id?: string;
|
|
@@ -927,6 +949,7 @@ interface MultiComboboxProps {
|
|
|
927
949
|
value: string[];
|
|
928
950
|
onChange: (value: string[]) => void;
|
|
929
951
|
placeholder?: string;
|
|
952
|
+
searchPlaceholder?: string;
|
|
930
953
|
maxSelected?: number;
|
|
931
954
|
disabledOptions?: string[];
|
|
932
955
|
showTags?: boolean;
|
|
@@ -934,6 +957,7 @@ interface MultiComboboxProps {
|
|
|
934
957
|
className?: string;
|
|
935
958
|
disabled?: boolean;
|
|
936
959
|
size?: "sm" | "md" | "lg";
|
|
960
|
+
variant?: "default" | "outline" | "ghost";
|
|
937
961
|
label?: string;
|
|
938
962
|
title?: string;
|
|
939
963
|
required?: boolean;
|
|
@@ -941,6 +965,14 @@ interface MultiComboboxProps {
|
|
|
941
965
|
loading?: boolean;
|
|
942
966
|
loadingText?: string;
|
|
943
967
|
emptyText?: string;
|
|
968
|
+
showSelectedIcons?: boolean;
|
|
969
|
+
maxHeight?: number;
|
|
970
|
+
groupBy?: (option: MultiComboboxOption) => string;
|
|
971
|
+
renderOption?: (option: MultiComboboxOption, isSelected: boolean) => React$1.ReactNode;
|
|
972
|
+
renderTag?: (option: MultiComboboxOption, onRemove: () => void) => React$1.ReactNode;
|
|
973
|
+
error?: string;
|
|
974
|
+
helperText?: string;
|
|
975
|
+
maxTagsVisible?: number;
|
|
944
976
|
}
|
|
945
977
|
declare const MultiCombobox: React$1.FC<MultiComboboxProps>;
|
|
946
978
|
|