update package

This commit is contained in:
2025-11-19 15:13:00 -03:00
parent a180e269f2
commit d37db405c8
51 changed files with 5870 additions and 2490 deletions

View File

@@ -10,8 +10,7 @@ import { Suspense } from 'react'
import { Await, NavLink, useParams, useRevalidator } from 'react-router'
import { toast } from 'sonner'
import { Abbr } from '@/components/abbr'
import { Abbr } from '@repo/ui/components/abbr'
import { Skeleton } from '@repo/ui/components/skeleton'
import {
AlertDialog,
@@ -180,8 +179,11 @@ function RevokeItem({ id }: { id: string }) {
<AlertDialogHeader>
<AlertDialogTitle>Tem certeza absoluta?</AlertDialogTitle>
<AlertDialogDescription>
Esta ação não pode ser desfeita. Isso revogará permanentemente os
privilégios deste gestor.
Esta ação não pode ser desfeita. Isso{' '}
<span className="font-bold">
revogará permanentemente os privilégios
</span>{' '}
deste gestor.
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter className="*:cursor-pointer">

View File

@@ -12,6 +12,8 @@ import {
import type { ComponentProps, MouseEvent } from 'react'
import { toast } from 'sonner'
import { Abbr } from '@repo/ui/components/abbr'
import { DataTableColumnHeader } from '@repo/ui/components/data-table'
import {
AlertDialog,
AlertDialogAction,
@@ -38,8 +40,6 @@ import { Progress } from '@repo/ui/components/ui/progress'
import { Spinner } from '@repo/ui/components/ui/spinner'
import { cn, initials } from '@repo/ui/lib/utils'
import { Abbr } from '@/components/abbr'
import { DataTableColumnHeader } from '@/components/data-table/column-header'
import { labels, statuses } from './data'
// This type is used to define the shape of our data.
@@ -384,8 +384,11 @@ function RemoveDedupItem({
<AlertDialogHeader>
<AlertDialogTitle>Tem certeza absoluta?</AlertDialogTitle>
<AlertDialogDescription>
Esta ação não pode ser desfeita. Isso remove a proteção contra
duplicação permanentemente desta matrícula.
Esta ação não pode ser desfeita. Isso{' '}
<span className="font-bold">
remove a proteção contra duplicação permanentemente
</span>{' '}
desta matrícula.
</AlertDialogDescription>
{daysRemaining && (
<AlertDialogDescription>
@@ -453,8 +456,11 @@ function CancelItem({
<AlertDialogHeader>
<AlertDialogTitle>Tem certeza absoluta?</AlertDialogTitle>
<AlertDialogDescription>
Esta ação não pode ser desfeita. Isso cancelar permanentemente a
matrícula deste colaborador.
Esta ação não pode ser desfeita. Isso{' '}
<span className="font-bold">
cancelar permanentemente a matrícula
</span>{' '}
deste colaborador.
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter className="*:cursor-pointer">

View File

@@ -16,10 +16,9 @@ import { Await, Link, Outlet, useParams, useSearchParams } from 'react-router'
import type { BookType } from 'xlsx'
import * as XLSX from 'xlsx'
import { DataTable, DataTableViewOptions } from '@/components/data-table'
import { RangeCalendarFilter } from '@/components/range-calendar-filter'
import { DataTable, DataTableViewOptions } from '@repo/ui/components/data-table'
import { FacetedFilter } from '@repo/ui/components/faceted-filter'
import { RangeCalendarFilter } from '@repo/ui/components/range-calendar-filter'
import { SearchForm } from '@repo/ui/components/search-form'
import { Skeleton } from '@repo/ui/components/skeleton'
import { Button } from '@repo/ui/components/ui/button'
@@ -32,6 +31,7 @@ import {
} from '@repo/ui/components/ui/dropdown-menu'
import { Kbd } from '@repo/ui/components/ui/kbd'
import { createSearch } from '@repo/util/meili'
import { columns, type Enrollment } from './columns'
import { headers, sortings, statuses } from './data'

View File

@@ -3,10 +3,10 @@ import type { Route } from './+types'
import { Suspense } from 'react'
import { Await } from 'react-router'
import { DataTable } from '@/components/data-table'
import { DataTable } from '@repo/ui/components/data-table'
import { Skeleton } from '@repo/ui/components/skeleton'
import { createSearch } from '@repo/util/meili'
import { columns, type Order } from './columns'
export function meta({}: Route.MetaArgs) {

View File

@@ -11,8 +11,8 @@ import {
import { NavLink, useParams } from 'react-router'
import { toast } from 'sonner'
import { Abbr } from '@/components/abbr'
import { useDataTable } from '@/components/data-table/data-table'
import { Abbr } from '@repo/ui/components/abbr'
import { useDataTable } from '@repo/ui/components/data-table'
import {
AlertDialog,
AlertDialogAction,
@@ -183,8 +183,11 @@ function UnlinkItem({ id }: { id: string }) {
<AlertDialogHeader>
<AlertDialogTitle>Tem certeza absoluta?</AlertDialogTitle>
<AlertDialogDescription>
Esta ação não pode ser desfeita. Isso removerá permanentemente o
vínculo deste colaborador.
Esta ação não pode ser desfeita. Isso{' '}
<span className="font-bold">
removerá permanentemente o vínculo
</span>{' '}
deste colaborador.
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter className="*:cursor-pointer">

View File

@@ -4,9 +4,7 @@ import { PlusIcon } from 'lucide-react'
import { Suspense } from 'react'
import { Await, Link, useSearchParams } from 'react-router'
import { DataTable } from '@/components/data-table'
import { columns, type User } from './columns'
import { DataTable } from '@repo/ui/components/data-table'
import { SearchForm } from '@repo/ui/components/search-form'
import { Skeleton } from '@repo/ui/components/skeleton'
import { Button } from '@repo/ui/components/ui/button'
@@ -23,6 +21,8 @@ export function meta({}: Route.MetaArgs) {
]
}
import { columns, type User } from './columns'
export async function loader({ params, context, request }: Route.LoaderArgs) {
const { searchParams } = new URL(request.url)
const { orgid } = params

View File

@@ -2,8 +2,7 @@ import type { Route } from './+types'
import { useLoaderData } from 'react-router'
import { DataTable } from '@/components/data-table'
import { columns, type Webhook } from './columns'
import { type Webhook } from './columns'
export function meta({}: Route.MetaArgs) {
return [{ title: 'Webhooks' }]
@@ -24,8 +23,6 @@ export default function Page() {
Adicione webhooks para sua organização.
</p>
</div>
<DataTable columns={columns} data={data} />
</>
)
}

View File

@@ -22,7 +22,7 @@ export const middleware: Route.MiddlewareFunction[] = [authMiddleware]
export async function loader({ params, context, request }: Route.ActionArgs) {
const user = context.get(userContext)
const rawCookie = request.headers.get('cookie')
const rawCookie = request.headers.get('cookie') || ''
const parsedCookies = cookie.parse(rawCookie)
const { sidebar_state } = parsedCookies