@facter/ds-core 1.7.5 → 1.7.7

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.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import * as React49 from 'react';
2
+ import * as React10 from 'react';
3
3
  import { createContext, useCallback, Children, isValidElement, useState, useMemo, useContext } from 'react';
4
4
  import { cva } from 'class-variance-authority';
5
5
  import { clsx } from 'clsx';
@@ -57,7 +57,7 @@ var buttonVariants = cva(
57
57
  }
58
58
  }
59
59
  );
60
- var Button = React49.forwardRef(
60
+ var Button = React10.forwardRef(
61
61
  ({ className, variant, size, ...props }, ref) => {
62
62
  return /* @__PURE__ */ jsx(
63
63
  "button",
@@ -150,7 +150,7 @@ var inputVariants = cva(
150
150
  }
151
151
  }
152
152
  );
153
- var Input = React49.forwardRef(
153
+ var Input = React10.forwardRef(
154
154
  ({
155
155
  className,
156
156
  variant,
@@ -164,13 +164,13 @@ var Input = React49.forwardRef(
164
164
  labelClassName,
165
165
  ...props
166
166
  }, ref) => {
167
- const inputRef = React49.useRef(null);
168
- const [showPassword, setShowPassword] = React49.useState(false);
169
- React49.useImperativeHandle(ref, () => inputRef.current, []);
170
- const focusInput = React49.useCallback(() => {
167
+ const inputRef = React10.useRef(null);
168
+ const [showPassword, setShowPassword] = React10.useState(false);
169
+ React10.useImperativeHandle(ref, () => inputRef.current, []);
170
+ const focusInput = React10.useCallback(() => {
171
171
  inputRef.current?.focus();
172
172
  }, []);
173
- const togglePasswordVisibility = React49.useCallback(() => {
173
+ const togglePasswordVisibility = React10.useCallback(() => {
174
174
  setShowPassword((prev) => !prev);
175
175
  }, []);
176
176
  const inputType = type === "password" ? showPassword ? "text" : "password" : type;
@@ -337,8 +337,8 @@ function Sparkline({
337
337
  className,
338
338
  show = true
339
339
  }) {
340
- const gradientId = React49.useId();
341
- const { linePath, areaPath } = React49.useMemo(() => {
340
+ const gradientId = React10.useId();
341
+ const { linePath, areaPath } = React10.useMemo(() => {
342
342
  if (data.length < 2) {
343
343
  return { linePath: "", areaPath: "" };
344
344
  }
@@ -556,7 +556,7 @@ var selectVariants = cva(
556
556
  }
557
557
  }
558
558
  );
559
- var Select = React49.forwardRef(
559
+ var Select = React10.forwardRef(
560
560
  ({
561
561
  className,
562
562
  variant,
@@ -625,7 +625,7 @@ var Select = React49.forwardRef(
625
625
  }
626
626
  );
627
627
  Select.displayName = "Select";
628
- var SelectItem = React49.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
628
+ var SelectItem = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
629
629
  SelectPrimitive.Item,
630
630
  {
631
631
  ref,
@@ -644,7 +644,7 @@ var SelectItem = React49.forwardRef(({ className, children, ...props }, ref) =>
644
644
  ));
645
645
  SelectItem.displayName = "SelectItem";
646
646
  var SelectGroup = SelectPrimitive.Group;
647
- var SelectLabel = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
647
+ var SelectLabel = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
648
648
  SelectPrimitive.Label,
649
649
  {
650
650
  ref,
@@ -653,7 +653,7 @@ var SelectLabel = React49.forwardRef(({ className, ...props }, ref) => /* @__PUR
653
653
  }
654
654
  ));
655
655
  SelectLabel.displayName = "SelectLabel";
656
- var SelectSeparator = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
656
+ var SelectSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
657
657
  SelectPrimitive.Separator,
658
658
  {
659
659
  ref,
@@ -663,7 +663,7 @@ var SelectSeparator = React49.forwardRef(({ className, ...props }, ref) => /* @_
663
663
  ));
664
664
  SelectSeparator.displayName = "SelectSeparator";
665
665
  var Tabs = TabsPrimitive.Root;
666
- var TabsList = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
666
+ var TabsList = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
667
667
  TabsPrimitive.List,
668
668
  {
669
669
  ref,
@@ -675,7 +675,7 @@ var TabsList = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__
675
675
  }
676
676
  ));
677
677
  TabsList.displayName = TabsPrimitive.List.displayName;
678
- var TabsTrigger = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
678
+ var TabsTrigger = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
679
679
  TabsPrimitive.Trigger,
680
680
  {
681
681
  ref,
@@ -687,7 +687,7 @@ var TabsTrigger = React49.forwardRef(({ className, ...props }, ref) => /* @__PUR
687
687
  }
688
688
  ));
689
689
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
690
- var TabsContent = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
690
+ var TabsContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
691
691
  TabsPrimitive.Content,
692
692
  {
693
693
  ref,
@@ -796,7 +796,7 @@ function BarsLoader() {
796
796
  i
797
797
  )) });
798
798
  }
799
- var Loader = React49.forwardRef(
799
+ var Loader = React10.forwardRef(
800
800
  ({
801
801
  variant = "default",
802
802
  message,
@@ -846,21 +846,21 @@ var Loader = React49.forwardRef(
846
846
  }
847
847
  );
848
848
  Loader.displayName = "Loader";
849
- var LoaderContext = React49.createContext(
849
+ var LoaderContext = React10.createContext(
850
850
  void 0
851
851
  );
852
852
  function LoaderProvider({ children }) {
853
- const [isLoading, setIsLoading] = React49.useState(false);
854
- const [loaderOptions, setLoaderOptions] = React49.useState({});
855
- const show = React49.useCallback((options = {}) => {
853
+ const [isLoading, setIsLoading] = React10.useState(false);
854
+ const [loaderOptions, setLoaderOptions] = React10.useState({});
855
+ const show = React10.useCallback((options = {}) => {
856
856
  setLoaderOptions(options);
857
857
  setIsLoading(true);
858
858
  }, []);
859
- const hide = React49.useCallback(() => {
859
+ const hide = React10.useCallback(() => {
860
860
  setIsLoading(false);
861
861
  setTimeout(() => setLoaderOptions({}), 300);
862
862
  }, []);
863
- const value = React49.useMemo(
863
+ const value = React10.useMemo(
864
864
  () => ({ show, hide, isLoading }),
865
865
  [show, hide, isLoading]
866
866
  );
@@ -879,7 +879,7 @@ function LoaderProvider({ children }) {
879
879
  ] });
880
880
  }
881
881
  function useLoader() {
882
- const context = React49.useContext(LoaderContext);
882
+ const context = React10.useContext(LoaderContext);
883
883
  if (context === void 0) {
884
884
  throw new Error("useLoader must be used within a LoaderProvider");
885
885
  }
@@ -911,7 +911,7 @@ var loader = {
911
911
  };
912
912
  function GlobalLoaderController() {
913
913
  const loaderController = useLoader();
914
- React49.useEffect(() => {
914
+ React10.useEffect(() => {
915
915
  setGlobalLoader(loaderController);
916
916
  return () => {
917
917
  setGlobalLoader(null);
@@ -997,7 +997,7 @@ var iconAnimation = {
997
997
  whileHover: { scale: 1.1 },
998
998
  whileTap: { scale: 0.9 }
999
999
  };
1000
- var EmptyStateContent = React49.memo(
1000
+ var EmptyStateContent = React10.memo(
1001
1001
  ({
1002
1002
  message = "Nenhum item encontrado",
1003
1003
  description,
@@ -1009,7 +1009,7 @@ var EmptyStateContent = React49.memo(
1009
1009
  layout = "vertical",
1010
1010
  className
1011
1011
  }) => {
1012
- const handleAction = React49.useCallback(() => {
1012
+ const handleAction = React10.useCallback(() => {
1013
1013
  if (onAction) {
1014
1014
  onAction();
1015
1015
  }
@@ -1039,7 +1039,7 @@ var EmptyStateContent = React49.memo(
1039
1039
  }
1040
1040
  );
1041
1041
  EmptyStateContent.displayName = "EmptyStateContent";
1042
- var AnimatedEmptyState = React49.memo((props) => {
1042
+ var AnimatedEmptyState = React10.memo((props) => {
1043
1043
  const {
1044
1044
  message = "Nenhum item encontrado",
1045
1045
  description,
@@ -1051,7 +1051,7 @@ var AnimatedEmptyState = React49.memo((props) => {
1051
1051
  layout = "vertical",
1052
1052
  className
1053
1053
  } = props;
1054
- const handleAction = React49.useCallback(() => {
1054
+ const handleAction = React10.useCallback(() => {
1055
1055
  if (onAction) {
1056
1056
  onAction();
1057
1057
  }
@@ -1094,7 +1094,7 @@ var AnimatedEmptyState = React49.memo((props) => {
1094
1094
  );
1095
1095
  });
1096
1096
  AnimatedEmptyState.displayName = "AnimatedEmptyState";
1097
- var EmptyState = React49.memo(
1097
+ var EmptyState = React10.memo(
1098
1098
  ({ animated = true, ...props }) => {
1099
1099
  if (!animated) {
1100
1100
  return /* @__PURE__ */ jsx(EmptyStateContent, { ...props });
@@ -1110,13 +1110,13 @@ function useDataTableInternal({
1110
1110
  manualPagination = false,
1111
1111
  pageCount: externalPageCount
1112
1112
  }) {
1113
- const [rowSelection, setRowSelection] = React49.useState({});
1114
- const [columnVisibility, setColumnVisibility] = React49.useState({});
1115
- const [columnFilters, setColumnFilters] = React49.useState([]);
1116
- const [sorting, setSorting] = React49.useState([]);
1117
- const [globalFilter, setGlobalFilter] = React49.useState("");
1118
- const [density, setDensity] = React49.useState("default");
1119
- const [pagination, setPagination] = React49.useState({
1113
+ const [rowSelection, setRowSelection] = React10.useState({});
1114
+ const [columnVisibility, setColumnVisibility] = React10.useState({});
1115
+ const [columnFilters, setColumnFilters] = React10.useState([]);
1116
+ const [sorting, setSorting] = React10.useState([]);
1117
+ const [globalFilter, setGlobalFilter] = React10.useState("");
1118
+ const [density, setDensity] = React10.useState("default");
1119
+ const [pagination, setPagination] = React10.useState({
1120
1120
  pageIndex: 0,
1121
1121
  pageSize: 10
1122
1122
  });
@@ -1154,7 +1154,7 @@ function useDataTableInternal({
1154
1154
  getPaginationRowModel: getPaginationRowModel(),
1155
1155
  getSortedRowModel: getSortedRowModel()
1156
1156
  });
1157
- const meta = React49.useMemo(
1157
+ const meta = React10.useMemo(
1158
1158
  () => ({
1159
1159
  isLoading: false,
1160
1160
  // Loading é controlado externamente via DataTable.Loading
@@ -1174,13 +1174,14 @@ function useDataTableInternal({
1174
1174
  pageSize: pagination.pageSize
1175
1175
  };
1176
1176
  }
1177
- var DataTableInstanceContext = React49.createContext(null);
1177
+ var DataTableEmptyStateConfigContext = React10.createContext(null);
1178
+ var DataTableInstanceContext = React10.createContext(null);
1178
1179
  DataTableInstanceContext.displayName = "DataTableInstanceContext";
1179
- var DataTableMetaContext = React49.createContext(null);
1180
+ var DataTableMetaContext = React10.createContext(null);
1180
1181
  DataTableMetaContext.displayName = "DataTableMetaContext";
1181
- var DataTableDensityContext = React49.createContext(null);
1182
+ var DataTableDensityContext = React10.createContext(null);
1182
1183
  DataTableDensityContext.displayName = "DataTableDensityContext";
1183
- var DataTablePaginationContext = React49.createContext(null);
1184
+ var DataTablePaginationContext = React10.createContext(null);
1184
1185
  DataTablePaginationContext.displayName = "DataTablePaginationContext";
1185
1186
  function DataTableProvider({
1186
1187
  children,
@@ -1191,26 +1192,28 @@ function DataTableProvider({
1191
1192
  pageIndex,
1192
1193
  pageSize
1193
1194
  }) {
1194
- const metaValue = React49.useMemo(
1195
+ const [emptyStateConfig, setEmptyStateConfig] = React10.useState({});
1196
+ const emptyStateValue = React10.useMemo(
1197
+ () => ({ config: emptyStateConfig, setConfig: setEmptyStateConfig }),
1198
+ [emptyStateConfig]
1199
+ );
1200
+ const metaValue = React10.useMemo(
1195
1201
  () => meta,
1196
1202
  [meta.isLoading, meta.isEmpty, meta.selectedRowCount, meta.totalRows, meta.density]
1197
1203
  );
1198
- const densityValue = React49.useMemo(
1204
+ const densityValue = React10.useMemo(
1199
1205
  () => ({ density, setDensity }),
1200
1206
  [density, setDensity]
1201
1207
  );
1202
- const paginationValue = React49.useMemo(
1203
- () => {
1204
- console.log("[DataTableProvider] creating paginationValue", { pageIndex, pageSize });
1205
- return { pageIndex, pageSize };
1206
- },
1208
+ const paginationValue = React10.useMemo(
1209
+ () => ({ pageIndex, pageSize }),
1207
1210
  [pageIndex, pageSize]
1208
1211
  );
1209
1212
  const tableValue = table;
1210
- return /* @__PURE__ */ jsx(DataTableInstanceContext.Provider, { value: tableValue, children: /* @__PURE__ */ jsx(DataTableMetaContext.Provider, { value: metaValue, children: /* @__PURE__ */ jsx(DataTableDensityContext.Provider, { value: densityValue, children: /* @__PURE__ */ jsx(DataTablePaginationContext.Provider, { value: paginationValue, children }) }) }) });
1213
+ return /* @__PURE__ */ jsx(DataTableEmptyStateConfigContext.Provider, { value: emptyStateValue, children: /* @__PURE__ */ jsx(DataTableInstanceContext.Provider, { value: tableValue, children: /* @__PURE__ */ jsx(DataTableMetaContext.Provider, { value: metaValue, children: /* @__PURE__ */ jsx(DataTableDensityContext.Provider, { value: densityValue, children: /* @__PURE__ */ jsx(DataTablePaginationContext.Provider, { value: paginationValue, children }) }) }) }) });
1211
1214
  }
1212
1215
  function useDataTable() {
1213
- const context = React49.useContext(DataTableInstanceContext);
1216
+ const context = React10.useContext(DataTableInstanceContext);
1214
1217
  if (!context) {
1215
1218
  throw new Error(
1216
1219
  "useDataTable must be used within <DataTable>. Make sure your component is wrapped with DataTable."
@@ -1219,7 +1222,7 @@ function useDataTable() {
1219
1222
  return context;
1220
1223
  }
1221
1224
  function useDataTableMeta() {
1222
- const context = React49.useContext(DataTableMetaContext);
1225
+ const context = React10.useContext(DataTableMetaContext);
1223
1226
  if (!context) {
1224
1227
  throw new Error(
1225
1228
  "useDataTableMeta must be used within <DataTable>. Make sure your component is wrapped with DataTable."
@@ -1237,12 +1240,12 @@ function useDataTableEmpty() {
1237
1240
  }
1238
1241
  function useDataTableSelection() {
1239
1242
  const table = useDataTable();
1240
- return React49.useMemo(() => {
1243
+ return React10.useMemo(() => {
1241
1244
  return table.getSelectedRowModel().rows.map((row) => row.original);
1242
1245
  }, [table.getSelectedRowModel().rows]);
1243
1246
  }
1244
1247
  function useDataTableDensity() {
1245
- const context = React49.useContext(DataTableDensityContext);
1248
+ const context = React10.useContext(DataTableDensityContext);
1246
1249
  if (!context) {
1247
1250
  throw new Error(
1248
1251
  "useDataTableDensity must be used within <DataTable>. Make sure your component is wrapped with DataTable."
@@ -1251,7 +1254,7 @@ function useDataTableDensity() {
1251
1254
  return context;
1252
1255
  }
1253
1256
  function useDataTablePaginationContext() {
1254
- const context = React49.useContext(DataTablePaginationContext);
1257
+ const context = React10.useContext(DataTablePaginationContext);
1255
1258
  if (!context) {
1256
1259
  throw new Error(
1257
1260
  "useDataTablePagination must be used within <DataTable>. Make sure your component is wrapped with DataTable."
@@ -1262,7 +1265,7 @@ function useDataTablePaginationContext() {
1262
1265
  function useDataTablePagination() {
1263
1266
  const table = useDataTable();
1264
1267
  const { pageIndex, pageSize } = useDataTablePaginationContext();
1265
- return React49.useMemo(() => {
1268
+ return React10.useMemo(() => {
1266
1269
  const pageCount = table.getPageCount();
1267
1270
  return {
1268
1271
  pageIndex,
@@ -1282,7 +1285,7 @@ function useDataTablePagination() {
1282
1285
  function useDataTableSorting() {
1283
1286
  const table = useDataTable();
1284
1287
  const sorting = table.getState().sorting;
1285
- return React49.useMemo(() => ({
1288
+ return React10.useMemo(() => ({
1286
1289
  sorting,
1287
1290
  setSorting: table.setSorting,
1288
1291
  clearSorting: () => table.resetSorting(),
@@ -1295,7 +1298,7 @@ function useDataTableSorting() {
1295
1298
  function useDataTableColumnVisibility() {
1296
1299
  const table = useDataTable();
1297
1300
  const columnVisibility = table.getState().columnVisibility;
1298
- return React49.useMemo(() => ({
1301
+ return React10.useMemo(() => ({
1299
1302
  columnVisibility,
1300
1303
  setColumnVisibility: table.setColumnVisibility,
1301
1304
  toggleColumn: (columnId) => {
@@ -1305,6 +1308,15 @@ function useDataTableColumnVisibility() {
1305
1308
  getAllColumns: () => table.getAllColumns().filter((col) => col.getCanHide())
1306
1309
  }), [table, columnVisibility]);
1307
1310
  }
1311
+ function useDataTableEmptyStateConfig() {
1312
+ const context = React10.useContext(DataTableEmptyStateConfigContext);
1313
+ if (!context) {
1314
+ throw new Error(
1315
+ "useDataTableEmptyStateConfig must be used within <DataTable>."
1316
+ );
1317
+ }
1318
+ return context;
1319
+ }
1308
1320
  var useDataTableInstance = useDataTable;
1309
1321
  var useDataTableState = useDataTableMeta;
1310
1322
  function DataTableRoot({
@@ -1363,7 +1375,7 @@ var DENSITY_CONFIG = {
1363
1375
  padding: "py-3 px-4"
1364
1376
  }
1365
1377
  };
1366
- var Table = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx(
1378
+ var Table = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx(
1367
1379
  "table",
1368
1380
  {
1369
1381
  ref,
@@ -1372,9 +1384,9 @@ var Table = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
1372
1384
  }
1373
1385
  ) }));
1374
1386
  Table.displayName = "Table";
1375
- var TableHeader = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
1387
+ var TableHeader = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
1376
1388
  TableHeader.displayName = "TableHeader";
1377
- var TableBody = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1389
+ var TableBody = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1378
1390
  "tbody",
1379
1391
  {
1380
1392
  ref,
@@ -1383,7 +1395,7 @@ var TableBody = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1383
1395
  }
1384
1396
  ));
1385
1397
  TableBody.displayName = "TableBody";
1386
- var TableFooter = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1398
+ var TableFooter = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1387
1399
  "tfoot",
1388
1400
  {
1389
1401
  ref,
@@ -1395,8 +1407,8 @@ var TableFooter = React49.forwardRef(({ className, ...props }, ref) => /* @__PUR
1395
1407
  }
1396
1408
  ));
1397
1409
  TableFooter.displayName = "TableFooter";
1398
- var TableRow = React49.memo(
1399
- React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1410
+ var TableRow = React10.memo(
1411
+ React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1400
1412
  "tr",
1401
1413
  {
1402
1414
  ref,
@@ -1409,7 +1421,7 @@ var TableRow = React49.memo(
1409
1421
  ))
1410
1422
  );
1411
1423
  TableRow.displayName = "TableRow";
1412
- var TableHead = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1424
+ var TableHead = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1413
1425
  "th",
1414
1426
  {
1415
1427
  ref,
@@ -1421,8 +1433,8 @@ var TableHead = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1421
1433
  }
1422
1434
  ));
1423
1435
  TableHead.displayName = "TableHead";
1424
- var TableCell = React49.memo(
1425
- React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1436
+ var TableCell = React10.memo(
1437
+ React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1426
1438
  "td",
1427
1439
  {
1428
1440
  ref,
@@ -1432,7 +1444,7 @@ var TableCell = React49.memo(
1432
1444
  ))
1433
1445
  );
1434
1446
  TableCell.displayName = "TableCell";
1435
- var TableCaption = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1447
+ var TableCaption = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1436
1448
  "caption",
1437
1449
  {
1438
1450
  ref,
@@ -1441,7 +1453,7 @@ var TableCaption = React49.forwardRef(({ className, ...props }, ref) => /* @__PU
1441
1453
  }
1442
1454
  ));
1443
1455
  TableCaption.displayName = "TableCaption";
1444
- var DataTableContent = React49.memo(function DataTableContent2({
1456
+ var DataTableContent = React10.memo(function DataTableContent2({
1445
1457
  stickyHeader = false,
1446
1458
  stripedRows = false,
1447
1459
  highlightOnHover = true,
@@ -1450,8 +1462,21 @@ var DataTableContent = React49.memo(function DataTableContent2({
1450
1462
  const table = useDataTable();
1451
1463
  const { isEmpty } = useDataTableMeta();
1452
1464
  const { density } = useDataTableDensity();
1465
+ const { config: emptyStateConfig } = useDataTableEmptyStateConfig();
1453
1466
  const densityStyles = DENSITY_CONFIG[density];
1454
1467
  const cellClasses = cn(densityStyles.padding, densityStyles.fontSize);
1468
+ const hasRows = table.getRowModel().rows?.length > 0;
1469
+ if (!hasRows && isEmpty) {
1470
+ return /* @__PURE__ */ jsx(
1471
+ EmptyState,
1472
+ {
1473
+ message: emptyStateConfig.title,
1474
+ description: emptyStateConfig.description,
1475
+ icon: emptyStateConfig.icon,
1476
+ animated: false
1477
+ }
1478
+ );
1479
+ }
1455
1480
  return /* @__PURE__ */ jsx("div", { className: cn("rounded-md border overflow-auto", className), children: /* @__PURE__ */ jsxs(Table, { children: [
1456
1481
  /* @__PURE__ */ jsx(TableHeader, { className: cn(stickyHeader && "sticky top-0 z-10 bg-background"), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx(TableRow, { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx(
1457
1482
  TableHead,
@@ -1465,7 +1490,7 @@ var DataTableContent = React49.memo(function DataTableContent2({
1465
1490
  },
1466
1491
  header.id
1467
1492
  )) }, headerGroup.id)) }),
1468
- /* @__PURE__ */ jsx(TableBody, { children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row, index) => /* @__PURE__ */ jsx(
1493
+ /* @__PURE__ */ jsx(TableBody, { children: table.getRowModel().rows.map((row, index) => /* @__PURE__ */ jsx(
1469
1494
  TableRow,
1470
1495
  {
1471
1496
  "data-state": row.getIsSelected() && "selected",
@@ -1476,26 +1501,19 @@ var DataTableContent = React49.memo(function DataTableContent2({
1476
1501
  children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx(TableCell, { className: cellClasses, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))
1477
1502
  },
1478
1503
  row.id
1479
- )) : /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(
1480
- TableCell,
1481
- {
1482
- colSpan: table.getAllColumns().length,
1483
- className: "h-24 text-center text-muted-foreground",
1484
- children: isEmpty ? "Nenhum resultado encontrado." : "Carregando..."
1485
- }
1486
- ) }) })
1504
+ )) })
1487
1505
  ] }) });
1488
1506
  });
1489
1507
  DataTableContent.displayName = "DataTable.Content";
1490
- var DataTableToolbar = React49.memo(function DataTableToolbar2({
1508
+ var DataTableToolbar = React10.memo(function DataTableToolbar2({
1491
1509
  className,
1492
1510
  children
1493
1511
  }) {
1494
1512
  return /* @__PURE__ */ jsx("div", { className: cn("flex items-center justify-between gap-2", className), children });
1495
1513
  });
1496
1514
  function useDebounce(value, delay = 300) {
1497
- const [debouncedValue, setDebouncedValue] = React49.useState(value);
1498
- React49.useEffect(() => {
1515
+ const [debouncedValue, setDebouncedValue] = React10.useState(value);
1516
+ React10.useEffect(() => {
1499
1517
  const handler = setTimeout(() => {
1500
1518
  setDebouncedValue(value);
1501
1519
  }, delay);
@@ -1506,12 +1524,12 @@ function useDebounce(value, delay = 300) {
1506
1524
  return debouncedValue;
1507
1525
  }
1508
1526
  function useDebouncedCallback(callback, delay = 300) {
1509
- const callbackRef = React49.useRef(callback);
1510
- const timeoutRef = React49.useRef(null);
1511
- React49.useEffect(() => {
1527
+ const callbackRef = React10.useRef(callback);
1528
+ const timeoutRef = React10.useRef(null);
1529
+ React10.useEffect(() => {
1512
1530
  callbackRef.current = callback;
1513
1531
  }, [callback]);
1514
- return React49.useCallback(
1532
+ return React10.useCallback(
1515
1533
  (...args) => {
1516
1534
  if (timeoutRef.current) {
1517
1535
  clearTimeout(timeoutRef.current);
@@ -1523,7 +1541,7 @@ function useDebouncedCallback(callback, delay = 300) {
1523
1541
  [delay]
1524
1542
  );
1525
1543
  }
1526
- var DataTableSearch = React49.memo(function DataTableSearch2({
1544
+ var DataTableSearch = React10.memo(function DataTableSearch2({
1527
1545
  column,
1528
1546
  placeholder = "Buscar...",
1529
1547
  debounce = 300,
@@ -1532,17 +1550,17 @@ var DataTableSearch = React49.memo(function DataTableSearch2({
1532
1550
  }) {
1533
1551
  const table = useDataTableInstance();
1534
1552
  const columnInstance = table.getColumn(column);
1535
- const [value, setValue] = React49.useState(
1553
+ const [value, setValue] = React10.useState(
1536
1554
  columnInstance?.getFilterValue() ?? ""
1537
1555
  );
1538
1556
  const debouncedValue = useDebounce(value, debounce);
1539
- React49.useEffect(() => {
1557
+ React10.useEffect(() => {
1540
1558
  columnInstance?.setFilterValue(debouncedValue);
1541
1559
  if (onSearch) {
1542
1560
  onSearch(debouncedValue);
1543
1561
  }
1544
1562
  }, [debouncedValue, columnInstance, onSearch]);
1545
- React49.useEffect(() => {
1563
+ React10.useEffect(() => {
1546
1564
  const filterValue = columnInstance?.getFilterValue() ?? "";
1547
1565
  if (filterValue !== value) {
1548
1566
  setValue(filterValue);
@@ -1558,15 +1576,15 @@ var DataTableSearch = React49.memo(function DataTableSearch2({
1558
1576
  }
1559
1577
  );
1560
1578
  });
1561
- var DataTableFilters = React49.memo(function DataTableFilters2({
1579
+ var DataTableFilters = React10.memo(function DataTableFilters2({
1562
1580
  onChange,
1563
1581
  className,
1564
1582
  children
1565
1583
  }) {
1566
1584
  const table = useDataTableInstance();
1567
1585
  const filters = table.getState().columnFilters;
1568
- const filtersRef = React49.useRef(filters);
1569
- React49.useEffect(() => {
1586
+ const filtersRef = React10.useRef(filters);
1587
+ React10.useEffect(() => {
1570
1588
  if (onChange && JSON.stringify(filters) !== JSON.stringify(filtersRef.current)) {
1571
1589
  filtersRef.current = filters;
1572
1590
  onChange(filters);
@@ -1574,7 +1592,7 @@ var DataTableFilters = React49.memo(function DataTableFilters2({
1574
1592
  }, [filters, onChange]);
1575
1593
  return /* @__PURE__ */ jsx("div", { className: cn("flex gap-2", className), children });
1576
1594
  });
1577
- var DataTableFilter = React49.memo(function DataTableFilter2({
1595
+ var DataTableFilter = React10.memo(function DataTableFilter2({
1578
1596
  column: columnId,
1579
1597
  title,
1580
1598
  options,
@@ -1584,7 +1602,7 @@ var DataTableFilter = React49.memo(function DataTableFilter2({
1584
1602
  const column = table.getColumn(columnId);
1585
1603
  const filterValue = column?.getFilterValue() ?? [];
1586
1604
  const currentValue = filterValue.length > 0 ? filterValue[0] : "all";
1587
- const handleValueChange = React49.useCallback(
1605
+ const handleValueChange = React10.useCallback(
1588
1606
  (value) => {
1589
1607
  if (value === "all") {
1590
1608
  column?.setFilterValue(void 0);
@@ -1609,7 +1627,7 @@ var DataTableFilter = React49.memo(function DataTableFilter2({
1609
1627
  }
1610
1628
  );
1611
1629
  });
1612
- var DataTablePagination = React49.memo(function DataTablePagination2({
1630
+ var DataTablePagination = React10.memo(function DataTablePagination2({
1613
1631
  mode = "client",
1614
1632
  pageCount: externalPageCount,
1615
1633
  pageSizes = [10, 20, 30, 50],
@@ -1638,7 +1656,7 @@ var DataTablePagination = React49.memo(function DataTablePagination2({
1638
1656
  const pageCount = mode === "server" && externalPageCount !== void 0 ? externalPageCount : internalPageCount;
1639
1657
  const canGoPrevious = pageIndex > 0;
1640
1658
  const canGoNext = pageIndex < pageCount - 1;
1641
- const handlePageSizeChange = React49.useCallback(
1659
+ const handlePageSizeChange = React10.useCallback(
1642
1660
  (value) => {
1643
1661
  setPageSize(Number(value));
1644
1662
  },
@@ -1741,47 +1759,20 @@ var DataTablePagination = React49.memo(function DataTablePagination2({
1741
1759
  );
1742
1760
  });
1743
1761
  DataTablePagination.displayName = "DataTable.Pagination";
1744
- var DataTableEmptyState = React49.memo(function DataTableEmptyState2({
1745
- message = "Nenhum resultado encontrado.",
1762
+ var DataTableEmptyState = React10.memo(function DataTableEmptyState2({
1763
+ title,
1746
1764
  description,
1747
1765
  icon,
1748
- action,
1749
- className
1766
+ action
1750
1767
  }) {
1751
- const defaultIcon = /* @__PURE__ */ jsx(
1752
- "svg",
1753
- {
1754
- className: "h-10 w-10 text-muted-foreground",
1755
- fill: "none",
1756
- viewBox: "0 0 24 24",
1757
- stroke: "currentColor",
1758
- children: /* @__PURE__ */ jsx(
1759
- "path",
1760
- {
1761
- strokeLinecap: "round",
1762
- strokeLinejoin: "round",
1763
- strokeWidth: 1.5,
1764
- d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
1765
- }
1766
- )
1767
- }
1768
- );
1769
- return /* @__PURE__ */ jsx(
1770
- "div",
1771
- {
1772
- className: cn(
1773
- "flex min-h-[400px] flex-col items-center justify-center rounded-md border border-dashed p-8 text-center",
1774
- className
1775
- ),
1776
- children: /* @__PURE__ */ jsxs("div", { className: "mx-auto flex max-w-[420px] flex-col items-center justify-center text-center", children: [
1777
- icon ?? defaultIcon,
1778
- /* @__PURE__ */ jsx("h3", { className: "mt-4 text-lg font-semibold", children: message }),
1779
- description && /* @__PURE__ */ jsx("p", { className: "mb-4 mt-2 text-sm text-muted-foreground", children: description }),
1780
- action && /* @__PURE__ */ jsx("div", { className: "mt-4", children: action })
1781
- ] })
1782
- }
1783
- );
1768
+ const { setConfig } = useDataTableEmptyStateConfig();
1769
+ React10.useLayoutEffect(() => {
1770
+ setConfig({ title, description, icon, action });
1771
+ return () => setConfig({});
1772
+ }, [title, description, icon, action, setConfig]);
1773
+ return null;
1784
1774
  });
1775
+ DataTableEmptyState.displayName = "DataTable.EmptyState";
1785
1776
  function SkeletonRow({ columns }) {
1786
1777
  return /* @__PURE__ */ jsx(TableRow, { className: "animate-pulse", children: Array.from({ length: columns }).map((_, index) => /* @__PURE__ */ jsx(TableCell, { className: "py-4", children: /* @__PURE__ */ jsx("div", { className: "h-4 bg-muted rounded w-3/4" }) }, index)) });
1787
1778
  }
@@ -1865,8 +1856,8 @@ var iconSizeMap = {
1865
1856
  md: "h-4 w-4",
1866
1857
  lg: "h-5 w-5"
1867
1858
  };
1868
- var Checkbox = React49.memo(
1869
- React49.forwardRef(({ className, variant, size = "md", ...props }, ref) => {
1859
+ var Checkbox = React10.memo(
1860
+ React10.forwardRef(({ className, variant, size = "md", ...props }, ref) => {
1870
1861
  const iconSize = iconSizeMap[size || "md"];
1871
1862
  return /* @__PURE__ */ jsx(
1872
1863
  CheckboxPrimitive.Root,
@@ -1890,9 +1881,9 @@ function DataTableColumnVisibility({
1890
1881
  className
1891
1882
  }) {
1892
1883
  const table = useDataTable();
1893
- const [open, setOpen] = React49.useState(false);
1894
- const dropdownRef = React49.useRef(null);
1895
- React49.useEffect(() => {
1884
+ const [open, setOpen] = React10.useState(false);
1885
+ const dropdownRef = React10.useRef(null);
1886
+ React10.useEffect(() => {
1896
1887
  function handleClickOutside(event) {
1897
1888
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
1898
1889
  setOpen(false);
@@ -1971,9 +1962,9 @@ function DataTableDensityToggle({
1971
1962
  className
1972
1963
  }) {
1973
1964
  const { density, setDensity } = useDataTableDensity();
1974
- const [open, setOpen] = React49.useState(false);
1975
- const dropdownRef = React49.useRef(null);
1976
- React49.useEffect(() => {
1965
+ const [open, setOpen] = React10.useState(false);
1966
+ const dropdownRef = React10.useRef(null);
1967
+ React10.useEffect(() => {
1977
1968
  function handleClickOutside(event) {
1978
1969
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
1979
1970
  setOpen(false);
@@ -2152,9 +2143,9 @@ function DataTableExport({
2152
2143
  className
2153
2144
  }) {
2154
2145
  const table = useDataTable();
2155
- const [open, setOpen] = React49.useState(false);
2156
- const dropdownRef = React49.useRef(null);
2157
- React49.useEffect(() => {
2146
+ const [open, setOpen] = React10.useState(false);
2147
+ const dropdownRef = React10.useRef(null);
2148
+ React10.useEffect(() => {
2158
2149
  function handleClickOutside(event) {
2159
2150
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
2160
2151
  setOpen(false);
@@ -2165,7 +2156,7 @@ function DataTableExport({
2165
2156
  return () => document.removeEventListener("mousedown", handleClickOutside);
2166
2157
  }
2167
2158
  }, [open]);
2168
- const handleExport = React49.useCallback((format) => {
2159
+ const handleExport = React10.useCallback((format) => {
2169
2160
  const visibleColumns = table.getVisibleLeafColumns();
2170
2161
  const rows = table.getFilteredRowModel().rows;
2171
2162
  const headers = [];
@@ -2268,7 +2259,7 @@ function DataTableTabs({
2268
2259
  onValueChange,
2269
2260
  className
2270
2261
  }) {
2271
- const [internalValue, setInternalValue] = React49.useState(defaultValue ?? tabs[0]?.value);
2262
+ const [internalValue, setInternalValue] = React10.useState(defaultValue ?? tabs[0]?.value);
2272
2263
  const activeValue = value ?? internalValue;
2273
2264
  const handleTabClick = (tabValue) => {
2274
2265
  if (value === void 0) {
@@ -2355,8 +2346,8 @@ var Dialog = DialogPrimitive.Root;
2355
2346
  var DialogTrigger = DialogPrimitive.Trigger;
2356
2347
  var DialogPortal = DialogPrimitive.Portal;
2357
2348
  var DialogClose = DialogPrimitive.Close;
2358
- var DialogOverlay = React49.memo(
2359
- React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2349
+ var DialogOverlay = React10.memo(
2350
+ React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2360
2351
  DialogPrimitive.Overlay,
2361
2352
  {
2362
2353
  ref,
@@ -2403,8 +2394,8 @@ var dialogContentVariants = cva(
2403
2394
  }
2404
2395
  }
2405
2396
  );
2406
- var DialogContent = React49.memo(
2407
- React49.forwardRef(({ className, children, showCloseButton = true, size, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
2397
+ var DialogContent = React10.memo(
2398
+ React10.forwardRef(({ className, children, showCloseButton = true, size, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
2408
2399
  /* @__PURE__ */ jsx(DialogOverlay, {}),
2409
2400
  /* @__PURE__ */ jsxs(
2410
2401
  DialogPrimitive.Content,
@@ -2424,7 +2415,7 @@ var DialogContent = React49.memo(
2424
2415
  ] }))
2425
2416
  );
2426
2417
  DialogContent.displayName = DialogPrimitive.Content.displayName;
2427
- var DialogHeader = React49.memo(
2418
+ var DialogHeader = React10.memo(
2428
2419
  ({ className, ...props }) => /* @__PURE__ */ jsx(
2429
2420
  "div",
2430
2421
  {
@@ -2437,7 +2428,7 @@ var DialogHeader = React49.memo(
2437
2428
  )
2438
2429
  );
2439
2430
  DialogHeader.displayName = "DialogHeader";
2440
- var DialogFooter = React49.memo(
2431
+ var DialogFooter = React10.memo(
2441
2432
  ({ className, ...props }) => /* @__PURE__ */ jsx(
2442
2433
  "div",
2443
2434
  {
@@ -2450,8 +2441,8 @@ var DialogFooter = React49.memo(
2450
2441
  )
2451
2442
  );
2452
2443
  DialogFooter.displayName = "DialogFooter";
2453
- var DialogTitle = React49.memo(
2454
- React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2444
+ var DialogTitle = React10.memo(
2445
+ React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2455
2446
  DialogPrimitive.Title,
2456
2447
  {
2457
2448
  ref,
@@ -2464,8 +2455,8 @@ var DialogTitle = React49.memo(
2464
2455
  ))
2465
2456
  );
2466
2457
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
2467
- var DialogDescription = React49.memo(
2468
- React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2458
+ var DialogDescription = React10.memo(
2459
+ React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2469
2460
  DialogPrimitive.Description,
2470
2461
  {
2471
2462
  ref,
@@ -2475,7 +2466,7 @@ var DialogDescription = React49.memo(
2475
2466
  ))
2476
2467
  );
2477
2468
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
2478
- var DialogBody = React49.memo(
2469
+ var DialogBody = React10.memo(
2479
2470
  ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex-1 overflow-y-auto py-2", className), ...props })
2480
2471
  );
2481
2472
  DialogBody.displayName = "DialogBody";
@@ -2506,7 +2497,7 @@ var COLOR_MAP = {
2506
2497
  accent: "border-accent",
2507
2498
  muted: "border-muted"
2508
2499
  };
2509
- var RippleRing = React49.memo(({ size, color, opacity }) => {
2500
+ var RippleRing = React10.memo(({ size, color, opacity }) => {
2510
2501
  const borderColorClass = COLOR_MAP[color] || COLOR_MAP.primary;
2511
2502
  return /* @__PURE__ */ jsx(
2512
2503
  "div",
@@ -2525,7 +2516,7 @@ var RippleRing = React49.memo(({ size, color, opacity }) => {
2525
2516
  );
2526
2517
  });
2527
2518
  RippleRing.displayName = "RippleRing";
2528
- var RippleEffect = React49.memo(
2519
+ var RippleEffect = React10.memo(
2529
2520
  ({
2530
2521
  size = "md",
2531
2522
  color = "primary",
@@ -2537,7 +2528,7 @@ var RippleEffect = React49.memo(
2537
2528
  const { base, increment } = SIZE_CONFIG[size];
2538
2529
  const opacities = INTENSITY_CONFIG[intensity];
2539
2530
  const positionClasses = POSITION_CONFIG[position];
2540
- const rippleRings = React49.useMemo(
2531
+ const rippleRings = React10.useMemo(
2541
2532
  () => Array.from({ length: rings }).map((_, index) => {
2542
2533
  const ringSize = base + increment * (rings - index - 1);
2543
2534
  const opacity = opacities[index] || opacities[opacities.length - 1];
@@ -2567,7 +2558,7 @@ var RippleEffect = React49.memo(
2567
2558
  }
2568
2559
  );
2569
2560
  RippleEffect.displayName = "RippleEffect";
2570
- var RippleWrapper = React49.memo(
2561
+ var RippleWrapper = React10.memo(
2571
2562
  ({ children, rippleProps, className }) => {
2572
2563
  return /* @__PURE__ */ jsxs("div", { className: cn("relative", className), children: [
2573
2564
  rippleProps && /* @__PURE__ */ jsx(RippleEffect, { ...rippleProps }),
@@ -2576,7 +2567,7 @@ var RippleWrapper = React49.memo(
2576
2567
  }
2577
2568
  );
2578
2569
  RippleWrapper.displayName = "RippleWrapper";
2579
- var RippleBackground = React49.memo(
2570
+ var RippleBackground = React10.memo(
2580
2571
  ({ containerClassName, ...rippleProps }) => {
2581
2572
  return /* @__PURE__ */ jsx(
2582
2573
  "div",
@@ -2642,7 +2633,7 @@ var statusIndicatorVariants = cva(
2642
2633
  }
2643
2634
  }
2644
2635
  );
2645
- var DialogWrapper = React49.memo(
2636
+ var DialogWrapper = React10.memo(
2646
2637
  ({
2647
2638
  children,
2648
2639
  className,
@@ -2655,7 +2646,7 @@ var DialogWrapper = React49.memo(
2655
2646
  rippleProps,
2656
2647
  ...props
2657
2648
  }) => {
2658
- const defaultRippleProps = React49.useMemo(
2649
+ const defaultRippleProps = React10.useMemo(
2659
2650
  () => ({
2660
2651
  size: size === "sm" ? "md" : size === "lg" ? "xl" : "lg",
2661
2652
  color: variant === "secondary" ? "secondary" : variant === "accent" ? "accent" : "primary",
@@ -2665,7 +2656,7 @@ var DialogWrapper = React49.memo(
2665
2656
  }),
2666
2657
  [size, variant, rippleProps]
2667
2658
  );
2668
- const backgroundRippleProps = React49.useMemo(
2659
+ const backgroundRippleProps = React10.useMemo(
2669
2660
  () => ({
2670
2661
  position: "top-right",
2671
2662
  size: "xl",
@@ -2768,7 +2759,7 @@ var Toaster = ({ ...props }) => {
2768
2759
  }
2769
2760
  );
2770
2761
  };
2771
- var CustomToast = React49.memo(
2762
+ var CustomToast = React10.memo(
2772
2763
  ({ title, description, variant = "default", action, onClose }) => {
2773
2764
  const variantStyles = toastVariants[variant];
2774
2765
  return /* @__PURE__ */ jsxs(
@@ -2904,8 +2895,8 @@ var thumbVariants = cva(
2904
2895
  }
2905
2896
  }
2906
2897
  );
2907
- var Switch = React49.memo(
2908
- React49.forwardRef(({ className, variant, size = "md", ...props }, ref) => /* @__PURE__ */ jsx(
2898
+ var Switch = React10.memo(
2899
+ React10.forwardRef(({ className, variant, size = "md", ...props }, ref) => /* @__PURE__ */ jsx(
2909
2900
  SwitchPrimitives.Root,
2910
2901
  {
2911
2902
  className: cn(switchVariants({ variant, size, className })),
@@ -2936,8 +2927,8 @@ var textareaVariants = cva(
2936
2927
  }
2937
2928
  }
2938
2929
  );
2939
- var Textarea = React49.memo(
2940
- React49.forwardRef(
2930
+ var Textarea = React10.memo(
2931
+ React10.forwardRef(
2941
2932
  ({
2942
2933
  className,
2943
2934
  variant,
@@ -2952,12 +2943,12 @@ var Textarea = React49.memo(
2952
2943
  onChange,
2953
2944
  ...props
2954
2945
  }, ref) => {
2955
- const textareaRef = React49.useRef(null);
2956
- React49.useImperativeHandle(ref, () => textareaRef.current, []);
2957
- const focusTextarea = React49.useCallback(() => {
2946
+ const textareaRef = React10.useRef(null);
2947
+ React10.useImperativeHandle(ref, () => textareaRef.current, []);
2948
+ const focusTextarea = React10.useCallback(() => {
2958
2949
  textareaRef.current?.focus();
2959
2950
  }, []);
2960
- const handleChange = React49.useCallback(
2951
+ const handleChange = React10.useCallback(
2961
2952
  (e) => {
2962
2953
  if (autoResize && textareaRef.current) {
2963
2954
  textareaRef.current.style.height = "auto";
@@ -2967,7 +2958,7 @@ var Textarea = React49.memo(
2967
2958
  },
2968
2959
  [autoResize, onChange]
2969
2960
  );
2970
- React49.useEffect(() => {
2961
+ React10.useEffect(() => {
2971
2962
  if (autoResize && textareaRef.current) {
2972
2963
  textareaRef.current.style.height = "auto";
2973
2964
  textareaRef.current.style.height = `${textareaRef.current.scrollHeight}px`;
@@ -3018,23 +3009,23 @@ var Textarea = React49.memo(
3018
3009
  )
3019
3010
  );
3020
3011
  Textarea.displayName = "Textarea";
3021
- var FormFieldContext = React49.createContext(null);
3012
+ var FormFieldContext = React10.createContext(null);
3022
3013
  function useFormFieldContext() {
3023
- const context = React49.useContext(FormFieldContext);
3014
+ const context = React10.useContext(FormFieldContext);
3024
3015
  if (!context) {
3025
3016
  throw new Error("useFormFieldContext must be used within a Form.Field");
3026
3017
  }
3027
3018
  return context;
3028
3019
  }
3029
3020
  function useFormFieldContextOptional() {
3030
- return React49.useContext(FormFieldContext);
3021
+ return React10.useContext(FormFieldContext);
3031
3022
  }
3032
3023
  function FormFieldProvider({ name, children }) {
3033
3024
  const form = useFormContext();
3034
- const id = React49.useId();
3025
+ const id = React10.useId();
3035
3026
  const fieldState = form.getFieldState(name, form.formState);
3036
3027
  const error = fieldState.error?.message;
3037
- const value = React49.useMemo(
3028
+ const value = React10.useMemo(
3038
3029
  () => ({
3039
3030
  name,
3040
3031
  id,
@@ -3142,7 +3133,7 @@ function FormInput({
3142
3133
  const form = useFormContext();
3143
3134
  const fieldState = form.getFieldState(name, form.formState);
3144
3135
  const error = fieldState.error?.message;
3145
- const getInputType = React49.useCallback(() => {
3136
+ const getInputType = React10.useCallback(() => {
3146
3137
  if (["money", "percent", "phone", "cpf", "cnpj", "cep"].includes(mask || "")) {
3147
3138
  return "tel";
3148
3139
  }
@@ -3338,7 +3329,7 @@ function FormCheckbox({
3338
3329
  const form = useFormContext();
3339
3330
  const fieldState = form.getFieldState(name, form.formState);
3340
3331
  const error = fieldState.error?.message;
3341
- const id = React49.useId();
3332
+ const id = React10.useId();
3342
3333
  return /* @__PURE__ */ jsx(FormFieldProvider, { name, children: /* @__PURE__ */ jsx(
3343
3334
  Controller,
3344
3335
  {
@@ -3393,7 +3384,7 @@ function FormSwitch({
3393
3384
  const form = useFormContext();
3394
3385
  const fieldState = form.getFieldState(name, form.formState);
3395
3386
  const error = fieldState.error?.message;
3396
- const id = React49.useId();
3387
+ const id = React10.useId();
3397
3388
  return /* @__PURE__ */ jsx(FormFieldProvider, { name, children: /* @__PURE__ */ jsx(
3398
3389
  Controller,
3399
3390
  {
@@ -3560,7 +3551,7 @@ function FormRadioGroup({
3560
3551
  ) });
3561
3552
  }
3562
3553
  FormRadioGroup.displayName = "Form.RadioGroup";
3563
- var FormLabel = React49.forwardRef(
3554
+ var FormLabel = React10.forwardRef(
3564
3555
  ({ className, required, children, ...props }, ref) => {
3565
3556
  const fieldContext = useFormFieldContextOptional();
3566
3557
  return /* @__PURE__ */ jsxs(
@@ -3583,7 +3574,7 @@ var FormLabel = React49.forwardRef(
3583
3574
  }
3584
3575
  );
3585
3576
  FormLabel.displayName = "Form.Label";
3586
- var FormDescription = React49.forwardRef(({ className, ...props }, ref) => {
3577
+ var FormDescription = React10.forwardRef(({ className, ...props }, ref) => {
3587
3578
  const fieldContext = useFormFieldContextOptional();
3588
3579
  if (fieldContext?.error) {
3589
3580
  return null;
@@ -3598,7 +3589,7 @@ var FormDescription = React49.forwardRef(({ className, ...props }, ref) => {
3598
3589
  );
3599
3590
  });
3600
3591
  FormDescription.displayName = "Form.Description";
3601
- var FormError = React49.forwardRef(
3592
+ var FormError = React10.forwardRef(
3602
3593
  ({ className, message, children, ...props }, ref) => {
3603
3594
  const fieldContext = useFormFieldContextOptional();
3604
3595
  const errorMessage = message ?? fieldContext?.error;
@@ -3617,7 +3608,7 @@ var FormError = React49.forwardRef(
3617
3608
  }
3618
3609
  );
3619
3610
  FormError.displayName = "Form.Error";
3620
- var FormFieldWrapper = React49.forwardRef(({ className, label, description, required, error, children, ...props }, ref) => {
3611
+ var FormFieldWrapper = React10.forwardRef(({ className, label, description, required, error, children, ...props }, ref) => {
3621
3612
  return /* @__PURE__ */ jsxs("div", { ref, className: cn("space-y-1", className), ...props, children: [
3622
3613
  label && /* @__PURE__ */ jsx(FormLabel, { required, children: label }),
3623
3614
  children,
@@ -3660,7 +3651,7 @@ var Form = Object.assign(FormRoot, {
3660
3651
  FieldWrapper: FormFieldWrapper,
3661
3652
  Field: FormFieldProvider
3662
3653
  });
3663
- var Avatar = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3654
+ var Avatar = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3664
3655
  AvatarPrimitive.Root,
3665
3656
  {
3666
3657
  ref,
@@ -3672,7 +3663,7 @@ var Avatar = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
3672
3663
  }
3673
3664
  ));
3674
3665
  Avatar.displayName = AvatarPrimitive.Root.displayName;
3675
- var AvatarImage = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3666
+ var AvatarImage = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3676
3667
  AvatarPrimitive.Image,
3677
3668
  {
3678
3669
  ref,
@@ -3681,7 +3672,7 @@ var AvatarImage = React49.forwardRef(({ className, ...props }, ref) => /* @__PUR
3681
3672
  }
3682
3673
  ));
3683
3674
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
3684
- var AvatarFallback = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3675
+ var AvatarFallback = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3685
3676
  AvatarPrimitive.Fallback,
3686
3677
  {
3687
3678
  ref,
@@ -3699,7 +3690,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
3699
3690
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
3700
3691
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
3701
3692
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
3702
- var DropdownMenuSubTrigger = React49.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
3693
+ var DropdownMenuSubTrigger = React10.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
3703
3694
  DropdownMenuPrimitive.SubTrigger,
3704
3695
  {
3705
3696
  ref,
@@ -3716,7 +3707,7 @@ var DropdownMenuSubTrigger = React49.forwardRef(({ className, inset, children, .
3716
3707
  }
3717
3708
  ));
3718
3709
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
3719
- var DropdownMenuSubContent = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3710
+ var DropdownMenuSubContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3720
3711
  DropdownMenuPrimitive.SubContent,
3721
3712
  {
3722
3713
  ref,
@@ -3728,7 +3719,7 @@ var DropdownMenuSubContent = React49.forwardRef(({ className, ...props }, ref) =
3728
3719
  }
3729
3720
  ));
3730
3721
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
3731
- var DropdownMenuContent = React49.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
3722
+ var DropdownMenuContent = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
3732
3723
  DropdownMenuPrimitive.Content,
3733
3724
  {
3734
3725
  ref,
@@ -3741,7 +3732,7 @@ var DropdownMenuContent = React49.forwardRef(({ className, sideOffset = 4, ...pr
3741
3732
  }
3742
3733
  ) }));
3743
3734
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
3744
- var DropdownMenuItem = React49.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
3735
+ var DropdownMenuItem = React10.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
3745
3736
  DropdownMenuPrimitive.Item,
3746
3737
  {
3747
3738
  ref,
@@ -3754,7 +3745,7 @@ var DropdownMenuItem = React49.forwardRef(({ className, inset, ...props }, ref)
3754
3745
  }
3755
3746
  ));
3756
3747
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
3757
- var DropdownMenuCheckboxItem = React49.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
3748
+ var DropdownMenuCheckboxItem = React10.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
3758
3749
  DropdownMenuPrimitive.CheckboxItem,
3759
3750
  {
3760
3751
  ref,
@@ -3771,7 +3762,7 @@ var DropdownMenuCheckboxItem = React49.forwardRef(({ className, children, checke
3771
3762
  }
3772
3763
  ));
3773
3764
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
3774
- var DropdownMenuRadioItem = React49.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
3765
+ var DropdownMenuRadioItem = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
3775
3766
  DropdownMenuPrimitive.RadioItem,
3776
3767
  {
3777
3768
  ref,
@@ -3787,7 +3778,7 @@ var DropdownMenuRadioItem = React49.forwardRef(({ className, children, ...props
3787
3778
  }
3788
3779
  ));
3789
3780
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
3790
- var DropdownMenuLabel = React49.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
3781
+ var DropdownMenuLabel = React10.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
3791
3782
  DropdownMenuPrimitive.Label,
3792
3783
  {
3793
3784
  ref,
@@ -3800,7 +3791,7 @@ var DropdownMenuLabel = React49.forwardRef(({ className, inset, ...props }, ref)
3800
3791
  }
3801
3792
  ));
3802
3793
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
3803
- var DropdownMenuSeparator = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3794
+ var DropdownMenuSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3804
3795
  DropdownMenuPrimitive.Separator,
3805
3796
  {
3806
3797
  ref,
@@ -3824,7 +3815,7 @@ var DropdownMenuShortcut = ({
3824
3815
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
3825
3816
  var Popover = PopoverPrimitive.Root;
3826
3817
  var PopoverTrigger = PopoverPrimitive.Trigger;
3827
- var PopoverContent = React49.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
3818
+ var PopoverContent = React10.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
3828
3819
  PopoverPrimitive.Content,
3829
3820
  {
3830
3821
  ref,
@@ -3842,7 +3833,7 @@ var TooltipProvider = TooltipPrimitive.Provider;
3842
3833
  var TooltipRoot = TooltipPrimitive.Root;
3843
3834
  var TooltipTrigger = TooltipPrimitive.Trigger;
3844
3835
  var TooltipPortal = TooltipPrimitive.Portal;
3845
- var TooltipArrow = React49.forwardRef(({ className, variant = "light", ...props }, ref) => /* @__PURE__ */ jsx(
3836
+ var TooltipArrow = React10.forwardRef(({ className, variant = "light", ...props }, ref) => /* @__PURE__ */ jsx(
3846
3837
  TooltipPrimitive.Arrow,
3847
3838
  {
3848
3839
  ref,
@@ -3875,7 +3866,7 @@ var tooltipContentVariants = cva(
3875
3866
  }
3876
3867
  }
3877
3868
  );
3878
- var TooltipContent = React49.forwardRef(
3869
+ var TooltipContent = React10.forwardRef(
3879
3870
  ({
3880
3871
  className,
3881
3872
  variant = "light",
@@ -3909,11 +3900,11 @@ var TooltipContent = React49.forwardRef(
3909
3900
  ) })
3910
3901
  );
3911
3902
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
3912
- var TooltipHeader = React49.forwardRef(
3903
+ var TooltipHeader = React10.forwardRef(
3913
3904
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex flex-col gap-1", className), ...props })
3914
3905
  );
3915
3906
  TooltipHeader.displayName = "TooltipHeader";
3916
- var TooltipTitle = React49.forwardRef(
3907
+ var TooltipTitle = React10.forwardRef(
3917
3908
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3918
3909
  "h4",
3919
3910
  {
@@ -3924,7 +3915,7 @@ var TooltipTitle = React49.forwardRef(
3924
3915
  )
3925
3916
  );
3926
3917
  TooltipTitle.displayName = "TooltipTitle";
3927
- var TooltipDescription = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3918
+ var TooltipDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3928
3919
  "p",
3929
3920
  {
3930
3921
  ref,
@@ -3933,7 +3924,7 @@ var TooltipDescription = React49.forwardRef(({ className, ...props }, ref) => /*
3933
3924
  }
3934
3925
  ));
3935
3926
  TooltipDescription.displayName = "TooltipDescription";
3936
- var TooltipActions = React49.forwardRef(
3927
+ var TooltipActions = React10.forwardRef(
3937
3928
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3938
3929
  "div",
3939
3930
  {
@@ -3959,7 +3950,7 @@ var tooltipActionVariants = cva(
3959
3950
  }
3960
3951
  }
3961
3952
  );
3962
- var TooltipAction = React49.forwardRef(
3953
+ var TooltipAction = React10.forwardRef(
3963
3954
  ({ className, variant = "primary", ...props }, ref) => /* @__PURE__ */ jsx(
3964
3955
  "button",
3965
3956
  {
@@ -3970,7 +3961,7 @@ var TooltipAction = React49.forwardRef(
3970
3961
  )
3971
3962
  );
3972
3963
  TooltipAction.displayName = "TooltipAction";
3973
- var TooltipIcon = React49.forwardRef(
3964
+ var TooltipIcon = React10.forwardRef(
3974
3965
  ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
3975
3966
  "div",
3976
3967
  {
@@ -4023,14 +4014,14 @@ var Tooltip = Object.assign(TooltipRoot, {
4023
4014
  Icon: TooltipIcon,
4024
4015
  Simple: SimpleTooltip
4025
4016
  });
4026
- var AuthLayoutContext = React49.createContext({
4017
+ var AuthLayoutContext = React10.createContext({
4027
4018
  imagePosition: "left"
4028
4019
  });
4029
4020
  function AuthLayoutRoot({ children, className }) {
4030
- const [imagePosition, setImagePosition] = React49.useState("left");
4031
- React49.useEffect(() => {
4032
- React49.Children.forEach(children, (child) => {
4033
- if (React49.isValidElement(child) && child.type === AuthLayoutImage) {
4021
+ const [imagePosition, setImagePosition] = React10.useState("left");
4022
+ React10.useEffect(() => {
4023
+ React10.Children.forEach(children, (child) => {
4024
+ if (React10.isValidElement(child) && child.type === AuthLayoutImage) {
4034
4025
  setImagePosition(child.props.position || "left");
4035
4026
  }
4036
4027
  });
@@ -4228,7 +4219,7 @@ var AuthLayout = Object.assign(AuthLayoutRoot, {
4228
4219
  Link: AuthLayoutLink,
4229
4220
  Divider: AuthLayoutDivider
4230
4221
  });
4231
- var TabsContext = React49.createContext(null);
4222
+ var TabsContext = React10.createContext(null);
4232
4223
  function SelectionLayoutRoot({ children, className }) {
4233
4224
  return /* @__PURE__ */ jsx("div", { className: cn("min-h-screen bg-muted/30 flex flex-col lg:flex-row", className), children });
4234
4225
  }
@@ -4339,7 +4330,7 @@ function SelectionLayoutTab({
4339
4330
  badge,
4340
4331
  className
4341
4332
  }) {
4342
- const context = React49.useContext(TabsContext);
4333
+ const context = React10.useContext(TabsContext);
4343
4334
  if (!context) {
4344
4335
  throw new Error("SelectionLayout.Tab must be used within SelectionLayout.Tabs");
4345
4336
  }
@@ -4484,17 +4475,17 @@ var SelectionLayout = Object.assign(SelectionLayoutRoot, {
4484
4475
  Card: SelectionLayoutCard,
4485
4476
  Empty: SelectionLayoutEmpty
4486
4477
  });
4487
- var DashboardLayoutContext = React49.createContext(null);
4478
+ var DashboardLayoutContext = React10.createContext(null);
4488
4479
  function useDashboardLayout() {
4489
- const context = React49.useContext(DashboardLayoutContext);
4480
+ const context = React10.useContext(DashboardLayoutContext);
4490
4481
  if (!context) {
4491
4482
  throw new Error("useDashboardLayout must be used within DashboardLayout");
4492
4483
  }
4493
4484
  return context;
4494
4485
  }
4495
4486
  function useMediaQuery(query) {
4496
- const [matches, setMatches] = React49.useState(false);
4497
- React49.useEffect(() => {
4487
+ const [matches, setMatches] = React10.useState(false);
4488
+ React10.useEffect(() => {
4498
4489
  const media = window.matchMedia(query);
4499
4490
  if (media.matches !== matches) {
4500
4491
  setMatches(media.matches);
@@ -4511,11 +4502,11 @@ function DashboardLayoutRoot({
4511
4502
  defaultExpanded = false,
4512
4503
  defaultPinned = false
4513
4504
  }) {
4514
- const [sidebarExpanded, setSidebarExpanded] = React49.useState(defaultExpanded || defaultPinned);
4515
- const [sidebarPinned, setSidebarPinned] = React49.useState(defaultPinned);
4516
- const [mobileMenuOpen, setMobileMenuOpen] = React49.useState(false);
4505
+ const [sidebarExpanded, setSidebarExpanded] = React10.useState(defaultExpanded || defaultPinned);
4506
+ const [sidebarPinned, setSidebarPinned] = React10.useState(defaultPinned);
4507
+ const [mobileMenuOpen, setMobileMenuOpen] = React10.useState(false);
4517
4508
  const isMobile = useMediaQuery("(max-width: 1024px)");
4518
- React49.useEffect(() => {
4509
+ React10.useEffect(() => {
4519
4510
  if (!isMobile) {
4520
4511
  setMobileMenuOpen(false);
4521
4512
  }
@@ -4656,7 +4647,7 @@ function DashboardLayoutSidebarNavItem({
4656
4647
  };
4657
4648
  const renderIcon4 = () => {
4658
4649
  if (!icon) return null;
4659
- if (React49.isValidElement(icon)) {
4650
+ if (React10.isValidElement(icon)) {
4660
4651
  return icon;
4661
4652
  }
4662
4653
  if (typeof icon === "function" || typeof icon === "object" && "$$typeof" in icon) {
@@ -4711,7 +4702,7 @@ function DashboardLayoutSidebarNavGroup({
4711
4702
  className
4712
4703
  }) {
4713
4704
  const { sidebarExpanded } = useDashboardLayout();
4714
- const [isOpen, setIsOpen] = React49.useState(defaultOpen);
4705
+ const [isOpen, setIsOpen] = React10.useState(defaultOpen);
4715
4706
  const badgeColors = {
4716
4707
  default: "bg-muted text-muted-foreground",
4717
4708
  primary: "bg-primary/10 text-primary",
@@ -4719,7 +4710,7 @@ function DashboardLayoutSidebarNavGroup({
4719
4710
  };
4720
4711
  const renderIcon4 = () => {
4721
4712
  if (!icon) return null;
4722
- if (React49.isValidElement(icon)) {
4713
+ if (React10.isValidElement(icon)) {
4723
4714
  return icon;
4724
4715
  }
4725
4716
  if (typeof icon === "function" || typeof icon === "object" && "$$typeof" in icon) {
@@ -4728,7 +4719,7 @@ function DashboardLayoutSidebarNavGroup({
4728
4719
  }
4729
4720
  return null;
4730
4721
  };
4731
- React49.useEffect(() => {
4722
+ React10.useEffect(() => {
4732
4723
  if (isActive && sidebarExpanded) {
4733
4724
  setIsOpen(true);
4734
4725
  }
@@ -4832,7 +4823,7 @@ function DashboardLayoutHeaderUser({
4832
4823
  children,
4833
4824
  onLogout
4834
4825
  }) {
4835
- const [isOpen, setIsOpen] = React49.useState(false);
4826
+ const [isOpen, setIsOpen] = React10.useState(false);
4836
4827
  return /* @__PURE__ */ jsxs("div", { className: cn("relative", className), children: [
4837
4828
  /* @__PURE__ */ jsxs(
4838
4829
  "button",
@@ -4913,7 +4904,7 @@ function DashboardLayoutBreadcrumbs({
4913
4904
  return /* @__PURE__ */ jsx("nav", { className: cn("flex items-center gap-1 text-sm", className), children: items.map((item, index) => {
4914
4905
  const Icon2 = item.icon;
4915
4906
  const isLast = index === items.length - 1;
4916
- return /* @__PURE__ */ jsxs(React49.Fragment, { children: [
4907
+ return /* @__PURE__ */ jsxs(React10.Fragment, { children: [
4917
4908
  item.href && !isLast ? /* @__PURE__ */ jsxs(
4918
4909
  "a",
4919
4910
  {
@@ -5016,23 +5007,23 @@ var DashboardLayout = Object.assign(DashboardLayoutRoot, {
5016
5007
  MobileNav: DashboardLayoutMobileNav,
5017
5008
  MobileNavItem: DashboardLayoutMobileNavItem
5018
5009
  });
5019
- var SidebarContext = React49.createContext(null);
5010
+ var SidebarContext = React10.createContext(null);
5020
5011
  function useSidebar() {
5021
- const context = React49.useContext(SidebarContext);
5012
+ const context = React10.useContext(SidebarContext);
5022
5013
  if (!context) {
5023
5014
  throw new Error("useSidebar must be used within a Sidebar component");
5024
5015
  }
5025
5016
  return context;
5026
5017
  }
5027
5018
  function useSidebarOptional() {
5028
- return React49.useContext(SidebarContext);
5019
+ return React10.useContext(SidebarContext);
5029
5020
  }
5030
5021
  function SidebarProvider({ children, value }) {
5031
5022
  return /* @__PURE__ */ jsx(SidebarContext.Provider, { value, children });
5032
5023
  }
5033
5024
  function useMediaQuery2(query) {
5034
- const [matches, setMatches] = React49.useState(false);
5035
- React49.useEffect(() => {
5025
+ const [matches, setMatches] = React10.useState(false);
5026
+ React10.useEffect(() => {
5036
5027
  if (typeof window === "undefined") return;
5037
5028
  const mediaQuery = window.matchMedia(query);
5038
5029
  setMatches(mediaQuery.matches);
@@ -5044,7 +5035,7 @@ function useMediaQuery2(query) {
5044
5035
  }, [query]);
5045
5036
  return matches;
5046
5037
  }
5047
- var SidebarHeader = React49.memo(function SidebarHeader2({
5038
+ var SidebarHeader = React10.memo(function SidebarHeader2({
5048
5039
  logo,
5049
5040
  collapsedLogo,
5050
5041
  title,
@@ -5052,7 +5043,7 @@ var SidebarHeader = React49.memo(function SidebarHeader2({
5052
5043
  className
5053
5044
  }) {
5054
5045
  const { expanded, pinned, setPinned } = useSidebar();
5055
- const handleTogglePin = React49.useCallback(() => {
5046
+ const handleTogglePin = React10.useCallback(() => {
5056
5047
  setPinned(!pinned);
5057
5048
  }, [pinned, setPinned]);
5058
5049
  return /* @__PURE__ */ jsxs(
@@ -5127,7 +5118,7 @@ var SidebarHeader = React49.memo(function SidebarHeader2({
5127
5118
  );
5128
5119
  });
5129
5120
  SidebarHeader.displayName = "Sidebar.Header";
5130
- var SidebarNav = React49.memo(function SidebarNav2({
5121
+ var SidebarNav = React10.memo(function SidebarNav2({
5131
5122
  children,
5132
5123
  className
5133
5124
  }) {
@@ -5143,7 +5134,7 @@ var SidebarNav = React49.memo(function SidebarNav2({
5143
5134
  );
5144
5135
  });
5145
5136
  SidebarNav.displayName = "Sidebar.Nav";
5146
- var SidebarSection = React49.memo(function SidebarSection2({
5137
+ var SidebarSection = React10.memo(function SidebarSection2({
5147
5138
  title,
5148
5139
  children,
5149
5140
  className
@@ -5167,8 +5158,8 @@ var SidebarSection = React49.memo(function SidebarSection2({
5167
5158
  SidebarSection.displayName = "Sidebar.Section";
5168
5159
  function renderIcon(icon, className) {
5169
5160
  if (!icon) return null;
5170
- if (React49.isValidElement(icon)) {
5171
- return React49.cloneElement(icon, { className });
5161
+ if (React10.isValidElement(icon)) {
5162
+ return React10.cloneElement(icon, { className });
5172
5163
  }
5173
5164
  if (typeof icon === "function" || typeof icon === "object" && icon !== null && "$$typeof" in icon) {
5174
5165
  const IconComponent = icon;
@@ -5182,7 +5173,7 @@ var badgeVariantStyles = {
5182
5173
  success: "bg-green-100 text-green-600",
5183
5174
  warning: "bg-amber-100 text-amber-600"
5184
5175
  };
5185
- var SidebarNavItem = React49.memo(function SidebarNavItem2({
5176
+ var SidebarNavItem = React10.memo(function SidebarNavItem2({
5186
5177
  icon,
5187
5178
  label,
5188
5179
  href,
@@ -5194,7 +5185,7 @@ var SidebarNavItem = React49.memo(function SidebarNavItem2({
5194
5185
  className
5195
5186
  }) {
5196
5187
  const { expanded } = useSidebar();
5197
- const handleClick = React49.useCallback(() => {
5188
+ const handleClick = React10.useCallback(() => {
5198
5189
  if (disabled) return;
5199
5190
  if (onClick) {
5200
5191
  onClick();
@@ -5277,8 +5268,8 @@ var SidebarNavItem = React49.memo(function SidebarNavItem2({
5277
5268
  SidebarNavItem.displayName = "Sidebar.NavItem";
5278
5269
  function renderIcon2(icon, className) {
5279
5270
  if (!icon) return null;
5280
- if (React49.isValidElement(icon)) {
5281
- return React49.cloneElement(icon, { className });
5271
+ if (React10.isValidElement(icon)) {
5272
+ return React10.cloneElement(icon, { className });
5282
5273
  }
5283
5274
  if (typeof icon === "function" || typeof icon === "object" && icon !== null && "$$typeof" in icon) {
5284
5275
  const IconComponent = icon;
@@ -5292,7 +5283,7 @@ var badgeVariantStyles2 = {
5292
5283
  success: "bg-green-100 text-green-600",
5293
5284
  warning: "bg-amber-100 text-amber-600"
5294
5285
  };
5295
- var SidebarNavGroup = React49.memo(function SidebarNavGroup2({
5286
+ var SidebarNavGroup = React10.memo(function SidebarNavGroup2({
5296
5287
  icon,
5297
5288
  label,
5298
5289
  children,
@@ -5304,10 +5295,10 @@ var SidebarNavGroup = React49.memo(function SidebarNavGroup2({
5304
5295
  className
5305
5296
  }) {
5306
5297
  const { expanded, activeSection, setActiveSection } = useSidebar();
5307
- const [isOpen, setIsOpen] = React49.useState(defaultOpen);
5298
+ const [isOpen, setIsOpen] = React10.useState(defaultOpen);
5308
5299
  const groupId = id || label.toLowerCase().replace(/\s+/g, "-");
5309
5300
  const isExpanded = expanded && (activeSection === groupId || isOpen);
5310
- const handleClick = React49.useCallback(() => {
5301
+ const handleClick = React10.useCallback(() => {
5311
5302
  if (activeSection === groupId) {
5312
5303
  setActiveSection(null);
5313
5304
  setIsOpen(false);
@@ -5316,7 +5307,7 @@ var SidebarNavGroup = React49.memo(function SidebarNavGroup2({
5316
5307
  setIsOpen(true);
5317
5308
  }
5318
5309
  }, [activeSection, groupId, setActiveSection]);
5319
- React49.useEffect(() => {
5310
+ React10.useEffect(() => {
5320
5311
  if (expanded && isActive && !isOpen) {
5321
5312
  setIsOpen(true);
5322
5313
  setActiveSection(groupId);
@@ -5420,18 +5411,18 @@ function isLucideIcon(icon) {
5420
5411
  function getInitials(name) {
5421
5412
  return name.split(" ").map((part) => part.charAt(0)).slice(0, 2).join("").toUpperCase();
5422
5413
  }
5423
- var SidebarFooter = React49.memo(function SidebarFooter2({
5414
+ var SidebarFooter = React10.memo(function SidebarFooter2({
5424
5415
  user,
5425
5416
  menuItems,
5426
5417
  children,
5427
5418
  className
5428
5419
  }) {
5429
5420
  const { expanded } = useSidebar();
5430
- const [menuOpen, setMenuOpen] = React49.useState(false);
5431
- const handleToggleMenu = React49.useCallback(() => {
5421
+ const [menuOpen, setMenuOpen] = React10.useState(false);
5422
+ const handleToggleMenu = React10.useCallback(() => {
5432
5423
  setMenuOpen((prev) => !prev);
5433
5424
  }, []);
5434
- React49.useEffect(() => {
5425
+ React10.useEffect(() => {
5435
5426
  if (!menuOpen) return;
5436
5427
  const handleClickOutside = (event) => {
5437
5428
  const target = event.target;
@@ -5509,7 +5500,7 @@ var SidebarFooter = React49.memo(function SidebarFooter2({
5509
5500
  children: /* @__PURE__ */ jsx("div", { className: "py-1", children: menuItems.map((item, index) => {
5510
5501
  const IconComponent = item.icon && isLucideIcon(item.icon) ? item.icon : null;
5511
5502
  const isDestructive = item.variant === "destructive";
5512
- return /* @__PURE__ */ jsxs(React49.Fragment, { children: [
5503
+ return /* @__PURE__ */ jsxs(React10.Fragment, { children: [
5513
5504
  isDestructive && index > 0 && /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" }),
5514
5505
  /* @__PURE__ */ jsxs(
5515
5506
  "button",
@@ -5546,17 +5537,17 @@ function SidebarRoot({
5546
5537
  collapsedWidth = COLLAPSED_WIDTH,
5547
5538
  expandedWidth = EXPANDED_WIDTH
5548
5539
  }) {
5549
- const [expanded, setExpanded] = React49.useState(defaultExpanded || defaultPinned);
5550
- const [pinned, setPinned] = React49.useState(defaultPinned);
5551
- const [activeSection, setActiveSection] = React49.useState(null);
5540
+ const [expanded, setExpanded] = React10.useState(defaultExpanded || defaultPinned);
5541
+ const [pinned, setPinned] = React10.useState(defaultPinned);
5542
+ const [activeSection, setActiveSection] = React10.useState(null);
5552
5543
  const isMobile = useMediaQuery2("(max-width: 768px)");
5553
- const handleSetPinned = React49.useCallback((value) => {
5544
+ const handleSetPinned = React10.useCallback((value) => {
5554
5545
  setPinned(value);
5555
5546
  if (value) {
5556
5547
  setExpanded(true);
5557
5548
  }
5558
5549
  }, []);
5559
- const contextValue = React49.useMemo(
5550
+ const contextValue = React10.useMemo(
5560
5551
  () => ({
5561
5552
  expanded,
5562
5553
  setExpanded,
@@ -5575,13 +5566,13 @@ function SidebarRoot({
5575
5566
  SidebarRoot.displayName = "SidebarRoot";
5576
5567
  function SidebarAside({ children, className }) {
5577
5568
  const { expanded, pinned, setExpanded, isMobile, collapsedWidth, expandedWidth } = useSidebar();
5578
- const sidebarRef = React49.useRef(null);
5579
- const handleMouseEnter = React49.useCallback(() => {
5569
+ const sidebarRef = React10.useRef(null);
5570
+ const handleMouseEnter = React10.useCallback(() => {
5580
5571
  if (!pinned && !isMobile) {
5581
5572
  setExpanded(true);
5582
5573
  }
5583
5574
  }, [pinned, isMobile, setExpanded]);
5584
- const handleMouseLeave = React49.useCallback(() => {
5575
+ const handleMouseLeave = React10.useCallback(() => {
5585
5576
  if (!pinned && !isMobile) {
5586
5577
  setExpanded(false);
5587
5578
  }
@@ -5649,28 +5640,28 @@ function LegacySidebar({
5649
5640
  expandedWidth = EXPANDED_WIDTH,
5650
5641
  className
5651
5642
  }) {
5652
- const [expanded, setExpanded] = React49.useState(defaultExpanded || defaultPinned);
5653
- const [pinned, setPinned] = React49.useState(defaultPinned);
5654
- const [activeSection, setActiveSection] = React49.useState(null);
5643
+ const [expanded, setExpanded] = React10.useState(defaultExpanded || defaultPinned);
5644
+ const [pinned, setPinned] = React10.useState(defaultPinned);
5645
+ const [activeSection, setActiveSection] = React10.useState(null);
5655
5646
  const isMobile = useMediaQuery2("(max-width: 768px)");
5656
- const sidebarRef = React49.useRef(null);
5657
- const handleMouseEnter = React49.useCallback(() => {
5647
+ const sidebarRef = React10.useRef(null);
5648
+ const handleMouseEnter = React10.useCallback(() => {
5658
5649
  if (!pinned && !isMobile) {
5659
5650
  setExpanded(true);
5660
5651
  }
5661
5652
  }, [pinned, isMobile]);
5662
- const handleMouseLeave = React49.useCallback(() => {
5653
+ const handleMouseLeave = React10.useCallback(() => {
5663
5654
  if (!pinned && !isMobile) {
5664
5655
  setExpanded(false);
5665
5656
  }
5666
5657
  }, [pinned, isMobile]);
5667
- const handleSetPinned = React49.useCallback((value) => {
5658
+ const handleSetPinned = React10.useCallback((value) => {
5668
5659
  setPinned(value);
5669
5660
  if (value) {
5670
5661
  setExpanded(true);
5671
5662
  }
5672
5663
  }, []);
5673
- const contextValue = React49.useMemo(
5664
+ const contextValue = React10.useMemo(
5674
5665
  () => ({
5675
5666
  expanded,
5676
5667
  setExpanded,
@@ -5727,8 +5718,8 @@ var Sidebar = Object.assign(LegacySidebar, {
5727
5718
  });
5728
5719
  function renderIcon3(icon, className) {
5729
5720
  if (!icon) return null;
5730
- if (React49.isValidElement(icon)) {
5731
- return React49.cloneElement(icon, { className });
5721
+ if (React10.isValidElement(icon)) {
5722
+ return React10.cloneElement(icon, { className });
5732
5723
  }
5733
5724
  if (typeof icon === "function" || typeof icon === "object" && icon !== null && "$$typeof" in icon) {
5734
5725
  const IconComponent = icon;
@@ -5736,7 +5727,7 @@ function renderIcon3(icon, className) {
5736
5727
  }
5737
5728
  return null;
5738
5729
  }
5739
- var MobileNavItem = React49.memo(function MobileNavItem2({
5730
+ var MobileNavItem = React10.memo(function MobileNavItem2({
5740
5731
  icon,
5741
5732
  label,
5742
5733
  isActive = false,
@@ -5774,7 +5765,7 @@ var MobileNavItem = React49.memo(function MobileNavItem2({
5774
5765
  ] });
5775
5766
  });
5776
5767
  MobileNavItem.displayName = "MobileNavItem";
5777
- var MobileNav = React49.memo(function MobileNav2({
5768
+ var MobileNav = React10.memo(function MobileNav2({
5778
5769
  items,
5779
5770
  fabAction,
5780
5771
  className
@@ -5842,7 +5833,7 @@ var MobileNav = React49.memo(function MobileNav2({
5842
5833
  );
5843
5834
  });
5844
5835
  MobileNav.displayName = "MobileNav";
5845
- var Navbar = React49.memo(function Navbar2({
5836
+ var Navbar = React10.memo(function Navbar2({
5846
5837
  children,
5847
5838
  className,
5848
5839
  style
@@ -5861,8 +5852,8 @@ var Navbar = React49.memo(function Navbar2({
5861
5852
  });
5862
5853
  Navbar.displayName = "Navbar";
5863
5854
  function ThemeToggle({ className }) {
5864
- const [isDark, setIsDark] = React49.useState(false);
5865
- React49.useEffect(() => {
5855
+ const [isDark, setIsDark] = React10.useState(false);
5856
+ React10.useEffect(() => {
5866
5857
  const isDarkMode = document.documentElement.classList.contains("dark");
5867
5858
  setIsDark(isDarkMode);
5868
5859
  }, []);
@@ -5954,7 +5945,7 @@ function NavbarNotification({
5954
5945
  ] });
5955
5946
  }
5956
5947
  NavbarNotification.displayName = "NavbarNotification";
5957
- var ScrollArea = React49.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
5948
+ var ScrollArea = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
5958
5949
  ScrollAreaPrimitive.Root,
5959
5950
  {
5960
5951
  ref,
@@ -5968,7 +5959,7 @@ var ScrollArea = React49.forwardRef(({ className, children, ...props }, ref) =>
5968
5959
  }
5969
5960
  ));
5970
5961
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
5971
- var ScrollBar = React49.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
5962
+ var ScrollBar = React10.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
5972
5963
  ScrollAreaPrimitive.ScrollAreaScrollbar,
5973
5964
  {
5974
5965
  ref,
@@ -5984,7 +5975,7 @@ var ScrollBar = React49.forwardRef(({ className, orientation = "vertical", ...pr
5984
5975
  }
5985
5976
  ));
5986
5977
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
5987
- var Separator3 = React49.forwardRef(
5978
+ var Separator3 = React10.forwardRef(
5988
5979
  ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
5989
5980
  SeparatorPrimitive.Root,
5990
5981
  {
@@ -6052,7 +6043,7 @@ function NavbarCompanyProfile({
6052
6043
  /* @__PURE__ */ jsx(ScrollArea, { className: "h-64", children: /* @__PURE__ */ jsxs("div", { className: "p-4", children: [
6053
6044
  isLoading && /* @__PURE__ */ jsx("div", { className: "flex justify-center py-4", children: /* @__PURE__ */ jsx(Loader, { variant: "spinner" }) }),
6054
6045
  !isLoading && companies.length === 0 && /* @__PURE__ */ jsx("p", { className: "text-center text-muted-foreground", children: "Nenhuma empresa encontrada." }),
6055
- companies.map((company, index) => /* @__PURE__ */ jsxs(React49.Fragment, { children: [
6046
+ companies.map((company, index) => /* @__PURE__ */ jsxs(React10.Fragment, { children: [
6056
6047
  /* @__PURE__ */ jsx(
6057
6048
  Button,
6058
6049
  {
@@ -6135,9 +6126,9 @@ function NavbarUserMenu({
6135
6126
  ] });
6136
6127
  }
6137
6128
  NavbarUserMenu.displayName = "NavbarUserMenu";
6138
- var Breadcrumb = React49.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
6129
+ var Breadcrumb = React10.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
6139
6130
  Breadcrumb.displayName = "Breadcrumb";
6140
- var BreadcrumbList = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6131
+ var BreadcrumbList = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6141
6132
  "ol",
6142
6133
  {
6143
6134
  ref,
@@ -6149,7 +6140,7 @@ var BreadcrumbList = React49.forwardRef(({ className, ...props }, ref) => /* @__
6149
6140
  }
6150
6141
  ));
6151
6142
  BreadcrumbList.displayName = "BreadcrumbList";
6152
- var BreadcrumbItem = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6143
+ var BreadcrumbItem = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6153
6144
  "li",
6154
6145
  {
6155
6146
  ref,
@@ -6158,7 +6149,7 @@ var BreadcrumbItem = React49.forwardRef(({ className, ...props }, ref) => /* @__
6158
6149
  }
6159
6150
  ));
6160
6151
  BreadcrumbItem.displayName = "BreadcrumbItem";
6161
- var BreadcrumbLink = React49.forwardRef(({ asChild, className, ...props }, ref) => {
6152
+ var BreadcrumbLink = React10.forwardRef(({ asChild, className, ...props }, ref) => {
6162
6153
  const Comp = asChild ? Slot : "a";
6163
6154
  return /* @__PURE__ */ jsx(
6164
6155
  Comp,
@@ -6170,7 +6161,7 @@ var BreadcrumbLink = React49.forwardRef(({ asChild, className, ...props }, ref)
6170
6161
  );
6171
6162
  });
6172
6163
  BreadcrumbLink.displayName = "BreadcrumbLink";
6173
- var BreadcrumbPage = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6164
+ var BreadcrumbPage = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6174
6165
  "span",
6175
6166
  {
6176
6167
  ref,
@@ -6306,16 +6297,16 @@ var SectionHeader = Object.assign(SectionHeaderRoot, {
6306
6297
  Actions: SectionHeaderActions,
6307
6298
  Badge: SectionHeaderBadge
6308
6299
  });
6309
- var KanbanContext = React49.createContext(null);
6300
+ var KanbanContext = React10.createContext(null);
6310
6301
  function useKanban() {
6311
- const context = React49.useContext(KanbanContext);
6302
+ const context = React10.useContext(KanbanContext);
6312
6303
  if (!context) {
6313
6304
  throw new Error("useKanban must be used within a Kanban.Board component");
6314
6305
  }
6315
6306
  return context;
6316
6307
  }
6317
6308
  function useKanbanOptional() {
6318
- return React49.useContext(KanbanContext);
6309
+ return React10.useContext(KanbanContext);
6319
6310
  }
6320
6311
  function KanbanProvider({ children, value }) {
6321
6312
  return /* @__PURE__ */ jsx(KanbanContext.Provider, { value, children });
@@ -6326,18 +6317,18 @@ function KanbanBoard({
6326
6317
  onDragStart,
6327
6318
  className
6328
6319
  }) {
6329
- const [isDragging, setIsDragging] = React49.useState(false);
6330
- const [draggedItemId, setDraggedItemId] = React49.useState(null);
6331
- const [sourceColumnId, setSourceColumnId] = React49.useState(null);
6332
- const [hoveredColumnId, setHoveredColumnId] = React49.useState(null);
6333
- const dropValidatorsRef = React49.useRef(/* @__PURE__ */ new Map());
6334
- const registerDropValidator = React49.useCallback((columnId, validator) => {
6320
+ const [isDragging, setIsDragging] = React10.useState(false);
6321
+ const [draggedItemId, setDraggedItemId] = React10.useState(null);
6322
+ const [sourceColumnId, setSourceColumnId] = React10.useState(null);
6323
+ const [hoveredColumnId, setHoveredColumnId] = React10.useState(null);
6324
+ const dropValidatorsRef = React10.useRef(/* @__PURE__ */ new Map());
6325
+ const registerDropValidator = React10.useCallback((columnId, validator) => {
6335
6326
  dropValidatorsRef.current.set(columnId, validator);
6336
6327
  }, []);
6337
- const unregisterDropValidator = React49.useCallback((columnId) => {
6328
+ const unregisterDropValidator = React10.useCallback((columnId) => {
6338
6329
  dropValidatorsRef.current.delete(columnId);
6339
6330
  }, []);
6340
- const canDropInColumn = React49.useCallback((columnId) => {
6331
+ const canDropInColumn = React10.useCallback((columnId) => {
6341
6332
  if (!draggedItemId || !sourceColumnId) return false;
6342
6333
  if (columnId === sourceColumnId) return false;
6343
6334
  const validator = dropValidatorsRef.current.get(columnId);
@@ -6346,13 +6337,13 @@ function KanbanBoard({
6346
6337
  }
6347
6338
  return true;
6348
6339
  }, [draggedItemId, sourceColumnId]);
6349
- const handleDragStart = React49.useCallback((itemId, colId) => {
6340
+ const handleDragStart = React10.useCallback((itemId, colId) => {
6350
6341
  setIsDragging(true);
6351
6342
  setDraggedItemId(itemId);
6352
6343
  setSourceColumnId(colId);
6353
6344
  onDragStart?.(itemId, colId);
6354
6345
  }, [onDragStart]);
6355
- const handleDrop = React49.useCallback((destinationColumnId) => {
6346
+ const handleDrop = React10.useCallback((destinationColumnId) => {
6356
6347
  if (draggedItemId && sourceColumnId && destinationColumnId !== sourceColumnId) {
6357
6348
  if (canDropInColumn(destinationColumnId)) {
6358
6349
  const result = {
@@ -6368,13 +6359,13 @@ function KanbanBoard({
6368
6359
  setSourceColumnId(null);
6369
6360
  setHoveredColumnId(null);
6370
6361
  }, [draggedItemId, sourceColumnId, canDropInColumn, onDragEnd]);
6371
- const handleDragEnd = React49.useCallback(() => {
6362
+ const handleDragEnd = React10.useCallback(() => {
6372
6363
  setIsDragging(false);
6373
6364
  setDraggedItemId(null);
6374
6365
  setSourceColumnId(null);
6375
6366
  setHoveredColumnId(null);
6376
6367
  }, []);
6377
- const contextValue = React49.useMemo(() => ({
6368
+ const contextValue = React10.useMemo(() => ({
6378
6369
  isDragging,
6379
6370
  draggedItemId,
6380
6371
  sourceColumnId,
@@ -6399,9 +6390,9 @@ function KanbanBoard({
6399
6390
  }
6400
6391
  ) });
6401
6392
  }
6402
- var KanbanBoardInternalContext = React49.createContext(null);
6393
+ var KanbanBoardInternalContext = React10.createContext(null);
6403
6394
  function useKanbanBoard() {
6404
- const context = React49.useContext(KanbanBoardInternalContext);
6395
+ const context = React10.useContext(KanbanBoardInternalContext);
6405
6396
  if (!context) {
6406
6397
  throw new Error("useKanbanBoard must be used within a Kanban.Board component");
6407
6398
  }
@@ -6421,7 +6412,7 @@ function KanbanColumn({
6421
6412
  }) {
6422
6413
  const { isDragging, sourceColumnId, hoveredColumnId, setHoveredColumnId, canDropInColumn, registerDropValidator, unregisterDropValidator } = useKanban();
6423
6414
  const { handleDrop } = useKanbanBoard();
6424
- React49.useEffect(() => {
6415
+ React10.useEffect(() => {
6425
6416
  if (canDrop) {
6426
6417
  registerDropValidator(id, canDrop);
6427
6418
  return () => unregisterDropValidator(id);
@@ -6430,7 +6421,7 @@ function KanbanColumn({
6430
6421
  const isValidDropTarget = isDragging && sourceColumnId !== id && canDropInColumn(id);
6431
6422
  const isInvalidDropTarget = isDragging && sourceColumnId !== id && !canDropInColumn(id);
6432
6423
  const isHovered = hoveredColumnId === id;
6433
- const handleDragOver = React49.useCallback((e) => {
6424
+ const handleDragOver = React10.useCallback((e) => {
6434
6425
  e.preventDefault();
6435
6426
  if (isValidDropTarget) {
6436
6427
  e.dataTransfer.dropEffect = "move";
@@ -6439,18 +6430,18 @@ function KanbanColumn({
6439
6430
  e.dataTransfer.dropEffect = "none";
6440
6431
  }
6441
6432
  }, [isValidDropTarget, setHoveredColumnId, id]);
6442
- const handleDragLeave = React49.useCallback((e) => {
6433
+ const handleDragLeave = React10.useCallback((e) => {
6443
6434
  if (e.currentTarget === e.target || !e.currentTarget.contains(e.relatedTarget)) {
6444
6435
  setHoveredColumnId(null);
6445
6436
  }
6446
6437
  }, [setHoveredColumnId]);
6447
- const handleDropEvent = React49.useCallback((e) => {
6438
+ const handleDropEvent = React10.useCallback((e) => {
6448
6439
  e.preventDefault();
6449
6440
  if (isValidDropTarget) {
6450
6441
  handleDrop(id);
6451
6442
  }
6452
6443
  }, [isValidDropTarget, handleDrop, id]);
6453
- const childCount = React49.Children.count(children);
6444
+ const childCount = React10.Children.count(children);
6454
6445
  const displayCount = count ?? childCount;
6455
6446
  return /* @__PURE__ */ jsxs(
6456
6447
  "div",
@@ -6511,7 +6502,7 @@ function KanbanCard({
6511
6502
  const { draggedItemId } = useKanban();
6512
6503
  const { handleDragStart } = useKanbanBoard();
6513
6504
  const isThisCardDragging = draggedItemId === id;
6514
- const handleDragStartEvent = React49.useCallback((e) => {
6505
+ const handleDragStartEvent = React10.useCallback((e) => {
6515
6506
  if (disabled) {
6516
6507
  e.preventDefault();
6517
6508
  return;
@@ -6571,15 +6562,15 @@ var itemCardVariants = cva(
6571
6562
  }
6572
6563
  }
6573
6564
  );
6574
- var ItemCardContext = React49.createContext(null);
6565
+ var ItemCardContext = React10.createContext(null);
6575
6566
  function useItemCard() {
6576
- const context = React49.useContext(ItemCardContext);
6567
+ const context = React10.useContext(ItemCardContext);
6577
6568
  if (!context) {
6578
6569
  throw new Error("ItemCard components must be used within ItemCard.Root");
6579
6570
  }
6580
6571
  return context;
6581
6572
  }
6582
- var ItemCardRoot = React49.forwardRef(
6573
+ var ItemCardRoot = React10.forwardRef(
6583
6574
  ({
6584
6575
  className,
6585
6576
  variant,
@@ -6589,7 +6580,7 @@ var ItemCardRoot = React49.forwardRef(
6589
6580
  children,
6590
6581
  ...props
6591
6582
  }, ref) => {
6592
- const contextValue = React49.useMemo(
6583
+ const contextValue = React10.useMemo(
6593
6584
  () => ({ isSelected: selected }),
6594
6585
  [selected]
6595
6586
  );
@@ -6633,7 +6624,7 @@ var itemCardBadgeVariants = cva(
6633
6624
  }
6634
6625
  }
6635
6626
  );
6636
- var ItemCardBadge = React49.forwardRef(
6627
+ var ItemCardBadge = React10.forwardRef(
6637
6628
  ({ className, variant, children, ...props }, ref) => {
6638
6629
  return /* @__PURE__ */ jsx(
6639
6630
  "div",
@@ -6647,7 +6638,7 @@ var ItemCardBadge = React49.forwardRef(
6647
6638
  }
6648
6639
  );
6649
6640
  ItemCardBadge.displayName = "ItemCardBadge";
6650
- var ItemCardHeader = React49.forwardRef(
6641
+ var ItemCardHeader = React10.forwardRef(
6651
6642
  ({ className, align = "between", children, ...props }, ref) => {
6652
6643
  const alignmentClasses = {
6653
6644
  left: "justify-start",
@@ -6696,7 +6687,7 @@ var itemCardIconVariants = cva(
6696
6687
  }
6697
6688
  }
6698
6689
  );
6699
- var ItemCardIcon = React49.forwardRef(
6690
+ var ItemCardIcon = React10.forwardRef(
6700
6691
  ({ className, size, variant, ripple = false, children, ...props }, ref) => {
6701
6692
  const wrapperSizeClasses = {
6702
6693
  sm: "w-10 h-10",
@@ -6738,7 +6729,7 @@ var ItemCardIcon = React49.forwardRef(
6738
6729
  }
6739
6730
  );
6740
6731
  ItemCardIcon.displayName = "ItemCardIcon";
6741
- var ItemCardTitleGroup = React49.forwardRef(
6732
+ var ItemCardTitleGroup = React10.forwardRef(
6742
6733
  ({ className, align = "right", children, ...props }, ref) => {
6743
6734
  const alignmentClasses = {
6744
6735
  left: "text-left",
@@ -6757,7 +6748,7 @@ var ItemCardTitleGroup = React49.forwardRef(
6757
6748
  }
6758
6749
  );
6759
6750
  ItemCardTitleGroup.displayName = "ItemCardTitleGroup";
6760
- var ItemCardTitle = React49.forwardRef(
6751
+ var ItemCardTitle = React10.forwardRef(
6761
6752
  ({ className, children, ...props }, ref) => {
6762
6753
  return /* @__PURE__ */ jsx(
6763
6754
  "h3",
@@ -6771,7 +6762,7 @@ var ItemCardTitle = React49.forwardRef(
6771
6762
  }
6772
6763
  );
6773
6764
  ItemCardTitle.displayName = "ItemCardTitle";
6774
- var ItemCardSubtitle = React49.forwardRef(
6765
+ var ItemCardSubtitle = React10.forwardRef(
6775
6766
  ({ className, children, ...props }, ref) => {
6776
6767
  return /* @__PURE__ */ jsx(
6777
6768
  "p",
@@ -6785,7 +6776,7 @@ var ItemCardSubtitle = React49.forwardRef(
6785
6776
  }
6786
6777
  );
6787
6778
  ItemCardSubtitle.displayName = "ItemCardSubtitle";
6788
- var ItemCardContent = React49.forwardRef(
6779
+ var ItemCardContent = React10.forwardRef(
6789
6780
  ({ className, muted = true, children, ...props }, ref) => {
6790
6781
  return /* @__PURE__ */ jsx(
6791
6782
  "div",
@@ -6803,7 +6794,7 @@ var ItemCardContent = React49.forwardRef(
6803
6794
  }
6804
6795
  );
6805
6796
  ItemCardContent.displayName = "ItemCardContent";
6806
- var ItemCardContentItem = React49.forwardRef(
6797
+ var ItemCardContentItem = React10.forwardRef(
6807
6798
  ({ className, label, value, secondary, children, ...props }, ref) => {
6808
6799
  if (children) {
6809
6800
  return /* @__PURE__ */ jsx(
@@ -6838,7 +6829,7 @@ var ItemCardContentItem = React49.forwardRef(
6838
6829
  }
6839
6830
  );
6840
6831
  ItemCardContentItem.displayName = "ItemCardContentItem";
6841
- var ItemCardEmpty = React49.forwardRef(
6832
+ var ItemCardEmpty = React10.forwardRef(
6842
6833
  ({ className, icon, message = "Nenhum item", children, ...props }, ref) => {
6843
6834
  return /* @__PURE__ */ jsxs(
6844
6835
  "div",
@@ -6858,7 +6849,7 @@ var ItemCardEmpty = React49.forwardRef(
6858
6849
  }
6859
6850
  );
6860
6851
  ItemCardEmpty.displayName = "ItemCardEmpty";
6861
- var ItemCardFooter = React49.forwardRef(
6852
+ var ItemCardFooter = React10.forwardRef(
6862
6853
  ({ className, children, ...props }, ref) => {
6863
6854
  return /* @__PURE__ */ jsx(
6864
6855
  "div",
@@ -6875,7 +6866,7 @@ var ItemCardFooter = React49.forwardRef(
6875
6866
  }
6876
6867
  );
6877
6868
  ItemCardFooter.displayName = "ItemCardFooter";
6878
- var ItemCardFooterItem = React49.forwardRef(
6869
+ var ItemCardFooterItem = React10.forwardRef(
6879
6870
  ({ className, label, value, align = "left", ...props }, ref) => {
6880
6871
  return /* @__PURE__ */ jsxs(
6881
6872
  "div",
@@ -6896,7 +6887,7 @@ var ItemCardFooterItem = React49.forwardRef(
6896
6887
  }
6897
6888
  );
6898
6889
  ItemCardFooterItem.displayName = "ItemCardFooterItem";
6899
- var ItemCardFooterDivider = React49.forwardRef(
6890
+ var ItemCardFooterDivider = React10.forwardRef(
6900
6891
  ({ className, ...props }, ref) => {
6901
6892
  return /* @__PURE__ */ jsx(
6902
6893
  "div",
@@ -6909,7 +6900,7 @@ var ItemCardFooterDivider = React49.forwardRef(
6909
6900
  }
6910
6901
  );
6911
6902
  ItemCardFooterDivider.displayName = "ItemCardFooterDivider";
6912
- var ItemCardActions = React49.forwardRef(
6903
+ var ItemCardActions = React10.forwardRef(
6913
6904
  ({ className, bordered = true, children, ...props }, ref) => {
6914
6905
  return /* @__PURE__ */ jsx(
6915
6906
  "div",
@@ -6927,7 +6918,7 @@ var ItemCardActions = React49.forwardRef(
6927
6918
  }
6928
6919
  );
6929
6920
  ItemCardActions.displayName = "ItemCardActions";
6930
- var ItemCardActionButton = React49.forwardRef(
6921
+ var ItemCardActionButton = React10.forwardRef(
6931
6922
  ({
6932
6923
  className,
6933
6924
  showArrow = true,
@@ -6968,7 +6959,7 @@ var ItemCardActionButton = React49.forwardRef(
6968
6959
  }
6969
6960
  );
6970
6961
  ItemCardActionButton.displayName = "ItemCardActionButton";
6971
- var ItemCardActionsRow = React49.forwardRef(
6962
+ var ItemCardActionsRow = React10.forwardRef(
6972
6963
  ({ className, children, ...props }, ref) => {
6973
6964
  return /* @__PURE__ */ jsx(
6974
6965
  "div",
@@ -7717,9 +7708,9 @@ function Logo({
7717
7708
  }
7718
7709
  );
7719
7710
  }
7720
- var StatsCardContext = React49.createContext(null);
7711
+ var StatsCardContext = React10.createContext(null);
7721
7712
  function useStatsCard() {
7722
- const context = React49.useContext(StatsCardContext);
7713
+ const context = React10.useContext(StatsCardContext);
7723
7714
  if (!context) {
7724
7715
  throw new Error("StatsCard components must be used within StatsCard.Root");
7725
7716
  }
@@ -7893,7 +7884,7 @@ function StatsCardChange({ type = "positive", className, children, ...props }) {
7893
7884
  }
7894
7885
  function StatsCardChart({ data, height, className, ...props }) {
7895
7886
  const { config, variant } = useStatsCard();
7896
- const gradientId = React49.useId();
7887
+ const gradientId = React10.useId();
7897
7888
  if (variant === "mini") {
7898
7889
  return null;
7899
7890
  }
@@ -7987,18 +7978,18 @@ var initialState = {
7987
7978
  theme: "system",
7988
7979
  setTheme: () => null
7989
7980
  };
7990
- var ThemeProviderContext = React49.createContext(initialState);
7981
+ var ThemeProviderContext = React10.createContext(initialState);
7991
7982
  function ThemeProvider({
7992
7983
  children,
7993
7984
  defaultTheme = "system",
7994
7985
  storageKey = "facter-ds-theme",
7995
7986
  ...props
7996
7987
  }) {
7997
- const [theme, setTheme] = React49.useState(
7988
+ const [theme, setTheme] = React10.useState(
7998
7989
  () => localStorage.getItem(storageKey) || defaultTheme
7999
7990
  );
8000
- const [resolvedTheme, setResolvedTheme] = React49.useState("light");
8001
- React49.useEffect(() => {
7991
+ const [resolvedTheme, setResolvedTheme] = React10.useState("light");
7992
+ React10.useEffect(() => {
8002
7993
  const root = window.document.documentElement;
8003
7994
  root.classList.remove("light", "dark");
8004
7995
  if (theme === "system") {
@@ -8010,7 +8001,7 @@ function ThemeProvider({
8010
8001
  root.classList.add(theme);
8011
8002
  setResolvedTheme(theme);
8012
8003
  }, [theme]);
8013
- const value = React49.useMemo(
8004
+ const value = React10.useMemo(
8014
8005
  () => ({
8015
8006
  theme,
8016
8007
  setTheme: (theme2) => {
@@ -8023,7 +8014,7 @@ function ThemeProvider({
8023
8014
  return /* @__PURE__ */ jsx(ThemeProviderContext.Provider, { ...props, value, children: /* @__PURE__ */ jsx("div", { className: resolvedTheme, style: { minHeight: "100vh" }, children }) });
8024
8015
  }
8025
8016
  var useTheme = () => {
8026
- const context = React49.useContext(ThemeProviderContext);
8017
+ const context = React10.useContext(ThemeProviderContext);
8027
8018
  if (context === void 0)
8028
8019
  throw new Error("useTheme must be used within a ThemeProvider");
8029
8020
  return context;