@facter/ds-core 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +76 -1
- package/dist/index.d.ts +76 -1
- package/dist/index.js +488 -276
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +451 -254
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -10
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
2
|
+
import * as React49 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';
|
|
@@ -21,6 +21,7 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
|
21
21
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
22
22
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
23
23
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
24
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
24
25
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
25
26
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
26
27
|
import { Slot } from '@radix-ui/react-slot';
|
|
@@ -55,7 +56,7 @@ var buttonVariants = cva(
|
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
);
|
|
58
|
-
var Button =
|
|
59
|
+
var Button = React49.forwardRef(
|
|
59
60
|
({ className, variant, size, ...props }, ref) => {
|
|
60
61
|
return /* @__PURE__ */ jsx(
|
|
61
62
|
"button",
|
|
@@ -148,7 +149,7 @@ var inputVariants = cva(
|
|
|
148
149
|
}
|
|
149
150
|
}
|
|
150
151
|
);
|
|
151
|
-
var Input =
|
|
152
|
+
var Input = React49.forwardRef(
|
|
152
153
|
({
|
|
153
154
|
className,
|
|
154
155
|
variant,
|
|
@@ -162,13 +163,13 @@ var Input = React48.forwardRef(
|
|
|
162
163
|
labelClassName,
|
|
163
164
|
...props
|
|
164
165
|
}, ref) => {
|
|
165
|
-
const inputRef =
|
|
166
|
-
const [showPassword, setShowPassword] =
|
|
167
|
-
|
|
168
|
-
const focusInput =
|
|
166
|
+
const inputRef = React49.useRef(null);
|
|
167
|
+
const [showPassword, setShowPassword] = React49.useState(false);
|
|
168
|
+
React49.useImperativeHandle(ref, () => inputRef.current, []);
|
|
169
|
+
const focusInput = React49.useCallback(() => {
|
|
169
170
|
inputRef.current?.focus();
|
|
170
171
|
}, []);
|
|
171
|
-
const togglePasswordVisibility =
|
|
172
|
+
const togglePasswordVisibility = React49.useCallback(() => {
|
|
172
173
|
setShowPassword((prev) => !prev);
|
|
173
174
|
}, []);
|
|
174
175
|
const inputType = type === "password" ? showPassword ? "text" : "password" : type;
|
|
@@ -335,8 +336,8 @@ function Sparkline({
|
|
|
335
336
|
className,
|
|
336
337
|
show = true
|
|
337
338
|
}) {
|
|
338
|
-
const gradientId =
|
|
339
|
-
const { linePath, areaPath } =
|
|
339
|
+
const gradientId = React49.useId();
|
|
340
|
+
const { linePath, areaPath } = React49.useMemo(() => {
|
|
340
341
|
if (data.length < 2) {
|
|
341
342
|
return { linePath: "", areaPath: "" };
|
|
342
343
|
}
|
|
@@ -554,7 +555,7 @@ var selectVariants = cva(
|
|
|
554
555
|
}
|
|
555
556
|
}
|
|
556
557
|
);
|
|
557
|
-
var Select =
|
|
558
|
+
var Select = React49.forwardRef(
|
|
558
559
|
({
|
|
559
560
|
className,
|
|
560
561
|
variant,
|
|
@@ -623,7 +624,7 @@ var Select = React48.forwardRef(
|
|
|
623
624
|
}
|
|
624
625
|
);
|
|
625
626
|
Select.displayName = "Select";
|
|
626
|
-
var SelectItem =
|
|
627
|
+
var SelectItem = React49.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
627
628
|
SelectPrimitive.Item,
|
|
628
629
|
{
|
|
629
630
|
ref,
|
|
@@ -642,7 +643,7 @@ var SelectItem = React48.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
642
643
|
));
|
|
643
644
|
SelectItem.displayName = "SelectItem";
|
|
644
645
|
var SelectGroup = SelectPrimitive.Group;
|
|
645
|
-
var SelectLabel =
|
|
646
|
+
var SelectLabel = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
646
647
|
SelectPrimitive.Label,
|
|
647
648
|
{
|
|
648
649
|
ref,
|
|
@@ -651,7 +652,7 @@ var SelectLabel = React48.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
651
652
|
}
|
|
652
653
|
));
|
|
653
654
|
SelectLabel.displayName = "SelectLabel";
|
|
654
|
-
var SelectSeparator =
|
|
655
|
+
var SelectSeparator = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
655
656
|
SelectPrimitive.Separator,
|
|
656
657
|
{
|
|
657
658
|
ref,
|
|
@@ -661,7 +662,7 @@ var SelectSeparator = React48.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
661
662
|
));
|
|
662
663
|
SelectSeparator.displayName = "SelectSeparator";
|
|
663
664
|
var Tabs = TabsPrimitive.Root;
|
|
664
|
-
var TabsList =
|
|
665
|
+
var TabsList = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
665
666
|
TabsPrimitive.List,
|
|
666
667
|
{
|
|
667
668
|
ref,
|
|
@@ -673,7 +674,7 @@ var TabsList = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
673
674
|
}
|
|
674
675
|
));
|
|
675
676
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
676
|
-
var TabsTrigger =
|
|
677
|
+
var TabsTrigger = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
677
678
|
TabsPrimitive.Trigger,
|
|
678
679
|
{
|
|
679
680
|
ref,
|
|
@@ -685,7 +686,7 @@ var TabsTrigger = React48.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
685
686
|
}
|
|
686
687
|
));
|
|
687
688
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
688
|
-
var TabsContent =
|
|
689
|
+
var TabsContent = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
689
690
|
TabsPrimitive.Content,
|
|
690
691
|
{
|
|
691
692
|
ref,
|
|
@@ -794,7 +795,7 @@ function BarsLoader() {
|
|
|
794
795
|
i
|
|
795
796
|
)) });
|
|
796
797
|
}
|
|
797
|
-
var Loader =
|
|
798
|
+
var Loader = React49.forwardRef(
|
|
798
799
|
({
|
|
799
800
|
variant = "default",
|
|
800
801
|
message,
|
|
@@ -844,21 +845,21 @@ var Loader = React48.forwardRef(
|
|
|
844
845
|
}
|
|
845
846
|
);
|
|
846
847
|
Loader.displayName = "Loader";
|
|
847
|
-
var LoaderContext =
|
|
848
|
+
var LoaderContext = React49.createContext(
|
|
848
849
|
void 0
|
|
849
850
|
);
|
|
850
851
|
function LoaderProvider({ children }) {
|
|
851
|
-
const [isLoading, setIsLoading] =
|
|
852
|
-
const [loaderOptions, setLoaderOptions] =
|
|
853
|
-
const show =
|
|
852
|
+
const [isLoading, setIsLoading] = React49.useState(false);
|
|
853
|
+
const [loaderOptions, setLoaderOptions] = React49.useState({});
|
|
854
|
+
const show = React49.useCallback((options = {}) => {
|
|
854
855
|
setLoaderOptions(options);
|
|
855
856
|
setIsLoading(true);
|
|
856
857
|
}, []);
|
|
857
|
-
const hide =
|
|
858
|
+
const hide = React49.useCallback(() => {
|
|
858
859
|
setIsLoading(false);
|
|
859
860
|
setTimeout(() => setLoaderOptions({}), 300);
|
|
860
861
|
}, []);
|
|
861
|
-
const value =
|
|
862
|
+
const value = React49.useMemo(
|
|
862
863
|
() => ({ show, hide, isLoading }),
|
|
863
864
|
[show, hide, isLoading]
|
|
864
865
|
);
|
|
@@ -877,7 +878,7 @@ function LoaderProvider({ children }) {
|
|
|
877
878
|
] });
|
|
878
879
|
}
|
|
879
880
|
function useLoader() {
|
|
880
|
-
const context =
|
|
881
|
+
const context = React49.useContext(LoaderContext);
|
|
881
882
|
if (context === void 0) {
|
|
882
883
|
throw new Error("useLoader must be used within a LoaderProvider");
|
|
883
884
|
}
|
|
@@ -909,7 +910,7 @@ var loader = {
|
|
|
909
910
|
};
|
|
910
911
|
function GlobalLoaderController() {
|
|
911
912
|
const loaderController = useLoader();
|
|
912
|
-
|
|
913
|
+
React49.useEffect(() => {
|
|
913
914
|
setGlobalLoader(loaderController);
|
|
914
915
|
return () => {
|
|
915
916
|
setGlobalLoader(null);
|
|
@@ -995,7 +996,7 @@ var iconAnimation = {
|
|
|
995
996
|
whileHover: { scale: 1.1 },
|
|
996
997
|
whileTap: { scale: 0.9 }
|
|
997
998
|
};
|
|
998
|
-
var EmptyStateContent =
|
|
999
|
+
var EmptyStateContent = React49.memo(
|
|
999
1000
|
({
|
|
1000
1001
|
message = "Nenhum item encontrado",
|
|
1001
1002
|
description,
|
|
@@ -1007,7 +1008,7 @@ var EmptyStateContent = React48.memo(
|
|
|
1007
1008
|
layout = "vertical",
|
|
1008
1009
|
className
|
|
1009
1010
|
}) => {
|
|
1010
|
-
const handleAction =
|
|
1011
|
+
const handleAction = React49.useCallback(() => {
|
|
1011
1012
|
if (onAction) {
|
|
1012
1013
|
onAction();
|
|
1013
1014
|
}
|
|
@@ -1037,7 +1038,7 @@ var EmptyStateContent = React48.memo(
|
|
|
1037
1038
|
}
|
|
1038
1039
|
);
|
|
1039
1040
|
EmptyStateContent.displayName = "EmptyStateContent";
|
|
1040
|
-
var AnimatedEmptyState =
|
|
1041
|
+
var AnimatedEmptyState = React49.memo((props) => {
|
|
1041
1042
|
const {
|
|
1042
1043
|
message = "Nenhum item encontrado",
|
|
1043
1044
|
description,
|
|
@@ -1049,7 +1050,7 @@ var AnimatedEmptyState = React48.memo((props) => {
|
|
|
1049
1050
|
layout = "vertical",
|
|
1050
1051
|
className
|
|
1051
1052
|
} = props;
|
|
1052
|
-
const handleAction =
|
|
1053
|
+
const handleAction = React49.useCallback(() => {
|
|
1053
1054
|
if (onAction) {
|
|
1054
1055
|
onAction();
|
|
1055
1056
|
}
|
|
@@ -1092,7 +1093,7 @@ var AnimatedEmptyState = React48.memo((props) => {
|
|
|
1092
1093
|
);
|
|
1093
1094
|
});
|
|
1094
1095
|
AnimatedEmptyState.displayName = "AnimatedEmptyState";
|
|
1095
|
-
var EmptyState =
|
|
1096
|
+
var EmptyState = React49.memo(
|
|
1096
1097
|
({ animated = true, ...props }) => {
|
|
1097
1098
|
if (!animated) {
|
|
1098
1099
|
return /* @__PURE__ */ jsx(EmptyStateContent, { ...props });
|
|
@@ -1106,13 +1107,13 @@ function useDataTableInternal({
|
|
|
1106
1107
|
columns,
|
|
1107
1108
|
getRowId
|
|
1108
1109
|
}) {
|
|
1109
|
-
const [rowSelection, setRowSelection] =
|
|
1110
|
-
const [columnVisibility, setColumnVisibility] =
|
|
1111
|
-
const [columnFilters, setColumnFilters] =
|
|
1112
|
-
const [sorting, setSorting] =
|
|
1113
|
-
const [globalFilter, setGlobalFilter] =
|
|
1114
|
-
const [density, setDensity] =
|
|
1115
|
-
const [pagination, setPagination] =
|
|
1110
|
+
const [rowSelection, setRowSelection] = React49.useState({});
|
|
1111
|
+
const [columnVisibility, setColumnVisibility] = React49.useState({});
|
|
1112
|
+
const [columnFilters, setColumnFilters] = React49.useState([]);
|
|
1113
|
+
const [sorting, setSorting] = React49.useState([]);
|
|
1114
|
+
const [globalFilter, setGlobalFilter] = React49.useState("");
|
|
1115
|
+
const [density, setDensity] = React49.useState("default");
|
|
1116
|
+
const [pagination, setPagination] = React49.useState({
|
|
1116
1117
|
pageIndex: 0,
|
|
1117
1118
|
pageSize: 10
|
|
1118
1119
|
});
|
|
@@ -1146,7 +1147,7 @@ function useDataTableInternal({
|
|
|
1146
1147
|
getPaginationRowModel: getPaginationRowModel(),
|
|
1147
1148
|
getSortedRowModel: getSortedRowModel()
|
|
1148
1149
|
});
|
|
1149
|
-
const meta =
|
|
1150
|
+
const meta = React49.useMemo(
|
|
1150
1151
|
() => ({
|
|
1151
1152
|
isLoading: false,
|
|
1152
1153
|
// Loading é controlado externamente via DataTable.Loading
|
|
@@ -1164,11 +1165,11 @@ function useDataTableInternal({
|
|
|
1164
1165
|
setDensity
|
|
1165
1166
|
};
|
|
1166
1167
|
}
|
|
1167
|
-
var DataTableInstanceContext =
|
|
1168
|
+
var DataTableInstanceContext = React49.createContext(null);
|
|
1168
1169
|
DataTableInstanceContext.displayName = "DataTableInstanceContext";
|
|
1169
|
-
var DataTableMetaContext =
|
|
1170
|
+
var DataTableMetaContext = React49.createContext(null);
|
|
1170
1171
|
DataTableMetaContext.displayName = "DataTableMetaContext";
|
|
1171
|
-
var DataTableDensityContext =
|
|
1172
|
+
var DataTableDensityContext = React49.createContext(null);
|
|
1172
1173
|
DataTableDensityContext.displayName = "DataTableDensityContext";
|
|
1173
1174
|
function DataTableProvider({
|
|
1174
1175
|
children,
|
|
@@ -1177,11 +1178,11 @@ function DataTableProvider({
|
|
|
1177
1178
|
density,
|
|
1178
1179
|
setDensity
|
|
1179
1180
|
}) {
|
|
1180
|
-
const metaValue =
|
|
1181
|
+
const metaValue = React49.useMemo(
|
|
1181
1182
|
() => meta,
|
|
1182
1183
|
[meta.isLoading, meta.isEmpty, meta.selectedRowCount, meta.totalRows, meta.density]
|
|
1183
1184
|
);
|
|
1184
|
-
const densityValue =
|
|
1185
|
+
const densityValue = React49.useMemo(
|
|
1185
1186
|
() => ({ density, setDensity }),
|
|
1186
1187
|
[density, setDensity]
|
|
1187
1188
|
);
|
|
@@ -1189,7 +1190,7 @@ function DataTableProvider({
|
|
|
1189
1190
|
return /* @__PURE__ */ jsx(DataTableInstanceContext.Provider, { value: tableValue, children: /* @__PURE__ */ jsx(DataTableMetaContext.Provider, { value: metaValue, children: /* @__PURE__ */ jsx(DataTableDensityContext.Provider, { value: densityValue, children }) }) });
|
|
1190
1191
|
}
|
|
1191
1192
|
function useDataTable() {
|
|
1192
|
-
const context =
|
|
1193
|
+
const context = React49.useContext(DataTableInstanceContext);
|
|
1193
1194
|
if (!context) {
|
|
1194
1195
|
throw new Error(
|
|
1195
1196
|
"useDataTable must be used within <DataTable>. Make sure your component is wrapped with DataTable."
|
|
@@ -1198,7 +1199,7 @@ function useDataTable() {
|
|
|
1198
1199
|
return context;
|
|
1199
1200
|
}
|
|
1200
1201
|
function useDataTableMeta() {
|
|
1201
|
-
const context =
|
|
1202
|
+
const context = React49.useContext(DataTableMetaContext);
|
|
1202
1203
|
if (!context) {
|
|
1203
1204
|
throw new Error(
|
|
1204
1205
|
"useDataTableMeta must be used within <DataTable>. Make sure your component is wrapped with DataTable."
|
|
@@ -1216,12 +1217,12 @@ function useDataTableEmpty() {
|
|
|
1216
1217
|
}
|
|
1217
1218
|
function useDataTableSelection() {
|
|
1218
1219
|
const table = useDataTable();
|
|
1219
|
-
return
|
|
1220
|
+
return React49.useMemo(() => {
|
|
1220
1221
|
return table.getSelectedRowModel().rows.map((row) => row.original);
|
|
1221
1222
|
}, [table.getSelectedRowModel().rows]);
|
|
1222
1223
|
}
|
|
1223
1224
|
function useDataTableDensity() {
|
|
1224
|
-
const context =
|
|
1225
|
+
const context = React49.useContext(DataTableDensityContext);
|
|
1225
1226
|
if (!context) {
|
|
1226
1227
|
throw new Error(
|
|
1227
1228
|
"useDataTableDensity must be used within <DataTable>. Make sure your component is wrapped with DataTable."
|
|
@@ -1232,7 +1233,7 @@ function useDataTableDensity() {
|
|
|
1232
1233
|
function useDataTablePagination() {
|
|
1233
1234
|
const table = useDataTable();
|
|
1234
1235
|
const { pageIndex, pageSize } = table.getState().pagination;
|
|
1235
|
-
return
|
|
1236
|
+
return React49.useMemo(() => {
|
|
1236
1237
|
const pageCount = table.getPageCount();
|
|
1237
1238
|
return {
|
|
1238
1239
|
pageIndex,
|
|
@@ -1252,7 +1253,7 @@ function useDataTablePagination() {
|
|
|
1252
1253
|
function useDataTableSorting() {
|
|
1253
1254
|
const table = useDataTable();
|
|
1254
1255
|
const sorting = table.getState().sorting;
|
|
1255
|
-
return
|
|
1256
|
+
return React49.useMemo(() => ({
|
|
1256
1257
|
sorting,
|
|
1257
1258
|
setSorting: table.setSorting,
|
|
1258
1259
|
clearSorting: () => table.resetSorting(),
|
|
@@ -1265,7 +1266,7 @@ function useDataTableSorting() {
|
|
|
1265
1266
|
function useDataTableColumnVisibility() {
|
|
1266
1267
|
const table = useDataTable();
|
|
1267
1268
|
const columnVisibility = table.getState().columnVisibility;
|
|
1268
|
-
return
|
|
1269
|
+
return React49.useMemo(() => ({
|
|
1269
1270
|
columnVisibility,
|
|
1270
1271
|
setColumnVisibility: table.setColumnVisibility,
|
|
1271
1272
|
toggleColumn: (columnId) => {
|
|
@@ -1327,7 +1328,7 @@ var DENSITY_CONFIG = {
|
|
|
1327
1328
|
padding: "py-3 px-4"
|
|
1328
1329
|
}
|
|
1329
1330
|
};
|
|
1330
|
-
var Table =
|
|
1331
|
+
var Table = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx(
|
|
1331
1332
|
"table",
|
|
1332
1333
|
{
|
|
1333
1334
|
ref,
|
|
@@ -1336,9 +1337,9 @@ var Table = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1336
1337
|
}
|
|
1337
1338
|
) }));
|
|
1338
1339
|
Table.displayName = "Table";
|
|
1339
|
-
var TableHeader =
|
|
1340
|
+
var TableHeader = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
1340
1341
|
TableHeader.displayName = "TableHeader";
|
|
1341
|
-
var TableBody =
|
|
1342
|
+
var TableBody = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1342
1343
|
"tbody",
|
|
1343
1344
|
{
|
|
1344
1345
|
ref,
|
|
@@ -1347,7 +1348,7 @@ var TableBody = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1347
1348
|
}
|
|
1348
1349
|
));
|
|
1349
1350
|
TableBody.displayName = "TableBody";
|
|
1350
|
-
var TableFooter =
|
|
1351
|
+
var TableFooter = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1351
1352
|
"tfoot",
|
|
1352
1353
|
{
|
|
1353
1354
|
ref,
|
|
@@ -1359,8 +1360,8 @@ var TableFooter = React48.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1359
1360
|
}
|
|
1360
1361
|
));
|
|
1361
1362
|
TableFooter.displayName = "TableFooter";
|
|
1362
|
-
var TableRow =
|
|
1363
|
-
|
|
1363
|
+
var TableRow = React49.memo(
|
|
1364
|
+
React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1364
1365
|
"tr",
|
|
1365
1366
|
{
|
|
1366
1367
|
ref,
|
|
@@ -1373,7 +1374,7 @@ var TableRow = React48.memo(
|
|
|
1373
1374
|
))
|
|
1374
1375
|
);
|
|
1375
1376
|
TableRow.displayName = "TableRow";
|
|
1376
|
-
var TableHead =
|
|
1377
|
+
var TableHead = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1377
1378
|
"th",
|
|
1378
1379
|
{
|
|
1379
1380
|
ref,
|
|
@@ -1385,8 +1386,8 @@ var TableHead = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1385
1386
|
}
|
|
1386
1387
|
));
|
|
1387
1388
|
TableHead.displayName = "TableHead";
|
|
1388
|
-
var TableCell =
|
|
1389
|
-
|
|
1389
|
+
var TableCell = React49.memo(
|
|
1390
|
+
React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1390
1391
|
"td",
|
|
1391
1392
|
{
|
|
1392
1393
|
ref,
|
|
@@ -1396,7 +1397,7 @@ var TableCell = React48.memo(
|
|
|
1396
1397
|
))
|
|
1397
1398
|
);
|
|
1398
1399
|
TableCell.displayName = "TableCell";
|
|
1399
|
-
var TableCaption =
|
|
1400
|
+
var TableCaption = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1400
1401
|
"caption",
|
|
1401
1402
|
{
|
|
1402
1403
|
ref,
|
|
@@ -1405,7 +1406,7 @@ var TableCaption = React48.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1405
1406
|
}
|
|
1406
1407
|
));
|
|
1407
1408
|
TableCaption.displayName = "TableCaption";
|
|
1408
|
-
var DataTableContent =
|
|
1409
|
+
var DataTableContent = React49.memo(function DataTableContent2({
|
|
1409
1410
|
stickyHeader = false,
|
|
1410
1411
|
stripedRows = false,
|
|
1411
1412
|
highlightOnHover = true,
|
|
@@ -1451,15 +1452,15 @@ var DataTableContent = React48.memo(function DataTableContent2({
|
|
|
1451
1452
|
] }) });
|
|
1452
1453
|
});
|
|
1453
1454
|
DataTableContent.displayName = "DataTable.Content";
|
|
1454
|
-
var DataTableToolbar =
|
|
1455
|
+
var DataTableToolbar = React49.memo(function DataTableToolbar2({
|
|
1455
1456
|
className,
|
|
1456
1457
|
children
|
|
1457
1458
|
}) {
|
|
1458
1459
|
return /* @__PURE__ */ jsx("div", { className: cn("flex items-center justify-between gap-2", className), children });
|
|
1459
1460
|
});
|
|
1460
1461
|
function useDebounce(value, delay = 300) {
|
|
1461
|
-
const [debouncedValue, setDebouncedValue] =
|
|
1462
|
-
|
|
1462
|
+
const [debouncedValue, setDebouncedValue] = React49.useState(value);
|
|
1463
|
+
React49.useEffect(() => {
|
|
1463
1464
|
const handler = setTimeout(() => {
|
|
1464
1465
|
setDebouncedValue(value);
|
|
1465
1466
|
}, delay);
|
|
@@ -1470,12 +1471,12 @@ function useDebounce(value, delay = 300) {
|
|
|
1470
1471
|
return debouncedValue;
|
|
1471
1472
|
}
|
|
1472
1473
|
function useDebouncedCallback(callback, delay = 300) {
|
|
1473
|
-
const callbackRef =
|
|
1474
|
-
const timeoutRef =
|
|
1475
|
-
|
|
1474
|
+
const callbackRef = React49.useRef(callback);
|
|
1475
|
+
const timeoutRef = React49.useRef(null);
|
|
1476
|
+
React49.useEffect(() => {
|
|
1476
1477
|
callbackRef.current = callback;
|
|
1477
1478
|
}, [callback]);
|
|
1478
|
-
return
|
|
1479
|
+
return React49.useCallback(
|
|
1479
1480
|
(...args) => {
|
|
1480
1481
|
if (timeoutRef.current) {
|
|
1481
1482
|
clearTimeout(timeoutRef.current);
|
|
@@ -1487,7 +1488,7 @@ function useDebouncedCallback(callback, delay = 300) {
|
|
|
1487
1488
|
[delay]
|
|
1488
1489
|
);
|
|
1489
1490
|
}
|
|
1490
|
-
var DataTableSearch =
|
|
1491
|
+
var DataTableSearch = React49.memo(function DataTableSearch2({
|
|
1491
1492
|
column,
|
|
1492
1493
|
placeholder = "Buscar...",
|
|
1493
1494
|
debounce = 300,
|
|
@@ -1496,17 +1497,17 @@ var DataTableSearch = React48.memo(function DataTableSearch2({
|
|
|
1496
1497
|
}) {
|
|
1497
1498
|
const table = useDataTableInstance();
|
|
1498
1499
|
const columnInstance = table.getColumn(column);
|
|
1499
|
-
const [value, setValue] =
|
|
1500
|
+
const [value, setValue] = React49.useState(
|
|
1500
1501
|
columnInstance?.getFilterValue() ?? ""
|
|
1501
1502
|
);
|
|
1502
1503
|
const debouncedValue = useDebounce(value, debounce);
|
|
1503
|
-
|
|
1504
|
+
React49.useEffect(() => {
|
|
1504
1505
|
columnInstance?.setFilterValue(debouncedValue);
|
|
1505
1506
|
if (onSearch) {
|
|
1506
1507
|
onSearch(debouncedValue);
|
|
1507
1508
|
}
|
|
1508
1509
|
}, [debouncedValue, columnInstance, onSearch]);
|
|
1509
|
-
|
|
1510
|
+
React49.useEffect(() => {
|
|
1510
1511
|
const filterValue = columnInstance?.getFilterValue() ?? "";
|
|
1511
1512
|
if (filterValue !== value) {
|
|
1512
1513
|
setValue(filterValue);
|
|
@@ -1522,15 +1523,15 @@ var DataTableSearch = React48.memo(function DataTableSearch2({
|
|
|
1522
1523
|
}
|
|
1523
1524
|
);
|
|
1524
1525
|
});
|
|
1525
|
-
var DataTableFilters =
|
|
1526
|
+
var DataTableFilters = React49.memo(function DataTableFilters2({
|
|
1526
1527
|
onChange,
|
|
1527
1528
|
className,
|
|
1528
1529
|
children
|
|
1529
1530
|
}) {
|
|
1530
1531
|
const table = useDataTableInstance();
|
|
1531
1532
|
const filters = table.getState().columnFilters;
|
|
1532
|
-
const filtersRef =
|
|
1533
|
-
|
|
1533
|
+
const filtersRef = React49.useRef(filters);
|
|
1534
|
+
React49.useEffect(() => {
|
|
1534
1535
|
if (onChange && JSON.stringify(filters) !== JSON.stringify(filtersRef.current)) {
|
|
1535
1536
|
filtersRef.current = filters;
|
|
1536
1537
|
onChange(filters);
|
|
@@ -1538,7 +1539,7 @@ var DataTableFilters = React48.memo(function DataTableFilters2({
|
|
|
1538
1539
|
}, [filters, onChange]);
|
|
1539
1540
|
return /* @__PURE__ */ jsx("div", { className: cn("flex gap-2", className), children });
|
|
1540
1541
|
});
|
|
1541
|
-
var DataTableFilter =
|
|
1542
|
+
var DataTableFilter = React49.memo(function DataTableFilter2({
|
|
1542
1543
|
column: columnId,
|
|
1543
1544
|
title,
|
|
1544
1545
|
options,
|
|
@@ -1548,7 +1549,7 @@ var DataTableFilter = React48.memo(function DataTableFilter2({
|
|
|
1548
1549
|
const column = table.getColumn(columnId);
|
|
1549
1550
|
const filterValue = column?.getFilterValue() ?? [];
|
|
1550
1551
|
const currentValue = filterValue.length > 0 ? filterValue[0] : "all";
|
|
1551
|
-
const handleValueChange =
|
|
1552
|
+
const handleValueChange = React49.useCallback(
|
|
1552
1553
|
(value) => {
|
|
1553
1554
|
if (value === "all") {
|
|
1554
1555
|
column?.setFilterValue(void 0);
|
|
@@ -1573,7 +1574,7 @@ var DataTableFilter = React48.memo(function DataTableFilter2({
|
|
|
1573
1574
|
}
|
|
1574
1575
|
);
|
|
1575
1576
|
});
|
|
1576
|
-
var DataTablePagination =
|
|
1577
|
+
var DataTablePagination = React49.memo(function DataTablePagination2({
|
|
1577
1578
|
mode = "client",
|
|
1578
1579
|
pageCount: externalPageCount,
|
|
1579
1580
|
pageSizes = [10, 20, 30, 50],
|
|
@@ -1600,7 +1601,7 @@ var DataTablePagination = React48.memo(function DataTablePagination2({
|
|
|
1600
1601
|
const pageCount = mode === "server" && externalPageCount !== void 0 ? externalPageCount : internalPageCount;
|
|
1601
1602
|
const canGoPrevious = pageIndex > 0;
|
|
1602
1603
|
const canGoNext = pageIndex < pageCount - 1;
|
|
1603
|
-
const handlePageSizeChange =
|
|
1604
|
+
const handlePageSizeChange = React49.useCallback(
|
|
1604
1605
|
(value) => {
|
|
1605
1606
|
setPageSize(Number(value));
|
|
1606
1607
|
},
|
|
@@ -1699,7 +1700,7 @@ var DataTablePagination = React48.memo(function DataTablePagination2({
|
|
|
1699
1700
|
);
|
|
1700
1701
|
});
|
|
1701
1702
|
DataTablePagination.displayName = "DataTable.Pagination";
|
|
1702
|
-
var DataTableEmptyState =
|
|
1703
|
+
var DataTableEmptyState = React49.memo(function DataTableEmptyState2({
|
|
1703
1704
|
message = "Nenhum resultado encontrado.",
|
|
1704
1705
|
description,
|
|
1705
1706
|
icon,
|
|
@@ -1823,8 +1824,8 @@ var iconSizeMap = {
|
|
|
1823
1824
|
md: "h-4 w-4",
|
|
1824
1825
|
lg: "h-5 w-5"
|
|
1825
1826
|
};
|
|
1826
|
-
var Checkbox =
|
|
1827
|
-
|
|
1827
|
+
var Checkbox = React49.memo(
|
|
1828
|
+
React49.forwardRef(({ className, variant, size = "md", ...props }, ref) => {
|
|
1828
1829
|
const iconSize = iconSizeMap[size || "md"];
|
|
1829
1830
|
return /* @__PURE__ */ jsx(
|
|
1830
1831
|
CheckboxPrimitive.Root,
|
|
@@ -1848,9 +1849,9 @@ function DataTableColumnVisibility({
|
|
|
1848
1849
|
className
|
|
1849
1850
|
}) {
|
|
1850
1851
|
const table = useDataTable();
|
|
1851
|
-
const [open, setOpen] =
|
|
1852
|
-
const dropdownRef =
|
|
1853
|
-
|
|
1852
|
+
const [open, setOpen] = React49.useState(false);
|
|
1853
|
+
const dropdownRef = React49.useRef(null);
|
|
1854
|
+
React49.useEffect(() => {
|
|
1854
1855
|
function handleClickOutside(event) {
|
|
1855
1856
|
if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
|
|
1856
1857
|
setOpen(false);
|
|
@@ -1929,9 +1930,9 @@ function DataTableDensityToggle({
|
|
|
1929
1930
|
className
|
|
1930
1931
|
}) {
|
|
1931
1932
|
const { density, setDensity } = useDataTableDensity();
|
|
1932
|
-
const [open, setOpen] =
|
|
1933
|
-
const dropdownRef =
|
|
1934
|
-
|
|
1933
|
+
const [open, setOpen] = React49.useState(false);
|
|
1934
|
+
const dropdownRef = React49.useRef(null);
|
|
1935
|
+
React49.useEffect(() => {
|
|
1935
1936
|
function handleClickOutside(event) {
|
|
1936
1937
|
if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
|
|
1937
1938
|
setOpen(false);
|
|
@@ -2110,9 +2111,9 @@ function DataTableExport({
|
|
|
2110
2111
|
className
|
|
2111
2112
|
}) {
|
|
2112
2113
|
const table = useDataTable();
|
|
2113
|
-
const [open, setOpen] =
|
|
2114
|
-
const dropdownRef =
|
|
2115
|
-
|
|
2114
|
+
const [open, setOpen] = React49.useState(false);
|
|
2115
|
+
const dropdownRef = React49.useRef(null);
|
|
2116
|
+
React49.useEffect(() => {
|
|
2116
2117
|
function handleClickOutside(event) {
|
|
2117
2118
|
if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
|
|
2118
2119
|
setOpen(false);
|
|
@@ -2123,7 +2124,7 @@ function DataTableExport({
|
|
|
2123
2124
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
2124
2125
|
}
|
|
2125
2126
|
}, [open]);
|
|
2126
|
-
const handleExport =
|
|
2127
|
+
const handleExport = React49.useCallback((format) => {
|
|
2127
2128
|
const visibleColumns = table.getVisibleLeafColumns();
|
|
2128
2129
|
const rows = table.getFilteredRowModel().rows;
|
|
2129
2130
|
const headers = [];
|
|
@@ -2226,7 +2227,7 @@ function DataTableTabs({
|
|
|
2226
2227
|
onValueChange,
|
|
2227
2228
|
className
|
|
2228
2229
|
}) {
|
|
2229
|
-
const [internalValue, setInternalValue] =
|
|
2230
|
+
const [internalValue, setInternalValue] = React49.useState(defaultValue ?? tabs[0]?.value);
|
|
2230
2231
|
const activeValue = value ?? internalValue;
|
|
2231
2232
|
const handleTabClick = (tabValue) => {
|
|
2232
2233
|
if (value === void 0) {
|
|
@@ -2313,8 +2314,8 @@ var Dialog = DialogPrimitive.Root;
|
|
|
2313
2314
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
2314
2315
|
var DialogPortal = DialogPrimitive.Portal;
|
|
2315
2316
|
var DialogClose = DialogPrimitive.Close;
|
|
2316
|
-
var DialogOverlay =
|
|
2317
|
-
|
|
2317
|
+
var DialogOverlay = React49.memo(
|
|
2318
|
+
React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2318
2319
|
DialogPrimitive.Overlay,
|
|
2319
2320
|
{
|
|
2320
2321
|
ref,
|
|
@@ -2361,8 +2362,8 @@ var dialogContentVariants = cva(
|
|
|
2361
2362
|
}
|
|
2362
2363
|
}
|
|
2363
2364
|
);
|
|
2364
|
-
var DialogContent =
|
|
2365
|
-
|
|
2365
|
+
var DialogContent = React49.memo(
|
|
2366
|
+
React49.forwardRef(({ className, children, showCloseButton = true, size, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
2366
2367
|
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
2367
2368
|
/* @__PURE__ */ jsxs(
|
|
2368
2369
|
DialogPrimitive.Content,
|
|
@@ -2382,7 +2383,7 @@ var DialogContent = React48.memo(
|
|
|
2382
2383
|
] }))
|
|
2383
2384
|
);
|
|
2384
2385
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
2385
|
-
var DialogHeader =
|
|
2386
|
+
var DialogHeader = React49.memo(
|
|
2386
2387
|
({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
2387
2388
|
"div",
|
|
2388
2389
|
{
|
|
@@ -2395,7 +2396,7 @@ var DialogHeader = React48.memo(
|
|
|
2395
2396
|
)
|
|
2396
2397
|
);
|
|
2397
2398
|
DialogHeader.displayName = "DialogHeader";
|
|
2398
|
-
var DialogFooter =
|
|
2399
|
+
var DialogFooter = React49.memo(
|
|
2399
2400
|
({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
2400
2401
|
"div",
|
|
2401
2402
|
{
|
|
@@ -2408,8 +2409,8 @@ var DialogFooter = React48.memo(
|
|
|
2408
2409
|
)
|
|
2409
2410
|
);
|
|
2410
2411
|
DialogFooter.displayName = "DialogFooter";
|
|
2411
|
-
var DialogTitle =
|
|
2412
|
-
|
|
2412
|
+
var DialogTitle = React49.memo(
|
|
2413
|
+
React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2413
2414
|
DialogPrimitive.Title,
|
|
2414
2415
|
{
|
|
2415
2416
|
ref,
|
|
@@ -2422,8 +2423,8 @@ var DialogTitle = React48.memo(
|
|
|
2422
2423
|
))
|
|
2423
2424
|
);
|
|
2424
2425
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
2425
|
-
var DialogDescription =
|
|
2426
|
-
|
|
2426
|
+
var DialogDescription = React49.memo(
|
|
2427
|
+
React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2427
2428
|
DialogPrimitive.Description,
|
|
2428
2429
|
{
|
|
2429
2430
|
ref,
|
|
@@ -2433,7 +2434,7 @@ var DialogDescription = React48.memo(
|
|
|
2433
2434
|
))
|
|
2434
2435
|
);
|
|
2435
2436
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
2436
|
-
var DialogBody =
|
|
2437
|
+
var DialogBody = React49.memo(
|
|
2437
2438
|
({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex-1 overflow-y-auto py-2", className), ...props })
|
|
2438
2439
|
);
|
|
2439
2440
|
DialogBody.displayName = "DialogBody";
|
|
@@ -2464,7 +2465,7 @@ var COLOR_MAP = {
|
|
|
2464
2465
|
accent: "border-accent",
|
|
2465
2466
|
muted: "border-muted"
|
|
2466
2467
|
};
|
|
2467
|
-
var RippleRing =
|
|
2468
|
+
var RippleRing = React49.memo(({ size, color, opacity }) => {
|
|
2468
2469
|
const borderColorClass = COLOR_MAP[color] || COLOR_MAP.primary;
|
|
2469
2470
|
return /* @__PURE__ */ jsx(
|
|
2470
2471
|
"div",
|
|
@@ -2483,7 +2484,7 @@ var RippleRing = React48.memo(({ size, color, opacity }) => {
|
|
|
2483
2484
|
);
|
|
2484
2485
|
});
|
|
2485
2486
|
RippleRing.displayName = "RippleRing";
|
|
2486
|
-
var RippleEffect =
|
|
2487
|
+
var RippleEffect = React49.memo(
|
|
2487
2488
|
({
|
|
2488
2489
|
size = "md",
|
|
2489
2490
|
color = "primary",
|
|
@@ -2495,7 +2496,7 @@ var RippleEffect = React48.memo(
|
|
|
2495
2496
|
const { base, increment } = SIZE_CONFIG[size];
|
|
2496
2497
|
const opacities = INTENSITY_CONFIG[intensity];
|
|
2497
2498
|
const positionClasses = POSITION_CONFIG[position];
|
|
2498
|
-
const rippleRings =
|
|
2499
|
+
const rippleRings = React49.useMemo(
|
|
2499
2500
|
() => Array.from({ length: rings }).map((_, index) => {
|
|
2500
2501
|
const ringSize = base + increment * (rings - index - 1);
|
|
2501
2502
|
const opacity = opacities[index] || opacities[opacities.length - 1];
|
|
@@ -2525,7 +2526,7 @@ var RippleEffect = React48.memo(
|
|
|
2525
2526
|
}
|
|
2526
2527
|
);
|
|
2527
2528
|
RippleEffect.displayName = "RippleEffect";
|
|
2528
|
-
var RippleWrapper =
|
|
2529
|
+
var RippleWrapper = React49.memo(
|
|
2529
2530
|
({ children, rippleProps, className }) => {
|
|
2530
2531
|
return /* @__PURE__ */ jsxs("div", { className: cn("relative", className), children: [
|
|
2531
2532
|
rippleProps && /* @__PURE__ */ jsx(RippleEffect, { ...rippleProps }),
|
|
@@ -2534,7 +2535,7 @@ var RippleWrapper = React48.memo(
|
|
|
2534
2535
|
}
|
|
2535
2536
|
);
|
|
2536
2537
|
RippleWrapper.displayName = "RippleWrapper";
|
|
2537
|
-
var RippleBackground =
|
|
2538
|
+
var RippleBackground = React49.memo(
|
|
2538
2539
|
({ containerClassName, ...rippleProps }) => {
|
|
2539
2540
|
return /* @__PURE__ */ jsx(
|
|
2540
2541
|
"div",
|
|
@@ -2600,7 +2601,7 @@ var statusIndicatorVariants = cva(
|
|
|
2600
2601
|
}
|
|
2601
2602
|
}
|
|
2602
2603
|
);
|
|
2603
|
-
var DialogWrapper =
|
|
2604
|
+
var DialogWrapper = React49.memo(
|
|
2604
2605
|
({
|
|
2605
2606
|
children,
|
|
2606
2607
|
className,
|
|
@@ -2613,7 +2614,7 @@ var DialogWrapper = React48.memo(
|
|
|
2613
2614
|
rippleProps,
|
|
2614
2615
|
...props
|
|
2615
2616
|
}) => {
|
|
2616
|
-
const defaultRippleProps =
|
|
2617
|
+
const defaultRippleProps = React49.useMemo(
|
|
2617
2618
|
() => ({
|
|
2618
2619
|
size: size === "sm" ? "md" : size === "lg" ? "xl" : "lg",
|
|
2619
2620
|
color: variant === "secondary" ? "secondary" : variant === "accent" ? "accent" : "primary",
|
|
@@ -2623,7 +2624,7 @@ var DialogWrapper = React48.memo(
|
|
|
2623
2624
|
}),
|
|
2624
2625
|
[size, variant, rippleProps]
|
|
2625
2626
|
);
|
|
2626
|
-
const backgroundRippleProps =
|
|
2627
|
+
const backgroundRippleProps = React49.useMemo(
|
|
2627
2628
|
() => ({
|
|
2628
2629
|
position: "top-right",
|
|
2629
2630
|
size: "xl",
|
|
@@ -2726,7 +2727,7 @@ var Toaster = ({ ...props }) => {
|
|
|
2726
2727
|
}
|
|
2727
2728
|
);
|
|
2728
2729
|
};
|
|
2729
|
-
var CustomToast =
|
|
2730
|
+
var CustomToast = React49.memo(
|
|
2730
2731
|
({ title, description, variant = "default", action, onClose }) => {
|
|
2731
2732
|
const variantStyles = toastVariants[variant];
|
|
2732
2733
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2862,8 +2863,8 @@ var thumbVariants = cva(
|
|
|
2862
2863
|
}
|
|
2863
2864
|
}
|
|
2864
2865
|
);
|
|
2865
|
-
var Switch =
|
|
2866
|
-
|
|
2866
|
+
var Switch = React49.memo(
|
|
2867
|
+
React49.forwardRef(({ className, variant, size = "md", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2867
2868
|
SwitchPrimitives.Root,
|
|
2868
2869
|
{
|
|
2869
2870
|
className: cn(switchVariants({ variant, size, className })),
|
|
@@ -2894,8 +2895,8 @@ var textareaVariants = cva(
|
|
|
2894
2895
|
}
|
|
2895
2896
|
}
|
|
2896
2897
|
);
|
|
2897
|
-
var Textarea =
|
|
2898
|
-
|
|
2898
|
+
var Textarea = React49.memo(
|
|
2899
|
+
React49.forwardRef(
|
|
2899
2900
|
({
|
|
2900
2901
|
className,
|
|
2901
2902
|
variant,
|
|
@@ -2910,12 +2911,12 @@ var Textarea = React48.memo(
|
|
|
2910
2911
|
onChange,
|
|
2911
2912
|
...props
|
|
2912
2913
|
}, ref) => {
|
|
2913
|
-
const textareaRef =
|
|
2914
|
-
|
|
2915
|
-
const focusTextarea =
|
|
2914
|
+
const textareaRef = React49.useRef(null);
|
|
2915
|
+
React49.useImperativeHandle(ref, () => textareaRef.current, []);
|
|
2916
|
+
const focusTextarea = React49.useCallback(() => {
|
|
2916
2917
|
textareaRef.current?.focus();
|
|
2917
2918
|
}, []);
|
|
2918
|
-
const handleChange =
|
|
2919
|
+
const handleChange = React49.useCallback(
|
|
2919
2920
|
(e) => {
|
|
2920
2921
|
if (autoResize && textareaRef.current) {
|
|
2921
2922
|
textareaRef.current.style.height = "auto";
|
|
@@ -2925,7 +2926,7 @@ var Textarea = React48.memo(
|
|
|
2925
2926
|
},
|
|
2926
2927
|
[autoResize, onChange]
|
|
2927
2928
|
);
|
|
2928
|
-
|
|
2929
|
+
React49.useEffect(() => {
|
|
2929
2930
|
if (autoResize && textareaRef.current) {
|
|
2930
2931
|
textareaRef.current.style.height = "auto";
|
|
2931
2932
|
textareaRef.current.style.height = `${textareaRef.current.scrollHeight}px`;
|
|
@@ -2976,23 +2977,23 @@ var Textarea = React48.memo(
|
|
|
2976
2977
|
)
|
|
2977
2978
|
);
|
|
2978
2979
|
Textarea.displayName = "Textarea";
|
|
2979
|
-
var FormFieldContext =
|
|
2980
|
+
var FormFieldContext = React49.createContext(null);
|
|
2980
2981
|
function useFormFieldContext() {
|
|
2981
|
-
const context =
|
|
2982
|
+
const context = React49.useContext(FormFieldContext);
|
|
2982
2983
|
if (!context) {
|
|
2983
2984
|
throw new Error("useFormFieldContext must be used within a Form.Field");
|
|
2984
2985
|
}
|
|
2985
2986
|
return context;
|
|
2986
2987
|
}
|
|
2987
2988
|
function useFormFieldContextOptional() {
|
|
2988
|
-
return
|
|
2989
|
+
return React49.useContext(FormFieldContext);
|
|
2989
2990
|
}
|
|
2990
2991
|
function FormFieldProvider({ name, children }) {
|
|
2991
2992
|
const form = useFormContext();
|
|
2992
|
-
const id =
|
|
2993
|
+
const id = React49.useId();
|
|
2993
2994
|
const fieldState = form.getFieldState(name, form.formState);
|
|
2994
2995
|
const error = fieldState.error?.message;
|
|
2995
|
-
const value =
|
|
2996
|
+
const value = React49.useMemo(
|
|
2996
2997
|
() => ({
|
|
2997
2998
|
name,
|
|
2998
2999
|
id,
|
|
@@ -3100,7 +3101,7 @@ function FormInput({
|
|
|
3100
3101
|
const form = useFormContext();
|
|
3101
3102
|
const fieldState = form.getFieldState(name, form.formState);
|
|
3102
3103
|
const error = fieldState.error?.message;
|
|
3103
|
-
const getInputType =
|
|
3104
|
+
const getInputType = React49.useCallback(() => {
|
|
3104
3105
|
if (["money", "percent", "phone", "cpf", "cnpj", "cep"].includes(mask || "")) {
|
|
3105
3106
|
return "tel";
|
|
3106
3107
|
}
|
|
@@ -3296,7 +3297,7 @@ function FormCheckbox({
|
|
|
3296
3297
|
const form = useFormContext();
|
|
3297
3298
|
const fieldState = form.getFieldState(name, form.formState);
|
|
3298
3299
|
const error = fieldState.error?.message;
|
|
3299
|
-
const id =
|
|
3300
|
+
const id = React49.useId();
|
|
3300
3301
|
return /* @__PURE__ */ jsx(FormFieldProvider, { name, children: /* @__PURE__ */ jsx(
|
|
3301
3302
|
Controller,
|
|
3302
3303
|
{
|
|
@@ -3351,7 +3352,7 @@ function FormSwitch({
|
|
|
3351
3352
|
const form = useFormContext();
|
|
3352
3353
|
const fieldState = form.getFieldState(name, form.formState);
|
|
3353
3354
|
const error = fieldState.error?.message;
|
|
3354
|
-
const id =
|
|
3355
|
+
const id = React49.useId();
|
|
3355
3356
|
return /* @__PURE__ */ jsx(FormFieldProvider, { name, children: /* @__PURE__ */ jsx(
|
|
3356
3357
|
Controller,
|
|
3357
3358
|
{
|
|
@@ -3518,7 +3519,7 @@ function FormRadioGroup({
|
|
|
3518
3519
|
) });
|
|
3519
3520
|
}
|
|
3520
3521
|
FormRadioGroup.displayName = "Form.RadioGroup";
|
|
3521
|
-
var FormLabel =
|
|
3522
|
+
var FormLabel = React49.forwardRef(
|
|
3522
3523
|
({ className, required, children, ...props }, ref) => {
|
|
3523
3524
|
const fieldContext = useFormFieldContextOptional();
|
|
3524
3525
|
return /* @__PURE__ */ jsxs(
|
|
@@ -3541,7 +3542,7 @@ var FormLabel = React48.forwardRef(
|
|
|
3541
3542
|
}
|
|
3542
3543
|
);
|
|
3543
3544
|
FormLabel.displayName = "Form.Label";
|
|
3544
|
-
var FormDescription =
|
|
3545
|
+
var FormDescription = React49.forwardRef(({ className, ...props }, ref) => {
|
|
3545
3546
|
const fieldContext = useFormFieldContextOptional();
|
|
3546
3547
|
if (fieldContext?.error) {
|
|
3547
3548
|
return null;
|
|
@@ -3556,7 +3557,7 @@ var FormDescription = React48.forwardRef(({ className, ...props }, ref) => {
|
|
|
3556
3557
|
);
|
|
3557
3558
|
});
|
|
3558
3559
|
FormDescription.displayName = "Form.Description";
|
|
3559
|
-
var FormError =
|
|
3560
|
+
var FormError = React49.forwardRef(
|
|
3560
3561
|
({ className, message, children, ...props }, ref) => {
|
|
3561
3562
|
const fieldContext = useFormFieldContextOptional();
|
|
3562
3563
|
const errorMessage = message ?? fieldContext?.error;
|
|
@@ -3575,7 +3576,7 @@ var FormError = React48.forwardRef(
|
|
|
3575
3576
|
}
|
|
3576
3577
|
);
|
|
3577
3578
|
FormError.displayName = "Form.Error";
|
|
3578
|
-
var FormFieldWrapper =
|
|
3579
|
+
var FormFieldWrapper = React49.forwardRef(({ className, label, description, required, error, children, ...props }, ref) => {
|
|
3579
3580
|
return /* @__PURE__ */ jsxs("div", { ref, className: cn("space-y-1", className), ...props, children: [
|
|
3580
3581
|
label && /* @__PURE__ */ jsx(FormLabel, { required, children: label }),
|
|
3581
3582
|
children,
|
|
@@ -3618,7 +3619,7 @@ var Form = Object.assign(FormRoot, {
|
|
|
3618
3619
|
FieldWrapper: FormFieldWrapper,
|
|
3619
3620
|
Field: FormFieldProvider
|
|
3620
3621
|
});
|
|
3621
|
-
var Avatar =
|
|
3622
|
+
var Avatar = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3622
3623
|
AvatarPrimitive.Root,
|
|
3623
3624
|
{
|
|
3624
3625
|
ref,
|
|
@@ -3630,7 +3631,7 @@ var Avatar = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
3630
3631
|
}
|
|
3631
3632
|
));
|
|
3632
3633
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
3633
|
-
var AvatarImage =
|
|
3634
|
+
var AvatarImage = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3634
3635
|
AvatarPrimitive.Image,
|
|
3635
3636
|
{
|
|
3636
3637
|
ref,
|
|
@@ -3639,7 +3640,7 @@ var AvatarImage = React48.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3639
3640
|
}
|
|
3640
3641
|
));
|
|
3641
3642
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
3642
|
-
var AvatarFallback =
|
|
3643
|
+
var AvatarFallback = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3643
3644
|
AvatarPrimitive.Fallback,
|
|
3644
3645
|
{
|
|
3645
3646
|
ref,
|
|
@@ -3657,7 +3658,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
3657
3658
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
3658
3659
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
3659
3660
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
3660
|
-
var DropdownMenuSubTrigger =
|
|
3661
|
+
var DropdownMenuSubTrigger = React49.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3661
3662
|
DropdownMenuPrimitive.SubTrigger,
|
|
3662
3663
|
{
|
|
3663
3664
|
ref,
|
|
@@ -3674,7 +3675,7 @@ var DropdownMenuSubTrigger = React48.forwardRef(({ className, inset, children, .
|
|
|
3674
3675
|
}
|
|
3675
3676
|
));
|
|
3676
3677
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
3677
|
-
var DropdownMenuSubContent =
|
|
3678
|
+
var DropdownMenuSubContent = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3678
3679
|
DropdownMenuPrimitive.SubContent,
|
|
3679
3680
|
{
|
|
3680
3681
|
ref,
|
|
@@ -3686,7 +3687,7 @@ var DropdownMenuSubContent = React48.forwardRef(({ className, ...props }, ref) =
|
|
|
3686
3687
|
}
|
|
3687
3688
|
));
|
|
3688
3689
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
3689
|
-
var DropdownMenuContent =
|
|
3690
|
+
var DropdownMenuContent = React49.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
3690
3691
|
DropdownMenuPrimitive.Content,
|
|
3691
3692
|
{
|
|
3692
3693
|
ref,
|
|
@@ -3699,7 +3700,7 @@ var DropdownMenuContent = React48.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
3699
3700
|
}
|
|
3700
3701
|
) }));
|
|
3701
3702
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
3702
|
-
var DropdownMenuItem =
|
|
3703
|
+
var DropdownMenuItem = React49.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3703
3704
|
DropdownMenuPrimitive.Item,
|
|
3704
3705
|
{
|
|
3705
3706
|
ref,
|
|
@@ -3712,7 +3713,7 @@ var DropdownMenuItem = React48.forwardRef(({ className, inset, ...props }, ref)
|
|
|
3712
3713
|
}
|
|
3713
3714
|
));
|
|
3714
3715
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
3715
|
-
var DropdownMenuCheckboxItem =
|
|
3716
|
+
var DropdownMenuCheckboxItem = React49.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3716
3717
|
DropdownMenuPrimitive.CheckboxItem,
|
|
3717
3718
|
{
|
|
3718
3719
|
ref,
|
|
@@ -3729,7 +3730,7 @@ var DropdownMenuCheckboxItem = React48.forwardRef(({ className, children, checke
|
|
|
3729
3730
|
}
|
|
3730
3731
|
));
|
|
3731
3732
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
3732
|
-
var DropdownMenuRadioItem =
|
|
3733
|
+
var DropdownMenuRadioItem = React49.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3733
3734
|
DropdownMenuPrimitive.RadioItem,
|
|
3734
3735
|
{
|
|
3735
3736
|
ref,
|
|
@@ -3745,7 +3746,7 @@ var DropdownMenuRadioItem = React48.forwardRef(({ className, children, ...props
|
|
|
3745
3746
|
}
|
|
3746
3747
|
));
|
|
3747
3748
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
3748
|
-
var DropdownMenuLabel =
|
|
3749
|
+
var DropdownMenuLabel = React49.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3749
3750
|
DropdownMenuPrimitive.Label,
|
|
3750
3751
|
{
|
|
3751
3752
|
ref,
|
|
@@ -3758,7 +3759,7 @@ var DropdownMenuLabel = React48.forwardRef(({ className, inset, ...props }, ref)
|
|
|
3758
3759
|
}
|
|
3759
3760
|
));
|
|
3760
3761
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
3761
|
-
var DropdownMenuSeparator =
|
|
3762
|
+
var DropdownMenuSeparator = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3762
3763
|
DropdownMenuPrimitive.Separator,
|
|
3763
3764
|
{
|
|
3764
3765
|
ref,
|
|
@@ -3782,7 +3783,7 @@ var DropdownMenuShortcut = ({
|
|
|
3782
3783
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
3783
3784
|
var Popover = PopoverPrimitive.Root;
|
|
3784
3785
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
3785
|
-
var PopoverContent =
|
|
3786
|
+
var PopoverContent = React49.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
3786
3787
|
PopoverPrimitive.Content,
|
|
3787
3788
|
{
|
|
3788
3789
|
ref,
|
|
@@ -3796,14 +3797,210 @@ var PopoverContent = React48.forwardRef(({ className, align = "center", sideOffs
|
|
|
3796
3797
|
}
|
|
3797
3798
|
) }));
|
|
3798
3799
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
3799
|
-
var
|
|
3800
|
+
var TooltipProvider = TooltipPrimitive.Provider;
|
|
3801
|
+
var TooltipRoot = TooltipPrimitive.Root;
|
|
3802
|
+
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
3803
|
+
var TooltipPortal = TooltipPrimitive.Portal;
|
|
3804
|
+
var TooltipArrow = React49.forwardRef(({ className, variant = "light", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3805
|
+
TooltipPrimitive.Arrow,
|
|
3806
|
+
{
|
|
3807
|
+
ref,
|
|
3808
|
+
className: cn(
|
|
3809
|
+
"z-50",
|
|
3810
|
+
variant === "dark" ? "fill-slate-900" : "fill-white",
|
|
3811
|
+
className
|
|
3812
|
+
),
|
|
3813
|
+
...props
|
|
3814
|
+
}
|
|
3815
|
+
));
|
|
3816
|
+
TooltipArrow.displayName = "TooltipArrow";
|
|
3817
|
+
var tooltipContentVariants = cva(
|
|
3818
|
+
"z-50 overflow-hidden rounded-lg shadow-lg outline-none animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
3819
|
+
{
|
|
3820
|
+
variants: {
|
|
3821
|
+
variant: {
|
|
3822
|
+
light: "bg-white text-slate-900 border border-slate-200",
|
|
3823
|
+
dark: "bg-slate-900 text-white border border-slate-800"
|
|
3824
|
+
},
|
|
3825
|
+
size: {
|
|
3826
|
+
sm: "max-w-[200px] p-2",
|
|
3827
|
+
md: "max-w-[280px] p-3",
|
|
3828
|
+
lg: "max-w-[360px] p-4"
|
|
3829
|
+
}
|
|
3830
|
+
},
|
|
3831
|
+
defaultVariants: {
|
|
3832
|
+
variant: "light",
|
|
3833
|
+
size: "md"
|
|
3834
|
+
}
|
|
3835
|
+
}
|
|
3836
|
+
);
|
|
3837
|
+
var TooltipContent = React49.forwardRef(
|
|
3838
|
+
({
|
|
3839
|
+
className,
|
|
3840
|
+
variant = "light",
|
|
3841
|
+
size = "md",
|
|
3842
|
+
sideOffset = 8,
|
|
3843
|
+
showArrow = true,
|
|
3844
|
+
onDismiss,
|
|
3845
|
+
children,
|
|
3846
|
+
...props
|
|
3847
|
+
}, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
3848
|
+
TooltipPrimitive.Content,
|
|
3849
|
+
{
|
|
3850
|
+
ref,
|
|
3851
|
+
sideOffset,
|
|
3852
|
+
className: cn(tooltipContentVariants({ variant, size }), className),
|
|
3853
|
+
...props,
|
|
3854
|
+
children: [
|
|
3855
|
+
onDismiss && /* @__PURE__ */ jsx(
|
|
3856
|
+
"button",
|
|
3857
|
+
{
|
|
3858
|
+
onClick: onDismiss,
|
|
3859
|
+
className: cn(
|
|
3860
|
+
"absolute top-2 right-2 p-1 rounded-full transition-colors",
|
|
3861
|
+
variant === "dark" ? "hover:bg-slate-800 text-slate-400 hover:text-white" : "hover:bg-slate-100 text-slate-400 hover:text-slate-600"
|
|
3862
|
+
),
|
|
3863
|
+
"aria-label": "Fechar",
|
|
3864
|
+
children: /* @__PURE__ */ jsx(X, { className: "h-3.5 w-3.5" })
|
|
3865
|
+
}
|
|
3866
|
+
),
|
|
3867
|
+
children,
|
|
3868
|
+
showArrow && /* @__PURE__ */ jsx(TooltipArrow, { variant: variant ?? "light", width: 12, height: 6 })
|
|
3869
|
+
]
|
|
3870
|
+
}
|
|
3871
|
+
) })
|
|
3872
|
+
);
|
|
3873
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
3874
|
+
var TooltipHeader = React49.forwardRef(
|
|
3875
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex flex-col gap-1", className), ...props })
|
|
3876
|
+
);
|
|
3877
|
+
TooltipHeader.displayName = "TooltipHeader";
|
|
3878
|
+
var TooltipTitle = React49.forwardRef(
|
|
3879
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3880
|
+
"h4",
|
|
3881
|
+
{
|
|
3882
|
+
ref,
|
|
3883
|
+
className: cn("text-sm font-semibold leading-tight", className),
|
|
3884
|
+
...props
|
|
3885
|
+
}
|
|
3886
|
+
)
|
|
3887
|
+
);
|
|
3888
|
+
TooltipTitle.displayName = "TooltipTitle";
|
|
3889
|
+
var TooltipDescription = React49.forwardRef(({ className, variant = "light", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3890
|
+
"p",
|
|
3891
|
+
{
|
|
3892
|
+
ref,
|
|
3893
|
+
className: cn(
|
|
3894
|
+
"text-xs leading-relaxed",
|
|
3895
|
+
variant === "dark" ? "text-slate-300" : "text-slate-500",
|
|
3896
|
+
className
|
|
3897
|
+
),
|
|
3898
|
+
...props
|
|
3899
|
+
}
|
|
3900
|
+
));
|
|
3901
|
+
TooltipDescription.displayName = "TooltipDescription";
|
|
3902
|
+
var TooltipActions = React49.forwardRef(
|
|
3903
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3904
|
+
"div",
|
|
3905
|
+
{
|
|
3906
|
+
ref,
|
|
3907
|
+
className: cn("flex items-center gap-2 mt-3", className),
|
|
3908
|
+
...props
|
|
3909
|
+
}
|
|
3910
|
+
)
|
|
3911
|
+
);
|
|
3912
|
+
TooltipActions.displayName = "TooltipActions";
|
|
3913
|
+
var tooltipActionVariants = cva(
|
|
3914
|
+
"inline-flex items-center justify-center text-xs font-medium rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
3915
|
+
{
|
|
3916
|
+
variants: {
|
|
3917
|
+
variant: {
|
|
3918
|
+
primary: "bg-slate-900 text-white hover:bg-slate-800 px-3 py-1.5",
|
|
3919
|
+
secondary: "bg-transparent text-slate-600 hover:text-slate-900 hover:underline px-2 py-1.5",
|
|
3920
|
+
"primary-dark": "bg-white text-slate-900 hover:bg-slate-100 px-3 py-1.5",
|
|
3921
|
+
"secondary-dark": "bg-transparent text-slate-300 hover:text-white hover:underline px-2 py-1.5",
|
|
3922
|
+
outline: "border border-slate-200 bg-white text-slate-900 hover:bg-slate-50 px-3 py-1.5",
|
|
3923
|
+
"outline-dark": "border border-slate-700 bg-transparent text-white hover:bg-slate-800 px-3 py-1.5"
|
|
3924
|
+
}
|
|
3925
|
+
},
|
|
3926
|
+
defaultVariants: {
|
|
3927
|
+
variant: "primary"
|
|
3928
|
+
}
|
|
3929
|
+
}
|
|
3930
|
+
);
|
|
3931
|
+
var TooltipAction = React49.forwardRef(
|
|
3932
|
+
({ className, variant = "primary", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3933
|
+
"button",
|
|
3934
|
+
{
|
|
3935
|
+
ref,
|
|
3936
|
+
className: cn(tooltipActionVariants({ variant }), className),
|
|
3937
|
+
...props
|
|
3938
|
+
}
|
|
3939
|
+
)
|
|
3940
|
+
);
|
|
3941
|
+
TooltipAction.displayName = "TooltipAction";
|
|
3942
|
+
var TooltipIcon = React49.forwardRef(
|
|
3943
|
+
({ className, variant = "light", children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3944
|
+
"div",
|
|
3945
|
+
{
|
|
3946
|
+
ref,
|
|
3947
|
+
className: cn(
|
|
3948
|
+
"flex items-center justify-center w-10 h-10 rounded-full mb-3",
|
|
3949
|
+
variant === "dark" ? "bg-slate-800" : "bg-slate-100",
|
|
3950
|
+
className
|
|
3951
|
+
),
|
|
3952
|
+
...props,
|
|
3953
|
+
children
|
|
3954
|
+
}
|
|
3955
|
+
)
|
|
3956
|
+
);
|
|
3957
|
+
TooltipIcon.displayName = "TooltipIcon";
|
|
3958
|
+
var SimpleTooltip = ({
|
|
3959
|
+
children,
|
|
3960
|
+
content,
|
|
3961
|
+
variant = "light",
|
|
3962
|
+
side = "top",
|
|
3963
|
+
align = "center",
|
|
3964
|
+
delayDuration = 200,
|
|
3965
|
+
open,
|
|
3966
|
+
defaultOpen,
|
|
3967
|
+
onOpenChange
|
|
3968
|
+
}) => /* @__PURE__ */ jsxs(
|
|
3969
|
+
TooltipRoot,
|
|
3970
|
+
{
|
|
3971
|
+
open,
|
|
3972
|
+
defaultOpen,
|
|
3973
|
+
onOpenChange,
|
|
3974
|
+
delayDuration,
|
|
3975
|
+
children: [
|
|
3976
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children }),
|
|
3977
|
+
/* @__PURE__ */ jsx(TooltipContent, { variant, side, align, size: "sm", children: /* @__PURE__ */ jsx("span", { className: "text-xs", children: content }) })
|
|
3978
|
+
]
|
|
3979
|
+
}
|
|
3980
|
+
);
|
|
3981
|
+
SimpleTooltip.displayName = "SimpleTooltip";
|
|
3982
|
+
var Tooltip = Object.assign(TooltipRoot, {
|
|
3983
|
+
Provider: TooltipProvider,
|
|
3984
|
+
Trigger: TooltipTrigger,
|
|
3985
|
+
Portal: TooltipPortal,
|
|
3986
|
+
Content: TooltipContent,
|
|
3987
|
+
Arrow: TooltipArrow,
|
|
3988
|
+
Header: TooltipHeader,
|
|
3989
|
+
Title: TooltipTitle,
|
|
3990
|
+
Description: TooltipDescription,
|
|
3991
|
+
Actions: TooltipActions,
|
|
3992
|
+
Action: TooltipAction,
|
|
3993
|
+
Icon: TooltipIcon,
|
|
3994
|
+
Simple: SimpleTooltip
|
|
3995
|
+
});
|
|
3996
|
+
var AuthLayoutContext = React49.createContext({
|
|
3800
3997
|
imagePosition: "left"
|
|
3801
3998
|
});
|
|
3802
3999
|
function AuthLayoutRoot({ children, className }) {
|
|
3803
|
-
const [imagePosition, setImagePosition] =
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
if (
|
|
4000
|
+
const [imagePosition, setImagePosition] = React49.useState("left");
|
|
4001
|
+
React49.useEffect(() => {
|
|
4002
|
+
React49.Children.forEach(children, (child) => {
|
|
4003
|
+
if (React49.isValidElement(child) && child.type === AuthLayoutImage) {
|
|
3807
4004
|
setImagePosition(child.props.position || "left");
|
|
3808
4005
|
}
|
|
3809
4006
|
});
|
|
@@ -4001,7 +4198,7 @@ var AuthLayout = Object.assign(AuthLayoutRoot, {
|
|
|
4001
4198
|
Link: AuthLayoutLink,
|
|
4002
4199
|
Divider: AuthLayoutDivider
|
|
4003
4200
|
});
|
|
4004
|
-
var TabsContext =
|
|
4201
|
+
var TabsContext = React49.createContext(null);
|
|
4005
4202
|
function SelectionLayoutRoot({ children, className }) {
|
|
4006
4203
|
return /* @__PURE__ */ jsx("div", { className: cn("min-h-screen bg-muted/30 flex flex-col lg:flex-row", className), children });
|
|
4007
4204
|
}
|
|
@@ -4112,7 +4309,7 @@ function SelectionLayoutTab({
|
|
|
4112
4309
|
badge,
|
|
4113
4310
|
className
|
|
4114
4311
|
}) {
|
|
4115
|
-
const context =
|
|
4312
|
+
const context = React49.useContext(TabsContext);
|
|
4116
4313
|
if (!context) {
|
|
4117
4314
|
throw new Error("SelectionLayout.Tab must be used within SelectionLayout.Tabs");
|
|
4118
4315
|
}
|
|
@@ -4257,17 +4454,17 @@ var SelectionLayout = Object.assign(SelectionLayoutRoot, {
|
|
|
4257
4454
|
Card: SelectionLayoutCard,
|
|
4258
4455
|
Empty: SelectionLayoutEmpty
|
|
4259
4456
|
});
|
|
4260
|
-
var DashboardLayoutContext =
|
|
4457
|
+
var DashboardLayoutContext = React49.createContext(null);
|
|
4261
4458
|
function useDashboardLayout() {
|
|
4262
|
-
const context =
|
|
4459
|
+
const context = React49.useContext(DashboardLayoutContext);
|
|
4263
4460
|
if (!context) {
|
|
4264
4461
|
throw new Error("useDashboardLayout must be used within DashboardLayout");
|
|
4265
4462
|
}
|
|
4266
4463
|
return context;
|
|
4267
4464
|
}
|
|
4268
4465
|
function useMediaQuery(query) {
|
|
4269
|
-
const [matches, setMatches] =
|
|
4270
|
-
|
|
4466
|
+
const [matches, setMatches] = React49.useState(false);
|
|
4467
|
+
React49.useEffect(() => {
|
|
4271
4468
|
const media = window.matchMedia(query);
|
|
4272
4469
|
if (media.matches !== matches) {
|
|
4273
4470
|
setMatches(media.matches);
|
|
@@ -4284,11 +4481,11 @@ function DashboardLayoutRoot({
|
|
|
4284
4481
|
defaultExpanded = false,
|
|
4285
4482
|
defaultPinned = false
|
|
4286
4483
|
}) {
|
|
4287
|
-
const [sidebarExpanded, setSidebarExpanded] =
|
|
4288
|
-
const [sidebarPinned, setSidebarPinned] =
|
|
4289
|
-
const [mobileMenuOpen, setMobileMenuOpen] =
|
|
4484
|
+
const [sidebarExpanded, setSidebarExpanded] = React49.useState(defaultExpanded || defaultPinned);
|
|
4485
|
+
const [sidebarPinned, setSidebarPinned] = React49.useState(defaultPinned);
|
|
4486
|
+
const [mobileMenuOpen, setMobileMenuOpen] = React49.useState(false);
|
|
4290
4487
|
const isMobile = useMediaQuery("(max-width: 1024px)");
|
|
4291
|
-
|
|
4488
|
+
React49.useEffect(() => {
|
|
4292
4489
|
if (!isMobile) {
|
|
4293
4490
|
setMobileMenuOpen(false);
|
|
4294
4491
|
}
|
|
@@ -4429,7 +4626,7 @@ function DashboardLayoutSidebarNavItem({
|
|
|
4429
4626
|
};
|
|
4430
4627
|
const renderIcon4 = () => {
|
|
4431
4628
|
if (!icon) return null;
|
|
4432
|
-
if (
|
|
4629
|
+
if (React49.isValidElement(icon)) {
|
|
4433
4630
|
return icon;
|
|
4434
4631
|
}
|
|
4435
4632
|
if (typeof icon === "function" || typeof icon === "object" && "$$typeof" in icon) {
|
|
@@ -4484,7 +4681,7 @@ function DashboardLayoutSidebarNavGroup({
|
|
|
4484
4681
|
className
|
|
4485
4682
|
}) {
|
|
4486
4683
|
const { sidebarExpanded } = useDashboardLayout();
|
|
4487
|
-
const [isOpen, setIsOpen] =
|
|
4684
|
+
const [isOpen, setIsOpen] = React49.useState(defaultOpen);
|
|
4488
4685
|
const badgeColors = {
|
|
4489
4686
|
default: "bg-muted text-muted-foreground",
|
|
4490
4687
|
primary: "bg-primary/10 text-primary",
|
|
@@ -4492,7 +4689,7 @@ function DashboardLayoutSidebarNavGroup({
|
|
|
4492
4689
|
};
|
|
4493
4690
|
const renderIcon4 = () => {
|
|
4494
4691
|
if (!icon) return null;
|
|
4495
|
-
if (
|
|
4692
|
+
if (React49.isValidElement(icon)) {
|
|
4496
4693
|
return icon;
|
|
4497
4694
|
}
|
|
4498
4695
|
if (typeof icon === "function" || typeof icon === "object" && "$$typeof" in icon) {
|
|
@@ -4501,7 +4698,7 @@ function DashboardLayoutSidebarNavGroup({
|
|
|
4501
4698
|
}
|
|
4502
4699
|
return null;
|
|
4503
4700
|
};
|
|
4504
|
-
|
|
4701
|
+
React49.useEffect(() => {
|
|
4505
4702
|
if (isActive && sidebarExpanded) {
|
|
4506
4703
|
setIsOpen(true);
|
|
4507
4704
|
}
|
|
@@ -4605,7 +4802,7 @@ function DashboardLayoutHeaderUser({
|
|
|
4605
4802
|
children,
|
|
4606
4803
|
onLogout
|
|
4607
4804
|
}) {
|
|
4608
|
-
const [isOpen, setIsOpen] =
|
|
4805
|
+
const [isOpen, setIsOpen] = React49.useState(false);
|
|
4609
4806
|
return /* @__PURE__ */ jsxs("div", { className: cn("relative", className), children: [
|
|
4610
4807
|
/* @__PURE__ */ jsxs(
|
|
4611
4808
|
"button",
|
|
@@ -4686,7 +4883,7 @@ function DashboardLayoutBreadcrumbs({
|
|
|
4686
4883
|
return /* @__PURE__ */ jsx("nav", { className: cn("flex items-center gap-1 text-sm", className), children: items.map((item, index) => {
|
|
4687
4884
|
const Icon2 = item.icon;
|
|
4688
4885
|
const isLast = index === items.length - 1;
|
|
4689
|
-
return /* @__PURE__ */ jsxs(
|
|
4886
|
+
return /* @__PURE__ */ jsxs(React49.Fragment, { children: [
|
|
4690
4887
|
item.href && !isLast ? /* @__PURE__ */ jsxs(
|
|
4691
4888
|
"a",
|
|
4692
4889
|
{
|
|
@@ -4789,23 +4986,23 @@ var DashboardLayout = Object.assign(DashboardLayoutRoot, {
|
|
|
4789
4986
|
MobileNav: DashboardLayoutMobileNav,
|
|
4790
4987
|
MobileNavItem: DashboardLayoutMobileNavItem
|
|
4791
4988
|
});
|
|
4792
|
-
var SidebarContext =
|
|
4989
|
+
var SidebarContext = React49.createContext(null);
|
|
4793
4990
|
function useSidebar() {
|
|
4794
|
-
const context =
|
|
4991
|
+
const context = React49.useContext(SidebarContext);
|
|
4795
4992
|
if (!context) {
|
|
4796
4993
|
throw new Error("useSidebar must be used within a Sidebar component");
|
|
4797
4994
|
}
|
|
4798
4995
|
return context;
|
|
4799
4996
|
}
|
|
4800
4997
|
function useSidebarOptional() {
|
|
4801
|
-
return
|
|
4998
|
+
return React49.useContext(SidebarContext);
|
|
4802
4999
|
}
|
|
4803
5000
|
function SidebarProvider({ children, value }) {
|
|
4804
5001
|
return /* @__PURE__ */ jsx(SidebarContext.Provider, { value, children });
|
|
4805
5002
|
}
|
|
4806
5003
|
function useMediaQuery2(query) {
|
|
4807
|
-
const [matches, setMatches] =
|
|
4808
|
-
|
|
5004
|
+
const [matches, setMatches] = React49.useState(false);
|
|
5005
|
+
React49.useEffect(() => {
|
|
4809
5006
|
if (typeof window === "undefined") return;
|
|
4810
5007
|
const mediaQuery = window.matchMedia(query);
|
|
4811
5008
|
setMatches(mediaQuery.matches);
|
|
@@ -4817,7 +5014,7 @@ function useMediaQuery2(query) {
|
|
|
4817
5014
|
}, [query]);
|
|
4818
5015
|
return matches;
|
|
4819
5016
|
}
|
|
4820
|
-
var SidebarHeader =
|
|
5017
|
+
var SidebarHeader = React49.memo(function SidebarHeader2({
|
|
4821
5018
|
logo,
|
|
4822
5019
|
collapsedLogo,
|
|
4823
5020
|
title,
|
|
@@ -4825,7 +5022,7 @@ var SidebarHeader = React48.memo(function SidebarHeader2({
|
|
|
4825
5022
|
className
|
|
4826
5023
|
}) {
|
|
4827
5024
|
const { expanded, pinned, setPinned } = useSidebar();
|
|
4828
|
-
const handleTogglePin =
|
|
5025
|
+
const handleTogglePin = React49.useCallback(() => {
|
|
4829
5026
|
setPinned(!pinned);
|
|
4830
5027
|
}, [pinned, setPinned]);
|
|
4831
5028
|
return /* @__PURE__ */ jsxs(
|
|
@@ -4900,7 +5097,7 @@ var SidebarHeader = React48.memo(function SidebarHeader2({
|
|
|
4900
5097
|
);
|
|
4901
5098
|
});
|
|
4902
5099
|
SidebarHeader.displayName = "Sidebar.Header";
|
|
4903
|
-
var SidebarNav =
|
|
5100
|
+
var SidebarNav = React49.memo(function SidebarNav2({
|
|
4904
5101
|
children,
|
|
4905
5102
|
className
|
|
4906
5103
|
}) {
|
|
@@ -4916,7 +5113,7 @@ var SidebarNav = React48.memo(function SidebarNav2({
|
|
|
4916
5113
|
);
|
|
4917
5114
|
});
|
|
4918
5115
|
SidebarNav.displayName = "Sidebar.Nav";
|
|
4919
|
-
var SidebarSection =
|
|
5116
|
+
var SidebarSection = React49.memo(function SidebarSection2({
|
|
4920
5117
|
title,
|
|
4921
5118
|
children,
|
|
4922
5119
|
className
|
|
@@ -4940,8 +5137,8 @@ var SidebarSection = React48.memo(function SidebarSection2({
|
|
|
4940
5137
|
SidebarSection.displayName = "Sidebar.Section";
|
|
4941
5138
|
function renderIcon(icon, className) {
|
|
4942
5139
|
if (!icon) return null;
|
|
4943
|
-
if (
|
|
4944
|
-
return
|
|
5140
|
+
if (React49.isValidElement(icon)) {
|
|
5141
|
+
return React49.cloneElement(icon, { className });
|
|
4945
5142
|
}
|
|
4946
5143
|
if (typeof icon === "function" || typeof icon === "object" && icon !== null && "$$typeof" in icon) {
|
|
4947
5144
|
const IconComponent = icon;
|
|
@@ -4955,7 +5152,7 @@ var badgeVariantStyles = {
|
|
|
4955
5152
|
success: "bg-green-100 text-green-600",
|
|
4956
5153
|
warning: "bg-amber-100 text-amber-600"
|
|
4957
5154
|
};
|
|
4958
|
-
var SidebarNavItem =
|
|
5155
|
+
var SidebarNavItem = React49.memo(function SidebarNavItem2({
|
|
4959
5156
|
icon,
|
|
4960
5157
|
label,
|
|
4961
5158
|
href,
|
|
@@ -4967,7 +5164,7 @@ var SidebarNavItem = React48.memo(function SidebarNavItem2({
|
|
|
4967
5164
|
className
|
|
4968
5165
|
}) {
|
|
4969
5166
|
const { expanded } = useSidebar();
|
|
4970
|
-
const handleClick =
|
|
5167
|
+
const handleClick = React49.useCallback(() => {
|
|
4971
5168
|
if (disabled) return;
|
|
4972
5169
|
if (onClick) {
|
|
4973
5170
|
onClick();
|
|
@@ -5050,8 +5247,8 @@ var SidebarNavItem = React48.memo(function SidebarNavItem2({
|
|
|
5050
5247
|
SidebarNavItem.displayName = "Sidebar.NavItem";
|
|
5051
5248
|
function renderIcon2(icon, className) {
|
|
5052
5249
|
if (!icon) return null;
|
|
5053
|
-
if (
|
|
5054
|
-
return
|
|
5250
|
+
if (React49.isValidElement(icon)) {
|
|
5251
|
+
return React49.cloneElement(icon, { className });
|
|
5055
5252
|
}
|
|
5056
5253
|
if (typeof icon === "function" || typeof icon === "object" && icon !== null && "$$typeof" in icon) {
|
|
5057
5254
|
const IconComponent = icon;
|
|
@@ -5065,7 +5262,7 @@ var badgeVariantStyles2 = {
|
|
|
5065
5262
|
success: "bg-green-100 text-green-600",
|
|
5066
5263
|
warning: "bg-amber-100 text-amber-600"
|
|
5067
5264
|
};
|
|
5068
|
-
var SidebarNavGroup =
|
|
5265
|
+
var SidebarNavGroup = React49.memo(function SidebarNavGroup2({
|
|
5069
5266
|
icon,
|
|
5070
5267
|
label,
|
|
5071
5268
|
children,
|
|
@@ -5077,10 +5274,10 @@ var SidebarNavGroup = React48.memo(function SidebarNavGroup2({
|
|
|
5077
5274
|
className
|
|
5078
5275
|
}) {
|
|
5079
5276
|
const { expanded, activeSection, setActiveSection } = useSidebar();
|
|
5080
|
-
const [isOpen, setIsOpen] =
|
|
5277
|
+
const [isOpen, setIsOpen] = React49.useState(defaultOpen);
|
|
5081
5278
|
const groupId = id || label.toLowerCase().replace(/\s+/g, "-");
|
|
5082
5279
|
const isExpanded = expanded && (activeSection === groupId || isOpen);
|
|
5083
|
-
const handleClick =
|
|
5280
|
+
const handleClick = React49.useCallback(() => {
|
|
5084
5281
|
if (activeSection === groupId) {
|
|
5085
5282
|
setActiveSection(null);
|
|
5086
5283
|
setIsOpen(false);
|
|
@@ -5089,7 +5286,7 @@ var SidebarNavGroup = React48.memo(function SidebarNavGroup2({
|
|
|
5089
5286
|
setIsOpen(true);
|
|
5090
5287
|
}
|
|
5091
5288
|
}, [activeSection, groupId, setActiveSection]);
|
|
5092
|
-
|
|
5289
|
+
React49.useEffect(() => {
|
|
5093
5290
|
if (expanded && isActive && !isOpen) {
|
|
5094
5291
|
setIsOpen(true);
|
|
5095
5292
|
setActiveSection(groupId);
|
|
@@ -5193,18 +5390,18 @@ function isLucideIcon(icon) {
|
|
|
5193
5390
|
function getInitials(name) {
|
|
5194
5391
|
return name.split(" ").map((part) => part.charAt(0)).slice(0, 2).join("").toUpperCase();
|
|
5195
5392
|
}
|
|
5196
|
-
var SidebarFooter =
|
|
5393
|
+
var SidebarFooter = React49.memo(function SidebarFooter2({
|
|
5197
5394
|
user,
|
|
5198
5395
|
menuItems,
|
|
5199
5396
|
children,
|
|
5200
5397
|
className
|
|
5201
5398
|
}) {
|
|
5202
5399
|
const { expanded } = useSidebar();
|
|
5203
|
-
const [menuOpen, setMenuOpen] =
|
|
5204
|
-
const handleToggleMenu =
|
|
5400
|
+
const [menuOpen, setMenuOpen] = React49.useState(false);
|
|
5401
|
+
const handleToggleMenu = React49.useCallback(() => {
|
|
5205
5402
|
setMenuOpen((prev) => !prev);
|
|
5206
5403
|
}, []);
|
|
5207
|
-
|
|
5404
|
+
React49.useEffect(() => {
|
|
5208
5405
|
if (!menuOpen) return;
|
|
5209
5406
|
const handleClickOutside = (event) => {
|
|
5210
5407
|
const target = event.target;
|
|
@@ -5282,7 +5479,7 @@ var SidebarFooter = React48.memo(function SidebarFooter2({
|
|
|
5282
5479
|
children: /* @__PURE__ */ jsx("div", { className: "py-1", children: menuItems.map((item, index) => {
|
|
5283
5480
|
const IconComponent = item.icon && isLucideIcon(item.icon) ? item.icon : null;
|
|
5284
5481
|
const isDestructive = item.variant === "destructive";
|
|
5285
|
-
return /* @__PURE__ */ jsxs(
|
|
5482
|
+
return /* @__PURE__ */ jsxs(React49.Fragment, { children: [
|
|
5286
5483
|
isDestructive && index > 0 && /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" }),
|
|
5287
5484
|
/* @__PURE__ */ jsxs(
|
|
5288
5485
|
"button",
|
|
@@ -5319,17 +5516,17 @@ function SidebarRoot({
|
|
|
5319
5516
|
collapsedWidth = COLLAPSED_WIDTH,
|
|
5320
5517
|
expandedWidth = EXPANDED_WIDTH
|
|
5321
5518
|
}) {
|
|
5322
|
-
const [expanded, setExpanded] =
|
|
5323
|
-
const [pinned, setPinned] =
|
|
5324
|
-
const [activeSection, setActiveSection] =
|
|
5519
|
+
const [expanded, setExpanded] = React49.useState(defaultExpanded || defaultPinned);
|
|
5520
|
+
const [pinned, setPinned] = React49.useState(defaultPinned);
|
|
5521
|
+
const [activeSection, setActiveSection] = React49.useState(null);
|
|
5325
5522
|
const isMobile = useMediaQuery2("(max-width: 768px)");
|
|
5326
|
-
const handleSetPinned =
|
|
5523
|
+
const handleSetPinned = React49.useCallback((value) => {
|
|
5327
5524
|
setPinned(value);
|
|
5328
5525
|
if (value) {
|
|
5329
5526
|
setExpanded(true);
|
|
5330
5527
|
}
|
|
5331
5528
|
}, []);
|
|
5332
|
-
const contextValue =
|
|
5529
|
+
const contextValue = React49.useMemo(
|
|
5333
5530
|
() => ({
|
|
5334
5531
|
expanded,
|
|
5335
5532
|
setExpanded,
|
|
@@ -5348,13 +5545,13 @@ function SidebarRoot({
|
|
|
5348
5545
|
SidebarRoot.displayName = "SidebarRoot";
|
|
5349
5546
|
function SidebarAside({ children, className }) {
|
|
5350
5547
|
const { expanded, pinned, setExpanded, isMobile, collapsedWidth, expandedWidth } = useSidebar();
|
|
5351
|
-
const sidebarRef =
|
|
5352
|
-
const handleMouseEnter =
|
|
5548
|
+
const sidebarRef = React49.useRef(null);
|
|
5549
|
+
const handleMouseEnter = React49.useCallback(() => {
|
|
5353
5550
|
if (!pinned && !isMobile) {
|
|
5354
5551
|
setExpanded(true);
|
|
5355
5552
|
}
|
|
5356
5553
|
}, [pinned, isMobile, setExpanded]);
|
|
5357
|
-
const handleMouseLeave =
|
|
5554
|
+
const handleMouseLeave = React49.useCallback(() => {
|
|
5358
5555
|
if (!pinned && !isMobile) {
|
|
5359
5556
|
setExpanded(false);
|
|
5360
5557
|
}
|
|
@@ -5422,28 +5619,28 @@ function LegacySidebar({
|
|
|
5422
5619
|
expandedWidth = EXPANDED_WIDTH,
|
|
5423
5620
|
className
|
|
5424
5621
|
}) {
|
|
5425
|
-
const [expanded, setExpanded] =
|
|
5426
|
-
const [pinned, setPinned] =
|
|
5427
|
-
const [activeSection, setActiveSection] =
|
|
5622
|
+
const [expanded, setExpanded] = React49.useState(defaultExpanded || defaultPinned);
|
|
5623
|
+
const [pinned, setPinned] = React49.useState(defaultPinned);
|
|
5624
|
+
const [activeSection, setActiveSection] = React49.useState(null);
|
|
5428
5625
|
const isMobile = useMediaQuery2("(max-width: 768px)");
|
|
5429
|
-
const sidebarRef =
|
|
5430
|
-
const handleMouseEnter =
|
|
5626
|
+
const sidebarRef = React49.useRef(null);
|
|
5627
|
+
const handleMouseEnter = React49.useCallback(() => {
|
|
5431
5628
|
if (!pinned && !isMobile) {
|
|
5432
5629
|
setExpanded(true);
|
|
5433
5630
|
}
|
|
5434
5631
|
}, [pinned, isMobile]);
|
|
5435
|
-
const handleMouseLeave =
|
|
5632
|
+
const handleMouseLeave = React49.useCallback(() => {
|
|
5436
5633
|
if (!pinned && !isMobile) {
|
|
5437
5634
|
setExpanded(false);
|
|
5438
5635
|
}
|
|
5439
5636
|
}, [pinned, isMobile]);
|
|
5440
|
-
const handleSetPinned =
|
|
5637
|
+
const handleSetPinned = React49.useCallback((value) => {
|
|
5441
5638
|
setPinned(value);
|
|
5442
5639
|
if (value) {
|
|
5443
5640
|
setExpanded(true);
|
|
5444
5641
|
}
|
|
5445
5642
|
}, []);
|
|
5446
|
-
const contextValue =
|
|
5643
|
+
const contextValue = React49.useMemo(
|
|
5447
5644
|
() => ({
|
|
5448
5645
|
expanded,
|
|
5449
5646
|
setExpanded,
|
|
@@ -5500,8 +5697,8 @@ var Sidebar = Object.assign(LegacySidebar, {
|
|
|
5500
5697
|
});
|
|
5501
5698
|
function renderIcon3(icon, className) {
|
|
5502
5699
|
if (!icon) return null;
|
|
5503
|
-
if (
|
|
5504
|
-
return
|
|
5700
|
+
if (React49.isValidElement(icon)) {
|
|
5701
|
+
return React49.cloneElement(icon, { className });
|
|
5505
5702
|
}
|
|
5506
5703
|
if (typeof icon === "function" || typeof icon === "object" && icon !== null && "$$typeof" in icon) {
|
|
5507
5704
|
const IconComponent = icon;
|
|
@@ -5509,7 +5706,7 @@ function renderIcon3(icon, className) {
|
|
|
5509
5706
|
}
|
|
5510
5707
|
return null;
|
|
5511
5708
|
}
|
|
5512
|
-
var MobileNavItem =
|
|
5709
|
+
var MobileNavItem = React49.memo(function MobileNavItem2({
|
|
5513
5710
|
icon,
|
|
5514
5711
|
label,
|
|
5515
5712
|
isActive = false,
|
|
@@ -5547,7 +5744,7 @@ var MobileNavItem = React48.memo(function MobileNavItem2({
|
|
|
5547
5744
|
] });
|
|
5548
5745
|
});
|
|
5549
5746
|
MobileNavItem.displayName = "MobileNavItem";
|
|
5550
|
-
var MobileNav =
|
|
5747
|
+
var MobileNav = React49.memo(function MobileNav2({
|
|
5551
5748
|
items,
|
|
5552
5749
|
fabAction,
|
|
5553
5750
|
className
|
|
@@ -5615,7 +5812,7 @@ var MobileNav = React48.memo(function MobileNav2({
|
|
|
5615
5812
|
);
|
|
5616
5813
|
});
|
|
5617
5814
|
MobileNav.displayName = "MobileNav";
|
|
5618
|
-
var Navbar =
|
|
5815
|
+
var Navbar = React49.memo(function Navbar2({
|
|
5619
5816
|
children,
|
|
5620
5817
|
className,
|
|
5621
5818
|
style
|
|
@@ -5634,8 +5831,8 @@ var Navbar = React48.memo(function Navbar2({
|
|
|
5634
5831
|
});
|
|
5635
5832
|
Navbar.displayName = "Navbar";
|
|
5636
5833
|
function ThemeToggle({ className }) {
|
|
5637
|
-
const [isDark, setIsDark] =
|
|
5638
|
-
|
|
5834
|
+
const [isDark, setIsDark] = React49.useState(false);
|
|
5835
|
+
React49.useEffect(() => {
|
|
5639
5836
|
const isDarkMode = document.documentElement.classList.contains("dark");
|
|
5640
5837
|
setIsDark(isDarkMode);
|
|
5641
5838
|
}, []);
|
|
@@ -5727,7 +5924,7 @@ function NavbarNotification({
|
|
|
5727
5924
|
] });
|
|
5728
5925
|
}
|
|
5729
5926
|
NavbarNotification.displayName = "NavbarNotification";
|
|
5730
|
-
var ScrollArea =
|
|
5927
|
+
var ScrollArea = React49.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
5731
5928
|
ScrollAreaPrimitive.Root,
|
|
5732
5929
|
{
|
|
5733
5930
|
ref,
|
|
@@ -5741,7 +5938,7 @@ var ScrollArea = React48.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
5741
5938
|
}
|
|
5742
5939
|
));
|
|
5743
5940
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
5744
|
-
var ScrollBar =
|
|
5941
|
+
var ScrollBar = React49.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5745
5942
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
5746
5943
|
{
|
|
5747
5944
|
ref,
|
|
@@ -5757,7 +5954,7 @@ var ScrollBar = React48.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
5757
5954
|
}
|
|
5758
5955
|
));
|
|
5759
5956
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
5760
|
-
var Separator3 =
|
|
5957
|
+
var Separator3 = React49.forwardRef(
|
|
5761
5958
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5762
5959
|
SeparatorPrimitive.Root,
|
|
5763
5960
|
{
|
|
@@ -5825,7 +6022,7 @@ function NavbarCompanyProfile({
|
|
|
5825
6022
|
/* @__PURE__ */ jsx(ScrollArea, { className: "h-64", children: /* @__PURE__ */ jsxs("div", { className: "p-4", children: [
|
|
5826
6023
|
isLoading && /* @__PURE__ */ jsx("div", { className: "flex justify-center py-4", children: /* @__PURE__ */ jsx(Loader, { variant: "spinner" }) }),
|
|
5827
6024
|
!isLoading && companies.length === 0 && /* @__PURE__ */ jsx("p", { className: "text-center text-muted-foreground", children: "Nenhuma empresa encontrada." }),
|
|
5828
|
-
companies.map((company, index) => /* @__PURE__ */ jsxs(
|
|
6025
|
+
companies.map((company, index) => /* @__PURE__ */ jsxs(React49.Fragment, { children: [
|
|
5829
6026
|
/* @__PURE__ */ jsx(
|
|
5830
6027
|
Button,
|
|
5831
6028
|
{
|
|
@@ -5908,9 +6105,9 @@ function NavbarUserMenu({
|
|
|
5908
6105
|
] });
|
|
5909
6106
|
}
|
|
5910
6107
|
NavbarUserMenu.displayName = "NavbarUserMenu";
|
|
5911
|
-
var Breadcrumb =
|
|
6108
|
+
var Breadcrumb = React49.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
5912
6109
|
Breadcrumb.displayName = "Breadcrumb";
|
|
5913
|
-
var BreadcrumbList =
|
|
6110
|
+
var BreadcrumbList = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5914
6111
|
"ol",
|
|
5915
6112
|
{
|
|
5916
6113
|
ref,
|
|
@@ -5922,7 +6119,7 @@ var BreadcrumbList = React48.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
5922
6119
|
}
|
|
5923
6120
|
));
|
|
5924
6121
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
5925
|
-
var BreadcrumbItem =
|
|
6122
|
+
var BreadcrumbItem = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5926
6123
|
"li",
|
|
5927
6124
|
{
|
|
5928
6125
|
ref,
|
|
@@ -5931,7 +6128,7 @@ var BreadcrumbItem = React48.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
5931
6128
|
}
|
|
5932
6129
|
));
|
|
5933
6130
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
5934
|
-
var BreadcrumbLink =
|
|
6131
|
+
var BreadcrumbLink = React49.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
5935
6132
|
const Comp = asChild ? Slot : "a";
|
|
5936
6133
|
return /* @__PURE__ */ jsx(
|
|
5937
6134
|
Comp,
|
|
@@ -5943,7 +6140,7 @@ var BreadcrumbLink = React48.forwardRef(({ asChild, className, ...props }, ref)
|
|
|
5943
6140
|
);
|
|
5944
6141
|
});
|
|
5945
6142
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
5946
|
-
var BreadcrumbPage =
|
|
6143
|
+
var BreadcrumbPage = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5947
6144
|
"span",
|
|
5948
6145
|
{
|
|
5949
6146
|
ref,
|
|
@@ -6079,16 +6276,16 @@ var SectionHeader = Object.assign(SectionHeaderRoot, {
|
|
|
6079
6276
|
Actions: SectionHeaderActions,
|
|
6080
6277
|
Badge: SectionHeaderBadge
|
|
6081
6278
|
});
|
|
6082
|
-
var KanbanContext =
|
|
6279
|
+
var KanbanContext = React49.createContext(null);
|
|
6083
6280
|
function useKanban() {
|
|
6084
|
-
const context =
|
|
6281
|
+
const context = React49.useContext(KanbanContext);
|
|
6085
6282
|
if (!context) {
|
|
6086
6283
|
throw new Error("useKanban must be used within a Kanban.Board component");
|
|
6087
6284
|
}
|
|
6088
6285
|
return context;
|
|
6089
6286
|
}
|
|
6090
6287
|
function useKanbanOptional() {
|
|
6091
|
-
return
|
|
6288
|
+
return React49.useContext(KanbanContext);
|
|
6092
6289
|
}
|
|
6093
6290
|
function KanbanProvider({ children, value }) {
|
|
6094
6291
|
return /* @__PURE__ */ jsx(KanbanContext.Provider, { value, children });
|
|
@@ -6099,18 +6296,18 @@ function KanbanBoard({
|
|
|
6099
6296
|
onDragStart,
|
|
6100
6297
|
className
|
|
6101
6298
|
}) {
|
|
6102
|
-
const [isDragging, setIsDragging] =
|
|
6103
|
-
const [draggedItemId, setDraggedItemId] =
|
|
6104
|
-
const [sourceColumnId, setSourceColumnId] =
|
|
6105
|
-
const [hoveredColumnId, setHoveredColumnId] =
|
|
6106
|
-
const dropValidatorsRef =
|
|
6107
|
-
const registerDropValidator =
|
|
6299
|
+
const [isDragging, setIsDragging] = React49.useState(false);
|
|
6300
|
+
const [draggedItemId, setDraggedItemId] = React49.useState(null);
|
|
6301
|
+
const [sourceColumnId, setSourceColumnId] = React49.useState(null);
|
|
6302
|
+
const [hoveredColumnId, setHoveredColumnId] = React49.useState(null);
|
|
6303
|
+
const dropValidatorsRef = React49.useRef(/* @__PURE__ */ new Map());
|
|
6304
|
+
const registerDropValidator = React49.useCallback((columnId, validator) => {
|
|
6108
6305
|
dropValidatorsRef.current.set(columnId, validator);
|
|
6109
6306
|
}, []);
|
|
6110
|
-
const unregisterDropValidator =
|
|
6307
|
+
const unregisterDropValidator = React49.useCallback((columnId) => {
|
|
6111
6308
|
dropValidatorsRef.current.delete(columnId);
|
|
6112
6309
|
}, []);
|
|
6113
|
-
const canDropInColumn =
|
|
6310
|
+
const canDropInColumn = React49.useCallback((columnId) => {
|
|
6114
6311
|
if (!draggedItemId || !sourceColumnId) return false;
|
|
6115
6312
|
if (columnId === sourceColumnId) return false;
|
|
6116
6313
|
const validator = dropValidatorsRef.current.get(columnId);
|
|
@@ -6119,13 +6316,13 @@ function KanbanBoard({
|
|
|
6119
6316
|
}
|
|
6120
6317
|
return true;
|
|
6121
6318
|
}, [draggedItemId, sourceColumnId]);
|
|
6122
|
-
const handleDragStart =
|
|
6319
|
+
const handleDragStart = React49.useCallback((itemId, colId) => {
|
|
6123
6320
|
setIsDragging(true);
|
|
6124
6321
|
setDraggedItemId(itemId);
|
|
6125
6322
|
setSourceColumnId(colId);
|
|
6126
6323
|
onDragStart?.(itemId, colId);
|
|
6127
6324
|
}, [onDragStart]);
|
|
6128
|
-
const handleDrop =
|
|
6325
|
+
const handleDrop = React49.useCallback((destinationColumnId) => {
|
|
6129
6326
|
if (draggedItemId && sourceColumnId && destinationColumnId !== sourceColumnId) {
|
|
6130
6327
|
if (canDropInColumn(destinationColumnId)) {
|
|
6131
6328
|
const result = {
|
|
@@ -6141,13 +6338,13 @@ function KanbanBoard({
|
|
|
6141
6338
|
setSourceColumnId(null);
|
|
6142
6339
|
setHoveredColumnId(null);
|
|
6143
6340
|
}, [draggedItemId, sourceColumnId, canDropInColumn, onDragEnd]);
|
|
6144
|
-
const handleDragEnd =
|
|
6341
|
+
const handleDragEnd = React49.useCallback(() => {
|
|
6145
6342
|
setIsDragging(false);
|
|
6146
6343
|
setDraggedItemId(null);
|
|
6147
6344
|
setSourceColumnId(null);
|
|
6148
6345
|
setHoveredColumnId(null);
|
|
6149
6346
|
}, []);
|
|
6150
|
-
const contextValue =
|
|
6347
|
+
const contextValue = React49.useMemo(() => ({
|
|
6151
6348
|
isDragging,
|
|
6152
6349
|
draggedItemId,
|
|
6153
6350
|
sourceColumnId,
|
|
@@ -6172,9 +6369,9 @@ function KanbanBoard({
|
|
|
6172
6369
|
}
|
|
6173
6370
|
) });
|
|
6174
6371
|
}
|
|
6175
|
-
var KanbanBoardInternalContext =
|
|
6372
|
+
var KanbanBoardInternalContext = React49.createContext(null);
|
|
6176
6373
|
function useKanbanBoard() {
|
|
6177
|
-
const context =
|
|
6374
|
+
const context = React49.useContext(KanbanBoardInternalContext);
|
|
6178
6375
|
if (!context) {
|
|
6179
6376
|
throw new Error("useKanbanBoard must be used within a Kanban.Board component");
|
|
6180
6377
|
}
|
|
@@ -6194,7 +6391,7 @@ function KanbanColumn({
|
|
|
6194
6391
|
}) {
|
|
6195
6392
|
const { isDragging, sourceColumnId, hoveredColumnId, setHoveredColumnId, canDropInColumn, registerDropValidator, unregisterDropValidator } = useKanban();
|
|
6196
6393
|
const { handleDrop } = useKanbanBoard();
|
|
6197
|
-
|
|
6394
|
+
React49.useEffect(() => {
|
|
6198
6395
|
if (canDrop) {
|
|
6199
6396
|
registerDropValidator(id, canDrop);
|
|
6200
6397
|
return () => unregisterDropValidator(id);
|
|
@@ -6203,7 +6400,7 @@ function KanbanColumn({
|
|
|
6203
6400
|
const isValidDropTarget = isDragging && sourceColumnId !== id && canDropInColumn(id);
|
|
6204
6401
|
const isInvalidDropTarget = isDragging && sourceColumnId !== id && !canDropInColumn(id);
|
|
6205
6402
|
const isHovered = hoveredColumnId === id;
|
|
6206
|
-
const handleDragOver =
|
|
6403
|
+
const handleDragOver = React49.useCallback((e) => {
|
|
6207
6404
|
e.preventDefault();
|
|
6208
6405
|
if (isValidDropTarget) {
|
|
6209
6406
|
e.dataTransfer.dropEffect = "move";
|
|
@@ -6212,18 +6409,18 @@ function KanbanColumn({
|
|
|
6212
6409
|
e.dataTransfer.dropEffect = "none";
|
|
6213
6410
|
}
|
|
6214
6411
|
}, [isValidDropTarget, setHoveredColumnId, id]);
|
|
6215
|
-
const handleDragLeave =
|
|
6412
|
+
const handleDragLeave = React49.useCallback((e) => {
|
|
6216
6413
|
if (e.currentTarget === e.target || !e.currentTarget.contains(e.relatedTarget)) {
|
|
6217
6414
|
setHoveredColumnId(null);
|
|
6218
6415
|
}
|
|
6219
6416
|
}, [setHoveredColumnId]);
|
|
6220
|
-
const handleDropEvent =
|
|
6417
|
+
const handleDropEvent = React49.useCallback((e) => {
|
|
6221
6418
|
e.preventDefault();
|
|
6222
6419
|
if (isValidDropTarget) {
|
|
6223
6420
|
handleDrop(id);
|
|
6224
6421
|
}
|
|
6225
6422
|
}, [isValidDropTarget, handleDrop, id]);
|
|
6226
|
-
const childCount =
|
|
6423
|
+
const childCount = React49.Children.count(children);
|
|
6227
6424
|
const displayCount = count ?? childCount;
|
|
6228
6425
|
return /* @__PURE__ */ jsxs(
|
|
6229
6426
|
"div",
|
|
@@ -6284,7 +6481,7 @@ function KanbanCard({
|
|
|
6284
6481
|
const { draggedItemId } = useKanban();
|
|
6285
6482
|
const { handleDragStart } = useKanbanBoard();
|
|
6286
6483
|
const isThisCardDragging = draggedItemId === id;
|
|
6287
|
-
const handleDragStartEvent =
|
|
6484
|
+
const handleDragStartEvent = React49.useCallback((e) => {
|
|
6288
6485
|
if (disabled) {
|
|
6289
6486
|
e.preventDefault();
|
|
6290
6487
|
return;
|
|
@@ -7039,18 +7236,18 @@ var initialState = {
|
|
|
7039
7236
|
theme: "system",
|
|
7040
7237
|
setTheme: () => null
|
|
7041
7238
|
};
|
|
7042
|
-
var ThemeProviderContext =
|
|
7239
|
+
var ThemeProviderContext = React49.createContext(initialState);
|
|
7043
7240
|
function ThemeProvider({
|
|
7044
7241
|
children,
|
|
7045
7242
|
defaultTheme = "system",
|
|
7046
7243
|
storageKey = "facter-ds-theme",
|
|
7047
7244
|
...props
|
|
7048
7245
|
}) {
|
|
7049
|
-
const [theme, setTheme] =
|
|
7246
|
+
const [theme, setTheme] = React49.useState(
|
|
7050
7247
|
() => localStorage.getItem(storageKey) || defaultTheme
|
|
7051
7248
|
);
|
|
7052
|
-
const [resolvedTheme, setResolvedTheme] =
|
|
7053
|
-
|
|
7249
|
+
const [resolvedTheme, setResolvedTheme] = React49.useState("light");
|
|
7250
|
+
React49.useEffect(() => {
|
|
7054
7251
|
const root = window.document.documentElement;
|
|
7055
7252
|
root.classList.remove("light", "dark");
|
|
7056
7253
|
if (theme === "system") {
|
|
@@ -7062,7 +7259,7 @@ function ThemeProvider({
|
|
|
7062
7259
|
root.classList.add(theme);
|
|
7063
7260
|
setResolvedTheme(theme);
|
|
7064
7261
|
}, [theme]);
|
|
7065
|
-
const value =
|
|
7262
|
+
const value = React49.useMemo(
|
|
7066
7263
|
() => ({
|
|
7067
7264
|
theme,
|
|
7068
7265
|
setTheme: (theme2) => {
|
|
@@ -7075,7 +7272,7 @@ function ThemeProvider({
|
|
|
7075
7272
|
return /* @__PURE__ */ jsx(ThemeProviderContext.Provider, { ...props, value, children: /* @__PURE__ */ jsx("div", { className: resolvedTheme, style: { minHeight: "100vh" }, children }) });
|
|
7076
7273
|
}
|
|
7077
7274
|
var useTheme = () => {
|
|
7078
|
-
const context =
|
|
7275
|
+
const context = React49.useContext(ThemeProviderContext);
|
|
7079
7276
|
if (context === void 0)
|
|
7080
7277
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
7081
7278
|
return context;
|
|
@@ -7119,6 +7316,6 @@ var THEME_INFO = {
|
|
|
7119
7316
|
}
|
|
7120
7317
|
};
|
|
7121
7318
|
|
|
7122
|
-
export { AuthLayout, Avatar, AvatarFallback, AvatarImage, Badge, BigNumberCard, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, DENSITY_CONFIG, DashboardLayout, DataTable, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogWrapper, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FACTER_THEMES, Form, FormCheckbox, FormDescription, FormError, FormFieldProvider, FormFieldWrapper, FormInput, FormLabel, FormRadioGroup, FormSelect, FormSwitch, FormTextarea, GlobalLoaderController, Input, Kanban, Loader, LoaderProvider, Logo, MobileNav, MobileNavItem, Navbar, NavbarCompanyProfile, NavbarNotification, NavbarUserMenu, Popover, PopoverContent, PopoverTrigger, RippleBackground, RippleEffect, RippleWrapper, ScrollArea, ScrollBar, SectionHeader, SectionHeaderActions, SectionHeaderBadge, SectionHeaderContent, SectionHeaderIcon, SectionHeaderRoot, SectionHeaderSubtitle, SectionHeaderTitle, Select, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectionLayout, Separator3 as Separator, Sidebar, Skeleton, Sparkline, Switch, THEME_INFO, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, ThemeToggle, Toaster, Wizard, WizardContent, WizardNavigation, WizardPanel, WizardProgress, WizardProvider, WizardStepConnector, WizardStepIndicator, WizardSteps, cn, loader, toast, useDashboardLayout, useDataTable, useDataTableColumnVisibility, useDataTableDensity, useDataTableEmpty, useDataTableInstance, useDataTableLoading, useDataTableMeta, useDataTablePagination, useDataTableSelection, useDataTableSorting, useDataTableState, useDebounce, useDebouncedCallback, useFormFieldContext, useKanban, useKanbanOptional, useLoader, useMediaQuery2 as useMediaQuery, useSidebar, useSidebarOptional, useTheme, useWizardContext, useWizardContextOptional };
|
|
7319
|
+
export { AuthLayout, Avatar, AvatarFallback, AvatarImage, Badge, BigNumberCard, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, DENSITY_CONFIG, DashboardLayout, DataTable, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogWrapper, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FACTER_THEMES, Form, FormCheckbox, FormDescription, FormError, FormFieldProvider, FormFieldWrapper, FormInput, FormLabel, FormRadioGroup, FormSelect, FormSwitch, FormTextarea, GlobalLoaderController, Input, Kanban, Loader, LoaderProvider, Logo, MobileNav, MobileNavItem, Navbar, NavbarCompanyProfile, NavbarNotification, NavbarUserMenu, Popover, PopoverContent, PopoverTrigger, RippleBackground, RippleEffect, RippleWrapper, ScrollArea, ScrollBar, SectionHeader, SectionHeaderActions, SectionHeaderBadge, SectionHeaderContent, SectionHeaderIcon, SectionHeaderRoot, SectionHeaderSubtitle, SectionHeaderTitle, Select, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectionLayout, Separator3 as Separator, Sidebar, SimpleTooltip, Skeleton, Sparkline, Switch, THEME_INFO, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, ThemeToggle, Toaster, Tooltip, TooltipAction, TooltipActions, TooltipArrow, TooltipContent, TooltipDescription, TooltipHeader, TooltipIcon, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTitle, TooltipTrigger, Wizard, WizardContent, WizardNavigation, WizardPanel, WizardProgress, WizardProvider, WizardStepConnector, WizardStepIndicator, WizardSteps, cn, loader, toast, useDashboardLayout, useDataTable, useDataTableColumnVisibility, useDataTableDensity, useDataTableEmpty, useDataTableInstance, useDataTableLoading, useDataTableMeta, useDataTablePagination, useDataTableSelection, useDataTableSorting, useDataTableState, useDebounce, useDebouncedCallback, useFormFieldContext, useKanban, useKanbanOptional, useLoader, useMediaQuery2 as useMediaQuery, useSidebar, useSidebarOptional, useTheme, useWizardContext, useWizardContextOptional };
|
|
7123
7320
|
//# sourceMappingURL=index.mjs.map
|
|
7124
7321
|
//# sourceMappingURL=index.mjs.map
|