@sustaina/shared-ui 1.23.0 → 1.24.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
@@ -23,6 +23,7 @@ import * as SeparatorPrimitive from '@radix-ui/react-separator';
23
23
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
24
24
  import * as SwitchPrimitive from '@radix-ui/react-switch';
25
25
  import { CropperProps, Area } from 'react-easy-crop';
26
+ import { NumericFormatProps } from 'react-number-format';
26
27
  import { ClassValue } from 'clsx';
27
28
 
28
29
  declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
@@ -723,14 +724,14 @@ interface ImageProps extends Omit<React$1.ImgHTMLAttributes<HTMLImageElement>, "
723
724
  }
724
725
  declare const Image: React$1.ForwardRefExoticComponent<ImageProps & React$1.RefAttributes<HTMLImageElement>>;
725
726
 
726
- type InputPrimitiveProps = React$1.InputHTMLAttributes<HTMLInputElement>;
727
- declare const InputPrimitive: React$1.ForwardRefExoticComponent<InputPrimitiveProps & React$1.RefAttributes<HTMLInputElement>>;
728
- declare const inputVariants: (props?: ({
727
+ type InputPrimitiveProps$1 = React$1.InputHTMLAttributes<HTMLInputElement>;
728
+ declare const InputPrimitive: React$1.ForwardRefExoticComponent<InputPrimitiveProps$1 & React$1.RefAttributes<HTMLInputElement>>;
729
+ declare const inputVariants$1: (props?: ({
729
730
  controlSize?: "sm" | "lg" | "md" | null | undefined;
730
731
  fullWidth?: boolean | null | undefined;
731
732
  appearance?: "filled" | "unfilled" | null | undefined;
732
733
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
733
- type InputProps = Omit<InputPrimitiveProps, "size" | "prefix"> & VariantProps<typeof inputVariants> & {
734
+ type InputProps$1 = Omit<InputPrimitiveProps$1, "size" | "prefix"> & VariantProps<typeof inputVariants$1> & {
734
735
  prefix?: React$1.ReactNode;
735
736
  prefixProps?: React$1.HTMLAttributes<HTMLSpanElement>;
736
737
  prefixInteractive?: boolean;
@@ -746,7 +747,7 @@ type InputProps = Omit<InputPrimitiveProps, "size" | "prefix"> & VariantProps<ty
746
747
  validationMessageProps?: React$1.HTMLAttributes<HTMLParagraphElement>;
747
748
  onValueChange?: (value: string) => void;
748
749
  };
749
- declare const Input: React$1.ForwardRefExoticComponent<Omit<InputPrimitiveProps, "prefix" | "size"> & VariantProps<(props?: ({
750
+ declare const Input: React$1.ForwardRefExoticComponent<Omit<InputPrimitiveProps$1, "prefix" | "size"> & VariantProps<(props?: ({
750
751
  controlSize?: "sm" | "lg" | "md" | null | undefined;
751
752
  fullWidth?: boolean | null | undefined;
752
753
  appearance?: "filled" | "unfilled" | null | undefined;
@@ -1055,8 +1056,6 @@ declare const index_FormLabel: typeof FormLabel;
1055
1056
  declare const index_FormMessage: typeof FormMessage;
1056
1057
  declare const index_Input: typeof Input;
1057
1058
  declare const index_InputPrimitive: typeof InputPrimitive;
1058
- type index_InputPrimitiveProps = InputPrimitiveProps;
1059
- type index_InputProps = InputProps;
1060
1059
  declare const index_Label: typeof Label;
1061
1060
  declare const index_Popover: typeof Popover;
1062
1061
  declare const index_PopoverAnchor: typeof PopoverAnchor;
@@ -1125,12 +1124,11 @@ declare const index_TableHeader: typeof TableHeader;
1125
1124
  declare const index_TableRow: typeof TableRow;
1126
1125
  declare const index_Textarea: typeof Textarea;
1127
1126
  declare const index_buttonVariants: typeof buttonVariants;
1128
- declare const index_inputVariants: typeof inputVariants;
1129
1127
  declare const index_spinnerVariants: typeof spinnerVariants;
1130
1128
  declare const index_useFormField: typeof useFormField;
1131
1129
  declare const index_useSidebar: typeof useSidebar;
1132
1130
  declare namespace index {
1133
- 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, index_Dialog 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 index_InputPrimitiveProps as InputPrimitiveProps, type index_InputProps 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, index_inputVariants as inputVariants, index_spinnerVariants as spinnerVariants, index_useFormField as useFormField, index_useSidebar as useSidebar };
1131
+ 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, index_Dialog 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 };
1134
1132
  }
1135
1133
 
1136
1134
  type SidebarContextProps = {
@@ -1282,6 +1280,39 @@ type TruncatedProps = {
1282
1280
  };
1283
1281
  declare const Truncated: ({ children, className, ellipsis, as, style }: TruncatedProps) => react_jsx_runtime.JSX.Element;
1284
1282
 
1283
+ type InputPrimitiveProps = React$1.InputHTMLAttributes<HTMLInputElement>;
1284
+ declare const inputVariants: (props?: ({
1285
+ controlSize?: "sm" | "lg" | "md" | null | undefined;
1286
+ fullWidth?: boolean | null | undefined;
1287
+ appearance?: "filled" | "unfilled" | null | undefined;
1288
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
1289
+ type InputProps = Omit<InputPrimitiveProps, "size" | "prefix"> & VariantProps<typeof inputVariants> & {
1290
+ addonPrefix?: React$1.ReactNode;
1291
+ addonPrefixProps?: React$1.HTMLAttributes<HTMLSpanElement>;
1292
+ prefixInteractive?: boolean;
1293
+ addonSuffix?: React$1.ReactNode;
1294
+ addonSuffixProps?: React$1.HTMLAttributes<HTMLSpanElement>;
1295
+ suffixInteractive?: boolean;
1296
+ wrapperClassName?: string;
1297
+ invalid?: boolean;
1298
+ loading?: boolean;
1299
+ loadingIcon?: React$1.ReactNode;
1300
+ validationMessage?: React$1.ReactNode;
1301
+ validationIcon?: React$1.ReactNode;
1302
+ validationMessageProps?: React$1.HTMLAttributes<HTMLParagraphElement>;
1303
+ onValueChange?: (value: string) => void;
1304
+ };
1305
+
1306
+ type InputCustomInputProps = Omit<InputProps, "type" | "value" | "defaultValue" | "onValueChange" | "prefix" | "suffix"> & {
1307
+ type?: NumericFormatProps<InputProps>["type"];
1308
+ value?: NumericFormatProps<InputProps>["value"];
1309
+ defaultValue?: NumericFormatProps<InputProps>["defaultValue"];
1310
+ };
1311
+ type InputNumberProps = NumericFormatProps<InputProps> & {
1312
+ customInputProps?: InputCustomInputProps;
1313
+ };
1314
+ declare const InputNumber: ({ customInputProps, ...props }: InputNumberProps) => react_jsx_runtime.JSX.Element;
1315
+
1285
1316
  declare function isDefined(value: any): boolean;
1286
1317
  declare function isEmptyObject(value: any): boolean;
1287
1318
  type DebounceOptions = {
@@ -1394,4 +1425,4 @@ type UseTruncatedOptions<T> = {
1394
1425
  type UseTruncatedResult = boolean;
1395
1426
  declare const useTruncated: <T extends HTMLElement = any>({ elementRef, onChange, resizeDetectDelay }: UseTruncatedOptions<T>) => UseTruncatedResult;
1396
1427
 
1397
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvanceSearch, ArrowIcon, type Breakpoints, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, DIALOG_ALERT_I18N_SUBNAMESPACE, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type EllipsisConfig, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type FieldSchema, type FieldType, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HeaderCell, type HeaderCellProps, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, Input, type InputProps, Label, List, ListContainer, type ListContainerProps, ListHeader, type ListHeaderProps, type ListProps, ListTable, type ListTableProps, LookupSelect, type LookupSelectOption, type LookupSelectProps, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type Params, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, type PrefixMap, PreventPageLeave, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, type TemplateKeys, Textarea, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, Truncated, type TruncatedProps, index as UI, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, getDialogTemplates, inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
1428
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvanceSearch, ArrowIcon, type Breakpoints, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, DIALOG_ALERT_I18N_SUBNAMESPACE, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type EllipsisConfig, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type FieldSchema, type FieldType, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HeaderCell, type HeaderCellProps, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, List, ListContainer, type ListContainerProps, ListHeader, type ListHeaderProps, type ListProps, ListTable, type ListTableProps, LookupSelect, type LookupSelectOption, type LookupSelectProps, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type Params, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, type PrefixMap, PreventPageLeave, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, type TemplateKeys, Textarea, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, Truncated, type TruncatedProps, index as UI, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, getDialogTemplates, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
package/dist/index.d.ts CHANGED
@@ -23,6 +23,7 @@ import * as SeparatorPrimitive from '@radix-ui/react-separator';
23
23
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
24
24
  import * as SwitchPrimitive from '@radix-ui/react-switch';
25
25
  import { CropperProps, Area } from 'react-easy-crop';
26
+ import { NumericFormatProps } from 'react-number-format';
26
27
  import { ClassValue } from 'clsx';
27
28
 
28
29
  declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
@@ -723,14 +724,14 @@ interface ImageProps extends Omit<React$1.ImgHTMLAttributes<HTMLImageElement>, "
723
724
  }
724
725
  declare const Image: React$1.ForwardRefExoticComponent<ImageProps & React$1.RefAttributes<HTMLImageElement>>;
725
726
 
726
- type InputPrimitiveProps = React$1.InputHTMLAttributes<HTMLInputElement>;
727
- declare const InputPrimitive: React$1.ForwardRefExoticComponent<InputPrimitiveProps & React$1.RefAttributes<HTMLInputElement>>;
728
- declare const inputVariants: (props?: ({
727
+ type InputPrimitiveProps$1 = React$1.InputHTMLAttributes<HTMLInputElement>;
728
+ declare const InputPrimitive: React$1.ForwardRefExoticComponent<InputPrimitiveProps$1 & React$1.RefAttributes<HTMLInputElement>>;
729
+ declare const inputVariants$1: (props?: ({
729
730
  controlSize?: "sm" | "lg" | "md" | null | undefined;
730
731
  fullWidth?: boolean | null | undefined;
731
732
  appearance?: "filled" | "unfilled" | null | undefined;
732
733
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
733
- type InputProps = Omit<InputPrimitiveProps, "size" | "prefix"> & VariantProps<typeof inputVariants> & {
734
+ type InputProps$1 = Omit<InputPrimitiveProps$1, "size" | "prefix"> & VariantProps<typeof inputVariants$1> & {
734
735
  prefix?: React$1.ReactNode;
735
736
  prefixProps?: React$1.HTMLAttributes<HTMLSpanElement>;
736
737
  prefixInteractive?: boolean;
@@ -746,7 +747,7 @@ type InputProps = Omit<InputPrimitiveProps, "size" | "prefix"> & VariantProps<ty
746
747
  validationMessageProps?: React$1.HTMLAttributes<HTMLParagraphElement>;
747
748
  onValueChange?: (value: string) => void;
748
749
  };
749
- declare const Input: React$1.ForwardRefExoticComponent<Omit<InputPrimitiveProps, "prefix" | "size"> & VariantProps<(props?: ({
750
+ declare const Input: React$1.ForwardRefExoticComponent<Omit<InputPrimitiveProps$1, "prefix" | "size"> & VariantProps<(props?: ({
750
751
  controlSize?: "sm" | "lg" | "md" | null | undefined;
751
752
  fullWidth?: boolean | null | undefined;
752
753
  appearance?: "filled" | "unfilled" | null | undefined;
@@ -1055,8 +1056,6 @@ declare const index_FormLabel: typeof FormLabel;
1055
1056
  declare const index_FormMessage: typeof FormMessage;
1056
1057
  declare const index_Input: typeof Input;
1057
1058
  declare const index_InputPrimitive: typeof InputPrimitive;
1058
- type index_InputPrimitiveProps = InputPrimitiveProps;
1059
- type index_InputProps = InputProps;
1060
1059
  declare const index_Label: typeof Label;
1061
1060
  declare const index_Popover: typeof Popover;
1062
1061
  declare const index_PopoverAnchor: typeof PopoverAnchor;
@@ -1125,12 +1124,11 @@ declare const index_TableHeader: typeof TableHeader;
1125
1124
  declare const index_TableRow: typeof TableRow;
1126
1125
  declare const index_Textarea: typeof Textarea;
1127
1126
  declare const index_buttonVariants: typeof buttonVariants;
1128
- declare const index_inputVariants: typeof inputVariants;
1129
1127
  declare const index_spinnerVariants: typeof spinnerVariants;
1130
1128
  declare const index_useFormField: typeof useFormField;
1131
1129
  declare const index_useSidebar: typeof useSidebar;
1132
1130
  declare namespace index {
1133
- 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, index_Dialog 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 index_InputPrimitiveProps as InputPrimitiveProps, type index_InputProps 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, index_inputVariants as inputVariants, index_spinnerVariants as spinnerVariants, index_useFormField as useFormField, index_useSidebar as useSidebar };
1131
+ 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, index_Dialog 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 };
1134
1132
  }
1135
1133
 
1136
1134
  type SidebarContextProps = {
@@ -1282,6 +1280,39 @@ type TruncatedProps = {
1282
1280
  };
1283
1281
  declare const Truncated: ({ children, className, ellipsis, as, style }: TruncatedProps) => react_jsx_runtime.JSX.Element;
1284
1282
 
1283
+ type InputPrimitiveProps = React$1.InputHTMLAttributes<HTMLInputElement>;
1284
+ declare const inputVariants: (props?: ({
1285
+ controlSize?: "sm" | "lg" | "md" | null | undefined;
1286
+ fullWidth?: boolean | null | undefined;
1287
+ appearance?: "filled" | "unfilled" | null | undefined;
1288
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
1289
+ type InputProps = Omit<InputPrimitiveProps, "size" | "prefix"> & VariantProps<typeof inputVariants> & {
1290
+ addonPrefix?: React$1.ReactNode;
1291
+ addonPrefixProps?: React$1.HTMLAttributes<HTMLSpanElement>;
1292
+ prefixInteractive?: boolean;
1293
+ addonSuffix?: React$1.ReactNode;
1294
+ addonSuffixProps?: React$1.HTMLAttributes<HTMLSpanElement>;
1295
+ suffixInteractive?: boolean;
1296
+ wrapperClassName?: string;
1297
+ invalid?: boolean;
1298
+ loading?: boolean;
1299
+ loadingIcon?: React$1.ReactNode;
1300
+ validationMessage?: React$1.ReactNode;
1301
+ validationIcon?: React$1.ReactNode;
1302
+ validationMessageProps?: React$1.HTMLAttributes<HTMLParagraphElement>;
1303
+ onValueChange?: (value: string) => void;
1304
+ };
1305
+
1306
+ type InputCustomInputProps = Omit<InputProps, "type" | "value" | "defaultValue" | "onValueChange" | "prefix" | "suffix"> & {
1307
+ type?: NumericFormatProps<InputProps>["type"];
1308
+ value?: NumericFormatProps<InputProps>["value"];
1309
+ defaultValue?: NumericFormatProps<InputProps>["defaultValue"];
1310
+ };
1311
+ type InputNumberProps = NumericFormatProps<InputProps> & {
1312
+ customInputProps?: InputCustomInputProps;
1313
+ };
1314
+ declare const InputNumber: ({ customInputProps, ...props }: InputNumberProps) => react_jsx_runtime.JSX.Element;
1315
+
1285
1316
  declare function isDefined(value: any): boolean;
1286
1317
  declare function isEmptyObject(value: any): boolean;
1287
1318
  type DebounceOptions = {
@@ -1394,4 +1425,4 @@ type UseTruncatedOptions<T> = {
1394
1425
  type UseTruncatedResult = boolean;
1395
1426
  declare const useTruncated: <T extends HTMLElement = any>({ elementRef, onChange, resizeDetectDelay }: UseTruncatedOptions<T>) => UseTruncatedResult;
1396
1427
 
1397
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvanceSearch, ArrowIcon, type Breakpoints, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, DIALOG_ALERT_I18N_SUBNAMESPACE, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type EllipsisConfig, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type FieldSchema, type FieldType, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HeaderCell, type HeaderCellProps, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, Input, type InputProps, Label, List, ListContainer, type ListContainerProps, ListHeader, type ListHeaderProps, type ListProps, ListTable, type ListTableProps, LookupSelect, type LookupSelectOption, type LookupSelectProps, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type Params, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, type PrefixMap, PreventPageLeave, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, type TemplateKeys, Textarea, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, Truncated, type TruncatedProps, index as UI, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, getDialogTemplates, inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
1428
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvanceSearch, ArrowIcon, type Breakpoints, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, DIALOG_ALERT_I18N_SUBNAMESPACE, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type EllipsisConfig, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type FieldSchema, type FieldType, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HeaderCell, type HeaderCellProps, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, List, ListContainer, type ListContainerProps, ListHeader, type ListHeaderProps, type ListProps, ListTable, type ListTableProps, LookupSelect, type LookupSelectOption, type LookupSelectProps, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type Params, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, type PrefixMap, PreventPageLeave, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, type TemplateKeys, Textarea, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, Truncated, type TruncatedProps, index as UI, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, getDialogTemplates, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
package/dist/index.js CHANGED
@@ -58,6 +58,7 @@ var selection = require('@lexical/selection');
58
58
  var SeparatorPrimitive = require('@radix-ui/react-separator');
59
59
  var SwitchPrimitive = require('@radix-ui/react-switch');
60
60
  var Cropper = require('react-easy-crop');
61
+ var reactNumberFormat = require('react-number-format');
61
62
 
62
63
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
63
64
 
@@ -5110,17 +5111,17 @@ var defaultResource = {
5110
5111
  };
5111
5112
 
5112
5113
  // src/components/dialog-alert/locale/i18n.ts
5113
- i18n__default.default.use(reactI18next.initReactI18next).init({
5114
+ var instance = i18n__default.default.createInstance({
5114
5115
  resources: defaultResource,
5115
5116
  lng: "sharedui",
5116
5117
  fallbackLng: "sharedui",
5117
5118
  defaultNS: "translation",
5118
5119
  interpolation: {
5119
5120
  escapeValue: false
5120
- // react already safes from xss
5121
5121
  }
5122
- });
5123
- var i18n_default = i18n__default.default;
5122
+ }).use(reactI18next.initReactI18next);
5123
+ instance.init();
5124
+ var i18n_default = instance;
5124
5125
  var titleColorVariant = {
5125
5126
  default: "",
5126
5127
  success: "text-green-600",
@@ -5136,7 +5137,7 @@ function DialogAlert({
5136
5137
  description,
5137
5138
  variant = "default",
5138
5139
  confirmText,
5139
- cancelText = "cancel",
5140
+ cancelText = i18nPrefix + "cancel",
5140
5141
  onConfirm,
5141
5142
  onCancel,
5142
5143
  showCancel = true,
@@ -5145,7 +5146,6 @@ function DialogAlert({
5145
5146
  persistent = false
5146
5147
  }) {
5147
5148
  const alignClass = align === "start" ? "justify-start" : align === "end" ? "justify-end" : "justify-center";
5148
- const { t } = reactI18next.useTranslation();
5149
5149
  const handleCancel = React4.useCallback(() => {
5150
5150
  onCancel?.();
5151
5151
  onOpenChange(false);
@@ -5157,13 +5157,13 @@ function DialogAlert({
5157
5157
  return /* @__PURE__ */ jsxRuntime.jsx(Dialog2, { open, onOpenChange: persistent ? () => {
5158
5158
  } : onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent2, { className: "max-w-md", showCloseButton: !persistent, children: [
5159
5159
  /* @__PURE__ */ jsxRuntime.jsxs(DialogHeader2, { children: [
5160
- title && /* @__PURE__ */ jsxRuntime.jsx(DialogTitle2, { className: titleColorVariant[variant], children: t(title) }),
5161
- description && /* @__PURE__ */ jsxRuntime.jsx(DialogDescription2, { children: t(description) })
5160
+ title && /* @__PURE__ */ jsxRuntime.jsx(DialogTitle2, { className: titleColorVariant[variant], children: i18n_default.t(title) }),
5161
+ description && /* @__PURE__ */ jsxRuntime.jsx(DialogDescription2, { children: i18n_default.t(description) })
5162
5162
  ] }),
5163
5163
  outlet && outlet,
5164
5164
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex gap-3 mt-3 ${alignClass}`, children: [
5165
- showCancel && /* @__PURE__ */ jsxRuntime.jsx(Button2, { variant: "cancel", onClick: handleCancel, children: t(cancelText) }),
5166
- confirmText && /* @__PURE__ */ jsxRuntime.jsx(Button2, { variant, onClick: handleConfirm, children: t(confirmText) })
5165
+ showCancel && /* @__PURE__ */ jsxRuntime.jsx(Button2, { variant: "cancel", onClick: handleCancel, children: i18n_default.t(cancelText) }),
5166
+ confirmText && /* @__PURE__ */ jsxRuntime.jsx(Button2, { variant, onClick: handleConfirm, children: i18n_default.t(confirmText) })
5167
5167
  ] })
5168
5168
  ] }) });
5169
5169
  }
@@ -9778,6 +9778,173 @@ var Truncated = ({ children, className, ellipsis = true, as = "p", style }) => {
9778
9778
  );
9779
9779
  };
9780
9780
  var truncated_default = Truncated;
9781
+ var InputPrimitive2 = React4__namespace.forwardRef(
9782
+ ({ className, type = "text", ...props }, ref) => {
9783
+ return /* @__PURE__ */ jsxRuntime.jsx(
9784
+ "input",
9785
+ {
9786
+ ref,
9787
+ type,
9788
+ className: cn(
9789
+ "placeholder:text-neutral-400 text-neutral-900 flex h-10 w-full min-w-0 items-center rounded-lg border bg-white px-4 text-sm transition-colors outline-none file:inline-flex file:h-7 file:rounded-md file:border-0 file:bg-transparent file:px-2 file:text-sm file:font-medium hover:border-neutral-500 focus-visible:border-neutral-900 focus-visible:ring-0 disabled:cursor-not-allowed disabled:bg-neutral-100 disabled:text-neutral-400 disabled:border-neutral-200 aria-invalid:border-destructive",
9790
+ className
9791
+ ),
9792
+ ...props
9793
+ }
9794
+ );
9795
+ }
9796
+ );
9797
+ InputPrimitive2.displayName = "InputPrimitive";
9798
+ var inputVariants2 = classVarianceAuthority.cva("", {
9799
+ variants: {
9800
+ controlSize: {
9801
+ sm: "h-9 rounded-md px-3 text-sm",
9802
+ md: "h-10 rounded-lg px-4 text-sm",
9803
+ lg: "h-12 rounded-xl px-5 text-base"
9804
+ },
9805
+ fullWidth: {
9806
+ true: "w-full",
9807
+ false: "w-auto"
9808
+ },
9809
+ appearance: {
9810
+ filled: "border-neutral-200 hover:border-neutral-500 focus-visible:border-neutral-900",
9811
+ unfilled: "bg-white border-neutral-300 hover:border-neutral-500 focus-visible:border-neutral-900"
9812
+ }
9813
+ },
9814
+ defaultVariants: {
9815
+ controlSize: "sm",
9816
+ fullWidth: true,
9817
+ appearance: "filled"
9818
+ }
9819
+ });
9820
+ var Input2 = React4__namespace.forwardRef(
9821
+ ({
9822
+ className,
9823
+ wrapperClassName,
9824
+ controlSize,
9825
+ fullWidth,
9826
+ appearance,
9827
+ addonPrefix,
9828
+ addonPrefixProps,
9829
+ prefixInteractive,
9830
+ addonSuffix,
9831
+ addonSuffixProps,
9832
+ suffixInteractive,
9833
+ invalid,
9834
+ loading,
9835
+ loadingIcon,
9836
+ validationMessage,
9837
+ validationIcon,
9838
+ validationMessageProps,
9839
+ onValueChange,
9840
+ type = "text",
9841
+ ...rest
9842
+ }, ref) => {
9843
+ const inputProps = rest;
9844
+ const hasPrefix = Boolean(addonPrefix);
9845
+ const hasSuffix = Boolean(addonSuffix) || loading;
9846
+ const isFullWidth = fullWidth ?? true;
9847
+ const {
9848
+ "aria-invalid": ariaInvalidProp,
9849
+ "aria-describedby": ariaDescribedByProp,
9850
+ onChange: onChangeProp
9851
+ } = rest;
9852
+ const ariaInvalid = invalid ?? ariaInvalidProp;
9853
+ const messageId = React4__namespace.useId();
9854
+ const handleChange = React4__namespace.useCallback(
9855
+ (event) => {
9856
+ onChangeProp?.(event);
9857
+ onValueChange?.(event.target.value);
9858
+ },
9859
+ [onChangeProp, onValueChange]
9860
+ );
9861
+ const resolvedAriaInvalid = typeof ariaInvalid === "string" ? ariaInvalid : ariaInvalid ? true : void 0;
9862
+ const describedBy = validationMessage ? [ariaDescribedByProp, messageId].filter(Boolean).join(" ") : ariaDescribedByProp;
9863
+ const controlWrapperClassName = cn(
9864
+ "relative inline-flex items-center",
9865
+ isFullWidth ? "w-full" : "w-fit",
9866
+ !validationMessage && wrapperClassName
9867
+ );
9868
+ const inputElement = /* @__PURE__ */ jsxRuntime.jsx(
9869
+ InputPrimitive2,
9870
+ {
9871
+ ref,
9872
+ type,
9873
+ "data-slot": "input",
9874
+ className: cn(
9875
+ inputVariants2({ controlSize, fullWidth: isFullWidth, appearance }),
9876
+ hasPrefix && "pl-10",
9877
+ hasSuffix && "pr-10",
9878
+ className
9879
+ ),
9880
+ "aria-invalid": resolvedAriaInvalid,
9881
+ "aria-describedby": describedBy || void 0,
9882
+ onChange: handleChange,
9883
+ ...inputProps
9884
+ }
9885
+ );
9886
+ if (!hasPrefix && !hasSuffix && !validationMessage) {
9887
+ return inputElement;
9888
+ }
9889
+ const { className: prefixClassName, ...prefixRest } = addonPrefixProps ?? {};
9890
+ const { className: suffixClassName, ...suffixRest } = addonSuffixProps ?? {};
9891
+ const { className: validationMessageClassName, ...validationMessageRest } = validationMessageProps ?? {};
9892
+ const suffixContent = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
9893
+ addonSuffix,
9894
+ loading && (loadingIcon ?? /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: 16, variant: "muted" }))
9895
+ ] });
9896
+ const inputWithAffixes = /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "input-wrapper", className: controlWrapperClassName, children: [
9897
+ hasPrefix && /* @__PURE__ */ jsxRuntime.jsx(
9898
+ "span",
9899
+ {
9900
+ ...prefixRest,
9901
+ className: cn(
9902
+ "absolute left-3 top-1/2 -translate-y-1/2 inline-flex items-center text-muted-foreground",
9903
+ !prefixInteractive && "pointer-events-none",
9904
+ prefixClassName
9905
+ ),
9906
+ children: addonPrefix
9907
+ }
9908
+ ),
9909
+ inputElement,
9910
+ hasSuffix && /* @__PURE__ */ jsxRuntime.jsx(
9911
+ "span",
9912
+ {
9913
+ ...suffixRest,
9914
+ className: cn(
9915
+ "absolute right-3 top-1/2 -translate-y-1/2 inline-flex items-center gap-2 text-muted-foreground",
9916
+ !suffixInteractive && "pointer-events-none",
9917
+ suffixClassName
9918
+ ),
9919
+ children: suffixContent
9920
+ }
9921
+ )
9922
+ ] });
9923
+ if (!validationMessage) {
9924
+ return inputWithAffixes;
9925
+ }
9926
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col gap-1", isFullWidth ? "w-full" : "w-fit", wrapperClassName), children: [
9927
+ inputWithAffixes,
9928
+ /* @__PURE__ */ jsxRuntime.jsxs(
9929
+ "p",
9930
+ {
9931
+ id: messageId,
9932
+ ...validationMessageRest,
9933
+ className: cn("flex items-center gap-2 text-sm text-destructive", validationMessageClassName),
9934
+ children: [
9935
+ validationIcon ?? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleX, { className: "size-4" }),
9936
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: validationMessage })
9937
+ ]
9938
+ }
9939
+ )
9940
+ ] });
9941
+ }
9942
+ );
9943
+ Input2.displayName = "Input";
9944
+ var InputNumber = ({ customInputProps, ...props }) => {
9945
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNumberFormat.NumericFormat, { customInput: Input2, ...props, ...customInputProps });
9946
+ };
9947
+ var InputNumber_default = InputNumber;
9781
9948
 
9782
9949
  exports.Accordion = Accordion;
9783
9950
  exports.AccordionContent = AccordionContent;
@@ -9820,6 +9987,7 @@ exports.GridSettingsModal = GridSettingsModal_default;
9820
9987
  exports.HeaderCell = HeaderCell_default;
9821
9988
  exports.Image = Image2;
9822
9989
  exports.Input = Input;
9990
+ exports.InputNumber = InputNumber_default;
9823
9991
  exports.Label = Label2;
9824
9992
  exports.List = List_default;
9825
9993
  exports.ListContainer = container_default;