eai-frontend-components 2.0.24 → 2.0.26

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
@@ -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>>;
@@ -224,7 +224,7 @@ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pic
224
224
  ref?: React$1.Ref<HTMLInputElement>;
225
225
  } & {
226
226
  asChild?: boolean;
227
- }, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
227
+ }, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
228
228
  value?: string;
229
229
  onValueChange?: (search: string) => void;
230
230
  } & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
@@ -268,7 +268,7 @@ declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
268
268
  ref?: React$1.Ref<HTMLDivElement>;
269
269
  } & {
270
270
  asChild?: boolean;
271
- }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
271
+ }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "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;
@@ -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,138 +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 const convertMbToGb: (value: number) => number;
1648
- declare const convertGbToMb: (value: number) => number;
1649
- declare const convertSecondsToMinutes: (value: number) => number;
1650
- declare const convertBytesToMB: (bytes: number) => number;
1651
- declare const convertMonthToDays: (months: number) => number;
1652
- declare const convertDaysToMonth: (days: number) => number;
1653
- declare const formatNumber: (value: number) => string;
1654
- /**
1655
- * Formats a number with Brazilian decimal format.
1656
- *
1657
- * @param value - Numeric value to format
1658
- * @param decimalPlaces - Number of decimal places (default: 2)
1659
- * @returns Formatted decimal string
1660
- *
1661
- * @example
1662
- * ```tsx
1663
- * formatDecimal(1234.56) // '1.234,56'
1664
- * formatDecimal(1000.1, 1) // '1.000,1'
1665
- * ```
1666
- */
1667
- declare const formatDecimal: (value: number, decimalPlaces?: number) => string;
1668
- /**
1669
- * Formats a number as percentage with Brazilian decimal format.
1670
- *
1671
- * @param value - Numeric value to format
1672
- * @param decimalPlaces - Number of decimal places (default: 2)
1673
- * @returns Formatted percentage string
1674
- *
1675
- * @example
1676
- * ```tsx
1677
- * formatPercent(15.5) // '% 15,50'
1678
- * formatPercent(100, 0) // '% 100'
1679
- * ```
1680
- */
1681
- declare const formatPercent: (value: number, decimalPlaces?: number) => string;
1682
- /**
1683
- * Formats a number as Brazilian currency (BRL).
1684
- *
1685
- * @param value - Numeric value to format
1686
- * @param decimalPlaces - Number of decimal places (default: 2)
1687
- * @returns Formatted currency string
1688
- *
1689
- * @example
1690
- * ```tsx
1691
- * formatCurrency(1234.56) // 'R$ 1.234,56'
1692
- * formatCurrency(1000, 0) // 'R$ 1.000'
1693
- * ```
1694
- */
1695
- declare const formatCurrency: (value: number, decimalPlaces?: number) => string;
1696
- declare const isInvalidCurrencyValue: (rawValue: string | undefined) => boolean;
1697
- /**
1698
- * Formats an MSISDN (mobile phone number) to display format.
1699
- *
1700
- * @param value - Raw MSISDN string
1701
- * @returns Formatted MSISDN string
1702
- *
1703
- * @example
1704
- * ```tsx
1705
- * formatMsisdn('5511987654321') // '(11) 98765-4321'
1706
- * ```
1707
- */
1708
- declare function formatMsisdn(value?: string): string;
1709
- /**
1710
- * Formats a CEP (Brazilian postal code) with proper mask.
1711
- *
1712
- * @param cep - Raw CEP string
1713
- * @returns Formatted CEP string (XXXXX-XXX)
1714
- *
1715
- * @example
1716
- * ```tsx
1717
- * formatCEP('01234567') // '01234-567'
1718
- * formatCEP('12345') // '12345'
1719
- * ```
1720
- */
1721
- declare function formatCEP(cep?: string): string;
1722
-
1723
- declare const getFirstDayOfCurrentMonth: () => Date;
1724
- declare const getFirstDayOf90DaysAgo: () => Date;
1725
- declare const stringToDate: (dateString: string, separator?: string) => Date | undefined;
1726
- declare const aYearAgo: () => Date;
1727
- declare const invertDate: (date: string, separator?: string) => string;
1728
- declare const addDaysToToday: (days: number) => Date;
1729
-
1730
1734
  declare function isUUIDv4(str: string): boolean;
1731
1735
 
1732
- 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, 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 };
1736
+ declare function cn(...inputs: ClassValue[]): string;
1737
+
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 };
1733
1739
  export type { ActionRow, ActionTable, ButtonProps, CalendarProps, CarouselApi, ChartConfig, ComboboxOption, DataTableProps, ExportDataTable, FiltersActions, MaskModifyFunction, Module, MultiSelectOption, OriginalDataTableData, PropsStepNewForm, RadioOption, SelectOption, SidebarPage, TailwindColorName };