@6thbridge/hexa 0.0.0-pr41-31 → 0.0.0-pr41-34

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
@@ -373,7 +373,7 @@ type SidebarProps = {
373
373
  isMobile: boolean;
374
374
  businessProps: BusinessProps;
375
375
  currentPath: string;
376
- onNavigate: (path: string) => void;
376
+ onNavigate?: (path: string) => void;
377
377
  appConfig?: IAppConfig & {
378
378
  [key: string]: unknown;
379
379
  };
@@ -381,6 +381,11 @@ type SidebarProps = {
381
381
  openSidebarIcon?: ReactNode;
382
382
  closedSidebarIcon?: ReactNode;
383
383
  nodeAfterSideBarLogo?: ReactNode;
384
+ LinkComponent?: React.ComponentType<{
385
+ href: string;
386
+ children: React.ReactNode;
387
+ className?: string;
388
+ }> | any;
384
389
  };
385
390
  interface IAppConfig {
386
391
  appName: string;
@@ -388,7 +393,7 @@ interface IAppConfig {
388
393
  }
389
394
  type CollapseType = "icons" | "hidden";
390
395
 
391
- declare const Sidebar: ({ isSidebarCollapsed, onToggleSideBar, isMobile, links, businessProps, currentPath, onNavigate, appConfig, collapseType: propCollapseType, onLogoutClick, openSidebarIcon, closedSidebarIcon, nodeAfterSideBarLogo, }: SidebarProps) => react_jsx_runtime.JSX.Element;
396
+ declare const Sidebar: ({ isSidebarCollapsed, onToggleSideBar, isMobile, links, businessProps, currentPath, onNavigate, appConfig, collapseType: propCollapseType, onLogoutClick, openSidebarIcon, closedSidebarIcon, nodeAfterSideBarLogo, LinkComponent, }: SidebarProps) => react_jsx_runtime.JSX.Element;
392
397
 
393
398
  type Variant = "success" | "failed" | "pending" | "abandoned";
394
399
  declare const Status: ({ status, variant, className, }: {
@@ -614,6 +619,40 @@ declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimi
614
619
  viewPortClassName?: string;
615
620
  } & React$1.RefAttributes<HTMLDivElement>>;
616
621
 
622
+ type MultiSelectDataType = {
623
+ value: string;
624
+ label: string;
625
+ } & {
626
+ [key: string]: string | number;
627
+ };
628
+ interface MultiSelectProps {
629
+ options: MultiSelectDataType[];
630
+ onChange: (values: MultiSelectDataType[]) => void;
631
+ values: MultiSelectDataType[];
632
+ optionComponent?: (arg: MultiSelectDataType) => React$1.ReactNode;
633
+ className?: string;
634
+ disabled?: boolean;
635
+ hideSearch?: boolean;
636
+ modal?: boolean;
637
+ children?: React$1.ReactNode;
638
+ label?: string;
639
+ placeholder?: string;
640
+ isLoading?: boolean;
641
+ showSelectedValues?: boolean;
642
+ showAsterisk?: boolean;
643
+ description?: React$1.ReactNode;
644
+ error?: string;
645
+ }
646
+ interface MultiSelectTriggerProps extends VariantProps<typeof inputContainerVariants> {
647
+ values: MultiSelectDataType[];
648
+ disabled?: boolean;
649
+ placeholder?: string;
650
+ className?: string;
651
+ onDelete?: (el: MultiSelectDataType) => void;
652
+ }
653
+ declare const MultiSelectTrigger: ({ disabled, className, values, placeholder, status, onDelete, }: MultiSelectTriggerProps) => react_jsx_runtime.JSX.Element;
654
+ declare const MultiSelect: ({ options, children, onChange, optionComponent, values: dataValues, hideSearch, modal, placeholder, isLoading, showSelectedValues, error, label, showAsterisk, }: MultiSelectProps) => react_jsx_runtime.JSX.Element;
655
+
617
656
  declare const CurrencySymbolMap: Record<string, string>;
618
657
  interface FormatCurrencyOptions {
619
658
  convertToMajorCurrency?: boolean;
@@ -635,4 +674,4 @@ declare class DateAction {
635
674
 
636
675
  declare function cn(...inputs: ClassValue[]): string;
637
676
 
638
- export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, ScrollArea, Select, Sidebar, Status, Table, type TableBulkRowActionsProps, type TablePaginationProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };
677
+ export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, MultiSelect, type MultiSelectDataType, MultiSelectTrigger, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, ScrollArea, Select, Sidebar, Status, Table, type TableBulkRowActionsProps, type TablePaginationProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };
package/dist/index.d.ts CHANGED
@@ -373,7 +373,7 @@ type SidebarProps = {
373
373
  isMobile: boolean;
374
374
  businessProps: BusinessProps;
375
375
  currentPath: string;
376
- onNavigate: (path: string) => void;
376
+ onNavigate?: (path: string) => void;
377
377
  appConfig?: IAppConfig & {
378
378
  [key: string]: unknown;
379
379
  };
@@ -381,6 +381,11 @@ type SidebarProps = {
381
381
  openSidebarIcon?: ReactNode;
382
382
  closedSidebarIcon?: ReactNode;
383
383
  nodeAfterSideBarLogo?: ReactNode;
384
+ LinkComponent?: React.ComponentType<{
385
+ href: string;
386
+ children: React.ReactNode;
387
+ className?: string;
388
+ }> | any;
384
389
  };
385
390
  interface IAppConfig {
386
391
  appName: string;
@@ -388,7 +393,7 @@ interface IAppConfig {
388
393
  }
389
394
  type CollapseType = "icons" | "hidden";
390
395
 
391
- declare const Sidebar: ({ isSidebarCollapsed, onToggleSideBar, isMobile, links, businessProps, currentPath, onNavigate, appConfig, collapseType: propCollapseType, onLogoutClick, openSidebarIcon, closedSidebarIcon, nodeAfterSideBarLogo, }: SidebarProps) => react_jsx_runtime.JSX.Element;
396
+ declare const Sidebar: ({ isSidebarCollapsed, onToggleSideBar, isMobile, links, businessProps, currentPath, onNavigate, appConfig, collapseType: propCollapseType, onLogoutClick, openSidebarIcon, closedSidebarIcon, nodeAfterSideBarLogo, LinkComponent, }: SidebarProps) => react_jsx_runtime.JSX.Element;
392
397
 
393
398
  type Variant = "success" | "failed" | "pending" | "abandoned";
394
399
  declare const Status: ({ status, variant, className, }: {
@@ -614,6 +619,40 @@ declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimi
614
619
  viewPortClassName?: string;
615
620
  } & React$1.RefAttributes<HTMLDivElement>>;
616
621
 
622
+ type MultiSelectDataType = {
623
+ value: string;
624
+ label: string;
625
+ } & {
626
+ [key: string]: string | number;
627
+ };
628
+ interface MultiSelectProps {
629
+ options: MultiSelectDataType[];
630
+ onChange: (values: MultiSelectDataType[]) => void;
631
+ values: MultiSelectDataType[];
632
+ optionComponent?: (arg: MultiSelectDataType) => React$1.ReactNode;
633
+ className?: string;
634
+ disabled?: boolean;
635
+ hideSearch?: boolean;
636
+ modal?: boolean;
637
+ children?: React$1.ReactNode;
638
+ label?: string;
639
+ placeholder?: string;
640
+ isLoading?: boolean;
641
+ showSelectedValues?: boolean;
642
+ showAsterisk?: boolean;
643
+ description?: React$1.ReactNode;
644
+ error?: string;
645
+ }
646
+ interface MultiSelectTriggerProps extends VariantProps<typeof inputContainerVariants> {
647
+ values: MultiSelectDataType[];
648
+ disabled?: boolean;
649
+ placeholder?: string;
650
+ className?: string;
651
+ onDelete?: (el: MultiSelectDataType) => void;
652
+ }
653
+ declare const MultiSelectTrigger: ({ disabled, className, values, placeholder, status, onDelete, }: MultiSelectTriggerProps) => react_jsx_runtime.JSX.Element;
654
+ declare const MultiSelect: ({ options, children, onChange, optionComponent, values: dataValues, hideSearch, modal, placeholder, isLoading, showSelectedValues, error, label, showAsterisk, }: MultiSelectProps) => react_jsx_runtime.JSX.Element;
655
+
617
656
  declare const CurrencySymbolMap: Record<string, string>;
618
657
  interface FormatCurrencyOptions {
619
658
  convertToMajorCurrency?: boolean;
@@ -635,4 +674,4 @@ declare class DateAction {
635
674
 
636
675
  declare function cn(...inputs: ClassValue[]): string;
637
676
 
638
- export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, ScrollArea, Select, Sidebar, Status, Table, type TableBulkRowActionsProps, type TablePaginationProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };
677
+ export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, MultiSelect, type MultiSelectDataType, MultiSelectTrigger, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, ScrollArea, Select, Sidebar, Status, Table, type TableBulkRowActionsProps, type TablePaginationProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };