@sustaina/shared-ui 1.33.2 → 1.34.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 CHANGED
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React$1 from 'react';
3
- import React__default, { CSSProperties, ReactNode, SVGProps, useEffect } from 'react';
2
+ import React__default, { CSSProperties, ReactNode, SVGProps, ComponentProps, useEffect } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
5
5
  import { ClassValue } from 'clsx';
6
6
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
@@ -27,6 +27,40 @@ import { CropperProps, Area } from 'react-easy-crop';
27
27
  import { NumericFormatProps } from 'react-number-format';
28
28
  import { Command as Command$1 } from 'cmdk';
29
29
 
30
+ type AuditFooterProps = {
31
+ createdAt?: string | Date | null;
32
+ createdBy?: string | null;
33
+ updatedAt?: string | Date | null;
34
+ updatedBy?: string | null;
35
+ onDelete?: () => void;
36
+ canDelete?: boolean;
37
+ emptyValue?: React__default.ReactNode;
38
+ labels?: {
39
+ createdOn?: string;
40
+ createdAtTime?: string;
41
+ createdBy?: string;
42
+ updatedOn?: string;
43
+ updatedAtTime?: string;
44
+ updatedBy?: string;
45
+ };
46
+ classNames?: {
47
+ root?: string;
48
+ grid?: string;
49
+ label?: string;
50
+ value?: string;
51
+ deleteButton?: string;
52
+ deleteButtonDisabled?: string;
53
+ };
54
+ formatters?: {
55
+ date?: (value: string | Date) => React__default.ReactNode;
56
+ time?: (value: string | Date) => React__default.ReactNode;
57
+ user?: (value?: string | null) => React__default.ReactNode;
58
+ };
59
+ deleteAriaLabel?: string;
60
+ deleteIcon?: React__default.ReactNode;
61
+ };
62
+ declare const AuditFooter: React__default.FC<AuditFooterProps>;
63
+
30
64
  declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
31
65
  declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
32
66
  declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
@@ -723,6 +757,12 @@ declare const SuiTriangleDownIcon: (props: SVGProps<SVGSVGElement>) => react_jsx
723
757
 
724
758
  declare const SuiWarningIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
725
759
 
760
+ type TrashIconProps = SVGProps<SVGSVGElement> & {
761
+ size?: number | string;
762
+ color?: string;
763
+ };
764
+ declare const TrashIcon: React$1.FC<TrashIconProps>;
765
+
726
766
  type ImageLoaderProps = {
727
767
  src: string;
728
768
  width: number;
@@ -1421,6 +1461,17 @@ type ComboboxProps<TData extends OptionData> = React$1.AriaAttributes & Omit<Vir
1421
1461
  };
1422
1462
  declare const Combobox: <TData extends OptionData>(props: ComboboxProps<TData> & React$1.RefAttributes<HTMLButtonElement>) => React$1.ReactElement | null;
1423
1463
 
1464
+ interface TruncatedMouseEnterDivProps {
1465
+ className?: string;
1466
+ tooltipProps?: Omit<ComponentProps<typeof Tooltip>, "open" | "onOpenChange"> & {
1467
+ disabled?: boolean;
1468
+ };
1469
+ tooltipContentProps?: Omit<ComponentProps<typeof TooltipContent>, "children">;
1470
+ arrowClassName?: string;
1471
+ value: string;
1472
+ }
1473
+ declare const TruncatedMouseEnterDiv: ({ value, className, tooltipProps, tooltipContentProps, arrowClassName }: TruncatedMouseEnterDivProps) => react_jsx_runtime.JSX.Element;
1474
+
1424
1475
  declare function isDefined<T>(value: T | null | undefined): value is NonNullable<T>;
1425
1476
  declare function isEmptyObject(value: any): boolean;
