@mlw-packages/react-components 1.7.26 → 1.7.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -6976,13 +6976,13 @@ import { add, format } from "date-fns";
6976
6976
  // src/components/ui/picker/calendar.tsx
6977
6977
  import * as React37 from "react";
6978
6978
  import { DayPicker as DayPicker2 } from "react-day-picker";
6979
+ import { ptBR } from "date-fns/locale";
6979
6980
  import {
6980
6981
  CaretLeftIcon as CaretLeftIcon2,
6981
6982
  CaretRightIcon as CaretRightIcon5,
6982
6983
  XIcon as XIcon9,
6983
6984
  CalendarIcon
6984
6985
  } from "@phosphor-icons/react";
6985
- import { AnimatePresence as AnimatePresence7 } from "framer-motion";
6986
6986
  import { jsx as jsx55, jsxs as jsxs37 } from "react/jsx-runtime";
6987
6987
  function CalendarBase2({
6988
6988
  className,
@@ -6990,16 +6990,6 @@ function CalendarBase2({
6990
6990
  showOutsideDays = true,
6991
6991
  ...props
6992
6992
  }) {
6993
- const [month, setMonth] = React37.useState(
6994
- props.month || props.defaultMonth || /* @__PURE__ */ new Date()
6995
- );
6996
- const [direction, setDirection] = React37.useState(1);
6997
- const handleMonthChange = (newMonth) => {
6998
- const isNext = newMonth > month ? 1 : -1;
6999
- setDirection(isNext);
7000
- setMonth(newMonth);
7001
- props.onMonthChange?.(newMonth);
7002
- };
7003
6993
  return /* @__PURE__ */ jsx55(
7004
6994
  "div",
7005
6995
  {
@@ -7007,78 +6997,71 @@ function CalendarBase2({
7007
6997
  "rounded-md border bg-background p-3 overflow-hidden flex flex-col",
7008
6998
  className
7009
6999
  ),
7010
- children: /* @__PURE__ */ jsx55("div", { className: "relative flex-1 flex flex-col min-h-0", children: /* @__PURE__ */ jsx55(AnimatePresence7, { initial: false, mode: "wait", custom: direction, children: /* @__PURE__ */ jsxs37(
7011
- "div",
7000
+ children: /* @__PURE__ */ jsx55("div", { className: "relative flex-1 flex flex-col min-h-0", children: /* @__PURE__ */ jsx55(
7001
+ DayPicker2,
7012
7002
  {
7003
+ showOutsideDays,
7004
+ fixedWeeks: true,
7005
+ weekStartsOn: 1,
7006
+ locale: ptBR,
7007
+ navLayout: "around",
7013
7008
  className: "w-full h-full flex flex-col",
7014
- children: [
7015
- /* @__PURE__ */ jsx55("div", { className: "flex items-center justify-end mb-2 -mt-1" }),
7016
- /* @__PURE__ */ jsx55(
7017
- DayPicker2,
7018
- {
7019
- showOutsideDays,
7020
- month,
7021
- onMonthChange: handleMonthChange,
7022
- className: "w-full h-full flex flex-col",
7023
- classNames: {
7024
- months: "flex flex-col sm:flex-row gap-3 sm:gap-4 w-full",
7025
- month: "flex-1 min-w-0",
7026
- caption: "flex items-center justify-between gap-2 pr-1 min-h-[2.25rem] mb-2",
7027
- caption_label: "text-[clamp(0.85rem,1.4vw,1.125rem)] sm:text-[clamp(0.9rem,1.6vw,1.125rem)] font-semibold capitalize text-left",
7028
- nav: "flex items-center gap-2",
7029
- nav_button: cn(
7030
- buttonVariantsBase({ variant: "outline" }),
7031
- "h-8 w-8 sm:h-9 sm:w-9 md:h-10 md:w-10 flex items-center justify-center p-0 rounded-md transition-transform duration-150 ease-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary/40 active:scale-95"
7032
- ),
7033
- nav_button_previous: "",
7034
- nav_button_next: "",
7035
- table: "w-full min-w-0 flex-1 grid grid-rows-[auto_1fr] gap-2",
7036
- head_row: "grid grid-cols-7 gap-1 mb-1",
7037
- head_cell: "text-muted-foreground rounded-md font-semibold text-[clamp(0.575rem,1.2vw,0.75rem)] sm:text-[clamp(0.65rem,1.1vw,0.825rem)] text-center pb-1 uppercase tracking-wider",
7038
- row: "grid grid-cols-7 gap-1",
7039
- cell: cn(
7040
- "min-w-0 h-9 sm:h-10 md:h-10 p-0 relative flex items-center justify-center",
7041
- "[&:has([aria-selected].day-range-end)]:rounded-r-lg",
7042
- "[&:has([aria-selected].day-range-start)]:rounded-l-lg",
7043
- "[&:has([aria-selected].day-outside)]:bg-muted/50",
7044
- "[&:has([aria-selected])]:bg-muted"
7045
- ),
7046
- day: cn(
7047
- buttonVariantsBase({ variant: "ghost" }),
7048
- "w-full h-full p-0 m-0 flex items-center justify-center text-[clamp(0.775rem,1.2vw,0.95rem)] sm:text-sm",
7049
- "aria-selected:opacity-100 hover:bg-muted transition-all duration-150 ease-out active:scale-95"
7050
- ),
7051
- day_selected: "bg-primary text-primary-foreground hover:bg-primary/90 focus:bg-primary/90 font-semibold hover:text-white",
7052
- day_today: "bg-muted text-foreground font-bold ring-2 ring-primary/30 ring-inset",
7053
- day_outside: "text-muted-foreground/40 opacity-60 aria-selected:bg-muted/50 aria-selected:text-foreground",
7054
- day_disabled: "text-muted-foreground/30 opacity-40 cursor-not-allowed",
7055
- day_range_middle: "aria-selected:bg-muted aria-selected:text-foreground",
7056
- day_hidden: "invisible",
7057
- button: "p-0 m-0 border-0 outline-none focus:ring-0",
7058
- ...classNames
7059
- },
7060
- components: {
7061
- Chevron: ({ orientation }) => {
7062
- if (orientation === "left") {
7063
- return /* @__PURE__ */ jsx55(CaretLeftIcon2, { className: "h-4 w-4" });
7064
- }
7065
- return /* @__PURE__ */ jsx55(CaretRightIcon5, { className: "h-4 w-4" });
7066
- }
7067
- },
7068
- ...props
7009
+ classNames: {
7010
+ months: "flex flex-col sm:flex-row gap-3 sm:gap-4 w-full",
7011
+ month: "relative flex-1 min-w-0",
7012
+ month_caption: "flex items-center gap-2 min-h-[2.25rem] mb-4",
7013
+ caption_label: "text-[clamp(0.85rem,1.4vw,1.125rem)] sm:text-[clamp(0.9rem,1.6vw,1.125rem)] font-semibold capitalize",
7014
+ nav: "hidden",
7015
+ button_previous: cn(
7016
+ buttonVariantsBase({ variant: "outline" }),
7017
+ "h-8 w-8 flex items-center justify-center p-0 rounded-md transition-transform duration-150 ease-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary/40 active:scale-95 absolute right-11 top-0 z-10"
7018
+ ),
7019
+ button_next: cn(
7020
+ buttonVariantsBase({ variant: "outline" }),
7021
+ "h-8 w-8 flex items-center justify-center p-0 rounded-md transition-transform duration-150 ease-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary/40 active:scale-95 absolute right-0 top-0 z-10"
7022
+ ),
7023
+ month_grid: "w-full min-w-0 flex-1 grid grid-rows-[auto_1fr] gap-2",
7024
+ weekdays: "grid grid-cols-7 gap-1 mb-1",
7025
+ weekday: "text-muted-foreground rounded-md font-semibold text-[clamp(0.575rem,1.2vw,0.75rem)] sm:text-[clamp(0.65rem,1.1vw,0.825rem)] text-center pb-1 uppercase tracking-wider",
7026
+ week: "grid grid-cols-7 gap-1",
7027
+ day: cn(
7028
+ "min-w-0 h-9 sm:h-10 md:h-10 p-0 relative flex items-center justify-center",
7029
+ "[&:has([aria-selected].day-range-end)]:rounded-r-lg",
7030
+ "[&:has([aria-selected].day-range-start)]:rounded-l-lg",
7031
+ "[&:has([aria-selected].day-outside)]:bg-muted/50",
7032
+ "[&:has([aria-selected])]:bg-muted"
7033
+ ),
7034
+ day_button: cn(
7035
+ buttonVariantsBase({ variant: "ghost" }),
7036
+ "w-full h-full p-0 m-0 flex items-center justify-center text-[clamp(0.775rem,1.2vw,0.95rem)] sm:text-sm",
7037
+ "aria-selected:opacity-100 hover:bg-muted transition-all duration-150 ease-out active:scale-95"
7038
+ ),
7039
+ selected: "bg-primary text-primary-foreground hover:bg-primary/90 focus:bg-primary/90 font-semibold hover:text-white rounded-md",
7040
+ today: "bg-muted text-foreground font-bold ring-2 ring-primary/30 ring-inset rounded-md",
7041
+ outside: "text-muted-foreground/40 opacity-60 aria-selected:bg-muted/50 aria-selected:text-foreground",
7042
+ disabled: "text-muted-foreground/30 opacity-40 cursor-not-allowed",
7043
+ range_middle: "aria-selected:bg-muted aria-selected:text-foreground",
7044
+ hidden: "invisible",
7045
+ ...classNames
7046
+ },
7047
+ components: {
7048
+ Chevron: ({ orientation }) => {
7049
+ if (orientation === "left") {
7050
+ return /* @__PURE__ */ jsx55(CaretLeftIcon2, { className: "h-4 w-4" });
7069
7051
  }
7070
- )
7071
- ]
7072
- },
7073
- month.toISOString()
7074
- ) }) })
7052
+ return /* @__PURE__ */ jsx55(CaretRightIcon5, { className: "h-4 w-4" });
7053
+ }
7054
+ },
7055
+ ...props
7056
+ }
7057
+ ) })
7075
7058
  }
7076
7059
  );
7077
7060
  }
7078
7061
  CalendarBase2.displayName = "CalendarBase";
7079
7062
 
7080
7063
  // src/components/ui/picker/DateTimePicker.tsx
7081
- import { ptBR } from "date-fns/locale";
7064
+ import { ptBR as ptBR2 } from "date-fns/locale";
7082
7065
  import { useEffect as useEffect14, useState as useState16 } from "react";
7083
7066
  import { CalendarBlankIcon } from "@phosphor-icons/react";
7084
7067
 
@@ -7360,7 +7343,7 @@ function DateTimePicker({
7360
7343
  "truncate flex-1",
7361
7344
  !date && "text-muted-foreground"
7362
7345
  ),
7363
- children: date ? format(date, getDisplayFormat(), { locale: ptBR }) : "Selecione uma data"
7346
+ children: date ? format(date, getDisplayFormat(), { locale: ptBR2 }) : "Selecione uma data"
7364
7347
  }
7365
7348
  ),
7366
7349
  date && /* @__PURE__ */ jsx58(
@@ -7388,7 +7371,7 @@ function DateTimePicker({
7388
7371
  CalendarBase2,
7389
7372
  {
7390
7373
  mode: "single",
7391
- locale: ptBR,
7374
+ locale: ptBR2,
7392
7375
  selected: internalDate ?? void 0,
7393
7376
  onSelect: (d) => handleSelect(d ?? null),
7394
7377
  initialFocus: true,
@@ -7444,17 +7427,17 @@ import * as React38 from "react";
7444
7427
  import {
7445
7428
  DayPicker as DayPicker3
7446
7429
  } from "react-day-picker";
7447
- import ptBR2 from "date-fns/locale/pt-BR";
7430
+ import ptBR3 from "date-fns/locale/pt-BR";
7448
7431
  import { format as format2 } from "date-fns";
7449
7432
  import {
7450
7433
  CaretLeftIcon as CaretLeftIcon3,
7451
7434
  CaretRightIcon as CaretRightIcon6,
7452
7435
  CalendarBlankIcon as CalendarBlankIcon2
7453
7436
  } from "@phosphor-icons/react";
7454
- import { motion as motion11, AnimatePresence as AnimatePresence8 } from "framer-motion";
7437
+ import { motion as motion11, AnimatePresence as AnimatePresence7 } from "framer-motion";
7455
7438
  import { CalendarDotIcon } from "@phosphor-icons/react/dist/ssr";
7456
7439
  import { jsx as jsx59, jsxs as jsxs40 } from "react/jsx-runtime";
7457
- var dateFnsLocale = ptBR2?.default ?? ptBR2;
7440
+ var dateFnsLocale = ptBR3?.default ?? ptBR3;
7458
7441
  function RangePicker({
7459
7442
  value,
7460
7443
  onChange,
@@ -7527,7 +7510,7 @@ function RangePicker({
7527
7510
  }
7528
7511
  ),
7529
7512
  /* @__PURE__ */ jsx59(ErrorMessage_default, { error }),
7530
- /* @__PURE__ */ jsx59(AnimatePresence8, { children: open && /* @__PURE__ */ jsx59(
7513
+ /* @__PURE__ */ jsx59(AnimatePresence7, { children: open && /* @__PURE__ */ jsx59(
7531
7514
  PopoverContentBase,
7532
7515
  {
7533
7516
  asChild: true,
@@ -7556,43 +7539,50 @@ function RangePicker({
7556
7539
  onSelect: handleSelect,
7557
7540
  locale: dateFnsLocale,
7558
7541
  showOutsideDays: true,
7542
+ fixedWeeks: true,
7543
+ weekStartsOn: 1,
7544
+ navLayout: "around",
7559
7545
  fromDate: minDate,
7560
7546
  toDate: maxDate,
7561
7547
  className: "min-w-0 flex flex-col",
7562
7548
  classNames: {
7563
7549
  months: "flex flex-col sm:flex-row gap-3 sm:gap-4 w-full",
7564
- month: "flex-1 min-w-0",
7565
- caption: "flex items-center justify-between gap-2 pr-1 min-h-[2.25rem] mb-2",
7566
- caption_label: "text-[clamp(0.85rem,1.4vw,1.125rem)] sm:text-[clamp(0.9rem,1.6vw,1.125rem)] font-semibold capitalize text-left",
7567
- nav: "flex items-center gap-2",
7568
- nav_button: cn(
7550
+ month: "relative flex-1 min-w-0",
7551
+ month_caption: "flex items-center gap-2 min-h-[2.25rem] mb-4",
7552
+ caption_label: "text-[clamp(0.85rem,1.4vw,1.125rem)] sm:text-[clamp(0.9rem,1.6vw,1.125rem)] font-semibold capitalize",
7553
+ nav: "block",
7554
+ button_previous: cn(
7555
+ buttonVariantsBase({ variant: "outline" }),
7556
+ "h-8 w-8 flex items-center justify-center p-0 rounded-md transition-transform duration-150 ease-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary/40 active:scale-95 absolute right-11 top-0 z-10"
7557
+ ),
7558
+ button_next: cn(
7569
7559
  buttonVariantsBase({ variant: "outline" }),
7570
- "h-8 w-8 sm:h-9 sm:w-9 md:h-10 md:w-10 flex items-center justify-center p-0 rounded-md transition-transform duration-150 ease-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary/40 active:scale-95"
7560
+ "h-8 w-8 flex items-center justify-center p-0 rounded-md transition-transform duration-150 ease-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary/40 active:scale-95 absolute right-0 top-0 z-10"
7571
7561
  ),
7572
- nav_button_previous: "",
7573
- nav_button_next: "",
7574
- table: "w-full min-w-0 flex-1 grid grid-rows-[auto_1fr] gap-2",
7575
- head_row: "grid grid-cols-7 gap-1 mb-1",
7576
- head_cell: "text-muted-foreground rounded-md font-semibold text-[clamp(0.575rem,1.2vw,0.75rem)] sm:text-[clamp(0.65rem,1.1vw,0.825rem)] text-center pb-1 uppercase tracking-wider",
7577
- row: "grid grid-cols-7 gap-1",
7578
- cell: cn(
7579
- "min-w-0 h-9 p-0 relative flex items-center justify-center",
7580
- "[&:has([aria-selected].day-range-end)]:rounded-r-lg",
7581
- "[&:has([aria-selected].day-range-start)]:rounded-l-lg",
7562
+ month_grid: "w-full min-w-0 flex-1 grid grid-rows-[auto_1fr] gap-2",
7563
+ weekdays: "grid grid-cols-7 gap-1 mb-1",
7564
+ weekday: "text-muted-foreground rounded-md font-semibold text-[clamp(0.575rem,1.2vw,0.75rem)] sm:text-[clamp(0.65rem,1.1vw,0.825rem)] text-center pb-1 uppercase tracking-wider",
7565
+ week: "grid grid-cols-7 gap-1",
7566
+ day: cn(
7567
+ "min-w-0 h-9 sm:h-10 md:h-10 p-0 relative flex items-center justify-center",
7568
+ "[&:has([aria-selected].range-end)]:rounded-r-lg",
7569
+ "[&:has([aria-selected].range-start)]:rounded-l-lg",
7582
7570
  "[&:has([aria-selected].day-outside)]:bg-muted/50",
7583
7571
  "[&:has([aria-selected])]:bg-muted"
7584
7572
  ),
7585
- day: cn(
7573
+ day_button: cn(
7586
7574
  buttonVariantsBase({ variant: "ghost" }),
7587
7575
  "w-full h-full p-0 m-0 flex items-center justify-center text-[clamp(0.775rem,1.2vw,0.95rem)] sm:text-sm",
7588
- "aria-selected:opacity-100 hover:bg-muted transition-all duration-150 ease-out active:scale-95"
7576
+ "aria-selected:opacity-100 transition-all duration-150 ease-out active:scale-95 hover:bg-background/50 hover:text-primary rounded-none "
7589
7577
  ),
7590
- day_selected: "bg-primary text-primary-foreground hover:bg-primary/90 focus:bg-primary/90 font-semibold hover:text-white",
7591
- day_today: "bg-muted text-foreground font-bold ring-2 ring-primary/30 ring-inset",
7592
- day_outside: "text-muted-foreground/40 opacity-60 aria-selected:bg-muted/50 aria-selected:text-foreground",
7593
- day_disabled: "text-muted-foreground/30 opacity-40 cursor-not-allowed",
7594
- day_range_middle: "aria-selected:bg-muted aria-selected:text-foreground",
7595
- day_hidden: "invisible"
7578
+ selected: "bg-primary text-primary-foreground font-semibold hover:text-white",
7579
+ today: "bg-muted text-foreground font-bold ring-2 ring-primary/30 ring-inset rounded-md",
7580
+ outside: "day-outside text-muted-foreground/40 opacity-60 aria-selected:bg-muted/50 aria-selected:text-foreground",
7581
+ disabled: "text-muted-foreground/30 opacity-40 cursor-not-allowed",
7582
+ range_start: "range-start rounded-l-lg aria-selected:bg-primary aria-selected:text-primary-foreground",
7583
+ range_end: "range-end rounded-r-lg aria-selected:bg-primary aria-selected:text-primary-foreground",
7584
+ range_middle: "range-middle rounded-none aria-selected:bg-muted aria-selected:text-foreground",
7585
+ hidden: "invisible"
7596
7586
  },
7597
7587
  components: {
7598
7588
  Chevron: ({ orientation }) => {
@@ -7675,7 +7665,7 @@ function RangePicker({
7675
7665
  RangePicker.displayName = "RangePicker";
7676
7666
 
7677
7667
  // src/components/ui/picker/TimePicker.tsx
7678
- import { motion as motion12, AnimatePresence as AnimatePresence9 } from "framer-motion";
7668
+ import { motion as motion12, AnimatePresence as AnimatePresence8 } from "framer-motion";
7679
7669
  import * as React40 from "react";
7680
7670
 
7681
7671
  // src/components/ui/picker/TimePickerInput.tsx
@@ -8098,7 +8088,7 @@ function TimePicker({
8098
8088
  )
8099
8089
  }
8100
8090
  ),
8101
- /* @__PURE__ */ jsx61(AnimatePresence9, { children: !hideSeconds && /* @__PURE__ */ jsx61(Fragment5, { children: /* @__PURE__ */ jsx61(
8091
+ /* @__PURE__ */ jsx61(AnimatePresence8, { children: !hideSeconds && /* @__PURE__ */ jsx61(Fragment5, { children: /* @__PURE__ */ jsx61(
8102
8092
  motion12.div,
8103
8093
  {
8104
8094
  variants: itemVariants2,
@@ -8132,7 +8122,7 @@ import {
8132
8122
  endOfMonth,
8133
8123
  eachDayOfInterval
8134
8124
  } from "date-fns";
8135
- import { ptBR as ptBR3 } from "date-fns/locale";
8125
+ import { ptBR as ptBR4 } from "date-fns/locale";
8136
8126
  import { useMemo as useMemo6 } from "react";
8137
8127
  import { CalendarIcon as CalendarIcon2 } from "@phosphor-icons/react";
8138
8128
  import { twMerge as twMerge2 } from "tailwind-merge";
@@ -8197,7 +8187,7 @@ function Agenda({
8197
8187
  "data-today": isToday(day) || void 0,
8198
8188
  children: [
8199
8189
  (() => {
8200
- const s = format3(day, "d MMM, EEEE", { locale: ptBR3 });
8190
+ const s = format3(day, "d MMM, EEEE", { locale: ptBR4 });
8201
8191
  return s.split(" ").map((w) => w ? w[0].toUpperCase() + w.slice(1) : w).join(" ");
8202
8192
  })(),
8203
8193
  isToday(day) ? " - Hoje" : ""
@@ -8636,7 +8626,7 @@ function addHoursToDateAgenda(date, hours) {
8636
8626
 
8637
8627
  // src/components/ui/event-calendar-view/hooks/use-current-time-indicator.ts
8638
8628
  import { endOfWeek, isSameDay as isSameDay2, isWithinInterval, startOfWeek } from "date-fns";
8639
- import { ptBR as ptBR4 } from "date-fns/locale";
8629
+ import { ptBR as ptBR5 } from "date-fns/locale";
8640
8630
  import { useEffect as useEffect16, useState as useState19 } from "react";
8641
8631
  function useCurrentTimeIndicatorAgenda(currentDate, view) {
8642
8632
  const [currentTimePosition, setCurrentTimePosition] = useState19(0);
@@ -8654,8 +8644,8 @@ function useCurrentTimeIndicatorAgenda(currentDate, view) {
8654
8644
  if (view === "day") {
8655
8645
  isCurrentTimeVisible = isSameDay2(now, currentDate);
8656
8646
  } else if (view === "week") {
8657
- const startOfWeekDate = startOfWeek(currentDate, { locale: ptBR4 });
8658
- const endOfWeekDate = endOfWeek(currentDate, { locale: ptBR4 });
8647
+ const startOfWeekDate = startOfWeek(currentDate, { locale: ptBR5 });
8648
+ const endOfWeekDate = endOfWeek(currentDate, { locale: ptBR5 });
8659
8649
  isCurrentTimeVisible = isWithinInterval(now, {
8660
8650
  end: endOfWeekDate,
8661
8651
  start: startOfWeekDate
@@ -9255,7 +9245,7 @@ import {
9255
9245
  subMonths,
9256
9246
  subWeeks
9257
9247
  } from "date-fns";
9258
- import { ptBR as ptBR5 } from "date-fns/locale";
9248
+ import { ptBR as ptBR6 } from "date-fns/locale";
9259
9249
  import React42, { useMemo as useMemo10, useState as useState21 } from "react";
9260
9250
  import { toast as toast2 } from "sonner";
9261
9251
  import { CaretLeftIcon as CaretLeftIcon5, CaretRightIcon as CaretRightIcon8 } from "@phosphor-icons/react";
@@ -9520,7 +9510,7 @@ function EventAgenda({
9520
9510
  onEventUpdate?.(updatedEvent);
9521
9511
  const startDate = new Date(updatedEvent.start);
9522
9512
  toast2(`Evento "${updatedEvent.title}" movido`, {
9523
- description: format6(startDate, "d 'de' MMMM 'de' yyyy", { locale: ptBR5 }),
9513
+ description: format6(startDate, "d 'de' MMMM 'de' yyyy", { locale: ptBR6 }),
9524
9514
  position: "bottom-left"
9525
9515
  });
9526
9516
  };
@@ -9537,23 +9527,23 @@ function EventAgenda({
9537
9527
  const viewTitle = useMemo10(() => {
9538
9528
  const capitalize = (s) => s ? s.charAt(0).toUpperCase() + s.slice(1) : s;
9539
9529
  if (view === "month")
9540
- return capitalize(format6(currentDate, "MMMM yyyy", { locale: ptBR5 }));
9530
+ return capitalize(format6(currentDate, "MMMM yyyy", { locale: ptBR6 }));
9541
9531
  if (view === "week") {
9542
9532
  const start = startOfWeek2(currentDate, { weekStartsOn: 1 });
9543
9533
  const end = endOfWeek2(currentDate, { weekStartsOn: 1 });
9544
9534
  if (isSameMonth(start, end))
9545
- return capitalize(format6(start, "MMMM yyyy", { locale: ptBR5 }));
9546
- const s1 = capitalize(format6(start, "MMM", { locale: ptBR5 }));
9547
- const s2 = capitalize(format6(end, "MMM yyyy", { locale: ptBR5 }));
9535
+ return capitalize(format6(start, "MMMM yyyy", { locale: ptBR6 }));
9536
+ const s1 = capitalize(format6(start, "MMM", { locale: ptBR6 }));
9537
+ const s2 = capitalize(format6(end, "MMM yyyy", { locale: ptBR6 }));
9548
9538
  return `${s1} - ${s2}`;
9549
9539
  }
9550
9540
  if (view === "day")
9551
- return format6(currentDate, "d 'de' MMMM 'de' yyyy", { locale: ptBR5 });
9541
+ return format6(currentDate, "d 'de' MMMM 'de' yyyy", { locale: ptBR6 });
9552
9542
  if (view === "agenda") {
9553
9543
  const start = currentDate;
9554
- return capitalize(format6(start, "MMMM yyyy", { locale: ptBR5 }));
9544
+ return capitalize(format6(start, "MMMM yyyy", { locale: ptBR6 }));
9555
9545
  }
9556
- return capitalize(format6(currentDate, "MMMM yyyy", { locale: ptBR5 }));
9546
+ return capitalize(format6(currentDate, "MMMM yyyy", { locale: ptBR6 }));
9557
9547
  }, [currentDate, view]);
9558
9548
  const selectItems = ["month", "week", "day", "agenda"].map((v) => ({
9559
9549
  label: viewLabel(v),
@@ -9761,7 +9751,7 @@ import {
9761
9751
  startOfMonth as startOfMonth2,
9762
9752
  startOfWeek as startOfWeek3
9763
9753
  } from "date-fns";
9764
- import { ptBR as ptBR6 } from "date-fns/locale";
9754
+ import { ptBR as ptBR7 } from "date-fns/locale";
9765
9755
  import { useEffect as useEffect18, useMemo as useMemo13, useState as useState23 } from "react";
9766
9756
  import { twMerge as twMerge3 } from "tailwind-merge";
9767
9757
  import { jsx as jsx70, jsxs as jsxs50 } from "react/jsx-runtime";
@@ -9781,7 +9771,7 @@ function MonthViewAgenda({
9781
9771
  const weekdays = useMemo13(() => {
9782
9772
  return Array.from({ length: 7 }).map((_, i) => {
9783
9773
  const date = addDays2(startOfWeek3(/* @__PURE__ */ new Date(), { weekStartsOn: 0 }), i);
9784
- const short = format7(date, "EEE", { locale: ptBR6 });
9774
+ const short = format7(date, "EEE", { locale: ptBR7 });
9785
9775
  return short.charAt(0).toUpperCase() + short.slice(1);
9786
9776
  });
9787
9777
  }, []);
@@ -9945,7 +9935,7 @@ function MonthViewAgenda({
9945
9935
  "aria-label": `Show ${remainingCount} more events on ${format7(
9946
9936
  day,
9947
9937
  "PPP",
9948
- { locale: ptBR6 }
9938
+ { locale: ptBR7 }
9949
9939
  )}`,
9950
9940
  children: [
9951
9941
  /* @__PURE__ */ jsxs50("span", { className: "font-medium", children: [
@@ -9965,7 +9955,7 @@ function MonthViewAgenda({
9965
9955
  "--event-height": `${EventHeightAgenda}px`
9966
9956
  },
9967
9957
  children: /* @__PURE__ */ jsxs50("div", { className: "space-y-2", children: [
9968
- /* @__PURE__ */ jsx70("div", { className: "font-medium text-sm", children: format7(day, "EEE d", { locale: ptBR6 }) }),
9958
+ /* @__PURE__ */ jsx70("div", { className: "font-medium text-sm", children: format7(day, "EEE d", { locale: ptBR7 }) }),
9969
9959
  /* @__PURE__ */ jsx70("div", { className: "space-y-1", children: sortEventsAgenda(allEvents).map((event) => {
9970
9960
  const eventStart = getEventStartDate(event) ?? getEventEndDate(event) ?? /* @__PURE__ */ new Date();
9971
9961
  const eventEnd = getEventEndDate(event) ?? getEventStartDate(event) ?? /* @__PURE__ */ new Date();
@@ -10029,7 +10019,7 @@ import {
10029
10019
  startOfDay as startOfDay2,
10030
10020
  startOfWeek as startOfWeek4
10031
10021
  } from "date-fns";
10032
- import { ptBR as ptBR7 } from "date-fns/locale";
10022
+ import { ptBR as ptBR8 } from "date-fns/locale";
10033
10023
  import { useMemo as useMemo14 } from "react";
10034
10024
 
10035
10025
  // src/components/ui/event-calendar/constants.ts
@@ -10290,11 +10280,11 @@ function WeekViewAgenda({
10290
10280
  "data-today": isToday3(day) || void 0,
10291
10281
  children: [
10292
10282
  /* @__PURE__ */ jsxs51("span", { "aria-hidden": "true", className: "sm:hidden", children: [
10293
- format8(day, "EEE", { locale: ptBR7 })[0],
10283
+ format8(day, "EEE", { locale: ptBR8 })[0],
10294
10284
  " ",
10295
- format8(day, "d", { locale: ptBR7 })
10285
+ format8(day, "d", { locale: ptBR8 })
10296
10286
  ] }),
10297
- /* @__PURE__ */ jsx72("span", { className: "max-sm:hidden", children: format8(day, "EEE dd", { locale: ptBR7 }) })
10287
+ /* @__PURE__ */ jsx72("span", { className: "max-sm:hidden", children: format8(day, "EEE dd", { locale: ptBR8 }) })
10298
10288
  ]
10299
10289
  },
10300
10290
  day.toString()
@@ -10455,7 +10445,7 @@ function WeekViewAgenda({
10455
10445
 
10456
10446
  // src/components/ui/event-calendar/AgendaView.tsx
10457
10447
  import { addDays as addDays3, format as format9, isToday as isToday4 } from "date-fns";
10458
- import { ptBR as ptBR8 } from "date-fns/locale";
10448
+ import { ptBR as ptBR9 } from "date-fns/locale";
10459
10449
  import { useMemo as useMemo15 } from "react";
10460
10450
  import { CalendarIcon as CalendarIcon3 } from "@phosphor-icons/react";
10461
10451
  import { Fragment as Fragment9, jsx as jsx73, jsxs as jsxs52 } from "react/jsx-runtime";
@@ -10513,7 +10503,7 @@ function AgendaView({
10513
10503
  className: "-top-3 absolute left-0 flex h-6 items-center bg-background pe-4 text-[10px] uppercase data-today:font-medium sm:pe-4 sm:text-xs",
10514
10504
  "data-today": isToday4(day) || void 0,
10515
10505
  children: (() => {
10516
- const s = format9(day, "d MMM, EEEE", { locale: ptBR8 });
10506
+ const s = format9(day, "d MMM, EEEE", { locale: ptBR9 });
10517
10507
  return s.split(" ").map((w) => w ? w[0].toUpperCase() + w.slice(1) : w).join(" ");
10518
10508
  })()
10519
10509
  }
@@ -11173,7 +11163,7 @@ import {
11173
11163
  subMonths as subMonths2,
11174
11164
  subWeeks as subWeeks2
11175
11165
  } from "date-fns";
11176
- import { ptBR as ptBR9 } from "date-fns/locale";
11166
+ import { ptBR as ptBR10 } from "date-fns/locale";
11177
11167
  import { useEffect as useEffect19, useMemo as useMemo17, useState as useState27, useCallback as useCallback8 } from "react";
11178
11168
  import { toast as toast3 } from "sonner";
11179
11169
  import {
@@ -11319,7 +11309,7 @@ function EventCalendar({
11319
11309
  new Date(event.start ?? event.attend_date ?? event.end ?? Date.now()),
11320
11310
  "d 'de' MMMM 'de' yyyy",
11321
11311
  {
11322
- locale: ptBR9
11312
+ locale: ptBR10
11323
11313
  }
11324
11314
  ),
11325
11315
  position: "bottom-left"
@@ -11333,7 +11323,7 @@ function EventCalendar({
11333
11323
  description: format11(
11334
11324
  new Date(event.start ?? event.attend_date ?? event.end ?? Date.now()),
11335
11325
  "d 'de' MMMM 'de' yyyy",
11336
- { locale: ptBR9 }
11326
+ { locale: ptBR10 }
11337
11327
  ),
11338
11328
  position: "bottom-left"
11339
11329
  });
@@ -11353,7 +11343,7 @@ function EventCalendar({
11353
11343
  deletedEvent.start ?? deletedEvent.attend_date ?? deletedEvent.end ?? Date.now()
11354
11344
  ),
11355
11345
  "d 'de' MMMM 'de' yyyy",
11356
- { locale: ptBR9 }
11346
+ { locale: ptBR10 }
11357
11347
  ),
11358
11348
  position: "bottom-left"
11359
11349
  });
@@ -11367,7 +11357,7 @@ function EventCalendar({
11367
11357
  updatedEvent.start ?? updatedEvent.attend_date ?? updatedEvent.end ?? Date.now()
11368
11358
  ),
11369
11359
  "d 'de' MMMM 'de' yyyy",
11370
- { locale: ptBR9 }
11360
+ { locale: ptBR10 }
11371
11361
  ),
11372
11362
  position: "bottom-left"
11373
11363
  });
@@ -11375,25 +11365,25 @@ function EventCalendar({
11375
11365
  const viewTitle = useMemo17(() => {
11376
11366
  const capitalize = (s) => s && s.length > 0 ? s.charAt(0).toUpperCase() + s.slice(1) : s;
11377
11367
  if (view === "month") {
11378
- return capitalize(format11(currentDate, "MMMM yyyy", { locale: ptBR9 }));
11368
+ return capitalize(format11(currentDate, "MMMM yyyy", { locale: ptBR10 }));
11379
11369
  }
11380
11370
  if (view === "week") {
11381
11371
  const start = startOfWeek5(currentDate, { weekStartsOn: 1 });
11382
11372
  const end = endOfWeek5(currentDate, { weekStartsOn: 1 });
11383
11373
  if (isSameMonth3(start, end)) {
11384
- return capitalize(format11(start, "MMMM yyyy", { locale: ptBR9 }));
11374
+ return capitalize(format11(start, "MMMM yyyy", { locale: ptBR10 }));
11385
11375
  }
11386
- const s1 = capitalize(format11(start, "MMM", { locale: ptBR9 }));
11387
- const s2 = capitalize(format11(end, "MMM yyyy", { locale: ptBR9 }));
11376
+ const s1 = capitalize(format11(start, "MMM", { locale: ptBR10 }));
11377
+ const s2 = capitalize(format11(end, "MMM yyyy", { locale: ptBR10 }));
11388
11378
  return `${s1} - ${s2}`;
11389
11379
  }
11390
11380
  if (view === "day") {
11391
- const dayNum = format11(currentDate, "d", { locale: ptBR9 });
11392
- const month = capitalize(format11(currentDate, "MMMM", { locale: ptBR9 }));
11393
- const year = format11(currentDate, "yyyy", { locale: ptBR9 });
11381
+ const dayNum = format11(currentDate, "d", { locale: ptBR10 });
11382
+ const month = capitalize(format11(currentDate, "MMMM", { locale: ptBR10 }));
11383
+ const year = format11(currentDate, "yyyy", { locale: ptBR10 });
11394
11384
  const short = `${dayNum} de ${month} de ${year}`;
11395
11385
  const long = `${format11(currentDate, "EEE", {
11396
- locale: ptBR9
11386
+ locale: ptBR10
11397
11387
  })}, ${dayNum} de ${month} de ${year}`;
11398
11388
  return /* @__PURE__ */ jsxs55(Fragment10, { children: [
11399
11389
  /* @__PURE__ */ jsx78("span", { "aria-hidden": "true", className: "min-[480px]:hidden", children: short }),
@@ -11405,13 +11395,13 @@ function EventCalendar({
11405
11395
  const start = currentDate;
11406
11396
  const end = addDays4(currentDate, AgendaDaysToShow - 1);
11407
11397
  if (isSameMonth3(start, end)) {
11408
- return capitalize(format11(start, "MMMM yyyy", { locale: ptBR9 }));
11398
+ return capitalize(format11(start, "MMMM yyyy", { locale: ptBR10 }));
11409
11399
  }
11410
- const s1 = capitalize(format11(start, "MMM", { locale: ptBR9 }));
11411
- const s2 = capitalize(format11(end, "MMM yyyy", { locale: ptBR9 }));
11400
+ const s1 = capitalize(format11(start, "MMM", { locale: ptBR10 }));
11401
+ const s2 = capitalize(format11(end, "MMM yyyy", { locale: ptBR10 }));
11412
11402
  return `${s1} - ${s2}`;
11413
11403
  }
11414
- return capitalize(format11(currentDate, "MMMM yyyy", { locale: ptBR9 }));
11404
+ return capitalize(format11(currentDate, "MMMM yyyy", { locale: ptBR10 }));
11415
11405
  }, [currentDate, view]);
11416
11406
  const calendarContent = /* @__PURE__ */ jsxs55(Fragment10, { children: [
11417
11407
  /* @__PURE__ */ jsxs55(
@@ -11630,7 +11620,7 @@ import { format as format12, isBefore as isBefore2 } from "date-fns";
11630
11620
  import { useCallback as useCallback9, useEffect as useEffect20, useMemo as useMemo18, useState as useState28 } from "react";
11631
11621
  import { RadioGroup as RadioGroup3, RadioGroupItem } from "@radix-ui/react-radio-group";
11632
11622
  import { motion as motion13 } from "framer-motion";
11633
- import { ptBR as ptBR10 } from "date-fns/locale";
11623
+ import { ptBR as ptBR11 } from "date-fns/locale";
11634
11624
  import { CalendarIcon as CalendarIcon5, TrashIcon as TrashIcon3 } from "@phosphor-icons/react";
11635
11625
  import { jsx as jsx79, jsxs as jsxs56 } from "react/jsx-runtime";
11636
11626
  function EventDialog({
@@ -11697,7 +11687,7 @@ function EventDialog({
11697
11687
  const formattedMinute = minute.toString().padStart(2, "0");
11698
11688
  const value = `${formattedHour}:${formattedMinute}`;
11699
11689
  const date = new Date(2e3, 0, 1, hour, minute);
11700
- const label = format12(date, "HH:mm", { locale: ptBR10 });
11690
+ const label = format12(date, "HH:mm", { locale: ptBR11 });
11701
11691
  options.push({ label, value });
11702
11692
  }
11703
11693
  }
@@ -11874,7 +11864,7 @@ function EventDialog({
11874
11864
  "truncate",
11875
11865
  !startDate && "text-muted-foreground"
11876
11866
  ),
11877
- children: startDate ? format12(startDate, "PPP", { locale: ptBR10 }) : "Escolher data"
11867
+ children: startDate ? format12(startDate, "PPP", { locale: ptBR11 }) : "Escolher data"
11878
11868
  }
11879
11869
  ),
11880
11870
  /* @__PURE__ */ jsx79(
@@ -11953,7 +11943,7 @@ function EventDialog({
11953
11943
  "truncate",
11954
11944
  !endDate && "text-muted-foreground"
11955
11945
  ),
11956
- children: endDate ? format12(endDate, "PPP", { locale: ptBR10 }) : "Escolher data"
11946
+ children: endDate ? format12(endDate, "PPP", { locale: ptBR11 }) : "Escolher data"
11957
11947
  }
11958
11948
  ),
11959
11949
  /* @__PURE__ */ jsx79(
@@ -12399,7 +12389,7 @@ function EventItem({
12399
12389
 
12400
12390
  // src/components/ui/event-calendar/EventsPopUp.tsx
12401
12391
  import { format as format14, isSameDay as isSameDay7 } from "date-fns";
12402
- import { ptBR as ptBR11 } from "date-fns/locale";
12392
+ import { ptBR as ptBR12 } from "date-fns/locale";
12403
12393
  import { useEffect as useEffect21, useMemo as useMemo20, useRef as useRef13 } from "react";
12404
12394
  import { motion as motion14 } from "framer-motion";
12405
12395
  import { XIcon as XIcon11 } from "@phosphor-icons/react";
@@ -12469,9 +12459,9 @@ function EventsPopup({
12469
12459
  children: [
12470
12460
  /* @__PURE__ */ jsxs58("div", { className: "sticky top-0 flex items-center justify-between border-b bg-background p-3", children: [
12471
12461
  /* @__PURE__ */ jsx81("h3", { className: "font-medium", children: (() => {
12472
- const dayNum = format14(date, "d", { locale: ptBR11 });
12473
- const month = format14(date, "MMMM", { locale: ptBR11 });
12474
- const year = format14(date, "yyyy", { locale: ptBR11 });
12462
+ const dayNum = format14(date, "d", { locale: ptBR12 });
12463
+ const month = format14(date, "MMMM", { locale: ptBR12 });
12464
+ const year = format14(date, "yyyy", { locale: ptBR12 });
12475
12465
  const monthCap = month.charAt(0).toUpperCase() + month.slice(1);
12476
12466
  return `${dayNum} de ${monthCap} de ${year}`;
12477
12467
  })() }),
@@ -12518,7 +12508,7 @@ function EventsPopup({
12518
12508
 
12519
12509
  // src/components/ui/event-calendar/hooks/use-current-time-indicator.ts
12520
12510
  import { endOfWeek as endOfWeek6, isSameDay as isSameDay8, isWithinInterval as isWithinInterval2, startOfWeek as startOfWeek6 } from "date-fns";
12521
- import { ptBR as ptBR12 } from "date-fns/locale";
12511
+ import { ptBR as ptBR13 } from "date-fns/locale";
12522
12512
  import { useEffect as useEffect22, useState as useState29 } from "react";
12523
12513
  function useCurrentTimeIndicator(currentDate, view) {
12524
12514
  const [currentTimePosition, setCurrentTimePosition] = useState29(0);
@@ -12536,8 +12526,8 @@ function useCurrentTimeIndicator(currentDate, view) {
12536
12526
  if (view === "day") {
12537
12527
  isCurrentTimeVisible = isSameDay8(now, currentDate);
12538
12528
  } else if (view === "week") {
12539
- const startOfWeekDate = startOfWeek6(currentDate, { locale: ptBR12 });
12540
- const endOfWeekDate = endOfWeek6(currentDate, { locale: ptBR12 });
12529
+ const startOfWeekDate = startOfWeek6(currentDate, { locale: ptBR13 });
12530
+ const endOfWeekDate = endOfWeek6(currentDate, { locale: ptBR13 });
12541
12531
  isCurrentTimeVisible = isWithinInterval2(now, {
12542
12532
  end: endOfWeekDate,
12543
12533
  start: startOfWeekDate
@@ -12612,7 +12602,7 @@ import {
12612
12602
  startOfMonth as startOfMonth3,
12613
12603
  startOfWeek as startOfWeek7
12614
12604
  } from "date-fns";
12615
- import { ptBR as ptBR13 } from "date-fns/locale";
12605
+ import { ptBR as ptBR14 } from "date-fns/locale";
12616
12606
  import { useEffect as useEffect23, useMemo as useMemo22, useState as useState31 } from "react";
12617
12607
  import { jsx as jsx82, jsxs as jsxs59 } from "react/jsx-runtime";
12618
12608
  function MonthView({
@@ -12631,7 +12621,7 @@ function MonthView({
12631
12621
  const weekdays = useMemo22(() => {
12632
12622
  return Array.from({ length: 7 }).map((_, i) => {
12633
12623
  const date = addDays5(startOfWeek7(/* @__PURE__ */ new Date(), { weekStartsOn: 0 }), i);
12634
- const short = format15(date, "EEE", { locale: ptBR13 });
12624
+ const short = format15(date, "EEE", { locale: ptBR14 });
12635
12625
  return short.charAt(0).toUpperCase() + short.slice(1);
12636
12626
  });
12637
12627
  }, []);
@@ -12771,7 +12761,7 @@ function MonthView({
12771
12761
  "aria-label": `Show ${remainingCount} more events on ${format15(
12772
12762
  day,
12773
12763
  "PPP",
12774
- { locale: ptBR13 }
12764
+ { locale: ptBR14 }
12775
12765
  )}`,
12776
12766
  children: [
12777
12767
  /* @__PURE__ */ jsxs59("span", { className: "font-medium", children: [
@@ -12791,7 +12781,7 @@ function MonthView({
12791
12781
  "--event-height": `${EventHeight}px`
12792
12782
  },
12793
12783
  children: /* @__PURE__ */ jsxs59("div", { className: "space-y-2", children: [
12794
- /* @__PURE__ */ jsx82("div", { className: "font-medium text-sm", children: format15(day, "EEE d", { locale: ptBR13 }) }),
12784
+ /* @__PURE__ */ jsx82("div", { className: "font-medium text-sm", children: format15(day, "EEE d", { locale: ptBR14 }) }),
12795
12785
  /* @__PURE__ */ jsx82("div", { className: "space-y-1", children: sortEvents(allEvents).map((event) => {
12796
12786
  const eventStart = new Date(event.start);
12797
12787
  const eventEnd = new Date(event.end);
@@ -12946,7 +12936,7 @@ import {
12946
12936
  startOfDay as startOfDay4,
12947
12937
  startOfWeek as startOfWeek8
12948
12938
  } from "date-fns";
12949
- import { ptBR as ptBR14 } from "date-fns/locale";
12939
+ import { ptBR as ptBR15 } from "date-fns/locale";
12950
12940
  import { useMemo as useMemo23 } from "react";
12951
12941
  import { jsx as jsx83, jsxs as jsxs60 } from "react/jsx-runtime";
12952
12942
  function WeekView({
@@ -13075,11 +13065,11 @@ function WeekView({
13075
13065
  "data-today": isToday6(day) || void 0,
13076
13066
  children: [
13077
13067
  /* @__PURE__ */ jsxs60("span", { "aria-hidden": "true", className: "sm:hidden", children: [
13078
- format16(day, "EEE", { locale: ptBR14 })[0],
13068
+ format16(day, "EEE", { locale: ptBR15 })[0],
13079
13069
  " ",
13080
- format16(day, "d", { locale: ptBR14 })
13070
+ format16(day, "d", { locale: ptBR15 })
13081
13071
  ] }),
13082
- /* @__PURE__ */ jsx83("span", { className: "max-sm:hidden", children: format16(day, "EEE dd", { locale: ptBR14 }) })
13072
+ /* @__PURE__ */ jsx83("span", { className: "max-sm:hidden", children: format16(day, "EEE dd", { locale: ptBR15 }) })
13083
13073
  ]
13084
13074
  },
13085
13075
  day.toString()
@@ -13873,7 +13863,7 @@ import { toast as toast4 } from "sonner";
13873
13863
 
13874
13864
  // src/components/ui/charts/components/controls/PeriodsDropdown.tsx
13875
13865
  import { useState as useState34, useRef as useRef16, useEffect as useEffect25 } from "react";
13876
- import { motion as motion16, AnimatePresence as AnimatePresence10 } from "framer-motion";
13866
+ import { motion as motion16, AnimatePresence as AnimatePresence9 } from "framer-motion";
13877
13867
  import { DotsThreeIcon as DotsThreeIcon3 } from "@phosphor-icons/react/dist/ssr";
13878
13868
  import { Check } from "@phosphor-icons/react/dist/ssr";
13879
13869
  import { jsx as jsx86, jsxs as jsxs63 } from "react/jsx-runtime";
@@ -13948,7 +13938,7 @@ function PeriodsDropdown({
13948
13938
  ]
13949
13939
  }
13950
13940
  ),
13951
- /* @__PURE__ */ jsx86(AnimatePresence10, { children: open && /* @__PURE__ */ jsxs63(
13941
+ /* @__PURE__ */ jsx86(AnimatePresence9, { children: open && /* @__PURE__ */ jsxs63(
13952
13942
  motion16.div,
13953
13943
  {
13954
13944
  initial: "hidden",
@@ -14050,7 +14040,7 @@ var ShowOnly = ({
14050
14040
  var ShowOnly_default = ShowOnly;
14051
14041
 
14052
14042
  // src/components/ui/charts/components/controls/Highlights.tsx
14053
- import { motion as motion18, AnimatePresence as AnimatePresence11 } from "framer-motion";
14043
+ import { motion as motion18, AnimatePresence as AnimatePresence10 } from "framer-motion";
14054
14044
  import { CheckIcon as CheckIcon12 } from "@phosphor-icons/react/dist/ssr";
14055
14045
  import { jsx as jsx88, jsxs as jsxs65 } from "react/jsx-runtime";
14056
14046
  var Highlights = ({
@@ -14077,7 +14067,7 @@ var Highlights = ({
14077
14067
  initial: "hidden",
14078
14068
  animate: "visible",
14079
14069
  variants: containerVariants,
14080
- children: /* @__PURE__ */ jsx88(AnimatePresence11, { initial: false, mode: "popLayout", children: allKeys.map((k) => {
14070
+ children: /* @__PURE__ */ jsx88(AnimatePresence10, { initial: false, mode: "popLayout", children: allKeys.map((k) => {
14081
14071
  const isHighlighted = highlightedSeries.has(k);
14082
14072
  const label = mapperConfig[k]?.label ?? k;
14083
14073
  const color = finalColors[k];
@@ -14264,7 +14254,7 @@ import React44, {
14264
14254
  useCallback as useCallback11,
14265
14255
  useMemo as useMemo24
14266
14256
  } from "react";
14267
- import { motion as motion19, AnimatePresence as AnimatePresence12 } from "framer-motion";
14257
+ import { motion as motion19, AnimatePresence as AnimatePresence11 } from "framer-motion";
14268
14258
  import { DotsSixVerticalIcon } from "@phosphor-icons/react";
14269
14259
  import { XIcon as XIcon14 } from "@phosphor-icons/react/dist/ssr";
14270
14260
  import { Fragment as Fragment15, jsx as jsx90, jsxs as jsxs67 } from "react/jsx-runtime";
@@ -14707,7 +14697,7 @@ var DraggableTooltipComponent = ({
14707
14697
  )
14708
14698
  ] }, index);
14709
14699
  }),
14710
- /* @__PURE__ */ jsx90(AnimatePresence12, { children: /* @__PURE__ */ jsxs67(
14700
+ /* @__PURE__ */ jsx90(AnimatePresence11, { children: /* @__PURE__ */ jsxs67(
14711
14701
  motion19.div,
14712
14702
  {
14713
14703
  className: "fixed bg-card border border-border rounded-lg shadow-lg z-50 min-w-80 select-none",