chore: remover seções vazias de mudanças de código

Este commit remove seções vazias de mudanças de código do arquivo de
mudanças. Isso ajuda a manter o histórico de mudanças mais limpo e
organizado, facilitando a leitura e a compreensão das alterações
realizadas no projeto.
This commit is contained in:
Felipe Coutinho
2025-12-16 23:20:47 +00:00
parent 0767636eed
commit e7cb9c9db1
37 changed files with 1350 additions and 920 deletions

View File

@@ -1,9 +1,8 @@
"use client";
import { cn } from "@/lib/utils/ui";
import type { CalendarEvent } from "@/components/calendario/types";
import { EVENT_TYPE_STYLES } from "@/components/calendario/day-cell";
import type { CalendarEvent } from "@/components/calendario/types";
import { cn } from "@/lib/utils/ui";
const LEGEND_ITEMS: Array<{
type: CalendarEvent["type"];
@@ -16,17 +15,12 @@ const LEGEND_ITEMS: Array<{
export function CalendarLegend() {
return (
<div className="flex flex-wrap gap-3 rounded-lg border border-border/60 bg-muted/20 px-3 py-2 text-[11px] font-medium text-muted-foreground">
<div className="flex flex-wrap gap-3 rounded-sm border border-border/60 bg-muted/20 p-2 text-xs font-medium text-muted-foreground">
{LEGEND_ITEMS.map((item) => {
const style = EVENT_TYPE_STYLES[item.type];
return (
<span key={item.type} className="flex items-center gap-2">
<span
className={cn(
"size-2.5 rounded-full border border-black/10 dark:border-white/20",
style.dot
)}
/>
<span className={cn("size-3 rounded-full", style.dot)} />
{item.label}
</span>
);

View File

@@ -1,10 +1,10 @@
"use client";
import type { CalendarDay, CalendarEvent } from "@/components/calendario/types";
import { currencyFormatter } from "@/lib/lancamentos/formatting-helpers";
import { cn } from "@/lib/utils/ui";
import { RiAddLine } from "@remixicon/react";
import type { KeyboardEvent, MouseEvent } from "react";
import type { CalendarDay, CalendarEvent } from "@/components/calendario/types";
import { currencyFormatter } from "@/lib/lancamentos/formatting-helpers";
type DayCellProps = {
day: CalendarDay;
@@ -17,17 +17,18 @@ export const EVENT_TYPE_STYLES: Record<
{ wrapper: string; dot: string; accent?: string }
> = {
lancamento: {
wrapper: "bg-cyan-600 text-cyan-50 dark:bg-cyan-500/30 dark:text-cyan-200",
dot: "bg-cyan-600",
wrapper:
"bg-orange-100 text-orange-600 dark:bg-orange-800 dark:text-orange-50",
dot: "bg-orange-600",
},
boleto: {
wrapper: "bg-red-600 text-red-50 dark:bg-red-500/30 dark:text-red-200",
dot: "bg-red-600",
wrapper:
"bg-emerald-100 text-emerald-600 dark:bg-emerald-800 dark:text-emerald-50",
dot: "bg-emerald-600",
},
cartao: {
wrapper:
"bg-violet-600 text-violet-50 dark:bg-violet-500/30 dark:text-violet-200",
dot: "bg-violet-600",
wrapper: "bg-blue-100 text-blue-600 dark:bg-blue-800 dark:text-blue-50",
dot: "bg-blue-600",
},
};
@@ -82,11 +83,12 @@ const DayEventPreview = ({ event }: { event: CalendarEvent }) => {
return (
<div
className={cn(
"flex w-full items-center justify-between gap-2 rounded p-1 text-xs leading-tight",
"flex w-full items-center justify-between gap-2 rounded p-1 text-xs",
style.wrapper
)}
>
<div className="flex min-w-0">
<div className="flex min-w-0 items-center gap-1">
<span className={cn("size-1.5 rounded-full", style.dot)} />
<span className="truncate">{label}</span>
</div>
{complement ? (