eai-frontend-components 2.0.25 → 2.0.27

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.ts CHANGED
@@ -80,7 +80,7 @@ declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitiv
80
80
  declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
81
81
 
82
82
  declare const badgeVariants: (props?: ({
83
- variant?: "default" | "secondary" | "surface" | "destructive" | "outline" | "green" | "red" | "gray" | "blue" | "orange" | null | undefined;
83
+ variant?: "default" | "destructive" | "secondary" | "outline" | "surface" | "green" | "red" | "gray" | "blue" | "orange" | null | undefined;
84
84
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
85
85
  interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
86
86
  }
@@ -105,7 +105,7 @@ declare const BreadcrumbEllipsis: {
105
105
  };
106
106
 
107
107
  declare const buttonVariants: (props?: ({
108
- variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
108
+ variant?: "default" | "destructive" | "link" | "secondary" | "outline" | "ghost" | null | undefined;
109
109
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
110
110
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
111
111
  interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -131,7 +131,7 @@ type CarouselPlugin = UseCarouselParameters[1];
131
131
  type CarouselProps = {
132
132
  opts?: CarouselOptions;
133
133
  plugins?: CarouselPlugin;
134
- orientation?: "horizontal" | "vertical";
134
+ orientation?: 'horizontal' | 'vertical';
135
135
  setApi?: (api: CarouselApi) => void;
136
136
  };
137
137
  declare const Carousel: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & CarouselProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -204,11 +204,11 @@ declare const CollapsibleContent: React$1.ForwardRefExoticComponent<CollapsibleP
204
204
 
205
205
  declare const Command: React$1.ForwardRefExoticComponent<Omit<{
206
206
  children?: React$1.ReactNode;
207
- } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
207
+ } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
208
208
  ref?: React$1.Ref<HTMLDivElement>;
209
209
  } & {
210
210
  asChild?: boolean;
211
- }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
211
+ }, keyof React$1.HTMLAttributes<HTMLDivElement> | "key" | "asChild"> & {
212
212
  label?: string;
213
213
  shouldFilter?: boolean;
214
214
  filter?: (value: string, search: string, keywords?: string[]) => number;
@@ -230,45 +230,45 @@ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pic
230
230
  } & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
231
231
  declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
232
232
  children?: React$1.ReactNode;
233
- } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
233
+ } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
234
234
  ref?: React$1.Ref<HTMLDivElement>;
235
235
  } & {
236
236
  asChild?: boolean;
237
- }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
237
+ }, keyof React$1.HTMLAttributes<HTMLDivElement> | "key" | "asChild"> & {
238
238
  label?: string;
239
239
  } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
240
240
  declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
241
241
  children?: React$1.ReactNode;
242
- } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
242
+ } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
243
243
  ref?: React$1.Ref<HTMLDivElement>;
244
244
  } & {
245
245
  asChild?: boolean;
246
- }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
246
+ }, keyof React$1.HTMLAttributes<HTMLDivElement> | "key" | "asChild"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
247
247
  declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
248
248
  children?: React$1.ReactNode;
249
- } & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
249
+ } & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
250
250
  ref?: React$1.Ref<HTMLDivElement>;
251
251
  } & {
252
252
  asChild?: boolean;
253
- }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
253
+ }, keyof React$1.HTMLAttributes<HTMLDivElement> | "key" | "asChild">, "value" | "heading"> & {
254
254
  heading?: React$1.ReactNode;
255
255
  value?: string;
256
256
  forceMount?: boolean;
257
257
  } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
258
- declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
258
+ declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
259
259
  ref?: React$1.Ref<HTMLDivElement>;
260
260
  } & {
261
261
  asChild?: boolean;
262
- }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
262
+ }, keyof React$1.HTMLAttributes<HTMLDivElement> | "key" | "asChild"> & {
263
263
  alwaysRender?: boolean;
264
264
  } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
265
265
  declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
266
266
  children?: React$1.ReactNode;
267
- } & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
267
+ } & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
268
268
  ref?: React$1.Ref<HTMLDivElement>;
