@sustaina/shared-ui 1.45.0 → 1.47.0
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 +44 -5
- package/dist/index.d.ts +44 -5
- package/dist/index.js +1230 -416
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1053 -254
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -81,9 +81,17 @@ interface FieldSchemaBase<T extends FieldType> {
|
|
|
81
81
|
multiTableSearch?: boolean;
|
|
82
82
|
lookupFieldName?: string;
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
type DropdownFieldSchema = FieldSchemaBase<"dropdown"> & ({
|
|
85
85
|
options: Option[];
|
|
86
|
-
|
|
86
|
+
fetchOptions?: never;
|
|
87
|
+
noOptionsMessage?: never;
|
|
88
|
+
loadingMessage?: never;
|
|
89
|
+
} | {
|
|
90
|
+
options?: never;
|
|
91
|
+
fetchOptions: () => Promise<Option[]>;
|
|
92
|
+
noOptionsMessage?: string;
|
|
93
|
+
loadingMessage?: string;
|
|
94
|
+
});
|
|
87
95
|
interface TextFieldSchema extends FieldSchemaBase<"text"> {
|
|
88
96
|
allowRegex?: RegExp;
|
|
89
97
|
}
|
|
@@ -159,11 +167,12 @@ interface ParamsBuilder {
|
|
|
159
167
|
declare const AdvanceSearch: React__default.FC<AdvanceSearchProps>;
|
|
160
168
|
|
|
161
169
|
declare const buttonVariants: (props?: ({
|
|
170
|
+
color?: "default" | "primary" | "destructive" | "black" | "blue" | "gray" | "green" | "red" | "yellow" | "accent" | "warning" | "yellowDark" | null | undefined;
|
|
162
171
|
variant?: "cancel" | "default" | "link" | "secondary" | "destructive" | "warning" | "cottonYellowDark" | "cottonGreen" | "cottonBlue" | "cottonRed" | "cottonAccent" | "cottonYellow" | "cottonBlack" | "defaultOutline" | "destructiveOutline" | "outline" | "ghost" | "defaultSelect" | null | undefined;
|
|
163
172
|
size?: "default" | "option" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-md" | "icon-lg" | "icon-rounded" | "icon-xs-rounded" | "icon-sm-rounded" | "icon-md-rounded" | "icon-lg-rounded" | null | undefined;
|
|
164
173
|
active?: boolean | null | undefined;
|
|
165
174
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
166
|
-
declare function Button({ className, variant, size, active, asChild, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
175
|
+
declare function Button({ className, variant, size, active, color, asChild, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
167
176
|
asChild?: boolean;
|
|
168
177
|
active?: boolean;
|
|
169
178
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -753,10 +762,14 @@ declare const ApplicationLogIcon: React__default.FC<IconProps>;
|
|
|
753
762
|
|
|
754
763
|
declare const ArrowIcon: React__default.FC<IconProps>;
|
|
755
764
|
|
|
765
|
+
declare const OutlineArrowIcon: React__default.FC<IconProps>;
|
|
766
|
+
|
|
756
767
|
declare const SuiCalendarIcon: React__default.FC<IconProps>;
|
|
757
768
|
|
|
758
769
|
declare const SuiCalendarIcon2: React__default.FC<IconProps>;
|
|
759
770
|
|
|
771
|
+
declare const CopyUserRightsIcon: React__default.FC<IconProps>;
|
|
772
|
+
|
|
760
773
|
declare const SuiCheckIcon: React__default.FC<IconProps>;
|
|
761
774
|
|
|
762
775
|
declare const CustomActionStatusIcon: React__default.FC<IconProps>;
|
|
@@ -767,6 +780,8 @@ declare const DashboardIcon: React__default.FC<IconProps>;
|
|
|
767
780
|
|
|
768
781
|
declare const DataEntryIcon: React__default.FC<IconProps>;
|
|
769
782
|
|
|
783
|
+
declare const FactoryIcon: React__default.FC<IconProps>;
|
|
784
|
+
|
|
770
785
|
declare const DecreaseIcon: React__default.FC<IconProps>;
|
|
771
786
|
|
|
772
787
|
declare const SuiDotsVerticalIcon: React__default.FC<IconProps>;
|
|
@@ -779,6 +794,10 @@ declare const SuiFilterIcon: React__default.FC<IconProps>;
|
|
|
779
794
|
|
|
780
795
|
declare const FiltersIcon: React__default.FC<IconProps>;
|
|
781
796
|
|
|
797
|
+
declare const FolderIcon: React__default.FC<IconProps>;
|
|
798
|
+
|
|
799
|
+
declare const CardIcon: React__default.FC<IconProps>;
|
|
800
|
+
|
|
782
801
|
declare const HamburgerMenuIcon: React__default.FC<IconProps>;
|
|
783
802
|
|
|
784
803
|
declare const HandymanIcon: React__default.FC<IconProps>;
|
|
@@ -797,12 +816,18 @@ declare const ManagementIcon: React__default.FC<IconProps>;
|
|
|
797
816
|
|
|
798
817
|
declare const MenuIcon: React__default.FC<IconProps>;
|
|
799
818
|
|
|
819
|
+
declare const SearchIcon: React__default.FC<IconProps>;
|
|
820
|
+
|
|
800
821
|
declare const MessageIcon: React__default.FC<IconProps>;
|
|
801
822
|
|
|
823
|
+
declare const MessageIconInverse: React__default.FC<IconProps>;
|
|
824
|
+
|
|
802
825
|
declare const NotFoundIcon: React__default.FC<IconProps>;
|
|
803
826
|
|
|
804
827
|
declare const PlusIcon: React__default.FC<IconProps>;
|
|
805
828
|
|
|
829
|
+
declare const PlusSearchIcon: React__default.FC<IconProps>;
|
|
830
|
+
|
|
806
831
|
declare const PowerIcon: React__default.FC<IconProps>;
|
|
807
832
|
|
|
808
833
|
declare const QuestionIcon: React__default.FC<IconProps>;
|
|
@@ -813,6 +838,8 @@ declare const SuiSettingIcon: React__default.FC<IconProps>;
|
|
|
813
838
|
|
|
814
839
|
declare const SetupIcon: React__default.FC<IconProps>;
|
|
815
840
|
|
|
841
|
+
declare const TransferUserRightsIcon: React__default.FC<IconProps>;
|
|
842
|
+
|
|
816
843
|
declare const ToolBoxIcon: React__default.FC<IconProps>;
|
|
817
844
|
|
|
818
845
|
declare const TrashIcon: React__default.FC<IconProps>;
|
|
@@ -825,13 +852,23 @@ declare const UserFriendIcon: React__default.FC<IconProps>;
|
|
|
825
852
|
|
|
826
853
|
declare const UserGroupIcon: React__default.FC<IconProps>;
|
|
827
854
|
|
|
855
|
+
declare const UserNameIcon: React__default.FC<IconProps>;
|
|
856
|
+
|
|
857
|
+
declare const UserActiveIcon: React__default.FC<IconProps>;
|
|
858
|
+
|
|
859
|
+
declare const UserInactiveIcon: React__default.FC<IconProps>;
|
|
860
|
+
|
|
828
861
|
declare const UserProtectIcon: React__default.FC<IconProps>;
|
|
829
862
|
|
|
830
863
|
declare const UserIcon: React__default.FC<IconProps>;
|
|
831
864
|
|
|
832
865
|
declare const SuiWarningIcon: React__default.FC<IconProps>;
|
|
833
866
|
|
|
834
|
-
declare const
|
|
867
|
+
declare const TagListViewIcon: React__default.FC<IconProps>;
|
|
868
|
+
|
|
869
|
+
declare const EllipsisBoxIcon: React__default.FC<IconProps>;
|
|
870
|
+
|
|
871
|
+
declare const ImagePlaceholderIcon: React__default.FC<IconProps>;
|
|
835
872
|
|
|
836
873
|
type ImageLoaderProps = {
|
|
837
874
|
src: string;
|
|
@@ -1097,6 +1134,8 @@ declare const RichText: React$1.ForwardRefExoticComponent<{
|
|
|
1097
1134
|
autoFocus?: boolean;
|
|
1098
1135
|
onImageUpload?: (file: File) => Promise<ImageUploadResult>;
|
|
1099
1136
|
onImageUploadError?: (error: unknown) => void;
|
|
1137
|
+
onImageDialogUpload?: (file: File) => Promise<string>;
|
|
1138
|
+
onImageDialogUploadError?: (error: unknown) => void;
|
|
1100
1139
|
acceptImageMimeTypes?: string;
|
|
1101
1140
|
allowImageUrlInsert?: boolean;
|
|
1102
1141
|
} & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -1777,4 +1816,4 @@ type DeepPartialNullish<T> = T extends BrowserNativeObject ? T | null : {
|
|
|
1777
1816
|
[K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] | null : DeepPartialNullish<T[K]> | null;
|
|
1778
1817
|
};
|
|
1779
1818
|
|
|
1780
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdministrationIcon, AdvanceSearch, AnalyticsIcon, ApplicationLogIcon, ArrowIcon, AuditFooter, type AuditFooterProps, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, Combobox, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, CustomActionStatusIcon, CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DataTableVirtual, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, DecreaseIcon, type DeepPartial, type DeepPartialNullish, Dialog$1 as Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type DraftGuardState, type DraftSource, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, FactoryIcon, type FieldSchema, type FieldType, FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HamburgerMenuIcon, HandymanIcon, HeaderCell, type HeaderCellProps, HomeIcon, HomePlusIcon, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, InformationIcon, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, LookupSelect, type LookupSelectOption, type LookupSelectProps, MailIcon, MainListContainer, type MainListContainerClassNames, type MainListContainerProps, type MainListContainerSlots, ManIcon, ManagementIcon, MenuIcon, MessageIcon, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type OptionData, type Params, type PermissionString, PlusIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, type PrefixMap, PreventPageLeave, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, RightPanelContainer, type RightPanelContainerClassNames, type RightPanelContainerHeaderProps, type RightPanelContainerProps, type RightPanelContainerSlots, RoleIcon, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, TabSelect, type TabSelectItem, type TemplateKeys, Textarea, ToolBoxIcon, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, type TruncatedProps, index as UI, type UseBindRefProps, type UseControllableStateOptions, type UseControllableStateResult, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, UserAloneIcon, UserFriendIcon, UserGroupIcon, UserIcon, UserProtectIcon, VirtualizedCommand, type VirtualizedCommandFieldNames, type VirtualizedCommandOption, type VirtualizedCommandProps, type Virtualizer, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useBindRef, useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useSafeBlocker, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
|
|
1819
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdministrationIcon, AdvanceSearch, AnalyticsIcon, ApplicationLogIcon, ArrowIcon, AuditFooter, type AuditFooterProps, type Breakpoints, type BrowserNativeObject, Button, SuiCalendarIcon2 as Calendar2Icon, CardIcon, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, Combobox, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CopyUserRightsIcon, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, CustomActionStatusIcon, CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DataTableVirtual, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, DecreaseIcon, type DeepPartial, type DeepPartialNullish, Dialog$1 as Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type DraftGuardState, type DraftSource, EllipsisBoxIcon, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, FactoryIcon, type FieldSchema, type FieldType, FiltersIcon, FolderIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HamburgerMenuIcon, HandymanIcon, HeaderCell, type HeaderCellProps, HomeIcon, HomePlusIcon, Image, type ImageLoader, type ImageLoaderProps, ImagePlaceholderIcon, type ImageProps, InformationIcon, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, LookupSelect, type LookupSelectOption, type LookupSelectProps, MailIcon, MainListContainer, type MainListContainerClassNames, type MainListContainerProps, type MainListContainerSlots, ManIcon, ManagementIcon, MenuIcon, MessageIcon, MessageIconInverse, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type OptionData, OutlineArrowIcon, type Params, type PermissionString, PlusIcon, PlusSearchIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, type PrefixMap, PreventPageLeave, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, RightPanelContainer, type RightPanelContainerClassNames, type RightPanelContainerHeaderProps, type RightPanelContainerProps, type RightPanelContainerSlots, RoleIcon, type RowClickType, type RowState, type ScrollInfo, SearchIcon, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, TabSelect, type TabSelectItem, TagListViewIcon, type TemplateKeys, Textarea, ToolBoxIcon, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TransferUserRightsIcon, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, type TruncatedProps, index as UI, type UseBindRefProps, type UseControllableStateOptions, type UseControllableStateResult, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, UserActiveIcon, UserAloneIcon, UserFriendIcon, UserGroupIcon, UserIcon, UserInactiveIcon, UserNameIcon, UserProtectIcon, VirtualizedCommand, type VirtualizedCommandFieldNames, type VirtualizedCommandOption, type VirtualizedCommandProps, type Virtualizer, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useBindRef, useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useSafeBlocker, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
|
package/dist/index.d.ts
CHANGED
|
@@ -81,9 +81,17 @@ interface FieldSchemaBase<T extends FieldType> {
|
|
|
81
81
|
multiTableSearch?: boolean;
|
|
82
82
|
lookupFieldName?: string;
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
type DropdownFieldSchema = FieldSchemaBase<"dropdown"> & ({
|
|
85
85
|
options: Option[];
|
|
86
|
-
|
|
86
|
+
fetchOptions?: never;
|
|
87
|
+
noOptionsMessage?: never;
|
|
88
|
+
loadingMessage?: never;
|
|
89
|
+
} | {
|
|
90
|
+
options?: never;
|
|
91
|
+
fetchOptions: () => Promise<Option[]>;
|
|
92
|
+
noOptionsMessage?: string;
|
|
93
|
+
loadingMessage?: string;
|
|
94
|
+
});
|
|
87
95
|
interface TextFieldSchema extends FieldSchemaBase<"text"> {
|
|
88
96
|
allowRegex?: RegExp;
|
|
89
97
|
}
|
|
@@ -159,11 +167,12 @@ interface ParamsBuilder {
|
|
|
159
167
|
declare const AdvanceSearch: React__default.FC<AdvanceSearchProps>;
|
|
160
168
|
|
|
161
169
|
declare const buttonVariants: (props?: ({
|
|
170
|
+
color?: "default" | "primary" | "destructive" | "black" | "blue" | "gray" | "green" | "red" | "yellow" | "accent" | "warning" | "yellowDark" | null | undefined;
|
|
162
171
|
variant?: "cancel" | "default" | "link" | "secondary" | "destructive" | "warning" | "cottonYellowDark" | "cottonGreen" | "cottonBlue" | "cottonRed" | "cottonAccent" | "cottonYellow" | "cottonBlack" | "defaultOutline" | "destructiveOutline" | "outline" | "ghost" | "defaultSelect" | null | undefined;
|
|
163
172
|
size?: "default" | "option" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-md" | "icon-lg" | "icon-rounded" | "icon-xs-rounded" | "icon-sm-rounded" | "icon-md-rounded" | "icon-lg-rounded" | null | undefined;
|
|
164
173
|
active?: boolean | null | undefined;
|
|
165
174
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
166
|
-
declare function Button({ className, variant, size, active, asChild, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
175
|
+
declare function Button({ className, variant, size, active, color, asChild, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
167
176
|
asChild?: boolean;
|
|
168
177
|
active?: boolean;
|
|
169
178
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -753,10 +762,14 @@ declare const ApplicationLogIcon: React__default.FC<IconProps>;
|
|
|
753
762
|
|
|
754
763
|
declare const ArrowIcon: React__default.FC<IconProps>;
|
|
755
764
|
|
|
765
|
+
declare const OutlineArrowIcon: React__default.FC<IconProps>;
|
|
766
|
+
|
|
756
767
|
declare const SuiCalendarIcon: React__default.FC<IconProps>;
|
|
757
768
|
|
|
758
769
|
declare const SuiCalendarIcon2: React__default.FC<IconProps>;
|
|
759
770
|
|
|
771
|
+
declare const CopyUserRightsIcon: React__default.FC<IconProps>;
|
|
772
|
+
|
|
760
773
|
declare const SuiCheckIcon: React__default.FC<IconProps>;
|
|
761
774
|
|
|
762
775
|
declare const CustomActionStatusIcon: React__default.FC<IconProps>;
|
|
@@ -767,6 +780,8 @@ declare const DashboardIcon: React__default.FC<IconProps>;
|
|
|
767
780
|
|
|
768
781
|
declare const DataEntryIcon: React__default.FC<IconProps>;
|
|
769
782
|
|
|
783
|
+
declare const FactoryIcon: React__default.FC<IconProps>;
|
|
784
|
+
|
|
770
785
|
declare const DecreaseIcon: React__default.FC<IconProps>;
|
|
771
786
|
|
|
772
787
|
declare const SuiDotsVerticalIcon: React__default.FC<IconProps>;
|
|
@@ -779,6 +794,10 @@ declare const SuiFilterIcon: React__default.FC<IconProps>;
|
|
|
779
794
|
|
|
780
795
|
declare const FiltersIcon: React__default.FC<IconProps>;
|
|
781
796
|
|
|
797
|
+
declare const FolderIcon: React__default.FC<IconProps>;
|
|
798
|
+
|
|
799
|
+
declare const CardIcon: React__default.FC<IconProps>;
|
|
800
|
+
|
|
782
801
|
declare const HamburgerMenuIcon: React__default.FC<IconProps>;
|
|
783
802
|
|
|
784
803
|
declare const HandymanIcon: React__default.FC<IconProps>;
|
|
@@ -797,12 +816,18 @@ declare const ManagementIcon: React__default.FC<IconProps>;
|
|
|
797
816
|
|
|
798
817
|
declare const MenuIcon: React__default.FC<IconProps>;
|
|
799
818
|
|
|
819
|
+
declare const SearchIcon: React__default.FC<IconProps>;
|
|
820
|
+
|
|
800
821
|
declare const MessageIcon: React__default.FC<IconProps>;
|
|
801
822
|
|
|
823
|
+
declare const MessageIconInverse: React__default.FC<IconProps>;
|
|
824
|
+
|
|
802
825
|
declare const NotFoundIcon: React__default.FC<IconProps>;
|
|
803
826
|
|
|
804
827
|
declare const PlusIcon: React__default.FC<IconProps>;
|
|
805
828
|
|
|
829
|
+
declare const PlusSearchIcon: React__default.FC<IconProps>;
|
|
830
|
+
|
|
806
831
|
declare const PowerIcon: React__default.FC<IconProps>;
|
|
807
832
|
|
|
808
833
|
declare const QuestionIcon: React__default.FC<IconProps>;
|
|
@@ -813,6 +838,8 @@ declare const SuiSettingIcon: React__default.FC<IconProps>;
|
|
|
813
838
|
|
|
814
839
|
declare const SetupIcon: React__default.FC<IconProps>;
|
|
815
840
|
|
|
841
|
+
declare const TransferUserRightsIcon: React__default.FC<IconProps>;
|
|
842
|
+
|
|
816
843
|
declare const ToolBoxIcon: React__default.FC<IconProps>;
|
|
817
844
|
|
|
818
845
|
declare const TrashIcon: React__default.FC<IconProps>;
|
|
@@ -825,13 +852,23 @@ declare const UserFriendIcon: React__default.FC<IconProps>;
|
|
|
825
852
|
|
|
826
853
|
declare const UserGroupIcon: React__default.FC<IconProps>;
|
|
827
854
|
|
|
855
|
+
declare const UserNameIcon: React__default.FC<IconProps>;
|
|
856
|
+
|
|
857
|
+
declare const UserActiveIcon: React__default.FC<IconProps>;
|
|
858
|
+
|
|
859
|
+
declare const UserInactiveIcon: React__default.FC<IconProps>;
|
|
860
|
+
|
|
828
861
|
declare const UserProtectIcon: React__default.FC<IconProps>;
|
|
829
862
|
|
|
830
863
|
declare const UserIcon: React__default.FC<IconProps>;
|
|
831
864
|
|
|
832
865
|
declare const SuiWarningIcon: React__default.FC<IconProps>;
|
|
833
866
|
|
|
834
|
-
declare const
|
|
867
|
+
declare const TagListViewIcon: React__default.FC<IconProps>;
|
|
868
|
+
|
|
869
|
+
declare const EllipsisBoxIcon: React__default.FC<IconProps>;
|
|
870
|
+
|
|
871
|
+
declare const ImagePlaceholderIcon: React__default.FC<IconProps>;
|
|
835
872
|
|
|
836
873
|
type ImageLoaderProps = {
|
|
837
874
|
src: string;
|
|
@@ -1097,6 +1134,8 @@ declare const RichText: React$1.ForwardRefExoticComponent<{
|
|
|
1097
1134
|
autoFocus?: boolean;
|
|
1098
1135
|
onImageUpload?: (file: File) => Promise<ImageUploadResult>;
|
|
1099
1136
|
onImageUploadError?: (error: unknown) => void;
|
|
1137
|
+
onImageDialogUpload?: (file: File) => Promise<string>;
|
|
1138
|
+
onImageDialogUploadError?: (error: unknown) => void;
|
|
1100
1139
|
acceptImageMimeTypes?: string;
|
|
1101
1140
|
allowImageUrlInsert?: boolean;
|
|
1102
1141
|
} & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -1777,4 +1816,4 @@ type DeepPartialNullish<T> = T extends BrowserNativeObject ? T | null : {
|
|
|
1777
1816
|
[K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] | null : DeepPartialNullish<T[K]> | null;
|
|
1778
1817
|
};
|
|
1779
1818
|
|
|
1780
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdministrationIcon, AdvanceSearch, AnalyticsIcon, ApplicationLogIcon, ArrowIcon, AuditFooter, type AuditFooterProps, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, Combobox, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, CustomActionStatusIcon, CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DataTableVirtual, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, DecreaseIcon, type DeepPartial, type DeepPartialNullish, Dialog$1 as Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type DraftGuardState, type DraftSource, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, FactoryIcon, type FieldSchema, type FieldType, FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HamburgerMenuIcon, HandymanIcon, HeaderCell, type HeaderCellProps, HomeIcon, HomePlusIcon, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, InformationIcon, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, LookupSelect, type LookupSelectOption, type LookupSelectProps, MailIcon, MainListContainer, type MainListContainerClassNames, type MainListContainerProps, type MainListContainerSlots, ManIcon, ManagementIcon, MenuIcon, MessageIcon, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type OptionData, type Params, type PermissionString, PlusIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, type PrefixMap, PreventPageLeave, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, RightPanelContainer, type RightPanelContainerClassNames, type RightPanelContainerHeaderProps, type RightPanelContainerProps, type RightPanelContainerSlots, RoleIcon, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, TabSelect, type TabSelectItem, type TemplateKeys, Textarea, ToolBoxIcon, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, type TruncatedProps, index as UI, type UseBindRefProps, type UseControllableStateOptions, type UseControllableStateResult, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, UserAloneIcon, UserFriendIcon, UserGroupIcon, UserIcon, UserProtectIcon, VirtualizedCommand, type VirtualizedCommandFieldNames, type VirtualizedCommandOption, type VirtualizedCommandProps, type Virtualizer, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useBindRef, useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useSafeBlocker, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
|
|
1819
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdministrationIcon, AdvanceSearch, AnalyticsIcon, ApplicationLogIcon, ArrowIcon, AuditFooter, type AuditFooterProps, type Breakpoints, type BrowserNativeObject, Button, SuiCalendarIcon2 as Calendar2Icon, CardIcon, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, Combobox, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CopyUserRightsIcon, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, CustomActionStatusIcon, CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DataTableVirtual, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, DecreaseIcon, type DeepPartial, type DeepPartialNullish, Dialog$1 as Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type DraftGuardState, type DraftSource, EllipsisBoxIcon, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, FactoryIcon, type FieldSchema, type FieldType, FiltersIcon, FolderIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HamburgerMenuIcon, HandymanIcon, HeaderCell, type HeaderCellProps, HomeIcon, HomePlusIcon, Image, type ImageLoader, type ImageLoaderProps, ImagePlaceholderIcon, type ImageProps, InformationIcon, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, LookupSelect, type LookupSelectOption, type LookupSelectProps, MailIcon, MainListContainer, type MainListContainerClassNames, type MainListContainerProps, type MainListContainerSlots, ManIcon, ManagementIcon, MenuIcon, MessageIcon, MessageIconInverse, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type OptionData, OutlineArrowIcon, type Params, type PermissionString, PlusIcon, PlusSearchIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, type PrefixMap, PreventPageLeave, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, RightPanelContainer, type RightPanelContainerClassNames, type RightPanelContainerHeaderProps, type RightPanelContainerProps, type RightPanelContainerSlots, RoleIcon, type RowClickType, type RowState, type ScrollInfo, SearchIcon, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, TabSelect, type TabSelectItem, TagListViewIcon, type TemplateKeys, Textarea, ToolBoxIcon, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TransferUserRightsIcon, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, type TruncatedProps, index as UI, type UseBindRefProps, type UseControllableStateOptions, type UseControllableStateResult, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, UserActiveIcon, UserAloneIcon, UserFriendIcon, UserGroupIcon, UserIcon, UserInactiveIcon, UserNameIcon, UserProtectIcon, VirtualizedCommand, type VirtualizedCommandFieldNames, type VirtualizedCommandOption, type VirtualizedCommandProps, type Virtualizer, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useBindRef, useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useSafeBlocker, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
|