1426
1477
  type DebounceOptions = {
@@ -1557,4 +1608,4 @@ type DeepPartialNullish<T> = T extends BrowserNativeObject ? T | null : {
1557
1608
  [K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] | null : DeepPartialNullish<T[K]> | null;
1558
1609
  };
1559
1610
 
1560
- 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, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
1611
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdvanceSearch, 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, 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, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, 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, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React$1 from 'react';
3
- import React__default, { CSSProperties, ReactNode, SVGProps, useEffect } from 'react';
2
+ import React__default, { CSSProperties, ReactNode, SVGProps, ComponentProps, useEffect } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
5
5
  import { ClassValue } from 'clsx';
6
6
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
@@ -27,6 +27,40 @@ import { CropperProps, Area } from 'react-easy-crop';
27
27
  import { NumericFormatProps } from 'react-number-format';
28
28
  import { Command as Command$1 } from 'cmdk';
29
29
 
30
+ type AuditFooterProps = {
31
+ createdAt?: string | Date | null;
32
+ createdBy?: string | null;
33
+ updatedAt?: string | Date | null;
34
+ updatedBy?: string | null;
35
+ onDelete?: () => void;
36
+ canDelete?: boolean;
37
+ emptyValue?: React__default.ReactNode;
38
+ labels?: {
39
+ createdOn?: string;
40
+ createdAtTime?: string;
41
+ createdBy?: string;
42
+ updatedOn?: string;
43
+ updatedAtTime?: string;
44
+ updatedBy?: string;
45
+ };
46
+ classNames?: {
47
+ root?: string;
48
+ grid?: string;
49
+ label?: string;
50
+ value?: string;
51
+ deleteButton?: string;
52
+ deleteButtonDisabled?: string;
53
+ };
54
+ formatters?: {
55
+ date?: (value: string | Date) => React__default.ReactNode;
56
+ time?: (value: string | Date) => React__default.ReactNode;
57
+ user?: (value?: string | null) => React__default.ReactNode;
58
+ };
59
+ deleteAriaLabel?: string;
60
+ deleteIcon?: React__default.ReactNode;
61
+ };
62
+ declare const AuditFooter: React__default.FC<AuditFooterProps>;
63
+
30
64
  declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
31
65
  declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
32
66
  declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
@@ -723,6 +757,12 @@ declare const SuiTriangleDownIcon: (props: SVGProps<SVGSVGElement>) => react_jsx
723
757
 
724
758
  declare const SuiWarningIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
725
759
 
760
+ type TrashIconProps = SVGProps<SVGSVGElement> & {
761
+ size?: number | string;
762
+ color?: string;
763
+ };
764
+ declare const TrashIcon: React$1.FC<TrashIconProps>;
765
+
726
766
  type ImageLoaderProps = {
727
767
  src: string;
728
768
  width: number;
@@ -1421,6 +1461,17 @@ type ComboboxProps<TData extends OptionData> = React$1.AriaAttributes & Omit<Vir
1421
1461
  };
1422
1462
  declare const Combobox: <TData extends OptionData>(props: ComboboxProps<TData> & React$1.RefAttributes<HTMLButtonElement>) => React$1.ReactElement | null;
1423
1463
 
1464
+ interface TruncatedMouseEnterDivProps {
1465
+ className?: string;
1466
+ tooltipProps?: Omit<ComponentProps<typeof Tooltip>, "open" | "onOpenChange"> & {
1467
+ disabled?: boolean;
1468
+ };
1469
+ tooltipContentProps?: Omit<ComponentProps<typeof TooltipContent>, "children">;
1470
+ arrowClassName?: string;
1471
+ value: string;
1472
+ }
1473
+ declare const TruncatedMouseEnterDiv: ({ value, className, tooltipProps, tooltipContentProps, arrowClassName }: TruncatedMouseEnterDivProps) => react_jsx_runtime.JSX.Element;
1474
+
1424
1475
  declare function isDefined<T>(value: T | null | undefined): value is NonNullable<T>;
1425
1476
  declare function isEmptyObject(value: any): boolean;
1426
1477
  type DebounceOptions = {
@@ -1557,4 +1608,4 @@ type DeepPartialNullish<T> = T extends BrowserNativeObject ? T | null : {
1557
1608
  [K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] | null : DeepPartialNullish<T[K]> | null;
1558
1609
  };
1559
1610
 
1560
- 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, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
1611
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdvanceSearch, 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, 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, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, 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, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var AccordionPrimitive = require('@radix-ui/react-accordion');
4
3
  var clsx2 = require('clsx');
5
4
  var tailwindMerge = require('tailwind-merge');
6
5
  var jsxRuntime = require('react/jsx-runtime');
6
+ var AccordionPrimitive = require('@radix-ui/react-accordion');
7
7
  var React26 = require('react');
8
8
  var lucideReact = require('lucide-react');
9
9
  var reactDom = require('react-dom');
@@ -82,8 +82,8 @@ function _interopNamespace(e) {
82
82
  return Object.freeze(n);
83
83
  }
84
84
 
85
- var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
86
85
  var clsx2__default = /*#__PURE__*/_interopDefault(clsx2);
86
+ var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
87
87
  var React26__namespace = /*#__PURE__*/_interopNamespace(React26);
88
88
  var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
89
89
  var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
@@ -777,6 +777,120 @@ var SuiWarningIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
777
777
  }
778
778
  );
