@sustaina/shared-ui 1.32.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.d.mts +83 -17
- package/dist/index.d.ts +83 -17
- package/dist/index.js +549 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +539 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
package/dist/index.d.mts
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;
|
|
@@ -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 {
|
|
@@ -949,16 +950,16 @@ declare function PopoverArrow(props: React$1.ComponentProps<typeof PopoverPrimit
|
|
|
949
950
|
declare function PopoverContent({ className, align, sideOffset, children, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
950
951
|
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
|
|
951
952
|
|
|
952
|
-
declare function Sheet({ ...props }: React$1.ComponentProps<typeof
|
|
953
|
-
declare function SheetTrigger({ ...props }: React$1.ComponentProps<typeof
|
|
954
|
-
declare function SheetClose({ ...props }: React$1.ComponentProps<typeof
|
|
955
|
-
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> & {
|
|
956
957
|
side?: "top" | "right" | "bottom" | "left";
|
|
957
958
|
}): react_jsx_runtime.JSX.Element;
|
|
958
959
|
declare function SheetHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
959
960
|
declare function SheetFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
960
|
-
declare function SheetTitle({ className, ...props }: React$1.ComponentProps<typeof
|
|
961
|
-
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;
|
|
962
963
|
|
|
963
964
|
declare const PreventPageLeave: ({ children }: React__default.PropsWithChildren) => React__default.ReactNode;
|
|
964
965
|
|
|
@@ -1067,7 +1068,6 @@ declare const index_ClearButton: typeof ClearButton;
|
|
|
1067
1068
|
declare const index_Collapsible: typeof Collapsible;
|
|
1068
1069
|
declare const index_CollapsibleContent: typeof CollapsibleContent;
|
|
1069
1070
|
declare const index_CollapsibleTrigger: typeof CollapsibleTrigger;
|
|
1070
|
-
declare const index_Dialog: typeof Dialog;
|
|
1071
1071
|
declare const index_DialogContent: typeof DialogContent;
|
|
1072
1072
|
type index_DialogContentProps = DialogContentProps;
|
|
1073
1073
|
declare const index_DialogDescription: typeof DialogDescription;
|
|
@@ -1155,7 +1155,7 @@ declare const index_spinnerVariants: typeof spinnerVariants;
|
|
|
1155
1155
|
declare const index_useFormField: typeof useFormField;
|
|
1156
1156
|
declare const index_useSidebar: typeof useSidebar;
|
|
1157
1157
|
declare namespace index {
|
|
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,
|
|
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 };
|
|
1159
1159
|
}
|
|
1160
1160
|
|
|
1161
1161
|
type SidebarContextProps = {
|
|
@@ -1265,7 +1265,7 @@ interface CropperModalBaseProps {
|
|
|
1265
1265
|
title?: string;
|
|
1266
1266
|
props?: {
|
|
1267
1267
|
dialogTitleContainer?: React.ComponentProps<"div">;
|
|
1268
|
-
dialogTitle?: React.ComponentProps<typeof
|
|
1268
|
+
dialogTitle?: React.ComponentProps<typeof DialogPrimitive.Title>;
|
|
1269
1269
|
dialogContent?: DialogContentProps$1;
|
|
1270
1270
|
cropper?: CropperProps;
|
|
1271
1271
|
cropperContainer?: React.ComponentProps<"div">;
|
|
@@ -1304,7 +1304,9 @@ type TruncatedProps = {
|
|
|
1304
1304
|
children: ReactNode;
|
|
1305
1305
|
as?: keyof React__default.JSX.IntrinsicElements;
|
|
1306
1306
|
style?: CSSProperties;
|
|
1307
|
-
tooltipProps?: Omit<ComponentProps<typeof Tooltip$1>, "open" | "onOpenChange"
|
|
1307
|
+
tooltipProps?: Omit<ComponentProps<typeof Tooltip$1>, "open" | "onOpenChange"> & {
|
|
1308
|
+
disabled?: boolean;
|
|
1309
|
+
};
|
|
1308
1310
|
tooltipContentProps?: Omit<ComponentProps<typeof TooltipContent$1>, "children">;
|
|
1309
1311
|
};
|
|
1310
1312
|
declare const Truncated: ({ children, className, ellipsis, as, style, tooltipProps, tooltipContentProps }: TruncatedProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -1362,6 +1364,60 @@ type ActionMenuProps = {
|
|
|
1362
1364
|
|
|
1363
1365
|
declare const ActionMenu: React.FC<ActionMenuProps>;
|
|
1364
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
|
+
|
|
1365
1421
|
declare function isDefined<T>(value: T | null | undefined): value is NonNullable<T>;
|
|
1366
1422
|
declare function isEmptyObject(value: any): boolean;
|
|
1367
1423
|
type DebounceOptions = {
|
|
@@ -1474,6 +1530,16 @@ type UseTruncatedOptions<T> = {
|
|
|
1474
1530
|
type UseTruncatedResult = boolean;
|
|
1475
1531
|
declare const useTruncated: <T extends HTMLElement = any>({ elementRef, onChange, resizeDetectDelay }: UseTruncatedOptions<T>) => UseTruncatedResult;
|
|
1476
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
|
+
|
|
1477
1543
|
type ExtractObjects<T> = T extends infer U ? U extends object ? U : never : never;
|
|
1478
1544
|
type BrowserNativeObject = Date | FileList | File | null;
|
|
1479
1545
|
type EmptyObject = {
|
|
@@ -1486,4 +1552,4 @@ type DeepPartialNullish<T> = T extends BrowserNativeObject ? T | null : {
|
|
|
1486
1552
|
[K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] | null : DeepPartialNullish<T[K]> | null;
|
|
1487
1553
|
};
|
|
1488
1554
|
|
|
1489
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, 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, 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, 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 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 UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, 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, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
|
|
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 };
|
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;
|
|
@@ -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 {
|
|
@@ -949,16 +950,16 @@ declare function PopoverArrow(props: React$1.ComponentProps<typeof PopoverPrimit
|
|
|
949
950
|
declare function PopoverContent({ className, align, sideOffset, children, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
950
951
|
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
|
|
951
952
|
|
|
952
|
-
declare function Sheet({ ...props }: React$1.ComponentProps<typeof
|
|
953
|
-
declare function SheetTrigger({ ...props }: React$1.ComponentProps<typeof
|
|
954
|
-
declare function SheetClose({ ...props }: React$1.ComponentProps<typeof
|
|
955
|
-
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> & {
|
|
956
957
|
side?: "top" | "right" | "bottom" | "left";
|
|
957
958
|
}): react_jsx_runtime.JSX.Element;
|
|
958
959
|
declare function SheetHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
959
960
|
declare function SheetFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
960
|
-
declare function SheetTitle({ className, ...props }: React$1.ComponentProps<typeof
|
|
961
|
-
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;
|
|
962
963
|
|
|
963
964
|
declare const PreventPageLeave: ({ children }: React__default.PropsWithChildren) => React__default.ReactNode;
|
|
964
965
|
|
|
@@ -1067,7 +1068,6 @@ declare const index_ClearButton: typeof ClearButton;
|
|
|
1067
1068
|
declare const index_Collapsible: typeof Collapsible;
|
|
1068
1069
|
declare const index_CollapsibleContent: typeof CollapsibleContent;
|
|
1069
1070
|
declare const index_CollapsibleTrigger: typeof CollapsibleTrigger;
|
|
1070
|
-
declare const index_Dialog: typeof Dialog;
|
|
1071
1071
|
declare const index_DialogContent: typeof DialogContent;
|
|
1072
1072
|
type index_DialogContentProps = DialogContentProps;
|
|
1073
1073
|
declare const index_DialogDescription: typeof DialogDescription;
|
|
@@ -1155,7 +1155,7 @@ declare const index_spinnerVariants: typeof spinnerVariants;
|
|
|
1155
1155
|
declare const index_useFormField: typeof useFormField;
|
|
1156
1156
|
declare const index_useSidebar: typeof useSidebar;
|
|
1157
1157
|
declare namespace index {
|
|
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,
|
|
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 };
|
|
1159
1159
|
}
|
|
1160
1160
|
|
|
1161
1161
|
type SidebarContextProps = {
|
|
@@ -1265,7 +1265,7 @@ interface CropperModalBaseProps {
|
|
|
1265
1265
|
title?: string;
|
|
1266
1266
|
props?: {
|
|
1267
1267
|
dialogTitleContainer?: React.ComponentProps<"div">;
|
|
1268
|
-
dialogTitle?: React.ComponentProps<typeof
|
|
1268
|
+
dialogTitle?: React.ComponentProps<typeof DialogPrimitive.Title>;
|
|
1269
1269
|
dialogContent?: DialogContentProps$1;
|
|
1270
1270
|
cropper?: CropperProps;
|
|
1271
1271
|
cropperContainer?: React.ComponentProps<"div">;
|
|
@@ -1304,7 +1304,9 @@ type TruncatedProps = {
|
|
|
1304
1304
|
children: ReactNode;
|
|
1305
1305
|
as?: keyof React__default.JSX.IntrinsicElements;
|
|
1306
1306
|
style?: CSSProperties;
|
|
1307
|
-
tooltipProps?: Omit<ComponentProps<typeof Tooltip$1>, "open" | "onOpenChange"
|
|
1307
|
+
tooltipProps?: Omit<ComponentProps<typeof Tooltip$1>, "open" | "onOpenChange"> & {
|
|
1308
|
+
disabled?: boolean;
|
|
1309
|
+
};
|
|
1308
1310
|
tooltipContentProps?: Omit<ComponentProps<typeof TooltipContent$1>, "children">;
|
|
1309
1311
|
};
|
|
1310
1312
|
declare const Truncated: ({ children, className, ellipsis, as, style, tooltipProps, tooltipContentProps }: TruncatedProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -1362,6 +1364,60 @@ type ActionMenuProps = {
|
|
|
1362
1364
|
|
|
1363
1365
|
declare const ActionMenu: React.FC<ActionMenuProps>;
|
|
1364
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
|
+
|
|
1365
1421
|
declare function isDefined<T>(value: T | null | undefined): value is NonNullable<T>;
|
|
1366
1422
|
declare function isEmptyObject(value: any): boolean;
|
|
1367
1423
|
type DebounceOptions = {
|
|
@@ -1474,6 +1530,16 @@ type UseTruncatedOptions<T> = {
|
|
|
1474
1530
|
type UseTruncatedResult = boolean;
|
|
1475
1531
|
declare const useTruncated: <T extends HTMLElement = any>({ elementRef, onChange, resizeDetectDelay }: UseTruncatedOptions<T>) => UseTruncatedResult;
|
|
1476
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
|
+
|
|
1477
1543
|
type ExtractObjects<T> = T extends infer U ? U extends object ? U : never : never;
|
|
1478
1544
|
type BrowserNativeObject = Date | FileList | File | null;
|
|
1479
1545
|
type EmptyObject = {
|
|
@@ -1486,4 +1552,4 @@ type DeepPartialNullish<T> = T extends BrowserNativeObject ? T | null : {
|
|
|
1486
1552
|
[K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] | null : DeepPartialNullish<T[K]> | null;
|
|
1487
1553
|
};
|
|
1488
1554
|
|
|
1489
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, 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, 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, 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 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 UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, 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, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
|
|
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 };
|