@sustaina/shared-ui 1.31.0 → 1.33.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.css +90 -0
- package/dist/index.d.mts +118 -25
- package/dist/index.d.ts +118 -25
- package/dist/index.js +4487 -3666
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4471 -3665
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
8
8
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
9
9
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
10
10
|
import { Header, RowData as RowData$1, Column as Column$1, Table as Table$1, ColumnDef, ColumnFiltersState, OnChangeFn, FilterFnOption, SortingState, ColumnOrderState, VisibilityState, ColumnPinningState, GroupingState, GroupingOptions, ColumnResizeMode, RowSelectionState, Row, ExpandedState, Cell, HeaderGroup, HeaderContext } from '@tanstack/react-table';
|
|
11
|
-
import * as
|
|
11
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
12
12
|
import { DialogContentProps as DialogContentProps$1 } from '@radix-ui/react-dialog';
|
|
13
13
|
import { Resource } from 'i18next';
|
|
14
14
|
import * as react_hook_form from 'react-hook-form';
|
|
@@ -25,6 +25,7 @@ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
|
25
25
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
26
26
|
import { CropperProps, Area } from 'react-easy-crop';
|
|
27
27
|
import { NumericFormatProps } from 'react-number-format';
|
|
28
|
+
import { Command as Command$1 } from 'cmdk';
|
|
28
29
|
|
|
29
30
|
declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
30
31
|
declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
@@ -116,7 +117,7 @@ interface AdvanceSearchProps {
|
|
|
116
117
|
declare const AdvanceSearch: React__default.FC<AdvanceSearchProps>;
|
|
117
118
|
|
|
118
119
|
declare const buttonVariants: (props?: ({
|
|
119
|
-
variant?: "default" | "link" | "secondary" | "destructive" | "
|
|
120
|
+
variant?: "default" | "link" | "secondary" | "destructive" | "cancel" | "warning" | "cottonYellowDark" | "cottonGreen" | "cottonBlue" | "cottonRed" | "cottonAccent" | "cottonYellow" | "cottonBlack" | "defaultOutline" | "destructiveOutline" | "outline" | "ghost" | "defaultSelect" | null | undefined;
|
|
120
121
|
size?: "default" | "option" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-md" | "icon-lg" | null | undefined;
|
|
121
122
|
active?: boolean | null | undefined;
|
|
122
123
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
@@ -441,16 +442,16 @@ type DatePickerProps = {
|
|
|
441
442
|
} & Omit<CalendarProps$1, "selectedDate" | "onDateSelect" | "className">;
|
|
442
443
|
declare const DatePicker: React__default.FC<DatePickerProps>;
|
|
443
444
|
|
|
444
|
-
declare function Dialog(props: React$1.ComponentProps<typeof
|
|
445
|
-
declare function DialogTrigger(props: React$1.ComponentProps<typeof
|
|
446
|
-
interface DialogContentProps extends React$1.ComponentProps<typeof
|
|
445
|
+
declare function Dialog$1(props: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
446
|
+
declare function DialogTrigger(props: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
447
|
+
interface DialogContentProps extends React$1.ComponentProps<typeof DialogPrimitive.Content> {
|
|
447
448
|
header?: React$1.ReactNode;
|
|
448
449
|
showOverlay?: boolean;
|
|
449
450
|
}
|
|
450
451
|
declare function DialogContent({ className, children, header, showOverlay, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element;
|
|
451
452
|
declare function DialogFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
452
|
-
declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof
|
|
453
|
-
declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof
|
|
453
|
+
declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
454
|
+
declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
454
455
|
|
|
455
456
|
type DialogVariant = "default" | "success" | "error" | "warning" | "confirm" | "confirm-green";
|
|
456
457
|
interface DialogAlertProps {
|
|
@@ -475,11 +476,7 @@ type DialogAlertI18nResource = Resource;
|
|
|
475
476
|
|
|
476
477
|
declare function DialogAlert({ open, onOpenChange, title, description, variant, confirmText, cancelText, onConfirm, onCancel, showCancel, align, outlet, persistent }: DialogAlertProps): react_jsx_runtime.JSX.Element;
|
|
477
478
|
|
|
478
|
-
|
|
479
|
-
setOpen?: (data: boolean) => void;
|
|
480
|
-
};
|
|
481
|
-
type GetTemplatesFunc = (payload: GetTemplatesPayload) => DialogAlertTemplates;
|
|
482
|
-
declare const getDialogTemplates: GetTemplatesFunc;
|
|
479
|
+
declare const DIALOG_ALERT_TEMPLATES: DialogAlertTemplates;
|
|
483
480
|
|
|
484
481
|
type OpenDialogAlert = Omit<DialogAlertProps, "open" | "onOpenChange">;
|
|
485
482
|
interface DialogAlertProviderProps extends React.PropsWithChildren {
|
|
@@ -699,6 +696,8 @@ declare const ArrowIcon: React$1.FC<SVGProps<SVGSVGElement>>;
|
|
|
699
696
|
|
|
700
697
|
declare const SuiCalendarIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
701
698
|
|
|
699
|
+
declare const SuiCalendarIcon2: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
700
|
+
|
|
702
701
|
declare const SuiCheckIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
703
702
|
|
|
704
703
|
declare const SuiDotsVerticalIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -709,6 +708,13 @@ declare const SuiExpandIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runti
|
|
|
709
708
|
|
|
710
709
|
declare const SuiFilterIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
711
710
|
|
|
711
|
+
interface FiltersIconProps extends SVGProps<SVGSVGElement> {
|
|
712
|
+
size?: number | string;
|
|
713
|
+
color?: string;
|
|
714
|
+
strokeWidth?: number;
|
|
715
|
+
}
|
|
716
|
+
declare const FiltersIcon: React$1.FC<FiltersIconProps>;
|
|
717
|
+
|
|
712
718
|
declare const NotFoundIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
|
|
713
719
|
|
|
714
720
|
declare const SuiSettingIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -766,7 +772,7 @@ type InputProps$1 = Omit<InputPrimitiveProps$1, "size" | "prefix"> & VariantProp
|
|
|
766
772
|
validationMessageProps?: React$1.HTMLAttributes<HTMLParagraphElement>;
|
|
767
773
|
onValueChange?: (value: string) => void;
|
|
768
774
|
};
|
|
769
|
-
declare const Input: React$1.ForwardRefExoticComponent<Omit<InputPrimitiveProps$1, "
|
|
775
|
+
declare const Input: React$1.ForwardRefExoticComponent<Omit<InputPrimitiveProps$1, "size" | "prefix"> & VariantProps<(props?: ({
|
|
770
776
|
controlSize?: "sm" | "lg" | "md" | null | undefined;
|
|
771
777
|
fullWidth?: boolean | null | undefined;
|
|
772
778
|
appearance?: "filled" | "unfilled" | null | undefined;
|
|
@@ -944,16 +950,16 @@ declare function PopoverArrow(props: React$1.ComponentProps<typeof PopoverPrimit
|
|
|
944
950
|
declare function PopoverContent({ className, align, sideOffset, children, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
945
951
|
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
|
|
946
952
|
|
|
947
|
-
declare function Sheet({ ...props }: React$1.ComponentProps<typeof
|
|
948
|
-
declare function SheetTrigger({ ...props }: React$1.ComponentProps<typeof
|
|
949
|
-
declare function SheetClose({ ...props }: React$1.ComponentProps<typeof
|
|
950
|
-
declare function SheetContent({ className, children, side, ...props }: React$1.ComponentProps<typeof
|
|
953
|
+
declare function Sheet({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
954
|
+
declare function SheetTrigger({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
955
|
+
declare function SheetClose({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
956
|
+
declare function SheetContent({ className, children, side, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
951
957
|
side?: "top" | "right" | "bottom" | "left";
|
|
952
958
|
}): react_jsx_runtime.JSX.Element;
|
|
953
959
|
declare function SheetHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
954
960
|
declare function SheetFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
955
|
-
declare function SheetTitle({ className, ...props }: React$1.ComponentProps<typeof
|
|
956
|
-
declare function SheetDescription({ className, ...props }: React$1.ComponentProps<typeof
|
|
961
|
+
declare function SheetTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
962
|
+
declare function SheetDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
957
963
|
|
|
958
964
|
declare const PreventPageLeave: ({ children }: React__default.PropsWithChildren) => React__default.ReactNode;
|
|
959
965
|
|
|
@@ -973,7 +979,9 @@ declare function RadioGroupItem({ id, value, children, className, containerProps
|
|
|
973
979
|
value: string;
|
|
974
980
|
containerProps?: React.ComponentProps<"div">;
|
|
975
981
|
}): react_jsx_runtime.JSX.Element;
|
|
976
|
-
declare function RadioLabel({ children, htmlFor, className, ...props }: React.ComponentProps<"label">
|
|
982
|
+
declare function RadioLabel({ children, htmlFor, className, disabled, ...props }: React.ComponentProps<"label"> & {
|
|
983
|
+
disabled?: boolean;
|
|
984
|
+
}): react_jsx_runtime.JSX.Element;
|
|
977
985
|
|
|
978
986
|
type ImagePayload = {
|
|
979
987
|
src: string;
|
|
@@ -1060,7 +1068,6 @@ declare const index_ClearButton: typeof ClearButton;
|
|
|
1060
1068
|
declare const index_Collapsible: typeof Collapsible;
|
|
1061
1069
|
declare const index_CollapsibleContent: typeof CollapsibleContent;
|
|
1062
1070
|
declare const index_CollapsibleTrigger: typeof CollapsibleTrigger;
|
|
1063
|
-
declare const index_Dialog: typeof Dialog;
|
|
1064
1071
|
declare const index_DialogContent: typeof DialogContent;
|
|
1065
1072
|
type index_DialogContentProps = DialogContentProps;
|
|
1066
1073
|
declare const index_DialogDescription: typeof DialogDescription;
|
|
@@ -1148,7 +1155,7 @@ declare const index_spinnerVariants: typeof spinnerVariants;
|
|
|
1148
1155
|
declare const index_useFormField: typeof useFormField;
|
|
1149
1156
|
declare const index_useSidebar: typeof useSidebar;
|
|
1150
1157
|
declare namespace index {
|
|
1151
|
-
export { index_Accordion as Accordion, index_AccordionContent as AccordionContent, index_AccordionItem as AccordionItem, index_AccordionTrigger as AccordionTrigger, index_Button as Button, index_Checkbox as Checkbox, index_ClearButton as ClearButton, index_Collapsible as Collapsible, index_CollapsibleContent as CollapsibleContent, index_CollapsibleTrigger as CollapsibleTrigger, DatePicker$1 as DatePicker,
|
|
1158
|
+
export { index_Accordion as Accordion, index_AccordionContent as AccordionContent, index_AccordionItem as AccordionItem, index_AccordionTrigger as AccordionTrigger, index_Button as Button, index_Checkbox as Checkbox, index_ClearButton as ClearButton, index_Collapsible as Collapsible, index_CollapsibleContent as CollapsibleContent, index_CollapsibleTrigger as CollapsibleTrigger, DatePicker$1 as DatePicker, Dialog$1 as Dialog, index_DialogContent as DialogContent, type index_DialogContentProps as DialogContentProps, index_DialogDescription as DialogDescription, index_DialogFooter as DialogFooter, index_DialogTitle as DialogTitle, index_DialogTrigger as DialogTrigger, index_Form as Form, index_FormControl as FormControl, index_FormDescription as FormDescription, index_FormField as FormField, index_FormItem as FormItem, index_FormLabel as FormLabel, index_FormMessage as FormMessage, index_Input as Input, index_InputPrimitive as InputPrimitive, type InputPrimitiveProps$1 as InputPrimitiveProps, type InputProps$1 as InputProps, index_Label as Label, MonthPicker$1 as MonthPicker, type MonthPickerProps$1 as MonthPickerProps, index_Popover as Popover, index_PopoverAnchor as PopoverAnchor, index_PopoverArrow as PopoverArrow, index_PopoverContent as PopoverContent, index_PopoverTrigger as PopoverTrigger, index_RadioGroupItem as RadioGroupItem, index_RadioGroupRoot as RadioGroupRoot, index_RadioLabel as RadioLabel, index_RichText as RichText, index_Select as Select, index_SelectContent as SelectContent, index_SelectGroup as SelectGroup, index_SelectItem as SelectItem, index_SelectLabel as SelectLabel, index_SelectScrollDownButton as SelectScrollDownButton, index_SelectScrollUpButton as SelectScrollUpButton, index_SelectSeparator as SelectSeparator, index_SelectTrigger as SelectTrigger, index_SelectValue as SelectValue, index_Separator as Separator, index_Sheet as Sheet, index_SheetClose as SheetClose, index_SheetContent as SheetContent, index_SheetDescription as SheetDescription, index_SheetFooter as SheetFooter, index_SheetHeader as SheetHeader, index_SheetTitle as SheetTitle, index_SheetTrigger as SheetTrigger, index_Sidebar as Sidebar, index_SidebarContent as SidebarContent, index_SidebarFooter as SidebarFooter, index_SidebarGroup as SidebarGroup, index_SidebarGroupAction as SidebarGroupAction, index_SidebarGroupContent as SidebarGroupContent, index_SidebarGroupLabel as SidebarGroupLabel, index_SidebarHeader as SidebarHeader, index_SidebarInput as SidebarInput, index_SidebarInset as SidebarInset, index_SidebarLayout as SidebarLayout, index_SidebarMenu as SidebarMenu, index_SidebarMenuAction as SidebarMenuAction, index_SidebarMenuBadge as SidebarMenuBadge, index_SidebarMenuButton as SidebarMenuButton, index_SidebarMenuItem as SidebarMenuItem, index_SidebarMenuSkeleton as SidebarMenuSkeleton, index_SidebarMenuSub as SidebarMenuSub, index_SidebarMenuSubButton as SidebarMenuSubButton, index_SidebarMenuSubItem as SidebarMenuSubItem, index_SidebarProvider as SidebarProvider, index_SidebarRail as SidebarRail, index_SidebarSeparator as SidebarSeparator, index_SidebarTrigger as SidebarTrigger, index_Skeleton as Skeleton, index_Spinner as Spinner, type index_SpinnerProps as SpinnerProps, index_Switch as Switch, index_Table as Table, index_TableBody as TableBody, index_TableCaption as TableCaption, index_TableCell as TableCell, index_TableContainer as TableContainer, index_TableFooter as TableFooter, index_TableHead as TableHead, index_TableHeader as TableHeader, index_TableRow as TableRow, index_Textarea as Textarea, Tooltip$1 as Tooltip, TooltipContent$1 as TooltipContent, TooltipProvider$1 as TooltipProvider, TooltipTrigger$1 as TooltipTrigger, index_buttonVariants as buttonVariants, inputVariants$1 as inputVariants, index_spinnerVariants as spinnerVariants, index_useFormField as useFormField, index_useSidebar as useSidebar };
|
|
1152
1159
|
}
|
|
1153
1160
|
|
|
1154
1161
|
type SidebarContextProps = {
|
|
@@ -1258,7 +1265,7 @@ interface CropperModalBaseProps {
|
|
|
1258
1265
|
title?: string;
|
|
1259
1266
|
props?: {
|
|
1260
1267
|
dialogTitleContainer?: React.ComponentProps<"div">;
|
|
1261
|
-
dialogTitle?: React.ComponentProps<typeof
|
|
1268
|
+
dialogTitle?: React.ComponentProps<typeof DialogPrimitive.Title>;
|
|
1262
1269
|
dialogContent?: DialogContentProps$1;
|
|
1263
1270
|
cropper?: CropperProps;
|
|
1264
1271
|
cropperContainer?: React.ComponentProps<"div">;
|
|
@@ -1297,7 +1304,9 @@ type TruncatedProps = {
|
|
|
1297
1304
|
children: ReactNode;
|
|
1298
1305
|
as?: keyof React__default.JSX.IntrinsicElements;
|
|
1299
1306
|
style?: CSSProperties;
|
|
1300
|
-
tooltipProps?: Omit<ComponentProps<typeof Tooltip$1>, "open" | "onOpenChange"
|
|
1307
|
+
tooltipProps?: Omit<ComponentProps<typeof Tooltip$1>, "open" | "onOpenChange"> & {
|
|
1308
|
+
disabled?: boolean;
|
|
1309
|
+
};
|
|
1301
1310
|
tooltipContentProps?: Omit<ComponentProps<typeof TooltipContent$1>, "children">;
|
|
1302
1311
|
};
|
|
1303
1312
|
declare const Truncated: ({ children, className, ellipsis, as, style, tooltipProps, tooltipContentProps }: TruncatedProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -1335,6 +1344,80 @@ type InputNumberProps = NumericFormatProps<InputProps> & {
|
|
|
1335
1344
|
};
|
|
1336
1345
|
declare const InputNumber: ({ customInputProps, ...props }: InputNumberProps) => react_jsx_runtime.JSX.Element;
|
|
1337
1346
|
|
|
1347
|
+
type PermissionAction = "CREATE" | "READ" | "EDIT" | "DELETE" | "NOTIFY" | "CREATE_DRAFT" | "REQUIRE_SITE";
|
|
1348
|
+
type PermissionString = `${string}.${PermissionAction}`;
|
|
1349
|
+
interface ActionButtonProps {
|
|
1350
|
+
label: string;
|
|
1351
|
+
onPress?: (id?: any) => void;
|
|
1352
|
+
requiredPermission?: PermissionString | string;
|
|
1353
|
+
}
|
|
1354
|
+
type ActionMenuProps = {
|
|
1355
|
+
id: any;
|
|
1356
|
+
buttons: ActionButtonProps[];
|
|
1357
|
+
checkPermissionFunc?: (requiredPermission: PermissionString) => boolean | ((requiredPermission: string) => boolean);
|
|
1358
|
+
triggerButtonIcon?: React.ReactNode;
|
|
1359
|
+
triggerButtonClassName?: string;
|
|
1360
|
+
actionMenuClassName?: string;
|
|
1361
|
+
actionButtonClassName?: string;
|
|
1362
|
+
separatorClassName?: string;
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
declare const ActionMenu: React.FC<ActionMenuProps>;
|
|
1366
|
+
|
|
1367
|
+
declare function Dialog({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
1368
|
+
|
|
1369
|
+
declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
|
|
1370
|
+
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React$1.ComponentProps<typeof Dialog> & {
|
|
1371
|
+
title?: string;
|
|
1372
|
+
description?: string;
|
|
1373
|
+
className?: string;
|
|
1374
|
+
showCloseButton?: boolean;
|
|
1375
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1376
|
+
declare function CommandInput({ className, ...props }: React$1.ComponentProps<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
|
|
1377
|
+
declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
|
|
1378
|
+
declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
|
|
1379
|
+
declare function CommandGroup({ className, ...props }: React$1.ComponentProps<typeof Command$1.Group>): react_jsx_runtime.JSX.Element;
|
|
1380
|
+
declare function CommandSeparator({ className, ...props }: React$1.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
1381
|
+
declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
1382
|
+
declare function CommandShortcut({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
1383
|
+
|
|
1384
|
+
type OptionData = Record<string, any>;
|
|
1385
|
+
type VirtualizedCommandOption<TData extends OptionData> = TData & {
|
|
1386
|
+
[key: string]: any;
|
|
1387
|
+
};
|
|
1388
|
+
type VirtualizedCommandFieldNames<TData extends OptionData> = {
|
|
1389
|
+
label?: keyof TData;
|
|
1390
|
+
value?: keyof TData;
|
|
1391
|
+
};
|
|
1392
|
+
type VirtualizedCommandProps<TData extends OptionData> = {
|
|
1393
|
+
options?: VirtualizedCommandOption<TData>[];
|
|
1394
|
+
height?: number;
|
|
1395
|
+
searchPlaceholder?: string;
|
|
1396
|
+
fieldNames?: VirtualizedCommandFieldNames<TData>;
|
|
1397
|
+
emptyContent?: React$1.ReactNode;
|
|
1398
|
+
notFoundContent?: React$1.ReactNode;
|
|
1399
|
+
value?: string;
|
|
1400
|
+
showSearch?: boolean;
|
|
1401
|
+
disabledOption?: (option: VirtualizedCommandOption<TData>) => boolean;
|
|
1402
|
+
filterOption?: (search: string, option: VirtualizedCommandOption<TData>) => boolean;
|
|
1403
|
+
labelRender?: (option: VirtualizedCommandOption<TData>) => React$1.ReactNode;
|
|
1404
|
+
onSelect?: (selected: string, option: VirtualizedCommandOption<TData>) => void;
|
|
1405
|
+
onBlur?: (event: React$1.FocusEvent<HTMLDivElement, Element>) => void;
|
|
1406
|
+
onFocus?: (event: React$1.FocusEvent<HTMLDivElement, Element>) => void;
|
|
1407
|
+
};
|
|
1408
|
+
declare const VirtualizedCommand: <TData extends OptionData>({ height, options, emptyContent, searchPlaceholder, value, notFoundContent, showSearch, fieldNames, disabledOption, filterOption, onSelect, labelRender, onBlur, onFocus }: VirtualizedCommandProps<TData>) => react_jsx_runtime.JSX.Element;
|
|
1409
|
+
|
|
1410
|
+
type ComboboxProps<TData extends OptionData> = Omit<VirtualizedCommandProps<TData>, "onFocus" | "onBlur"> & {
|
|
1411
|
+
defaultValue?: string;
|
|
1412
|
+
className?: string;
|
|
1413
|
+
disabled?: boolean;
|
|
1414
|
+
placeholder?: string;
|
|
1415
|
+
showClear?: boolean;
|
|
1416
|
+
onBlur?: (event: React$1.FocusEvent<HTMLButtonElement, Element>) => void;
|
|
1417
|
+
onFocus?: (event: React$1.FocusEvent<HTMLButtonElement, Element>) => void;
|
|
1418
|
+
};
|
|
1419
|
+
declare const Combobox: <TData extends OptionData>(props: ComboboxProps<TData> & React$1.RefAttributes<HTMLButtonElement>) => React$1.ReactElement | null;
|
|
1420
|
+
|
|
1338
1421
|
declare function isDefined<T>(value: T | null | undefined): value is NonNullable<T>;
|
|
1339
1422
|
declare function isEmptyObject(value: any): boolean;
|
|
1340
1423
|
type DebounceOptions = {
|
|
@@ -1447,6 +1530,16 @@ type UseTruncatedOptions<T> = {
|
|
|
1447
1530
|
type UseTruncatedResult = boolean;
|
|
1448
1531
|
declare const useTruncated: <T extends HTMLElement = any>({ elementRef, onChange, resizeDetectDelay }: UseTruncatedOptions<T>) => UseTruncatedResult;
|
|
1449
1532
|
|
|
1533
|
+
type UseControllableStateOptions<T = any> = {
|
|
1534
|
+
defaultValue: T;
|
|
1535
|
+
value?: T;
|
|
1536
|
+
};
|
|
1537
|
+
type UseControllableStateResult<T = any> = {
|
|
1538
|
+
value: T;
|
|
1539
|
+
updateState: (nextValue: T | ((prev: T) => T)) => void;
|
|
1540
|
+
};
|
|
1541
|
+
declare const useControllableState: <T = any>({ defaultValue, value }: UseControllableStateOptions<T>) => UseControllableStateResult<T>;
|
|
1542
|
+
|
|
1450
1543
|
type ExtractObjects<T> = T extends infer U ? U extends object ? U : never : never;
|
|
1451
1544
|
type BrowserNativeObject = Date | FileList | File | null;
|
|
1452
1545
|
type EmptyObject = {
|
|
@@ -1459,4 +1552,4 @@ type DeepPartialNullish<T> = T extends BrowserNativeObject ? T | null : {
|
|
|
1459
1552
|
[K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] | null : DeepPartialNullish<T[K]> | null;
|
|
1460
1553
|
};
|
|
1461
1554
|
|
|
1462
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvanceSearch, ArrowIcon, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, DIALOG_ALERT_I18N_SUBNAMESPACE, 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 DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, type DeepPartial, type DeepPartialNullish, Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, type FieldSchema, type FieldType, 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, HeaderCell, type HeaderCellProps, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, List, ListContainer, type ListContainerProps, ListHeader, type ListHeaderProps, type ListProps, ListTable, type ListTableProps, LookupSelect, type LookupSelectOption, type LookupSelectProps, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type Params, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, type PrefixMap, PreventPageLeave, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, 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, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, type TemplateKeys, Textarea, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, Truncated, type TruncatedProps, index as UI, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls,
|
|
1555
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdvanceSearch, ArrowIcon, 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, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, 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 DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, 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 EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, 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, HeaderCell, type HeaderCellProps, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, List, ListContainer, type ListContainerProps, ListHeader, type ListHeaderProps, type ListProps, ListTable, type ListTableProps, LookupSelect, type LookupSelectOption, type LookupSelectProps, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type OptionData, type Params, type PermissionString, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, type PrefixMap, PreventPageLeave, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, 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, type TemplateKeys, Textarea, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, Truncated, type TruncatedProps, index as UI, type UseControllableStateOptions, type UseControllableStateResult, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, VirtualizedCommand, type VirtualizedCommandFieldNames, type VirtualizedCommandOption, type VirtualizedCommandProps, 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, useControllableState, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
|