779
779
  var warning_default = SuiWarningIcon;
780
+ var TrashIcon = ({
781
+ size = 16,
782
+ color = "currentColor",
783
+ className,
784
+ ...props
785
+ }) => /* @__PURE__ */ jsxRuntime.jsxs(
786
+ "svg",
787
+ {
788
+ viewBox: "0 0 17 15",
789
+ xmlns: "http://www.w3.org/2000/svg",
790
+ width: size,
791
+ height: size,
792
+ fill: "none",
793
+ className,
794
+ ...props,
795
+ children: [
796
+ /* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#clip0_336_302483)", children: [
797
+ /* @__PURE__ */ jsxRuntime.jsx(
798
+ "path",
799
+ {
800
+ d: "M3.49371 2.12043C3.38318 1.44249 3.66212 0.708651 4.43068 0.529533C4.94459 0.409578 7.77168 0.42749 8.38456 0.492081C9.25207 0.583811 9.64966 1.36813 9.5125 2.12097C10.3748 2.22627 11.9484 1.85067 12.6087 2.44664C13.1053 2.89498 13.1452 3.75638 12.64 4.21232C12.2707 4.54558 12.1422 4.28179 12.0664 4.92282C11.7412 7.68938 11.6509 10.4907 11.3494 13.2605C11.2452 13.9135 10.7718 14.3401 10.0646 14.3895C7.73175 14.5534 5.1836 14.2619 2.8276 14.3873C2.09203 14.2587 1.75116 13.8364 1.64178 13.1655L0.878435 4.54558C0.710025 4.38221 0.481427 4.33281 0.310702 4.15532C-0.221151 3.60006 -0.0434807 2.66593 0.639999 2.29358C0.702502 2.25938 0.998811 2.12043 1.03411 2.12043H3.49371ZM4.30394 2.12043H8.70228C8.71964 1.8333 8.70691 1.36813 8.32321 1.30951C7.19122 1.38116 5.90586 1.20367 4.79238 1.30246C4.28831 1.34696 4.29815 1.71931 4.30394 2.12043ZM12.0415 3.0589C12.0172 3.03068 11.8812 2.9574 11.8419 2.94926L1.26329 2.93243C0.749379 2.95794 0.749379 3.72598 1.26329 3.75149H11.7429C12.1029 3.75312 12.2429 3.29338 12.0415 3.0589ZM11.2487 4.56295H1.75753L2.51508 13.1612C2.5608 13.4597 2.68754 13.5498 2.9989 13.5759C5.22817 13.762 7.7468 13.4293 10.0073 13.5759L10.3823 13.4391L11.2487 4.56295Z",
801
+ fill: color
802
+ }
803
+ ),
804
+ /* @__PURE__ */ jsxRuntime.jsx(
805
+ "path",
806
+ {
807
+ d: "M4.22952 5.50209C4.41761 5.72137 4.34006 6.27067 4.36263 6.54477C4.51599 8.36961 4.73649 10.3719 4.77121 12.1892C4.78568 12.9404 3.98125 12.8953 3.90254 12.4047C3.84698 10.417 3.54836 8.42443 3.49164 6.43947C3.48586 6.23159 3.45576 5.67469 3.54894 5.52542C3.66411 5.34088 4.08426 5.33274 4.22952 5.50263V5.50209Z",
808
+ fill: color
809
+ }
810
+ ),
811
+ /* @__PURE__ */ jsxRuntime.jsx(
812
+ "path",
813
+ {
814
+ d: "M9.43711 5.50146C9.55575 5.63933 9.52045 6.22879 9.51466 6.43776C9.45852 8.42272 9.15932 10.4153 9.10376 12.4029C9.02447 12.8936 8.21946 12.9381 8.23509 12.1875C8.27213 10.3681 8.48973 8.37007 8.64367 6.54306C8.67492 6.17234 8.50941 5.28598 9.18941 5.37771C9.24497 5.38531 9.40412 5.46238 9.43711 5.50092V5.50146Z",
815
+ fill: color
816
+ }
817
+ ),
818
+ /* @__PURE__ */ jsxRuntime.jsx(
819
+ "path",
820
+ {
821
+ d: "M6.83313 5.50252C6.90547 5.58611 6.90142 5.68218 6.91068 5.78314C7.10224 7.89891 6.76253 10.266 6.90837 12.4083C6.88985 12.8822 6.11551 12.8806 6.09814 12.4083L6.15312 5.52478C6.31575 5.34783 6.6734 5.31689 6.83313 5.50252Z",
822
+ fill: color
823
+ }
824
+ )
825
+ ] }),
826
+ /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_3678_200811", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "17", height: "15", fill: "white", transform: "translate(0.728516 0.726562)" }) }) })
827
+ ]
828
+ }
829
+ );
830
+ var trash_default = TrashIcon;
831
+ var AuditFooter = ({
832
+ createdAt,
833
+ createdBy,
834
+ updatedAt,
835
+ updatedBy,
836
+ onDelete,
837
+ canDelete = true,
838
+ emptyValue = "-",
839
+ labels,
840
+ classNames,
841
+ formatters,
842
+ deleteAriaLabel = "Delete",
843
+ deleteIcon
844
+ }) => {
845
+ const resolvedLabels = {
846
+ createdOn: "Created on :",
847
+ createdAtTime: "at Time :",
848
+ createdBy: "by :",
849
+ updatedOn: "Last Update :",
850
+ updatedAtTime: "at Time :",
851
+ updatedBy: "by :",
852
+ ...labels
853
+ };
854
+ const dateFormatter = formatters?.date ?? ((value) => formatISODate(value, "DD/MM/YYYY"));
855
+ const timeFormatter = formatters?.time ?? ((value) => formatISODate(value, "H:i"));
856
+ const userFormatter = formatters?.user ?? ((value) => value ?? emptyValue);
857
+ const resolvedDeleteIcon = deleteIcon ?? /* @__PURE__ */ jsxRuntime.jsx(trash_default, { className: "w-5 h-5" });
858
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex w-full h-14 mt-12 justify-between items-end px-3", classNames?.root), children: [
859
+ /* @__PURE__ */ jsxRuntime.jsxs(
860
+ "div",
861
+ {
862
+ className: cn(
863
+ "grid grid-cols-[auto_1fr_auto_1fr] gap-x-3 gap-y-1 text-[10px]",
864
+ classNames?.grid
865
+ ),
866
+ children: [
867
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("font-bold italic text-[#3B4256]", classNames?.label), children: resolvedLabels.createdOn }),
868
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: classNames?.value, children: createdAt ? dateFormatter(createdAt) : emptyValue }),
869
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("font-bold italic text-[#3B4256]", classNames?.label), children: resolvedLabels.createdAtTime }),
870
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: classNames?.value, children: createdAt ? timeFormatter(createdAt) : emptyValue }),
871
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("font-bold italic text-[#3B4256]", classNames?.label), children: resolvedLabels.createdBy }),
872
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("col-span-3", classNames?.value), children: userFormatter(createdBy) }),
873
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("font-bold italic text-[#3B4256]", classNames?.label), children: resolvedLabels.updatedOn }),
874
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: classNames?.value, children: updatedAt ? dateFormatter(updatedAt) : emptyValue }),
875
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("font-bold italic text-[#3B4256]", classNames?.label), children: resolvedLabels.updatedAtTime }),
876
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: classNames?.value, children: updatedAt ? timeFormatter(updatedAt) : emptyValue }),
877
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("font-bold italic text-[#3B4256]", classNames?.label), children: resolvedLabels.updatedBy }),
878
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("col-span-3", classNames?.value), children: userFormatter(updatedBy) })
879
+ ]
880
+ }
881
+ ),
882
+ onDelete && /* @__PURE__ */ jsxRuntime.jsx(
883
+ "div",
884
+ {
885
+ className: canDelete ? cn("w-5 h-5 cursor-pointer text-red-500", classNames?.deleteButton) : cn("w-5 h-5 text-gray-300 cursor-not-allowed", classNames?.deleteButtonDisabled),
886
+ onClick: canDelete ? onDelete : void 0,
887
+ "aria-label": deleteAriaLabel,
888
+ role: "button",
889
+ children: resolvedDeleteIcon
890
+ }
891
+ )
892
+ ] });
893
+ };
780
894
  function Accordion({ ...props }) {
781
895
  return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Root, { "data-slot": "accordion", ...props });
