@greatapps/greatauth-ui 0.3.15 → 0.3.16
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.js +44 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/app-sidebar.tsx +2 -2
- package/src/components/image-crop-upload.tsx +5 -3
- package/src/components/login-form.tsx +7 -5
- package/src/components/theme-toggle.tsx +2 -2
- package/src/components/users/data-table.tsx +8 -7
- package/src/components/users/user-form-dialog.tsx +7 -7
- package/src/components/users/users-page.tsx +11 -8
package/dist/index.js
CHANGED
|
@@ -1075,7 +1075,7 @@ function AppSidebar({ config }) {
|
|
|
1075
1075
|
/* @__PURE__ */ jsx12("span", { className: "truncate font-semibold", children: userName }),
|
|
1076
1076
|
/* @__PURE__ */ jsx12("span", { className: "truncate text-xs text-muted-foreground", children: userEmail })
|
|
1077
1077
|
] }),
|
|
1078
|
-
/* @__PURE__ */ jsx12(ChevronsUpDown, { className: "ml-auto size-4 group-data-[collapsible=icon]:hidden" })
|
|
1078
|
+
/* @__PURE__ */ jsx12(ChevronsUpDown, { "aria-hidden": "true", className: "ml-auto size-4 group-data-[collapsible=icon]:hidden" })
|
|
1079
1079
|
] }) }),
|
|
1080
1080
|
/* @__PURE__ */ jsxs5(
|
|
1081
1081
|
DropdownMenuContent,
|
|
@@ -1092,7 +1092,7 @@ function AppSidebar({ config }) {
|
|
|
1092
1092
|
/* @__PURE__ */ jsx12(DropdownMenuSeparator, {}),
|
|
1093
1093
|
config.footerExtra,
|
|
1094
1094
|
/* @__PURE__ */ jsxs5(DropdownMenuItem, { onClick: handleLogout, children: [
|
|
1095
|
-
/* @__PURE__ */ jsx12(LogOut, { className: "size-4" }),
|
|
1095
|
+
/* @__PURE__ */ jsx12(LogOut, { "aria-hidden": "true", className: "size-4" }),
|
|
1096
1096
|
"Sair"
|
|
1097
1097
|
] })
|
|
1098
1098
|
]
|
|
@@ -1239,8 +1239,8 @@ function ThemeToggle() {
|
|
|
1239
1239
|
[theme, setTheme]
|
|
1240
1240
|
);
|
|
1241
1241
|
return /* @__PURE__ */ jsxs7(Button, { variant: "ghost", size: "icon", onClick: toggleTheme, children: [
|
|
1242
|
-
/* @__PURE__ */ jsx14(Sun, { className: "h-5 w-5 rotate-0 scale-100 transition-
|
|
1243
|
-
/* @__PURE__ */ jsx14(Moon, { className: "absolute h-5 w-5 rotate-90 scale-0 transition-
|
|
1242
|
+
/* @__PURE__ */ jsx14(Sun, { "aria-hidden": "true", className: "h-5 w-5 rotate-0 scale-100 transition-transform transition-opacity dark:-rotate-90 dark:scale-0" }),
|
|
1243
|
+
/* @__PURE__ */ jsx14(Moon, { "aria-hidden": "true", className: "absolute h-5 w-5 rotate-90 scale-0 transition-transform transition-opacity dark:rotate-0 dark:scale-100" }),
|
|
1244
1244
|
/* @__PURE__ */ jsx14("span", { className: "sr-only", children: "Alternar tema" })
|
|
1245
1245
|
] });
|
|
1246
1246
|
}
|
|
@@ -1390,17 +1390,18 @@ function LoginForm({ config }) {
|
|
|
1390
1390
|
] }),
|
|
1391
1391
|
/* @__PURE__ */ jsx18("div", { className: "rounded-xl border bg-card p-6 shadow-sm", children: /* @__PURE__ */ jsxs10("form", { onSubmit: handleSubmit, className: "space-y-4", children: [
|
|
1392
1392
|
error && /* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-2 rounded-lg border border-destructive/30 bg-destructive/5 px-3 py-2.5 text-sm text-destructive", children: [
|
|
1393
|
-
/* @__PURE__ */ jsx18(AlertCircle, { className: "h-4 w-4 shrink-0" }),
|
|
1393
|
+
/* @__PURE__ */ jsx18(AlertCircle, { "aria-hidden": "true", className: "h-4 w-4 shrink-0" }),
|
|
1394
1394
|
error
|
|
1395
1395
|
] }),
|
|
1396
1396
|
/* @__PURE__ */ jsxs10("div", { className: "space-y-1.5", children: [
|
|
1397
1397
|
/* @__PURE__ */ jsx18(Label, { htmlFor: "login-email", className: "text-sm font-medium", children: "Email" }),
|
|
1398
1398
|
/* @__PURE__ */ jsxs10("div", { className: "relative", children: [
|
|
1399
|
-
/* @__PURE__ */ jsx18(Mail, { className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
1399
|
+
/* @__PURE__ */ jsx18(Mail, { "aria-hidden": "true", className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
1400
1400
|
/* @__PURE__ */ jsx18(
|
|
1401
1401
|
Input,
|
|
1402
1402
|
{
|
|
1403
1403
|
id: "login-email",
|
|
1404
|
+
name: "email",
|
|
1404
1405
|
type: "email",
|
|
1405
1406
|
placeholder: "email@exemplo.com",
|
|
1406
1407
|
value: email,
|
|
@@ -1415,11 +1416,12 @@ function LoginForm({ config }) {
|
|
|
1415
1416
|
/* @__PURE__ */ jsxs10("div", { className: "space-y-1.5", children: [
|
|
1416
1417
|
/* @__PURE__ */ jsx18(Label, { htmlFor: "login-password", className: "text-sm font-medium", children: "Senha" }),
|
|
1417
1418
|
/* @__PURE__ */ jsxs10("div", { className: "relative", children: [
|
|
1418
|
-
/* @__PURE__ */ jsx18(Lock, { className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
1419
|
+
/* @__PURE__ */ jsx18(Lock, { "aria-hidden": "true", className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
1419
1420
|
/* @__PURE__ */ jsx18(
|
|
1420
1421
|
Input,
|
|
1421
1422
|
{
|
|
1422
1423
|
id: "login-password",
|
|
1424
|
+
name: "password",
|
|
1423
1425
|
type: showPassword ? "text" : "password",
|
|
1424
1426
|
placeholder: "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",
|
|
1425
1427
|
value: password,
|
|
@@ -1448,8 +1450,8 @@ function LoginForm({ config }) {
|
|
|
1448
1450
|
className: cn("w-full", loading && "cursor-wait"),
|
|
1449
1451
|
disabled: loading,
|
|
1450
1452
|
children: loading ? /* @__PURE__ */ jsxs10(Fragment3, { children: [
|
|
1451
|
-
/* @__PURE__ */ jsx18(Loader2, { className: "h-4 w-4 animate-spin" }),
|
|
1452
|
-
"A entrar
|
|
1453
|
+
/* @__PURE__ */ jsx18(Loader2, { "aria-hidden": "true", className: "h-4 w-4 animate-spin" }),
|
|
1454
|
+
"A entrar\u2026"
|
|
1453
1455
|
] }) : "Entrar"
|
|
1454
1456
|
}
|
|
1455
1457
|
)
|
|
@@ -1865,7 +1867,8 @@ function ImageCropUpload({
|
|
|
1865
1867
|
type: "button",
|
|
1866
1868
|
onClick: () => inputRef.current?.click(),
|
|
1867
1869
|
className: "absolute inset-0 flex items-center justify-center rounded-full bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity cursor-pointer",
|
|
1868
|
-
|
|
1870
|
+
"aria-label": "Alterar foto",
|
|
1871
|
+
children: /* @__PURE__ */ jsx22(Camera, { "aria-hidden": "true", className: "h-5 w-5 text-white" })
|
|
1869
1872
|
}
|
|
1870
1873
|
)
|
|
1871
1874
|
] }),
|
|
@@ -1877,7 +1880,8 @@ function ImageCropUpload({
|
|
|
1877
1880
|
accept: "image/png,image/jpeg,image/webp",
|
|
1878
1881
|
onChange: handleFileSelect,
|
|
1879
1882
|
className: "hidden",
|
|
1880
|
-
disabled
|
|
1883
|
+
disabled,
|
|
1884
|
+
"aria-label": "Selecionar imagem"
|
|
1881
1885
|
}
|
|
1882
1886
|
),
|
|
1883
1887
|
!disabled && value && /* @__PURE__ */ jsxs14(
|
|
@@ -1889,7 +1893,7 @@ function ImageCropUpload({
|
|
|
1889
1893
|
onClick: handleRemove,
|
|
1890
1894
|
className: "text-destructive hover:text-destructive",
|
|
1891
1895
|
children: [
|
|
1892
|
-
/* @__PURE__ */ jsx22(Trash2, { className: "h-4 w-4 mr-1" }),
|
|
1896
|
+
/* @__PURE__ */ jsx22(Trash2, { "aria-hidden": "true", className: "h-4 w-4 mr-1" }),
|
|
1893
1897
|
"Remover"
|
|
1894
1898
|
]
|
|
1895
1899
|
}
|
|
@@ -1942,7 +1946,7 @@ function ImageCropUpload({
|
|
|
1942
1946
|
{
|
|
1943
1947
|
onClick: handleConfirmCrop,
|
|
1944
1948
|
disabled: isUploading || !croppedArea,
|
|
1945
|
-
children: isUploading ? "Enviando
|
|
1949
|
+
children: isUploading ? "Enviando\u2026" : "Confirmar"
|
|
1946
1950
|
}
|
|
1947
1951
|
)
|
|
1948
1952
|
] })
|
|
@@ -2246,25 +2250,25 @@ function UserFormDialog({
|
|
|
2246
2250
|
/* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
2247
2251
|
/* @__PURE__ */ jsxs16("div", { className: "space-y-2", children: [
|
|
2248
2252
|
/* @__PURE__ */ jsx24(Label, { htmlFor: "user-name", children: "Nome *" }),
|
|
2249
|
-
/* @__PURE__ */ jsx24(Input, { id: "user-name", value: name, onChange: (e) => setName(e.target.value), placeholder: "Nome", required: true, disabled: isPending })
|
|
2253
|
+
/* @__PURE__ */ jsx24(Input, { id: "user-name", name: "firstName", value: name, onChange: (e) => setName(e.target.value), placeholder: "Nome", required: true, disabled: isPending })
|
|
2250
2254
|
] }),
|
|
2251
2255
|
/* @__PURE__ */ jsxs16("div", { className: "space-y-2", children: [
|
|
2252
2256
|
/* @__PURE__ */ jsx24(Label, { htmlFor: "user-lastname", children: "Sobrenome" }),
|
|
2253
|
-
/* @__PURE__ */ jsx24(Input, { id: "user-lastname", value: lastName, onChange: (e) => setLastName(e.target.value), placeholder: "Sobrenome", disabled: isPending })
|
|
2257
|
+
/* @__PURE__ */ jsx24(Input, { id: "user-lastname", name: "lastName", value: lastName, onChange: (e) => setLastName(e.target.value), placeholder: "Sobrenome", disabled: isPending })
|
|
2254
2258
|
] })
|
|
2255
2259
|
] }),
|
|
2256
2260
|
/* @__PURE__ */ jsxs16("div", { className: "space-y-2", children: [
|
|
2257
2261
|
/* @__PURE__ */ jsx24(Label, { htmlFor: "user-email", children: "E-mail *" }),
|
|
2258
|
-
/* @__PURE__ */ jsx24(Input, { id: "user-email", type: "email", value: email, onChange: (e) => setEmail(e.target.value), placeholder: "email@exemplo.com", required: true, disabled: isPending })
|
|
2262
|
+
/* @__PURE__ */ jsx24(Input, { id: "user-email", name: "email", type: "email", autoComplete: "email", value: email, onChange: (e) => setEmail(e.target.value), placeholder: "email@exemplo.com", required: true, disabled: isPending })
|
|
2259
2263
|
] }),
|
|
2260
2264
|
!isEditing && /* @__PURE__ */ jsxs16("div", { className: "space-y-2", children: [
|
|
2261
2265
|
/* @__PURE__ */ jsx24(Label, { htmlFor: "user-password", children: "Senha" }),
|
|
2262
|
-
/* @__PURE__ */ jsx24(Input, { id: "user-password", type: "password", value: password, onChange: (e) => setPassword(e.target.value), placeholder: "Senha inicial (opcional)", disabled: isPending })
|
|
2266
|
+
/* @__PURE__ */ jsx24(Input, { id: "user-password", name: "password", type: "password", autoComplete: "new-password", value: password, onChange: (e) => setPassword(e.target.value), placeholder: "Senha inicial (opcional)", disabled: isPending })
|
|
2263
2267
|
] }),
|
|
2264
2268
|
/* @__PURE__ */ jsxs16("div", { className: "space-y-2", children: [
|
|
2265
|
-
/* @__PURE__ */ jsx24(Label, { children: "Perfil de acesso" }),
|
|
2269
|
+
/* @__PURE__ */ jsx24(Label, { htmlFor: "user-profile", children: "Perfil de acesso" }),
|
|
2266
2270
|
/* @__PURE__ */ jsxs16(Select, { value: profile, onValueChange: setProfile, disabled: isPending, children: [
|
|
2267
|
-
/* @__PURE__ */ jsx24(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx24(SelectValue, {}) }),
|
|
2271
|
+
/* @__PURE__ */ jsx24(SelectTrigger, { id: "user-profile", className: "w-full", children: /* @__PURE__ */ jsx24(SelectValue, {}) }),
|
|
2268
2272
|
/* @__PURE__ */ jsx24(SelectContent, { children: PROFILE_OPTIONS.map((opt) => /* @__PURE__ */ jsx24(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
2269
2273
|
] })
|
|
2270
2274
|
] }),
|
|
@@ -2272,7 +2276,7 @@ function UserFormDialog({
|
|
|
2272
2276
|
/* @__PURE__ */ jsxs16(DialogFooter, { children: [
|
|
2273
2277
|
/* @__PURE__ */ jsx24(Button, { type: "button", variant: "outline", onClick: () => onOpenChange(false), disabled: isPending, children: "Cancelar" }),
|
|
2274
2278
|
/* @__PURE__ */ jsxs16(Button, { type: "submit", disabled: isPending || !name.trim() || !email.trim(), children: [
|
|
2275
|
-
isPending && /* @__PURE__ */ jsx24(Loader22, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
2279
|
+
isPending && /* @__PURE__ */ jsx24(Loader22, { "aria-hidden": "true", className: "mr-2 h-4 w-4 animate-spin" }),
|
|
2276
2280
|
isEditing ? "Salvar" : "Criar"
|
|
2277
2281
|
] })
|
|
2278
2282
|
] })
|
|
@@ -2413,12 +2417,13 @@ function DataTable({
|
|
|
2413
2417
|
type: "button",
|
|
2414
2418
|
className: "flex items-center gap-1 hover:text-foreground -ml-1 px-1 py-0.5 rounded cursor-pointer select-none",
|
|
2415
2419
|
onClick: header.column.getToggleSortingHandler(),
|
|
2420
|
+
"aria-label": "Ordenar",
|
|
2416
2421
|
children: [
|
|
2417
2422
|
flexRender(header.column.columnDef.header, header.getContext()),
|
|
2418
2423
|
{
|
|
2419
|
-
asc: /* @__PURE__ */ jsx27(ArrowUp, { className: "h-3.5 w-3.5" }),
|
|
2420
|
-
desc: /* @__PURE__ */ jsx27(ArrowDown, { className: "h-3.5 w-3.5" })
|
|
2421
|
-
}[header.column.getIsSorted()] ?? /* @__PURE__ */ jsx27(ArrowUpDown, { className: "h-3.5 w-3.5 text-muted-foreground/50" })
|
|
2424
|
+
asc: /* @__PURE__ */ jsx27(ArrowUp, { "aria-hidden": "true", className: "h-3.5 w-3.5" }),
|
|
2425
|
+
desc: /* @__PURE__ */ jsx27(ArrowDown, { "aria-hidden": "true", className: "h-3.5 w-3.5" })
|
|
2426
|
+
}[header.column.getIsSorted()] ?? /* @__PURE__ */ jsx27(ArrowUpDown, { "aria-hidden": "true", className: "h-3.5 w-3.5 text-muted-foreground/50" })
|
|
2422
2427
|
]
|
|
2423
2428
|
}
|
|
2424
2429
|
) : flexRender(header.column.columnDef.header, header.getContext())
|
|
@@ -2453,7 +2458,7 @@ function DataTable({
|
|
|
2453
2458
|
}) })
|
|
2454
2459
|
] }) }),
|
|
2455
2460
|
showPagination && /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-between px-2", children: [
|
|
2456
|
-
/* @__PURE__ */ jsxs17("p", { className: "text-sm text-muted-foreground", children: [
|
|
2461
|
+
/* @__PURE__ */ jsxs17("p", { className: "text-sm text-muted-foreground tabular-nums", children: [
|
|
2457
2462
|
total,
|
|
2458
2463
|
" registro",
|
|
2459
2464
|
total !== 1 ? "s" : ""
|
|
@@ -2467,12 +2472,12 @@ function DataTable({
|
|
|
2467
2472
|
onClick: () => onPageChange(page - 1),
|
|
2468
2473
|
disabled: page <= 1,
|
|
2469
2474
|
children: [
|
|
2470
|
-
/* @__PURE__ */ jsx27(ChevronLeft, { className: "h-4 w-4" }),
|
|
2475
|
+
/* @__PURE__ */ jsx27(ChevronLeft, { "aria-hidden": "true", className: "h-4 w-4" }),
|
|
2471
2476
|
"Anterior"
|
|
2472
2477
|
]
|
|
2473
2478
|
}
|
|
2474
2479
|
),
|
|
2475
|
-
/* @__PURE__ */ jsxs17("span", { className: "text-sm text-muted-foreground", children: [
|
|
2480
|
+
/* @__PURE__ */ jsxs17("span", { className: "text-sm text-muted-foreground tabular-nums", children: [
|
|
2476
2481
|
page,
|
|
2477
2482
|
" de ",
|
|
2478
2483
|
totalPages
|
|
@@ -2486,7 +2491,7 @@ function DataTable({
|
|
|
2486
2491
|
disabled: page >= totalPages,
|
|
2487
2492
|
children: [
|
|
2488
2493
|
"Pr\xF3ximo",
|
|
2489
|
-
/* @__PURE__ */ jsx27(ChevronRight4, { className: "h-4 w-4" })
|
|
2494
|
+
/* @__PURE__ */ jsx27(ChevronRight4, { "aria-hidden": "true", className: "h-4 w-4" })
|
|
2490
2495
|
]
|
|
2491
2496
|
}
|
|
2492
2497
|
)
|
|
@@ -2682,12 +2687,12 @@ function useColumns(onEdit, onDelete, onResetPassword) {
|
|
|
2682
2687
|
{
|
|
2683
2688
|
accessorKey: "last_login",
|
|
2684
2689
|
header: "\xDAltimo acesso",
|
|
2685
|
-
cell: ({ row }) => /* @__PURE__ */ jsx29("span", { className: "text-muted-foreground text-sm", children: row.original.last_login ? format(new Date(row.original.last_login), "dd/MM/yyyy HH:mm", { locale: ptBR }) : "\u2014" })
|
|
2690
|
+
cell: ({ row }) => /* @__PURE__ */ jsx29("span", { className: "text-muted-foreground text-sm tabular-nums", children: row.original.last_login ? format(new Date(row.original.last_login), "dd/MM/yyyy HH:mm", { locale: ptBR }) : "\u2014" })
|
|
2686
2691
|
},
|
|
2687
2692
|
{
|
|
2688
2693
|
accessorKey: "datetime_add",
|
|
2689
2694
|
header: "Criado em",
|
|
2690
|
-
cell: ({ row }) => /* @__PURE__ */ jsx29("span", { className: "text-muted-foreground text-sm", children: format(new Date(row.original.datetime_add), "dd/MM/yyyy", { locale: ptBR }) })
|
|
2695
|
+
cell: ({ row }) => /* @__PURE__ */ jsx29("span", { className: "text-muted-foreground text-sm tabular-nums", children: format(new Date(row.original.datetime_add), "dd/MM/yyyy", { locale: ptBR }) })
|
|
2691
2696
|
},
|
|
2692
2697
|
{
|
|
2693
2698
|
id: "actions",
|
|
@@ -2695,15 +2700,15 @@ function useColumns(onEdit, onDelete, onResetPassword) {
|
|
|
2695
2700
|
enableSorting: false,
|
|
2696
2701
|
cell: ({ row }) => /* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-1", children: [
|
|
2697
2702
|
/* @__PURE__ */ jsxs19(Tooltip, { children: [
|
|
2698
|
-
/* @__PURE__ */ jsx29(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx29(Button, { variant: "ghost", size: "icon", className: "h-8 w-8", onClick: () => onResetPassword(row.original), children: /* @__PURE__ */ jsx29(Forward, { className: "h-4 w-4" }) }) }),
|
|
2703
|
+
/* @__PURE__ */ jsx29(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx29(Button, { variant: "ghost", size: "icon", className: "h-8 w-8", onClick: () => onResetPassword(row.original), "aria-label": "Reenviar senha", children: /* @__PURE__ */ jsx29(Forward, { className: "h-4 w-4" }) }) }),
|
|
2699
2704
|
/* @__PURE__ */ jsx29(TooltipContent, { children: "Resetar senha" })
|
|
2700
2705
|
] }),
|
|
2701
2706
|
/* @__PURE__ */ jsxs19(Tooltip, { children: [
|
|
2702
|
-
/* @__PURE__ */ jsx29(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx29(Button, { variant: "ghost", size: "icon", className: "h-8 w-8", onClick: () => onEdit(row.original), children: /* @__PURE__ */ jsx29(Pencil, { className: "h-4 w-4" }) }) }),
|
|
2707
|
+
/* @__PURE__ */ jsx29(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx29(Button, { variant: "ghost", size: "icon", className: "h-8 w-8", onClick: () => onEdit(row.original), "aria-label": "Editar", children: /* @__PURE__ */ jsx29(Pencil, { className: "h-4 w-4" }) }) }),
|
|
2703
2708
|
/* @__PURE__ */ jsx29(TooltipContent, { children: "Editar" })
|
|
2704
2709
|
] }),
|
|
2705
2710
|
/* @__PURE__ */ jsxs19(Tooltip, { children: [
|
|
2706
|
-
/* @__PURE__ */ jsx29(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx29(Button, { variant: "ghost", size: "icon", className: "h-8 w-8 text-destructive hover:text-destructive", onClick: () => onDelete(row.original.id), children: /* @__PURE__ */ jsx29(Trash22, { className: "h-4 w-4" }) }) }),
|
|
2711
|
+
/* @__PURE__ */ jsx29(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx29(Button, { variant: "ghost", size: "icon", className: "h-8 w-8 text-destructive hover:text-destructive", onClick: () => onDelete(row.original.id), "aria-label": "Excluir", children: /* @__PURE__ */ jsx29(Trash22, { className: "h-4 w-4" }) }) }),
|
|
2707
2712
|
/* @__PURE__ */ jsx29(TooltipContent, { children: "Excluir" })
|
|
2708
2713
|
] })
|
|
2709
2714
|
] })
|
|
@@ -2779,23 +2784,26 @@ function UsersPage({ config, renderPhones }) {
|
|
|
2779
2784
|
setEditUser(null);
|
|
2780
2785
|
setFormOpen(true);
|
|
2781
2786
|
}, size: "sm", children: [
|
|
2782
|
-
/* @__PURE__ */ jsx29(Plus, { className: "mr-2 h-4 w-4" }),
|
|
2787
|
+
/* @__PURE__ */ jsx29(Plus, { "aria-hidden": "true", className: "mr-2 h-4 w-4" }),
|
|
2783
2788
|
"Novo Usu\xE1rio"
|
|
2784
2789
|
] })
|
|
2785
2790
|
] }),
|
|
2786
2791
|
/* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-3", children: [
|
|
2787
2792
|
/* @__PURE__ */ jsxs19("div", { className: "relative flex-1 max-w-md", children: [
|
|
2788
|
-
/* @__PURE__ */ jsx29(Search, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
2793
|
+
/* @__PURE__ */ jsx29(Search, { "aria-hidden": "true", className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
2789
2794
|
/* @__PURE__ */ jsx29(
|
|
2790
2795
|
Input,
|
|
2791
2796
|
{
|
|
2792
|
-
placeholder: "Buscar por nome ou e-mail
|
|
2797
|
+
placeholder: "Buscar por nome ou e-mail\\u2026",
|
|
2793
2798
|
value: search,
|
|
2794
2799
|
onChange: (e) => {
|
|
2795
2800
|
setSearch(e.target.value);
|
|
2796
2801
|
setPage(1);
|
|
2797
2802
|
},
|
|
2798
|
-
className: "pl-9"
|
|
2803
|
+
className: "pl-9",
|
|
2804
|
+
name: "search",
|
|
2805
|
+
autoComplete: "off",
|
|
2806
|
+
"aria-label": "Buscar por nome ou e-mail"
|
|
2799
2807
|
}
|
|
2800
2808
|
)
|
|
2801
2809
|
] }),
|