269
269
  } & {
270
270
  asChild?: boolean;
271
- }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
271
+ }, keyof React$1.HTMLAttributes<HTMLDivElement> | "key" | "asChild">, "onSelect" | "disabled" | "value"> & {
272
272
  disabled?: boolean;
273
273
  onSelect?: (value: string) => void;
274
274
  value?: string;
@@ -305,7 +305,7 @@ declare const ContextMenuShortcut: {
305
305
  displayName: string;
306
306
  };
307
307
 
308
- declare function DatePickerWithRange({ className, }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
308
+ declare function DatePickerWithRange({ className }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
309
309
 
310
310
  declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
311
311
  declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
@@ -681,29 +681,6 @@ declare function UseCalendar({ className, getDataFilter }: CalendarFormProps): r
681
681
 
682
682
  type CalendarProps = React__default.ComponentProps<typeof DayPicker>;
683
683
 
684
- type Theme = 'light' | 'dark' | 'dark-side';
685
- type ThemePortalDefinitions = {
686
- faviconPath: string;
687
- fullLogoPath: string;
688
- bannerDesktopPath: string;
689
- mvnoPrimaryColor: string;
690
- mvnoMainTheme: Theme;
691
- title: string;
692
- hideModuleSwitcher: boolean;
693
- };
694
- type ThemeProviderProps = {
695
- children: React.ReactNode;
696
- defaultTheme?: ThemePortalDefinitions;
697
- storageKey?: string;
698
- };
699
- type ThemeProviderState = {
700
- portalDefinitions: ThemePortalDefinitions;
701
- setPortalDefinitions: (portalDefinitions: ThemePortalDefinitions) => void;
702
- };
703
- declare const DEFAULT_THEME_DATA: ThemePortalDefinitions;
704
- declare function ThemeProvider({ children, defaultTheme, storageKey, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
705
- declare const useTheme: () => ThemeProviderState;
706
-
707
684
  interface Props$j {
708
685
  control: any;
709
686
  name: string;
@@ -851,6 +828,15 @@ interface Props$b {
851
828
  }
852
829
  declare const FormInputFile: React.FC<Props$b>;
853
830
 
831
+ declare const formHelpText: (helpText: JSX.Element) => react_jsx_runtime.JSX.Element;
832
+
833
+ type FormLabelComponent = React__default.ForwardRefExoticComponent<React__default.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & React__default.RefAttributes<React__default.ElementRef<typeof LabelPrimitive.Root>>>;
834
+ declare const formLabel: (FormLabel: FormLabelComponent, label: string) => react_jsx_runtime.JSX.Element;
835
+ declare const formLabelAndSubLabel: (FormLabel: FormLabelComponent, label: string, subLabel?: string, required?: boolean | undefined, className?: string) => react_jsx_runtime.JSX.Element;
836
+
837
+ type FormMessageComponent = React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & React__default.RefAttributes<HTMLParagraphElement>>;
838
+ declare const formMessage: (FormMessage: FormMessageComponent) => react_jsx_runtime.JSX.Element;
839
+
854
840
  interface Props$a {
855
841
  control: any;
856
842
  name: string;
@@ -894,7 +880,7 @@ interface Props$8 {
894
880
  declare const FormInputMask: React.FC<Props$8>;
895
881
 
896
882
  declare const multiSelectVariants: (props?: ({
897
- variant?: "default" | "secondary" | "destructive" | "inverted" | null | undefined;
883
+ variant?: "default" | "destructive" | "secondary" | "inverted" | null | undefined;
898
884
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
899
885
  interface MultiSelectOption {
900
886
  value: string;
@@ -1054,14 +1040,119 @@ interface Props {
1054
1040
  }
1055
1041
  declare const FormTextarea: React.FC<Props>;
1056
1042
 
1057
- declare const formHelpText: (helpText: JSX.Element) => react_jsx_runtime.JSX.Element;
1043
+ declare const SidebarSubmenuType: {
1044
+ readonly COLLAPSIBLE: "collapsible";
1045
+ readonly DROPDOWN: "dropdown";
1046
+ };
1047
+ type SidebarSubmenuType = (typeof SidebarSubmenuType)[keyof typeof SidebarSubmenuType];
1048
+ interface Module {
1049
+ value: string;
1050
+ path: string;
1051
+ title: string;
1052
+ icon: React.ReactNode;
1053
+ subTitle: string;
1054
+ }
1055
+ interface SidebarPage {
1056
+ module: Module;
1057
+ path: string;
1058
+ icon?: React.ReactNode;
1059
+ title: string;
1060
+ hideSidebar: boolean;
1061
+ displayOnlyresellerIsAdm?: boolean;
1062
+ subMenuType?: SidebarSubmenuType;
1063
+ subMenuItems?: {
1064
+ label: string;
1065
+ description?: string;
1066
+ path: string;
1067
+ displayOnlyresellerIsAdm?: boolean;
1068
+ disabled?: boolean;
1069
+ }[];
1070
+ }
1058
1071
 
1059
- type FormLabelComponent = React__default.ForwardRefExoticComponent<React__default.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & React__default.RefAttributes<React__default.ElementRef<typeof LabelPrimitive.Root>>>;
1060
- declare const formLabel: (FormLabel: FormLabelComponent, label: string) => react_jsx_runtime.JSX.Element;
1061
- declare const formLabelAndSubLabel: (FormLabel: FormLabelComponent, label: string, subLabel?: string, required?: boolean | undefined, className?: string) => react_jsx_runtime.JSX.Element;
1072
+ declare const Header: ({ splittedPath, modules, pages, isLoading, combobox, }: {
1073
+ splittedPath: string[];
1074
+ modules: Module[];
1075
+ pages: SidebarPage[];
1076
+ isLoading: boolean;
1077
+ combobox: ReactNode;
1078
+ }) => react_jsx_runtime.JSX.Element;
1062
1079
 
1063
- type FormMessageComponent = React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & React__default.RefAttributes<HTMLParagraphElement>>;
1064
- declare const formMessage: (FormMessage: FormMessageComponent) => react_jsx_runtime.JSX.Element;
1080
+ interface LabelWithTitleProps {
1081
+ title: string;
1082
+ value: string;
1083
+ value2?: string;
1084
+ required?: boolean;
1085
+ showCopyIcon?: boolean;
1086
+ className?: string;
1087
+ isLoading?: boolean;
1088
+ }
1089
+ declare const LabelWithTitle: React__default.FC<LabelWithTitleProps>;
1090
+
1091
+ declare const NotFound: () => react_jsx_runtime.JSX.Element;
1092
+
1093
+ interface ModuleSwitcherProps {
1094
+ modules: Module[];
1095
+ activeModule: Module | undefined;
1096
+ onModuleChange: (module: Module) => void;
1097
+ }
1098
+ declare const ModuleSwitcher: ({ modules, activeModule, onModuleChange }: ModuleSwitcherProps) => react_jsx_runtime.JSX.Element;
1099
+
1100
+ interface NavFooterProps {
1101
+ pages: SidebarPage[];
1102
+ }
1103
+ declare const NavFooter: ({ pages }: NavFooterProps) => react_jsx_runtime.JSX.Element;
1104
+
1105
+ interface NavMainProps {
1106
+ pages: SidebarPage[];
1107
+ }
1108
+ declare const NavMain: ({ pages }: NavMainProps) => react_jsx_runtime.JSX.Element;
1109
+
1110
+ interface NavSubmenuCollapsibleProps {
1111
+ item: SidebarPage;
1112
+ selectedRoute: string | null;
1113
+ onClick: (path: string) => void;
1114
+ }
1115
+ declare const NavSubmenuCollapsible: ({ item, selectedRoute, onClick }: NavSubmenuCollapsibleProps) => react_jsx_runtime.JSX.Element;
1116
+
1117
+ interface NavSubmenuDropdownProps {
1118
+ cols?: number;
1119
+ item: SidebarPage;
1120
+ selectedRoute: string | null;
1121
+ onClick: (path: string) => void;
1122
+ }
1123
+ declare const NavSubmenuDropdown: ({ cols, item, selectedRoute, onClick }: NavSubmenuDropdownProps) => react_jsx_runtime.JSX.Element;
1124
+
1125
+ interface NavUserProps {
1126
+ userName: string;
1127
+ userEmail: string;
1128
+ userInitials: string;
1129
+ callbackLogout: () => void;
1130
+ }
1131
+ declare const NavUser: ({ userName, userEmail, userInitials, callbackLogout }: NavUserProps) => react_jsx_runtime.JSX.Element;
1132
+
1133
+ interface SidebarItemProps$1 {
1134
+ item: SidebarPage;
1135
+ selectedRoute: string | null;
1136
+ onClick?: (module: Module | null, path: string) => void;
1137
+ }
1138
+ declare const SidebarButton: ({ item, selectedRoute, onClick }: SidebarItemProps$1) => react_jsx_runtime.JSX.Element;
1139
+
1140
+ interface SidebarItemProps {
1141
+ item: SidebarPage;
1142
+ selectedRoute: string | null;
1143
+ onClick?: (module: Module | null, path: string) => void;
1144
+ }
1145
+ declare const SidebarItem: ({ item, selectedRoute, onClick }: SidebarItemProps) => react_jsx_runtime.JSX.Element;
1146
+
1147
+ interface SidebarItemTwoLinesProps {
1148
+ item: {
1149
+ iconLeft: React$1.ReactNode;
1150
+ title: string;
1151
+ subTitle: string;
1152
+ iconRight?: React$1.ReactNode | null;
1153
+ };
1154
+ }
1155
+ declare const SidebarItemTwoLines: ({ item }: SidebarItemTwoLinesProps) => react_jsx_runtime.JSX.Element;
1065
1156
 
1066
1157
  type ActionTable = {
1067
1158
  label: string;
@@ -1131,7 +1222,7 @@ interface DataTableExportProps {
1131
1222
  }
1132
1223
  declare function DataTableExport({ exportData, totalRows }: DataTableExportProps): react_jsx_runtime.JSX.Element | null | undefined;
1133
1224
 
1134
- interface DataTableFooterProps<TData> {
1225
+ interface DataTableFooterProps<_TData> {
1135
1226
  hidePagination?: boolean;
1136
1227
  disablePagination?: boolean;
1137
1228
  isLoading?: boolean;
@@ -1170,140 +1261,184 @@ interface DataTableRowsProps<TData> {
1170
1261
  }
1171
1262
  declare function DataTableRows<TData>({ table, isLoading, columns, actionsRow, textNoRecords, enableMultiRowSelection }: DataTableRowsProps<TData>): react_jsx_runtime.JSX.Element | JSX.Element[];
1172
1263
 
1173
- declare const SidebarSubmenuType: {
1174
- readonly COLLAPSIBLE: "collapsible";
1175
- readonly DROPDOWN: "dropdown";
1176
- };
1177
- type SidebarSubmenuType = (typeof SidebarSubmenuType)[keyof typeof SidebarSubmenuType];
1178
- interface Module {
1179
- value: string;
1180
- path: string;
1181
- title: string;
1182
- icon: React.ReactNode;
1183
- subTitle: string;
1184
- }
1185
- interface SidebarPage {
1186
- module: Module;
1187
- path: string;
1188
- icon?: React.ReactNode;
1264
+ type Theme = 'light' | 'dark' | 'dark-side';
1265
+ type ThemePortalDefinitions = {
1266
+ faviconPath: string;
1267
+ fullLogoPath: string;
1268
+ bannerDesktopPath: string;
1269
+ mvnoPrimaryColor: string;
1270
+ mvnoMainTheme: Theme;
1189
1271
  title: string;
1190
- hideSidebar: boolean;
1191
- displayOnlyresellerIsAdm?: boolean;
1192
- subMenuType?: SidebarSubmenuType;
1193
- subMenuItems?: {
1194
- label: string;
1195
- description?: string;
1196
- path: string;
1197
- displayOnlyresellerIsAdm?: boolean;
1198
- disabled?: boolean;
1199
- }[];
1200
- }
1201
-
1202
- interface ModuleSwitcherProps {
1203
- modules: Module[];
1204
- activeModule: Module | undefined;
1205
- onModuleChange: (module: Module) => void;
1206
- }
1207
- declare const ModuleSwitcher: ({ modules, activeModule, onModuleChange }: ModuleSwitcherProps) => react_jsx_runtime.JSX.Element;
1208
-
1209
- interface NavFooterProps {
1210
- pages: SidebarPage[];
1211
- }
1212
- declare const NavFooter: ({ pages }: NavFooterProps) => react_jsx_runtime.JSX.Element;
1213
-
1214
- interface NavMainProps {
1215
- pages: SidebarPage[];
1216
- }
1217
- declare const NavMain: ({ pages }: NavMainProps) => react_jsx_runtime.JSX.Element;
1272
+ hideModuleSwitcher: boolean;
1273
+ };
1274
+ type ThemeProviderProps = {
1275
+ children: React.ReactNode;
1276
+ defaultTheme?: ThemePortalDefinitions;
1277
+ storageKey?: string;
1278
+ };
1279
+ type ThemeProviderState = {
1280
+ portalDefinitions: ThemePortalDefinitions;
1281
+ setPortalDefinitions: (portalDefinitions: ThemePortalDefinitions) => void;
1282
+ };
1283
+ declare const DEFAULT_THEME_DATA: ThemePortalDefinitions;
1284
+ declare function ThemeProvider({ children, defaultTheme, storageKey, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
1285
+ declare const useTheme: () => ThemeProviderState;
1218
1286
 
1219
- interface NavSubmenuCollapsibleProps {
1220
- item: SidebarPage;
1221
- selectedRoute: string | null;
1222
- onClick: (path: string) => void;
1223
- }
1224
- declare const NavSubmenuCollapsible: ({ item, selectedRoute, onClick }: NavSubmenuCollapsibleProps) => react_jsx_runtime.JSX.Element;
1287
+ type ToasterToast = ToastProps & {
1288
+ id: string;
1289
+ title?: React$1.ReactNode;
1290
+ description?: React$1.ReactNode;
1291
+ action?: ToastActionElement;
1292
+ icon?: React$1.ReactNode;
1293
+ };
1294
+ type Toast = Omit<ToasterToast, 'id'>;
1295
+ declare function toast({ ...props }: Toast): {
1296
+ id: string;
1297
+ dismiss: () => void;
1298
+ update: (props: ToasterToast) => void;
1299
+ };
1300
+ declare function useToast(): {
1301
+ toast: typeof toast;
1302
+ dismiss: (toastId?: string) => void;
1303
+ toasts: ToasterToast[];
1304
+ };
1225
1305
 
1226
- interface NavSubmenuDropdownProps {
1227
- cols?: number;
1228
- item: SidebarPage;
1229
- selectedRoute: string | null;
1230
- onClick: (path: string) => void;
1231
- }
1232
- declare const NavSubmenuDropdown: ({ cols, item, selectedRoute, onClick }: NavSubmenuDropdownProps) => react_jsx_runtime.JSX.Element;
1306
+ declare const getFirstDayOfCurrentMonth: () => Date;
1307
+ declare const getFirstDayOf90DaysAgo: () => Date;
1308
+ declare const stringToDate: (dateString: string, separator?: string) => Date | undefined;
1309
+ declare const aYearAgo: () => Date;
1310
+ declare const invertDate: (date: string, separator?: string) => string;
1311
+ declare const addDaysToToday: (days: number) => Date;
1233
1312
 
1234
- interface NavUserProps {
1235
- userName: string;
1236
- userEmail: string;
1237
- userInitials: string;
1238
- callbackLogout: () => void;
1239
- }
1240
- declare const NavUser: ({ userName, userEmail, userInitials, callbackLogout }: NavUserProps) => react_jsx_runtime.JSX.Element;
1241
-
1242
- interface SidebarItemProps$1 {
1243
- item: SidebarPage;
1244
- selectedRoute: string | null;
1245
- onClick?: (module: Module | null, path: string) => void;
1246
- }
1247
- declare const SidebarButton: ({ item, selectedRoute, onClick }: SidebarItemProps$1) => react_jsx_runtime.JSX.Element;
1248
-
1249
- interface SidebarItemProps {
1250
- item: SidebarPage;
1251
- selectedRoute: string | null;
1252
- onClick?: (module: Module | null, path: string) => void;
1253
- }
1254
- declare const SidebarItem: ({ item, selectedRoute, onClick }: SidebarItemProps) => react_jsx_runtime.JSX.Element;
1255
-
1256
- interface SidebarItemTwoLinesProps {
1257
- item: {
1258
- iconLeft: React$1.ReactNode;
1259
- title: string;
1260
- subTitle: string;
1261
- iconRight?: React$1.ReactNode | null;
1262
- };
1263
- }
1264
- declare const SidebarItemTwoLines: ({ item }: SidebarItemTwoLinesProps) => react_jsx_runtime.JSX.Element;
1265
-
1266
- declare const Header: ({ splittedPath, modules, pages, isLoading, combobox, }: {
1267
- splittedPath: string[];
1268
- modules: Module[];
1269
- pages: SidebarPage[];
1270
- isLoading: boolean;
1271
- combobox: ReactNode;
1272
- }) => react_jsx_runtime.JSX.Element;
1273
-
1274
- interface LabelWithTitleProps {
1275
- title: string;
1276
- value: string;
1277
- value2?: string;
1278
- required?: boolean;
1279
- showCopyIcon?: boolean;
1280
- className?: string;
1281
- isLoading?: boolean;
1313
+ /**
1314
+ * Formats a phone number string with proper mask.
1315
+ * Automatically detects landline vs mobile format.
1316
+ *
1317
+ * @param telefone - Raw phone number string
1318
+ * @param removerCountryCode - Whether to remove country code (55) if present
1319
+ * @returns Formatted phone number string
1320
+ *
1321
+ * @example
1322
+ * ```tsx
1323
+ * formatPhone('11987654321') // '(11) 9 8765-4321'
1324
+ * formatPhone('1134567890') // '(11) 3456-7890'
1325
+ * ```
1326
+ */
1327
+ declare function formatPhone(telefone: string, removerCountryCode?: boolean): string;
1328
+ /**
1329
+ * Formats a CPF or CNPJ string with proper mask.
1330
+ * Automatically detects CPF vs CNPJ format based on length.
1331
+ *
1332
+ * @param cpfCnpj - Raw CPF/CNPJ string
1333
+ * @returns Formatted CPF/CNPJ string
1334
+ *
1335
+ * @example
1336
+ * ```tsx
1337
+ * formatCpfCnpj('12345678901') // '123.456.789-01'
1338
+ * formatCpfCnpj('12345678000195') // '12.345.678/0001-95'
1339
+ * ```
1340
+ */
1341
+ declare function formatCpfCnpj(cpfCnpj?: string): string;
1342
+ /**
1343
+ * Formats a date to Brazilian format (DD/MM/YYYY).
1344
+ *
1345
+ * @param date - Date string, Date object, or undefined
1346
+ * @param separator - Date separator (default: '/')
1347
+ * @returns Formatted date string in Brazilian format
1348
+ *
1349
+ * @example
1350
+ * ```tsx
1351
+ * formatDate('2023-12-25') // '25/12/2023'
1352
+ * formatDate(new Date()) // '13/10/2025'
1353
+ * ```
1354
+ */
1355
+ declare const formatDate: (date: string | Date | undefined, _separator?: string) => string;
1356
+ declare const formatDateTime: (date: Date | undefined, returnSeconds?: boolean) => string;
1357
+ declare function formatDateCalendar(date: Date | undefined): string;
1358
+ declare function stringDateToDate(date: string | undefined, separator?: string): Date | undefined;
1359
+ declare const roundNumber: (value: number, fractionDigits?: number) => number;
1360
+ declare const stringToNumber: (value: string | undefined) => number;
1361
+ declare enum InternetAmountUnity {
1362
+ iauMegabyte = 0,
1363
+ iauGigabyte = 1,
1364
+ UNRECOGNIZED = -1
1282
1365
  }
1283
- declare const LabelWithTitle: React__default.FC<LabelWithTitleProps>;
1284
-
1285
- declare const NotFound: () => react_jsx_runtime.JSX.Element;
1286
-
1287
- type ToasterToast = ToastProps & {
1288
- id: string;
1289
- title?: React$1.ReactNode;
1290
- description?: React$1.ReactNode;
1291
- action?: ToastActionElement;
1292
- icon?: React$1.ReactNode;
1293
- };
1294
- type Toast = Omit<ToasterToast, 'id'>;
1295
- declare function toast({ ...props }: Toast): {
1296
- id: string;
1297
- dismiss: () => void;
1298
- update: (props: ToasterToast) => void;
1299
- };
1300
- declare function useToast(): {
1301
- toast: typeof toast;
1302
- dismiss: (toastId?: string) => void;
1303
- toasts: ToasterToast[];
1304
- };
1305
-
1306
- declare function cn(...inputs: ClassValue[]): string;
1366
+ declare const convertInternetToDisplay: (internet: number, unit: InternetAmountUnity) => string;
1367
+ declare const convertMbToGb: (value: number) => number;
1368
+ declare const convertGbToMb: (value: number) => number;
1369
+ declare const convertSecondsToMinutes: (value: number) => number;
1370
+ declare const convertBytesToMB: (bytes: number) => number;
1371
+ declare const convertMonthToDays: (months: number) => number;
1372
+ declare const convertDaysToMonth: (days: number) => number;
1373
+ declare const formatNumber: (value: number) => string;
1374
+ /**
1375
+ * Formats a number with Brazilian decimal format.
1376
+ *
1377
+ * @param value - Numeric value to format
1378
+ * @param decimalPlaces - Number of decimal places (default: 2)
1379
+ * @returns Formatted decimal string
1380
+ *
1381
+ * @example
1382
+ * ```tsx
1383
+ * formatDecimal(1234.56) // '1.234,56'
1384
+ * formatDecimal(1000.1, 1) // '1.000,1'
1385
+ * ```
1386
+ */
1387
+ declare const formatDecimal: (value: number, decimalPlaces?: number) => string;
1388
+ /**
1389
+ * Formats a number as percentage with Brazilian decimal format.
1390
+ *
1391
+ * @param value - Numeric value to format
1392
+ * @param decimalPlaces - Number of decimal places (default: 2)
1393
+ * @returns Formatted percentage string
1394
+ *
1395
+ * @example
1396
+ * ```tsx
1397
+ * formatPercent(15.5) // '% 15,50'
1398
+ * formatPercent(100, 0) // '% 100'
1399
+ * ```
1400
+ */
1401
+ declare const formatPercent: (value: number, decimalPlaces?: number) => string;
1402
+ /**
1403
+ * Formats a number as Brazilian currency (BRL).
1404
+ *
1405
+ * @param value - Numeric value to format
1406
+ * @param decimalPlaces - Number of decimal places (default: 2)
1407
+ * @returns Formatted currency string
1408
+ *
1409
+ * @example
1410
+ * ```tsx
1411
+ * formatCurrency(1234.56) // 'R$ 1.234,56'
1412
+ * formatCurrency(1000, 0) // 'R$ 1.000'
1413
+ * ```
1414
+ */
1415
+ declare const formatCurrency: (value: number, decimalPlaces?: number) => string;
1416
+ declare const isInvalidCurrencyValue: (rawValue: string | undefined) => boolean;
1417
+ /**
1418
+ * Formats an MSISDN (mobile phone number) to display format.
1419
+ *
1420
+ * @param value - Raw MSISDN string
1421
+ * @returns Formatted MSISDN string
1422
+ *
1423
+ * @example
1424
+ * ```tsx
1425
+ * formatMsisdn('5511987654321') // '(11) 98765-4321'
1426
+ * ```
1427
+ */
1428
+ declare function formatMsisdn(value?: string): string;
1429
+ /**
1430
+ * Formats a CEP (Brazilian postal code) with proper mask.
1431
+ *
1432
+ * @param cep - Raw CEP string
1433
+ * @returns Formatted CEP string (XXXXX-XXX)
1434
+ *
1435
+ * @example
1436
+ * ```tsx
1437
+ * formatCEP('01234567') // '01234-567'
1438
+ * formatCEP('12345') // '12345'
1439
+ * ```
1440
+ */
1441
+ declare function formatCEP(cep?: string): string;
1307
1442
 
1308
1443
  declare function getTailwindColorShades(): {
1309
1444
  slate: {
@@ -1596,144 +1731,9 @@ declare function getTailwindColorShades(): {
1596
1731
  type TailwindColorName = keyof ReturnType<typeof getTailwindColorShades>;
1597
1732
  declare const replaceThemeTailwindColors: (theme: string, tailwindColor: string) => HTMLStyleElement;
1598
1733
 
1599
- /**
1600
- * Formats a phone number string with proper mask.
1601
- * Automatically detects landline vs mobile format.
1602
- *
1603
- * @param telefone - Raw phone number string
1604
- * @param removerCountryCode - Whether to remove country code (55) if present
1605
- * @returns Formatted phone number string
1606
- *
1607
- * @example
1608
- * ```tsx
1609
- * formatPhone('11987654321') // '(11) 9 8765-4321'
1610
- * formatPhone('1134567890') // '(11) 3456-7890'
1611
- * ```
1612
- */
1613
- declare function formatPhone(telefone: string, removerCountryCode?: boolean): string;
1614
- /**
1615
- * Formats a CPF or CNPJ string with proper mask.
1616
- * Automatically detects CPF vs CNPJ format based on length.
1617
- *
1618
- * @param cpfCnpj - Raw CPF/CNPJ string
1619
- * @returns Formatted CPF/CNPJ string
1620
- *
1621
- * @example
1622
- * ```tsx
1623
- * formatCpfCnpj('12345678901') // '123.456.789-01'
1624
- * formatCpfCnpj('12345678000195') // '12.345.678/0001-95'
1625
- * ```
1626
- */
1627
- declare function formatCpfCnpj(cpfCnpj?: string): string;
1628
- /**
1629
- * Formats a date to Brazilian format (DD/MM/YYYY).
1630
- *
1631
- * @param date - Date string, Date object, or undefined
1632
- * @param separator - Date separator (default: '/')
1633
- * @returns Formatted date string in Brazilian format
1634
- *
1635
- * @example
1636
- * ```tsx
1637
- * formatDate('2023-12-25') // '25/12/2023'
1638
- * formatDate(new Date()) // '13/10/2025'
1639
- * ```
1640
- */
1641
- declare const formatDate: (date: string | Date | undefined, separator?: string) => string;
1642
- declare const formatDateTime: (date: Date | undefined, returnSeconds?: boolean) => string;
1643
- declare function formatDateCalendar(date: Date | undefined): string;
1644
- declare function stringDateToDate(date: string | undefined, separator?: string): Date | undefined;
1645
- declare const roundNumber: (value: number, fractionDigits?: number) => number;
1646
- declare const stringToNumber: (value: string | undefined) => number;
1647
- declare enum InternetAmountUnity {
1648
- iauMegabyte = 0,
1649
- iauGigabyte = 1,
1650
- UNRECOGNIZED = -1
1651
- }
1652
- declare const convertInternetToDisplay: (internet: number, unit: InternetAmountUnity) => string;
1653
- declare const convertMbToGb: (value: number) => number;
1654
- declare const convertGbToMb: (value: number) => number;
1655
- declare const convertSecondsToMinutes: (value: number) => number;
1656
- declare const convertBytesToMB: (bytes: number) => number;
1657
- declare const convertMonthToDays: (months: number) => number;
1658
- declare const convertDaysToMonth: (days: number) => number;
1659
- declare const formatNumber: (value: number) => string;
1660
- /**
1661
- * Formats a number with Brazilian decimal format.
1662
- *
1663
- * @param value - Numeric value to format
1664
- * @param decimalPlaces - Number of decimal places (default: 2)
1665
- * @returns Formatted decimal string
1666
- *
1667
- * @example
1668
- * ```tsx
1669
- * formatDecimal(1234.56) // '1.234,56'
1670
- * formatDecimal(1000.1, 1) // '1.000,1'
1671
- * ```
1672
- */
1673
- declare const formatDecimal: (value: number, decimalPlaces?: number) => string;
1674
- /**
1675
- * Formats a number as percentage with Brazilian decimal format.
1676
- *
1677
- * @param value - Numeric value to format
1678
- * @param decimalPlaces - Number of decimal places (default: 2)
1679
- * @returns Formatted percentage string
1680
- *
1681
- * @example
1682
- * ```tsx
1683
- * formatPercent(15.5) // '% 15,50'
1684
- * formatPercent(100, 0) // '% 100'
1685
- * ```
1686
- */
1687
- declare const formatPercent: (value: number, decimalPlaces?: number) => string;
1688
- /**
1689
- * Formats a number as Brazilian currency (BRL).
1690
- *
1691
- * @param value - Numeric value to format
1692
- * @param decimalPlaces - Number of decimal places (default: 2)
1693
- * @returns Formatted currency string
1694
- *
1695
- * @example
1696
- * ```tsx
1697
- * formatCurrency(1234.56) // 'R$ 1.234,56'
1698
- * formatCurrency(1000, 0) // 'R$ 1.000'
1699
- * ```
1700
- */
1701
- declare const formatCurrency: (value: number, decimalPlaces?: number) => string;
1702
- declare const isInvalidCurrencyValue: (rawValue: string | undefined) => boolean;
1703
- /**
1704
- * Formats an MSISDN (mobile phone number) to display format.
1705
- *
1706
- * @param value - Raw MSISDN string
1707
- * @returns Formatted MSISDN string
1708
- *
1709
- * @example
1710
- * ```tsx
1711
- * formatMsisdn('5511987654321') // '(11) 98765-4321'
1712
- * ```
1713
- */
1714
- declare function formatMsisdn(value?: string): string;
1715
- /**
1716
- * Formats a CEP (Brazilian postal code) with proper mask.
1717
- *
1718
- * @param cep - Raw CEP string
1719
- * @returns Formatted CEP string (XXXXX-XXX)
1720
- *
1721
- * @example
1722
- * ```tsx
1723
- * formatCEP('01234567') // '01234-567'
1724
- * formatCEP('12345') // '12345'
1725
- * ```
1726
- */
1727
- declare function formatCEP(cep?: string): string;
1728
-
1729
- declare const getFirstDayOfCurrentMonth: () => Date;
1730
- declare const getFirstDayOf90DaysAgo: () => Date;
1731
- declare const stringToDate: (dateString: string, separator?: string) => Date | undefined;
1732
- declare const aYearAgo: () => Date;
1733
- declare const invertDate: (date: string, separator?: string) => string;
1734
- declare const addDaysToToday: (days: number) => Date;
1735
-
1736
1734
  declare function isUUIDv4(str: string): boolean;
1737
1735
 
1736
+ declare function cn(...inputs: ClassValue[]): string;
1737
+
1738
1738
  export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_THEME_DATA, DataTable, DataTableExport, DataTableFooter, DataTableHeader, DataTableRows, DatePickerWithRange as DateRangePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormCombobox, FormControl, FormDataRange, FormDescription, FormField, FormInput, FormInputCheckbox, FormInputColor, FormInputCpfCnpj, FormInputCurrency, FormInputDate, FormInputDecimal, FormInputFile, FormInputGhost, FormInputMask, FormInputPassWord, FormInputPercent, FormInputPhone, FormInputSwitch, FormInputText, FormItem, FormLabel, FormMessage, FormRadioGroup, FormSelect, FormTextarea, Header, HoverCard, HoverCardContent, HoverCardTrigger, Input, Label, LabelWithTitle, ModuleSwitcher, MultiSelect, NavFooter, NavMain, NavSubmenuCollapsible, NavSubmenuDropdown, NavUser, NotFound, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarButton, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarItem, SidebarItemTwoLines, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarSubmenuType, SidebarTrigger, Skeleton, Slider, StepNewForm, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toast$1 as Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UseCalendar, aYearAgo, addDaysToToday, badgeVariants, buttonVariants, cn, convertBytesToMB, convertDaysToMonth, convertGbToMb, convertInternetToDisplay, convertMbToGb, convertMonthToDays, convertSecondsToMinutes, formHelpText, formLabel, formLabelAndSubLabel, formMessage, formatCEP, formatCpfCnpj, formatCurrency, formatDate, formatDateCalendar, formatDateTime, formatDecimal, formatMsisdn, formatNumber, formatPercent, formatPhone, getFirstDayOf90DaysAgo, getFirstDayOfCurrentMonth, getTailwindColorShades, invertDate, isInvalidCurrencyValue, isUUIDv4, maskCpfCnpj, maskPhone, modifyCpfCnpj, modifyPhone, removeMaskNumber, replaceThemeTailwindColors, roundNumber, stringDateToDate, stringToDate, stringToNumber, toast, useFormField, useSidebar, useTheme, useToast };
1739
1739
  export type { ActionRow, ActionTable, ButtonProps, CalendarProps, CarouselApi, ChartConfig, ComboboxOption, DataTableProps, ExportDataTable, FiltersActions, MaskModifyFunction, Module, MultiSelectOption, OriginalDataTableData, PropsStepNewForm, RadioOption, SelectOption, SidebarPage, TailwindColorName };