782
896
  }
@@ -5493,9 +5607,13 @@ function DialogAlert({
5493
5607
  onOpenChange(false);
5494
5608
  }, [onCancel, onOpenChange]);
5495
5609
  const handleConfirm = React26.useCallback(() => {
5496
- onConfirm?.();
5610
+ let func = onConfirm;
5611
+ if (variant === "success" && showCancel === false) {
5612
+ func = onConfirm ?? onCancel;
5613
+ }
5614
+ func?.();
5497
5615
  onOpenChange(false);
5498
- }, [onConfirm, onOpenChange]);
5616
+ }, [onCancel, onConfirm, onOpenChange, showCancel, variant]);
5499
5617
  return /* @__PURE__ */ jsxRuntime.jsx(Dialog2, { open, onOpenChange: persistent ? () => {
5500
5618
  } : onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent2, { className: "max-w-md", showCloseButton: !persistent, children: [
5501
5619
  /* @__PURE__ */ jsxRuntime.jsxs(DialogHeader2, { children: [
@@ -10384,10 +10502,7 @@ var Truncated = ({
10384
10502
  rows: lineClampLines ?? 1,
10385
10503
  expanded: false,
10386
10504
  miscDeps: [truncationClass],
10387
- onEllipsis: (s) => {
10388
- console.log("\u{1F680} ~ Truncated ~ s:", s);
10389
- setIsTruncated(s);
10390
- },
10505
+ onEllipsis: setIsTruncated,
10391
10506
  children: () => normalizedChildren
10392
10507
  }
10393
10508
  ) });
@@ -10417,10 +10532,10 @@ var Truncated = ({
10417
10532
  {
10418
10533
  side: tooltipSide,
10419
10534
  className: cn(
10420
- "text-white bg-[#8B8B8B] max-w-xs sm:max-w-md wrap-break-word shadow-lg",
10535
+ "text-white bg-sus-secondary-gray-10 max-w-xs sm:max-w-md wrap-break-word shadow-lg",
10421
10536
  tooltipContentClassName
10422
10537
  ),
10423
- arrowClassName: cn("bg-[#8B8B8B] fill-[#8B8B8B]", tooltipArrowClassName),
10538
+ arrowClassName: cn("bg-sus-secondary-gray-10 fill-sus-secondary-gray-10", tooltipArrowClassName),
10424
10539
  ...tooltipContentRest,
10425
10540
  children: tooltipContent
10426
10541
  }
@@ -11237,6 +11352,65 @@ var ComboboxInner = ({
11237
11352
  };
11238
11353
  var Combobox = React26__namespace.forwardRef(ComboboxInner);
11239
11354
  var Combobox_default = Combobox;
11355
+ var TruncatedMouseEnterDiv = ({
11356
+ value,
11357
+ className,
11358
+ tooltipProps,
11359
+ tooltipContentProps,
11360
+ arrowClassName
11361
+ }) => {
11362
+ const textRef = React26.useRef(null);
11363
+ const [isTruncated, setIsTruncated] = React26.useState(false);
11364
+ const checkTruncation = () => {
11365
+ if (textRef.current) {
11366
+ const { scrollWidth, clientWidth } = textRef.current;
11367
+ setIsTruncated(scrollWidth > clientWidth);
11368
+ }
11369
+ };
11370
+ const {
11371
+ className: tooltipContentClassName,
11372
+ side: tooltipContentSide,
11373
+ sideOffset: tooltipContentSideOffset,
11374
+ ...tooltipContentRest
11375
+ } = tooltipContentProps ?? {};
11376
+ return /* @__PURE__ */ jsxRuntime.jsxs(Tooltip2, { open: isTruncated, ...tooltipProps, children: [
11377
+ /* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
11378
+ "div",
11379
+ {
11380
+ ref: textRef,
11381
+ onMouseEnter: checkTruncation,
11382
+ onMouseLeave: () => setIsTruncated(false),
11383
+ className: cn("truncate", className),
11384
+ children: value
11385
+ }
11386
+ ) }),
11387
+ /* @__PURE__ */ jsxRuntime.jsxs(
11388
+ TooltipContent2,
11389
+ {
11390
+ side: tooltipContentSide ?? "bottom",
11391
+ className: cn(
11392
+ "text-white bg-sus-secondary-gray-10 max-w-xs sm:max-w-md wrap-break-word shadow-lg",
11393
+ tooltipContentClassName
11394
+ ),
11395
+ sideOffset: tooltipContentSideOffset ?? 10,
11396
+ ...tooltipContentRest,
11397
+ children: [
11398
+ /* @__PURE__ */ jsxRuntime.jsx(
11399
+ TooltipArrow,
11400
+ {
11401
+ className: cn(
11402
+ "bg-sus-secondary-gray-10 fill-sus-secondary-gray-10 z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]",
11403
+ arrowClassName
11404
+ )
11405
+ }
11406
+ ),
11407
+ value
11408
+ ]
11409
+ }
11410
+ )
11411
+ ] });
11412
+ };
11413
+ var truncatedMouseEnterDiv_default = TruncatedMouseEnterDiv;
11240
11414
 
11241
11415
  exports.Accordion = Accordion;
11242
11416
  exports.AccordionContent = AccordionContent;
@@ -11245,6 +11419,7 @@ exports.AccordionTrigger = AccordionTrigger;
11245
11419
  exports.ActionMenu = ActionMenu;
11246
11420
  exports.AdvanceSearch = AdvanceSearch_default;
11247
11421
  exports.ArrowIcon = arrow_default;
11422
+ exports.AuditFooter = AuditFooter;
11248
11423
  exports.Button = Button;
11249
11424
  exports.Checkbox = Checkbox;
11250
11425
  exports.Collapsible = Collapsible;
@@ -11374,7 +11549,9 @@ exports.TooltipArrow = TooltipArrow;
11374
11549
  exports.TooltipContent = TooltipContent2;
11375
11550
  exports.TooltipProvider = TooltipProvider2;
11376
11551
  exports.TooltipTrigger = TooltipTrigger2;
11552
+ exports.TrashIcon = trash_default;
11377
11553
  exports.Truncated = truncated_default;
11554
+ exports.TruncatedMouseEnterDiv = truncatedMouseEnterDiv_default;
11378
11555
  exports.UI = ui_exports;
11379
11556
  exports.VirtualizedCommand = VirtualizedCommand_default;
11380
11557
  exports.booleanToSelectValue = booleanToSelectValue;