@underverse-ui/underverse 0.2.117 → 0.2.119

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 CHANGED
@@ -6344,11 +6344,11 @@ var DateRangePicker = ({ startDate, endDate, onChange, placeholder = "Select dat
6344
6344
 
6345
6345
  // ../../components/ui/DateTimePicker.tsx
6346
6346
  import * as React26 from "react";
6347
- import { Calendar as CalendarIcon2, X as X10 } from "lucide-react";
6347
+ import { Calendar as CalendarIcon, X as X10 } from "lucide-react";
6348
6348
 
6349
6349
  // ../../components/ui/Calendar.tsx
6350
- import * as React24 from "react";
6351
6350
  import { ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight4 } from "lucide-react";
6351
+ import * as React24 from "react";
6352
6352
  import { Fragment as Fragment8, jsx as jsx30, jsxs as jsxs25 } from "react/jsx-runtime";
6353
6353
  function startOfMonth(d) {
6354
6354
  return new Date(d.getFullYear(), d.getMonth(), 1);
@@ -6593,9 +6593,9 @@ function Calendar2({
6593
6593
  };
6594
6594
  const cellSz = CELL_EVENT_STYLES[size];
6595
6595
  const VARIANT_STYLES2 = {
6596
- default: "border border-border rounded-2xl bg-card",
6597
- bordered: "border-2 border-border rounded-2xl bg-card shadow-sm",
6598
- card: "border border-border rounded-3xl bg-card shadow-lg",
6596
+ default: "border border-border/60 rounded-2xl md:rounded-3xl bg-linear-to-br from-card via-card to-card/95 shadow-sm backdrop-blur-sm",
6597
+ bordered: "border-2 border-border/70 rounded-2xl md:rounded-3xl bg-linear-to-br from-card via-card to-card/95 shadow-md hover:shadow-lg transition-shadow duration-300",
6598
+ card: "border border-border/50 rounded-3xl bg-linear-to-br from-card via-background/95 to-card shadow-lg hover:shadow-xl transition-shadow duration-300 backdrop-blur-md",
6599
6599
  minimal: "bg-transparent"
6600
6600
  };
6601
6601
  const weekDays = React24.useMemo(() => {
@@ -6607,7 +6607,7 @@ function Calendar2({
6607
6607
  const monthLabel = labels?.month ? labels.month(monthDate) : monthDate.toLocaleDateString("en-US", { month: "long", year: "numeric" });
6608
6608
  return /* @__PURE__ */ jsxs25("div", { children: [
6609
6609
  months > 1 && /* @__PURE__ */ jsx30("div", { className: "flex items-center justify-center mb-2 text-sm font-semibold", children: monthLabel }),
6610
- showWeekdays && /* @__PURE__ */ jsx30("div", { className: cn("grid grid-cols-7", sz.grid, "mb-1 text-center text-muted-foreground font-medium"), children: weekdays.map((w) => /* @__PURE__ */ jsx30("div", { className: cn(sz.head), children: w }, `${monthLabel}-${w}`)) }),
6610
+ showWeekdays && /* @__PURE__ */ jsx30("div", { className: cn("grid grid-cols-7", sz.grid, "mb-2 text-center text-muted-foreground/70 font-semibold uppercase tracking-wider"), children: weekdays.map((w) => /* @__PURE__ */ jsx30("div", { className: cn(sz.head, "transition-colors duration-200 hover:text-foreground"), children: w }, `${monthLabel}-${w}`)) }),
6611
6611
  /* @__PURE__ */ jsx30("div", { className: cn("grid grid-cols-7", sz.grid), children: monthDays.map((d, idx) => {
6612
6612
  const inMonth = d.getMonth() === monthDate.getMonth();
6613
6613
  const isToday2 = isSameDay(d, today);
@@ -6626,18 +6626,21 @@ function Calendar2({
6626
6626
  "div",
6627
6627
  {
6628
6628
  className: cn(
6629
- "rounded-xl border border-border/50 bg-background/40 overflow-hidden",
6630
- "transition-colors duration-150",
6629
+ "rounded-3xl border border-border/50 overflow-hidden",
6630
+ "bg-linear-to-br from-background via-background to-background/90",
6631
+ "transition-all duration-300",
6632
+ "hover:shadow-lg hover:border-border/70",
6631
6633
  animate && "will-change-transform",
6632
6634
  cellSz.cell,
6633
- !inMonth && "opacity-60",
6634
- disabled && "opacity-40",
6635
- highlightWeekends && isWeekend && "bg-accent/10",
6636
- isToday2 && !selectedDay && "ring-1 ring-primary/40",
6637
- selectedDay && "border-primary/50 bg-primary/10"
6635
+ !inMonth && "opacity-50",
6636
+ disabled && "opacity-40 cursor-not-allowed",
6637
+ highlightWeekends && isWeekend && "bg-linear-to-br from-destructive/5 via-destructive/3 to-background/90",
6638
+ isToday2 && !selectedDay && "ring-2 ring-primary/50 border-primary/30 shadow-md",
6639
+ selectedDay && "border-primary/60 bg-linear-to-br from-primary/10 via-primary/5 to-background/90 shadow-md",
6640
+ !disabled && "backdrop-blur-sm"
6638
6641
  ),
6639
6642
  children: [
6640
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between gap-2", children: [
6643
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between gap-2 px-3 py-2 border-b border-border/30 bg-muted/20", children: [
6641
6644
  /* @__PURE__ */ jsx30(
6642
6645
  "button",
6643
6646
  {
@@ -6645,19 +6648,31 @@ function Calendar2({
6645
6648
  onClick: () => !disabled && handleClickDay(d),
6646
6649
  disabled,
6647
6650
  className: cn(
6648
- "inline-flex items-center justify-center rounded-lg px-2 py-1",
6649
- "transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
6651
+ "inline-flex items-center justify-center rounded-xl px-2.5 py-1 font-semibold",
6652
+ "transition-all duration-200",
6653
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
6650
6654
  cellSz.day,
6651
- selectedDay ? "bg-primary text-primary-foreground" : "hover:bg-accent hover:text-accent-foreground",
6652
- disabled && "cursor-not-allowed hover:bg-transparent"
6655
+ selectedDay ? "bg-linear-to-br from-primary to-primary/90 text-primary-foreground shadow-sm" : "hover:bg-accent hover:text-accent-foreground hover:scale-105 active:scale-95",
6656
+ disabled && "cursor-not-allowed hover:bg-transparent hover:scale-100",
6657
+ isToday2 && !selectedDay && "ring-1 ring-primary/40 bg-primary/5"
6653
6658
  ),
6654
6659
  title: d.toDateString(),
6655
6660
  children: d.getDate()
6656
6661
  }
6657
6662
  ),
6658
- dayEvents.length > 0 && /* @__PURE__ */ jsx30("span", { className: "text-[11px] text-muted-foreground tabular-nums", children: dayEvents.length })
6663
+ dayEvents.length > 0 && /* @__PURE__ */ jsx30(
6664
+ "span",
6665
+ {
6666
+ className: cn(
6667
+ "text-[11px] tabular-nums px-2 py-0.5 rounded-full font-medium",
6668
+ "bg-primary/10 text-primary",
6669
+ dayEvents.length > 5 && "bg-destructive/10 text-destructive"
6670
+ ),
6671
+ children: dayEvents.length
6672
+ }
6673
+ )
6659
6674
  ] }),
6660
- /* @__PURE__ */ jsxs25("div", { className: cn("mt-2 space-y-1", dense ? "mt-1.5" : "mt-2"), children: [
6675
+ /* @__PURE__ */ jsxs25("div", { className: cn("space-y-1.5 p-2", dense ? "p-1.5" : "p-2"), children: [
6661
6676
  visibleEvents.map((e, i) => {
6662
6677
  const key = e.id ?? `${k}-${i}`;
6663
6678
  const node = renderEvent?.({ event: e, date: d });
@@ -6668,21 +6683,31 @@ function Calendar2({
6668
6683
  type: "button",
6669
6684
  onClick: () => handleEventActivate(e, d, k, i),
6670
6685
  className: cn(
6671
- "w-full text-left rounded-lg px-2 py-1",
6672
- "transition-colors duration-150 hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
6673
- "text-xs flex items-center gap-2"
6686
+ "group w-full text-left rounded-xl px-2.5 py-2",
6687
+ "transition-all duration-200",
6688
+ "hover:bg-accent/80 hover:shadow-sm hover:scale-[1.02] active:scale-[0.98]",
6689
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
6690
+ "text-xs flex items-center gap-2.5",
6691
+ "border border-transparent hover:border-border/30"
6674
6692
  ),
6675
6693
  title: e.title,
6676
6694
  children: [
6677
- /* @__PURE__ */ jsx30("span", { className: "h-2 w-2 rounded-full shrink-0", style: { backgroundColor: e.color || "hsl(var(--primary))" } }),
6678
- /* @__PURE__ */ jsx30("span", { className: "truncate flex-1", children: e.title ?? "Event" }),
6679
- showEventBadges && e.badge && /* @__PURE__ */ jsx30("span", { className: "shrink-0 rounded-full bg-muted px-2 py-0.5 text-[10px] text-muted-foreground", children: e.badge })
6695
+ /* @__PURE__ */ jsx30(
6696
+ "span",
6697
+ {
6698
+ className: "h-2 w-2 rounded-full shrink-0 transition-transform duration-200 group-hover:scale-125",
6699
+ style: { backgroundColor: e.color || "hsl(var(--primary))" }
6700
+ }
6701
+ ),
6702
+ /* @__PURE__ */ jsx30("span", { className: "truncate flex-1 font-medium group-hover:text-foreground", children: e.title ?? "Event" }),
6703
+ showEventBadges && e.badge && /* @__PURE__ */ jsx30("span", { className: "shrink-0 rounded-full bg-muted/80 px-2 py-0.5 text-[10px] text-muted-foreground font-medium backdrop-blur-sm", children: e.badge })
6680
6704
  ]
6681
6705
  },
6682
6706
  String(key)
6683
6707
  );
6684
6708
  }),
6685
- hiddenCount > 0 && /* @__PURE__ */ jsxs25("div", { className: "px-2 text-[11px] text-muted-foreground", children: [
6709
+ hiddenCount > 0 && /* @__PURE__ */ jsxs25("div", { className: "px-2.5 py-1 text-[11px] text-muted-foreground/70 font-medium flex items-center gap-1.5", children: [
6710
+ /* @__PURE__ */ jsx30("span", { className: "h-1 w-1 rounded-full bg-muted-foreground/40" }),
6686
6711
  "+",
6687
6712
  hiddenCount,
6688
6713
  " more"
@@ -6699,14 +6724,16 @@ function Calendar2({
6699
6724
  onClick: () => handleClickDay(d),
6700
6725
  disabled,
6701
6726
  className: cn(
6702
- "rounded-lg flex items-center justify-center relative cursor-pointer",
6727
+ "rounded-xl flex items-center justify-center relative cursor-pointer",
6728
+ "transition-all duration-200 font-medium",
6729
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
6703
6730
  sz.day,
6704
- !inMonth && "text-muted-foreground/60",
6731
+ !inMonth && "text-muted-foreground/50",
6705
6732
  disabled && "opacity-40 cursor-not-allowed",
6706
- highlightWeekends && isWeekend && "bg-accent/10",
6707
- isToday2 && !selectedDay && "ring-1 ring-primary/50",
6708
- selectedDay && "bg-primary text-primary-foreground hover:bg-primary/90",
6709
- !selectedDay && "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground"
6733
+ highlightWeekends && isWeekend && "bg-destructive/5",
6734
+ isToday2 && !selectedDay && "ring-2 ring-primary/60 bg-primary/5 font-bold",
6735
+ selectedDay && "bg-linear-to-br from-primary to-primary/90 text-primary-foreground shadow-md hover:shadow-lg hover:scale-105",
6736
+ !selectedDay && !disabled && "hover:bg-accent hover:text-accent-foreground hover:scale-105 active:scale-95"
6710
6737
  ),
6711
6738
  title: d.toDateString(),
6712
6739
  children: [
@@ -6749,24 +6776,34 @@ function Calendar2({
6749
6776
  return nextStart > maxBound;
6750
6777
  }, [display, view, weekStartsOn, maxBound]);
6751
6778
  return /* @__PURE__ */ jsxs25("div", { className: cn("w-full", className), ...rest, children: [
6752
- showHeader && /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between mb-2", children: [
6779
+ showHeader && /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between mb-3 px-1", children: [
6753
6780
  /* @__PURE__ */ jsx30(
6754
6781
  "button",
6755
6782
  {
6756
6783
  onClick: () => goByView(-1),
6757
6784
  disabled: prevDisabled,
6758
- className: cn("p-1 rounded-lg hover:bg-accent", prevDisabled && "opacity-40 cursor-not-allowed hover:bg-transparent"),
6785
+ className: cn(
6786
+ "p-2 rounded-full transition-all duration-200",
6787
+ "hover:bg-accent hover:shadow-sm active:scale-95",
6788
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
6789
+ prevDisabled && "opacity-40 cursor-not-allowed hover:bg-transparent hover:shadow-none active:scale-100"
6790
+ ),
6759
6791
  "aria-label": labels?.prev || (display === "week" ? "Previous week" : "Previous month"),
6760
6792
  children: /* @__PURE__ */ jsx30(ChevronLeft3, { className: "h-4 w-4" })
6761
6793
  }
6762
6794
  ),
6763
- /* @__PURE__ */ jsx30("div", { className: "text-sm font-semibold", children: display === "week" ? `${labels?.month ? labels.month(weekDays[0]) : weekDays[0].toLocaleDateString("en-US", { month: "short" })} ${weekDays[0].getDate()} \u2013 ${labels?.month ? labels.month(weekDays[6]) : weekDays[6].toLocaleDateString("en-US", { month: "short" })} ${weekDays[6].getDate()}` : labels?.month ? labels.month(view) : view.toLocaleDateString("en-US", { month: "long", year: "numeric" }) }),
6795
+ /* @__PURE__ */ jsx30("div", { className: "text-sm font-semibold tracking-tight bg-linear-to-r from-foreground to-foreground/80 bg-clip-text", children: display === "week" ? `${labels?.month ? labels.month(weekDays[0]) : weekDays[0].toLocaleDateString("en-US", { month: "short" })} ${weekDays[0].getDate()} \u2013 ${labels?.month ? labels.month(weekDays[6]) : weekDays[6].toLocaleDateString("en-US", { month: "short" })} ${weekDays[6].getDate()}` : labels?.month ? labels.month(view) : view.toLocaleDateString("en-US", { month: "long", year: "numeric" }) }),
6764
6796
  /* @__PURE__ */ jsx30(
6765
6797
  "button",
6766
6798
  {
6767
6799
  onClick: () => goByView(1),
6768
6800
  disabled: nextDisabled,
6769
- className: cn("p-1 rounded-lg hover:bg-accent", nextDisabled && "opacity-40 cursor-not-allowed hover:bg-transparent"),
6801
+ className: cn(
6802
+ "p-2 rounded-full transition-all duration-200",
6803
+ "hover:bg-accent hover:shadow-sm active:scale-95",
6804
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
6805
+ nextDisabled && "opacity-40 cursor-not-allowed hover:bg-transparent hover:shadow-none active:scale-100"
6806
+ ),
6770
6807
  "aria-label": labels?.next || (display === "week" ? "Next week" : "Next month"),
6771
6808
  children: /* @__PURE__ */ jsx30(ChevronRight4, { className: "h-4 w-4" })
6772
6809
  }
@@ -6792,16 +6829,19 @@ function Calendar2({
6792
6829
  "div",
6793
6830
  {
6794
6831
  className: cn(
6795
- "rounded-xl border border-border/50 bg-background/40 overflow-hidden",
6796
- "transition-colors duration-150",
6832
+ "rounded-3xl border border-border/50 overflow-hidden",
6833
+ "bg-linear-to-br from-background via-background to-background/90",
6834
+ "transition-all duration-300",
6835
+ "hover:shadow-lg hover:border-border/70",
6797
6836
  cellSz.cell,
6798
- disabled && "opacity-40",
6799
- highlightWeekends && isWeekend && "bg-accent/10",
6800
- isToday2 && !selectedDay && "ring-1 ring-primary/40",
6801
- selectedDay && "border-primary/50 bg-primary/10"
6837
+ disabled && "opacity-40 cursor-not-allowed",
6838
+ highlightWeekends && isWeekend && "bg-linear-to-br from-destructive/5 via-destructive/3 to-background/90",
6839
+ isToday2 && !selectedDay && "ring-2 ring-primary/50 border-primary/30 shadow-md",
6840
+ selectedDay && "border-primary/60 bg-linear-to-br from-primary/10 via-primary/5 to-background/90 shadow-md",
6841
+ !disabled && "backdrop-blur-sm"
6802
6842
  ),
6803
6843
  children: [
6804
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between gap-2", children: [
6844
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between gap-2 px-3 py-2 border-b border-border/30 bg-muted/20", children: [
6805
6845
  /* @__PURE__ */ jsx30(
6806
6846
  "button",
6807
6847
  {
@@ -6809,19 +6849,31 @@ function Calendar2({
6809
6849
  onClick: () => !disabled && handleClickDay(d),
6810
6850
  disabled,
6811
6851
  className: cn(
6812
- "inline-flex items-center justify-center rounded-lg px-2 py-1",
6813
- "transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
6852
+ "inline-flex items-center justify-center rounded-xl px-2.5 py-1 font-semibold",
6853
+ "transition-all duration-200",
6854
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
6814
6855
  cellSz.day,
6815
- selectedDay ? "bg-primary text-primary-foreground" : "hover:bg-accent hover:text-accent-foreground",
6816
- disabled && "cursor-not-allowed hover:bg-transparent"
6856
+ selectedDay ? "bg-linear-to-br from-primary to-primary/90 text-primary-foreground shadow-sm" : "hover:bg-accent hover:text-accent-foreground hover:scale-105 active:scale-95",
6857
+ disabled && "cursor-not-allowed hover:bg-transparent hover:scale-100",
6858
+ isToday2 && !selectedDay && "ring-1 ring-primary/40 bg-primary/5"
6817
6859
  ),
6818
6860
  title: d.toDateString(),
6819
6861
  children: d.getDate()
6820
6862
  }
6821
6863
  ),
6822
- dayEvents.length > 0 && /* @__PURE__ */ jsx30("span", { className: "text-[11px] text-muted-foreground tabular-nums", children: dayEvents.length })
6864
+ dayEvents.length > 0 && /* @__PURE__ */ jsx30(
6865
+ "span",
6866
+ {
6867
+ className: cn(
6868
+ "text-[11px] tabular-nums px-2 py-0.5 rounded-full font-medium",
6869
+ "bg-primary/10 text-primary",
6870
+ dayEvents.length > 5 && "bg-destructive/10 text-destructive"
6871
+ ),
6872
+ children: dayEvents.length
6873
+ }
6874
+ )
6823
6875
  ] }),
6824
- /* @__PURE__ */ jsxs25("div", { className: cn("mt-2 space-y-1", dense ? "mt-1.5" : "mt-2"), children: [
6876
+ /* @__PURE__ */ jsxs25("div", { className: cn("space-y-1.5 p-2", dense ? "p-1.5" : "p-2"), children: [
6825
6877
  visibleEvents.map((e, i) => {
6826
6878
  const key = e.id ?? `${k}-${i}`;
6827
6879
  const node = renderEvent?.({ event: e, date: d });
@@ -6832,21 +6884,31 @@ function Calendar2({
6832
6884
  type: "button",
6833
6885
  onClick: () => handleEventActivate(e, d, k, i),
6834
6886
  className: cn(
6835
- "w-full text-left rounded-lg px-2 py-1",
6836
- "transition-colors duration-150 hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
6837
- "text-xs flex items-center gap-2"
6887
+ "group w-full text-left rounded-xl px-2.5 py-2",
6888
+ "transition-all duration-200",
6889
+ "hover:bg-accent/80 hover:shadow-sm hover:scale-[1.02] active:scale-[0.98]",
6890
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
6891
+ "text-xs flex items-center gap-2.5",
6892
+ "border border-transparent hover:border-border/30"
6838
6893
  ),
6839
6894
  title: e.title,
6840
6895
  children: [
6841
- /* @__PURE__ */ jsx30("span", { className: "h-2 w-2 rounded-full shrink-0", style: { backgroundColor: e.color || "hsl(var(--primary))" } }),
6842
- /* @__PURE__ */ jsx30("span", { className: "truncate flex-1", children: e.title ?? "Event" }),
6843
- showEventBadges && e.badge && /* @__PURE__ */ jsx30("span", { className: "shrink-0 rounded-full bg-muted px-2 py-0.5 text-[10px] text-muted-foreground", children: e.badge })
6896
+ /* @__PURE__ */ jsx30(
6897
+ "span",
6898
+ {
6899
+ className: "h-2 w-2 rounded-full shrink-0 transition-transform duration-200 group-hover:scale-125",
6900
+ style: { backgroundColor: e.color || "hsl(var(--primary))" }
6901
+ }
6902
+ ),
6903
+ /* @__PURE__ */ jsx30("span", { className: "truncate flex-1 font-medium group-hover:text-foreground", children: e.title ?? "Event" }),
6904
+ showEventBadges && e.badge && /* @__PURE__ */ jsx30("span", { className: "shrink-0 rounded-full bg-muted/80 px-2 py-0.5 text-[10px] text-muted-foreground font-medium backdrop-blur-sm", children: e.badge })
6844
6905
  ]
6845
6906
  },
6846
6907
  String(key)
6847
6908
  );
6848
6909
  }),
6849
- hiddenCount > 0 && /* @__PURE__ */ jsxs25("div", { className: "px-2 text-[11px] text-muted-foreground", children: [
6910
+ hiddenCount > 0 && /* @__PURE__ */ jsxs25("div", { className: "px-2.5 py-1 text-[11px] text-muted-foreground/70 font-medium flex items-center gap-1.5", children: [
6911
+ /* @__PURE__ */ jsx30("span", { className: "h-1 w-1 rounded-full bg-muted-foreground/40" }),
6850
6912
  "+",
6851
6913
  hiddenCount,
6852
6914
  " more"
@@ -6874,7 +6936,14 @@ function Calendar2({
6874
6936
  title: d.toDateString(),
6875
6937
  children: [
6876
6938
  d.getDate(),
6877
- dayEvents.length > 0 && /* @__PURE__ */ jsx30("span", { className: "absolute -bottom-1 inline-flex gap-0.5", children: dayEvents.slice(0, 3).map((e, i) => /* @__PURE__ */ jsx30("span", { className: "h-1.5 w-1.5 rounded-full", style: { backgroundColor: e.color || "hsl(var(--primary))" } }, String(e.id ?? i))) })
6939
+ dayEvents.length > 0 && /* @__PURE__ */ jsx30("span", { className: "absolute -bottom-1 inline-flex gap-0.5", children: dayEvents.slice(0, 3).map((e, i) => /* @__PURE__ */ jsx30(
6940
+ "span",
6941
+ {
6942
+ className: "h-1.5 w-1.5 rounded-full",
6943
+ style: { backgroundColor: e.color || "hsl(var(--primary))" }
6944
+ },
6945
+ String(e.id ?? i)
6946
+ )) })
6878
6947
  ]
6879
6948
  },
6880
6949
  `wd-${idx}`
@@ -8172,7 +8241,7 @@ var DateTimePicker = ({
8172
8241
  children: /* @__PURE__ */ jsx32(X10, { className: "h-4 w-4" })
8173
8242
  }
8174
8243
  ),
8175
- /* @__PURE__ */ jsx32(CalendarIcon2, { className: "h-4 w-4" })
8244
+ /* @__PURE__ */ jsx32(CalendarIcon, { className: "h-4 w-4" })
8176
8245
  ] })
8177
8246
  ]
8178
8247
  }
@@ -19527,7 +19596,7 @@ var ToolbarButton = React66.forwardRef(({ onClick, onMouseDown, active, disabled
19527
19596
  }
19528
19597
  );
19529
19598
  if (title) {
19530
- return /* @__PURE__ */ jsx78(Tooltip, { content: title, placement: "top", delay: { open: 500, close: 0 }, children: button });
19599
+ return /* @__PURE__ */ jsx78(Tooltip, { content: title, placement: "top", delay: { open: 200, close: 0 }, children: button });
19531
19600
  }
19532
19601
  return button;
19533
19602
  });
@@ -19565,15 +19634,7 @@ var EditorToolbar = ({
19565
19634
  if (variant === "minimal") {
19566
19635
  return /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-1 p-2 border-b bg-muted/30", children: [
19567
19636
  /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleBold().run(), active: editor.isActive("bold"), title: t("toolbar.bold"), children: /* @__PURE__ */ jsx78(BoldIcon, { className: "w-4 h-4" }) }),
19568
- /* @__PURE__ */ jsx78(
19569
- ToolbarButton,
19570
- {
19571
- onClick: () => editor.chain().focus().toggleItalic().run(),
19572
- active: editor.isActive("italic"),
19573
- title: t("toolbar.italic"),
19574
- children: /* @__PURE__ */ jsx78(ItalicIcon, { className: "w-4 h-4" })
19575
- }
19576
- ),
19637
+ /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleItalic().run(), active: editor.isActive("italic"), title: t("toolbar.italic"), children: /* @__PURE__ */ jsx78(ItalicIcon, { className: "w-4 h-4" }) }),
19577
19638
  /* @__PURE__ */ jsx78(
19578
19639
  ToolbarButton,
19579
19640
  {
@@ -19595,7 +19656,15 @@ var EditorToolbar = ({
19595
19656
  /* @__PURE__ */ jsx78(ChevronDown6, { className: "w-3 h-3" })
19596
19657
  ] }),
19597
19658
  children: [
19598
- /* @__PURE__ */ jsx78(DropdownMenuItem, { icon: Type2, label: t("toolbar.normal"), onClick: () => editor.chain().focus().setParagraph().run(), active: editor.isActive("paragraph") }),
19659
+ /* @__PURE__ */ jsx78(
19660
+ DropdownMenuItem,
19661
+ {
19662
+ icon: Type2,
19663
+ label: t("toolbar.normal"),
19664
+ onClick: () => editor.chain().focus().setParagraph().run(),
19665
+ active: editor.isActive("paragraph")
19666
+ }
19667
+ ),
19599
19668
  /* @__PURE__ */ jsx78(
19600
19669
  DropdownMenuItem,
19601
19670
  {
@@ -19631,15 +19700,7 @@ var EditorToolbar = ({
19631
19700
  ),
19632
19701
  /* @__PURE__ */ jsx78(ToolbarDivider, {}),
19633
19702
  /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleBold().run(), active: editor.isActive("bold"), title: t("toolbar.bold"), children: /* @__PURE__ */ jsx78(BoldIcon, { className: "w-4 h-4" }) }),
19634
- /* @__PURE__ */ jsx78(
19635
- ToolbarButton,
19636
- {
19637
- onClick: () => editor.chain().focus().toggleItalic().run(),
19638
- active: editor.isActive("italic"),
19639
- title: t("toolbar.italic"),
19640
- children: /* @__PURE__ */ jsx78(ItalicIcon, { className: "w-4 h-4" })
19641
- }
19642
- ),
19703
+ /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleItalic().run(), active: editor.isActive("italic"), title: t("toolbar.italic"), children: /* @__PURE__ */ jsx78(ItalicIcon, { className: "w-4 h-4" }) }),
19643
19704
  /* @__PURE__ */ jsx78(
19644
19705
  ToolbarButton,
19645
19706
  {
@@ -19649,15 +19710,7 @@ var EditorToolbar = ({
19649
19710
  children: /* @__PURE__ */ jsx78(UnderlineIcon, { className: "w-4 h-4" })
19650
19711
  }
19651
19712
  ),
19652
- /* @__PURE__ */ jsx78(
19653
- ToolbarButton,
19654
- {
19655
- onClick: () => editor.chain().focus().toggleStrike().run(),
19656
- active: editor.isActive("strike"),
19657
- title: t("toolbar.strike"),
19658
- children: /* @__PURE__ */ jsx78(StrikethroughIcon, { className: "w-4 h-4" })
19659
- }
19660
- ),
19713
+ /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleStrike().run(), active: editor.isActive("strike"), title: t("toolbar.strike"), children: /* @__PURE__ */ jsx78(StrikethroughIcon, { className: "w-4 h-4" }) }),
19661
19714
  /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleCode().run(), active: editor.isActive("code"), title: t("toolbar.code"), children: /* @__PURE__ */ jsx78(CodeIcon, { className: "w-4 h-4" }) }),
19662
19715
  /* @__PURE__ */ jsx78(ToolbarDivider, {}),
19663
19716
  /* @__PURE__ */ jsx78(
@@ -19890,7 +19943,14 @@ var EditorToolbar = ({
19890
19943
  /* @__PURE__ */ jsx78(ChevronDown6, { className: "w-3 h-3" })
19891
19944
  ] }),
19892
19945
  children: [
19893
- /* @__PURE__ */ jsx78(DropdownMenuItem, { icon: TableIcon, label: t("tableMenu.insert3x3"), onClick: () => editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run() }),
19946
+ /* @__PURE__ */ jsx78(
19947
+ DropdownMenuItem,
19948
+ {
19949
+ icon: TableIcon,
19950
+ label: t("tableMenu.insert3x3"),
19951
+ onClick: () => editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run()
19952
+ }
19953
+ ),
19894
19954
  /* @__PURE__ */ jsx78("div", { className: "my-1 border-t" }),
19895
19955
  /* @__PURE__ */ jsx78(
19896
19956
  DropdownMenuItem,
@@ -19938,7 +19998,15 @@ var EditorToolbar = ({
19938
19998
  disabled: !editor.can().deleteColumn()
19939
19999
  }
19940
20000
  ),
19941
- /* @__PURE__ */ jsx78(DropdownMenuItem, { icon: Trash2, label: t("tableMenu.deleteRow"), onClick: () => editor.chain().focus().deleteRow().run(), disabled: !editor.can().deleteRow() }),
20001
+ /* @__PURE__ */ jsx78(
20002
+ DropdownMenuItem,
20003
+ {
20004
+ icon: Trash2,
20005
+ label: t("tableMenu.deleteRow"),
20006
+ onClick: () => editor.chain().focus().deleteRow().run(),
20007
+ disabled: !editor.can().deleteRow()
20008
+ }
20009
+ ),
19942
20010
  /* @__PURE__ */ jsx78(
19943
20011
  DropdownMenuItem,
19944
20012
  {
@@ -19952,8 +20020,24 @@ var EditorToolbar = ({
19952
20020
  }
19953
20021
  ),
19954
20022
  /* @__PURE__ */ jsx78(ToolbarDivider, {}),
19955
- /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleSubscript().run(), active: editor.isActive("subscript"), title: t("toolbar.subscript"), children: /* @__PURE__ */ jsx78(SubscriptIcon, { className: "w-4 h-4" }) }),
19956
- /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleSuperscript().run(), active: editor.isActive("superscript"), title: t("toolbar.superscript"), children: /* @__PURE__ */ jsx78(SuperscriptIcon, { className: "w-4 h-4" }) }),
20023
+ /* @__PURE__ */ jsx78(
20024
+ ToolbarButton,
20025
+ {
20026
+ onClick: () => editor.chain().focus().toggleSubscript().run(),
20027
+ active: editor.isActive("subscript"),
20028
+ title: t("toolbar.subscript"),
20029
+ children: /* @__PURE__ */ jsx78(SubscriptIcon, { className: "w-4 h-4" })
20030
+ }
20031
+ ),
20032
+ /* @__PURE__ */ jsx78(
20033
+ ToolbarButton,
20034
+ {
20035
+ onClick: () => editor.chain().focus().toggleSuperscript().run(),
20036
+ active: editor.isActive("superscript"),
20037
+ title: t("toolbar.superscript"),
20038
+ children: /* @__PURE__ */ jsx78(SuperscriptIcon, { className: "w-4 h-4" })
20039
+ }
20040
+ ),
19957
20041
  /* @__PURE__ */ jsx78(ToolbarDivider, {}),
19958
20042
  /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().undo().run(), disabled: !editor.can().undo(), title: t("toolbar.undo"), children: /* @__PURE__ */ jsx78(UndoIcon, { className: "w-4 h-4" }) }),
19959
20043
  /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().redo().run(), disabled: !editor.can().redo(), title: t("toolbar.redo"), children: /* @__PURE__ */ jsx78(RedoIcon, { className: "w-4 h-4" }) })