@underverse-ui/underverse 1.0.6 → 1.0.8

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
@@ -6596,10 +6596,10 @@ function Calendar2({
6596
6596
  };
6597
6597
  const sz = SIZE_STYLES3[size];
6598
6598
  const CELL_EVENT_STYLES = {
6599
- sm: { cell: dense ? "min-h-20 p-1.5" : "min-h-24 p-2", day: "text-[12px]" },
6600
- md: { cell: dense ? "min-h-28 p-2" : "min-h-32 p-2.5", day: "text-sm" },
6601
- lg: { cell: dense ? "min-h-36 p-2.5" : "min-h-40 p-3", day: "text-base" },
6602
- xl: { cell: dense ? "min-h-44 p-3" : "min-h-52 p-3.5", day: "text-lg" }
6599
+ sm: { cell: dense ? "min-h-24" : "min-h-28", day: "text-sm" },
6600
+ md: { cell: dense ? "min-h-32" : "min-h-36", day: "text-base" },
6601
+ lg: { cell: dense ? "min-h-40" : "min-h-44", day: "text-lg" },
6602
+ xl: { cell: dense ? "min-h-48" : "min-h-52", day: "text-xl" }
6603
6603
  };
6604
6604
  const cellSz = CELL_EVENT_STYLES[size];
6605
6605
  const VARIANT_STYLES2 = {
@@ -6636,82 +6636,58 @@ function Calendar2({
6636
6636
  "div",
6637
6637
  {
6638
6638
  className: cn(
6639
- "rounded-3xl border border-border/50 overflow-hidden",
6640
- "bg-linear-to-br from-background via-background to-background/90",
6641
- "transition-all duration-300",
6642
- "hover:shadow-lg hover:border-border/70",
6643
- animate && "will-change-transform",
6639
+ "rounded-2xl border border-border/40 overflow-hidden",
6640
+ "bg-card/50 backdrop-blur-sm",
6641
+ "transition-all duration-200",
6642
+ "hover:border-border/60 hover:shadow-sm",
6644
6643
  cellSz.cell,
6645
- !inMonth && "opacity-50",
6646
- disabled && "opacity-40 cursor-not-allowed",
6647
- highlightWeekends && isWeekend && "bg-linear-to-br from-destructive/5 via-destructive/3 to-background/90",
6648
- isToday2 && !selectedDay && "ring-2 ring-primary/50 border-primary/30 shadow-md",
6649
- selectedDay && "border-primary/60 bg-linear-to-br from-primary/10 via-primary/5 to-background/90 shadow-md",
6650
- !disabled && "backdrop-blur-sm"
6644
+ !inMonth && "opacity-40",
6645
+ disabled && "opacity-30 cursor-not-allowed",
6646
+ highlightWeekends && isWeekend && "bg-destructive/5",
6647
+ isToday2 && !selectedDay && "ring-2 ring-primary/40 border-primary/50",
6648
+ selectedDay && "border-primary/60 bg-primary/5"
6651
6649
  ),
6652
6650
  children: [
6653
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between gap-2 px-3 py-2 border-b border-border/30 bg-muted/20", children: [
6651
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between px-2.5 py-1.5", children: [
6654
6652
  /* @__PURE__ */ jsx30(
6655
- "button",
6653
+ "span",
6656
6654
  {
6657
- type: "button",
6658
- onClick: () => !disabled && handleClickDay(d),
6659
- disabled,
6660
6655
  className: cn(
6661
- "inline-flex items-center justify-center rounded-xl px-2.5 py-1 font-semibold",
6662
- "transition-all duration-200",
6663
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
6656
+ "font-semibold tabular-nums",
6664
6657
  cellSz.day,
6665
- 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",
6666
- disabled && "cursor-not-allowed hover:bg-transparent hover:scale-100",
6667
- isToday2 && !selectedDay && "ring-1 ring-primary/40 bg-primary/5"
6658
+ isToday2 && "text-primary",
6659
+ selectedDay && "text-primary",
6660
+ !inMonth && "text-muted-foreground/50"
6668
6661
  ),
6669
- title: d.toDateString(),
6670
6662
  children: d.getDate()
6671
6663
  }
6672
6664
  ),
6673
- dayEvents.length > 0 && /* @__PURE__ */ jsx30(
6674
- "span",
6675
- {
6676
- className: cn(
6677
- "text-[11px] tabular-nums px-2 py-0.5 rounded-full font-medium",
6678
- "bg-primary/10 text-primary",
6679
- dayEvents.length > 5 && "bg-destructive/10 text-destructive"
6680
- ),
6681
- children: dayEvents.length
6682
- }
6683
- )
6665
+ dayEvents.length > 0 && /* @__PURE__ */ jsx30("span", { className: "text-[10px] px-1.5 py-0.5 rounded-md bg-muted/60 text-muted-foreground font-medium", children: dayEvents.length })
6684
6666
  ] }),
6685
- /* @__PURE__ */ jsxs25("div", { className: cn("space-y-1.5 p-2", dense ? "p-1.5" : "p-2"), children: [
6667
+ /* @__PURE__ */ jsxs25("div", { className: "space-y-1 px-2 pb-2", children: [
6686
6668
  visibleEvents.map((e, i) => {
6687
6669
  const key = e.id ?? `${k}-${i}`;
6688
6670
  const node = renderEvent?.({ event: e, date: d });
6689
6671
  if (node) return /* @__PURE__ */ jsx30("div", { children: node }, String(key));
6690
- return /* @__PURE__ */ jsxs25(
6672
+ return /* @__PURE__ */ jsx30(
6691
6673
  "button",
6692
6674
  {
6693
6675
  type: "button",
6694
6676
  onClick: () => handleEventActivate(e, d, k, i),
6695
6677
  className: cn(
6696
- "group w-full text-left rounded-xl px-2.5 py-2",
6697
- "transition-all duration-200",
6698
- "hover:bg-accent/80 hover:shadow-sm hover:scale-[1.02] active:scale-[0.98]",
6699
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
6700
- "text-xs flex items-center gap-2.5",
6701
- "border border-transparent hover:border-border/30"
6678
+ "group w-full text-left rounded-lg px-2.5 py-1.5",
6679
+ "transition-all duration-150",
6680
+ "hover:bg-accent/50 hover:shadow-sm hover:-translate-y-0.5",
6681
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
6682
+ "text-sm font-medium",
6683
+ "border-l-[3px] bg-card/80"
6702
6684
  ),
6685
+ style: { borderLeftColor: e.color || "hsl(var(--primary))" },
6703
6686
  title: e.title,
6704
- children: [
6705
- /* @__PURE__ */ jsx30(
6706
- "span",
6707
- {
6708
- className: "h-2 w-2 rounded-full shrink-0 transition-transform duration-200 group-hover:scale-125",
6709
- style: { backgroundColor: e.color || "hsl(var(--primary))" }
6710
- }
6711
- ),
6712
- /* @__PURE__ */ jsx30("span", { className: "truncate flex-1 font-medium group-hover:text-foreground", children: e.title ?? "Event" }),
6713
- 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 })
6714
- ]
6687
+ children: /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
6688
+ /* @__PURE__ */ jsx30("span", { className: "truncate flex-1", children: e.title ?? "Event" }),
6689
+ showEventBadges && e.badge && /* @__PURE__ */ jsx30("span", { className: "shrink-0 text-[10px] px-1.5 py-0.5 rounded bg-muted/60 text-muted-foreground", children: e.badge })
6690
+ ] })
6715
6691
  },
6716
6692
  String(key)
6717
6693
  );
@@ -6839,80 +6815,56 @@ function Calendar2({
6839
6815
  "div",
6840
6816
  {
6841
6817
  className: cn(
6842
- "rounded-3xl border border-border/50 overflow-hidden",
6843
- "bg-linear-to-br from-background via-background to-background/90",
6844
- "transition-all duration-300",
6845
- "hover:shadow-lg hover:border-border/70",
6818
+ "rounded-2xl border border-border/40 overflow-hidden",
6819
+ "bg-card/50 backdrop-blur-sm",
6820
+ "transition-all duration-200",
6821
+ "hover:border-border/60 hover:shadow-sm",
6846
6822
  cellSz.cell,
6847
- disabled && "opacity-40 cursor-not-allowed",
6848
- highlightWeekends && isWeekend && "bg-linear-to-br from-destructive/5 via-destructive/3 to-background/90",
6849
- isToday2 && !selectedDay && "ring-2 ring-primary/50 border-primary/30 shadow-md",
6850
- selectedDay && "border-primary/60 bg-linear-to-br from-primary/10 via-primary/5 to-background/90 shadow-md",
6851
- !disabled && "backdrop-blur-sm"
6823
+ disabled && "opacity-30 cursor-not-allowed",
6824
+ highlightWeekends && isWeekend && "bg-destructive/5",
6825
+ isToday2 && !selectedDay && "ring-2 ring-primary/40 border-primary/50",
6826
+ selectedDay && "border-primary/60 bg-primary/5"
6852
6827
  ),
6853
6828
  children: [
6854
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between gap-2 px-3 py-2 border-b border-border/30 bg-muted/20", children: [
6829
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between px-2.5 py-1.5", children: [
6855
6830
  /* @__PURE__ */ jsx30(
6856
- "button",
6831
+ "span",
6857
6832
  {
6858
- type: "button",
6859
- onClick: () => !disabled && handleClickDay(d),
6860
- disabled,
6861
6833
  className: cn(
6862
- "inline-flex items-center justify-center rounded-xl px-2.5 py-1 font-semibold",
6863
- "transition-all duration-200",
6864
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
6834
+ "font-semibold tabular-nums",
6865
6835
  cellSz.day,
6866
- 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",
6867
- disabled && "cursor-not-allowed hover:bg-transparent hover:scale-100",
6868
- isToday2 && !selectedDay && "ring-1 ring-primary/40 bg-primary/5"
6836
+ isToday2 && "text-primary",
6837
+ selectedDay && "text-primary"
6869
6838
  ),
6870
- title: d.toDateString(),
6871
6839
  children: d.getDate()
6872
6840
  }
6873
6841
  ),
6874
- dayEvents.length > 0 && /* @__PURE__ */ jsx30(
6875
- "span",
6876
- {
6877
- className: cn(
6878
- "text-[11px] tabular-nums px-2 py-0.5 rounded-full font-medium",
6879
- "bg-primary/10 text-primary",
6880
- dayEvents.length > 5 && "bg-destructive/10 text-destructive"
6881
- ),
6882
- children: dayEvents.length
6883
- }
6884
- )
6842
+ dayEvents.length > 0 && /* @__PURE__ */ jsx30("span", { className: "text-[10px] px-1.5 py-0.5 rounded-md bg-muted/60 text-muted-foreground font-medium", children: dayEvents.length })
6885
6843
  ] }),
6886
- /* @__PURE__ */ jsxs25("div", { className: cn("space-y-1.5 p-2", dense ? "p-1.5" : "p-2"), children: [
6844
+ /* @__PURE__ */ jsxs25("div", { className: "space-y-1 px-2 pb-2", children: [
6887
6845
  visibleEvents.map((e, i) => {
6888
6846
  const key = e.id ?? `${k}-${i}`;
6889
6847
  const node = renderEvent?.({ event: e, date: d });
6890
6848
  if (node) return /* @__PURE__ */ jsx30("div", { children: node }, String(key));
6891
- return /* @__PURE__ */ jsxs25(
6849
+ return /* @__PURE__ */ jsx30(
6892
6850
  "button",
6893
6851
  {
6894
6852
  type: "button",
6895
6853
  onClick: () => handleEventActivate(e, d, k, i),
6896
6854
  className: cn(
6897
- "group w-full text-left rounded-xl px-2.5 py-2",
6898
- "transition-all duration-200",
6899
- "hover:bg-accent/80 hover:shadow-sm hover:scale-[1.02] active:scale-[0.98]",
6900
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
6901
- "text-xs flex items-center gap-2.5",
6902
- "border border-transparent hover:border-border/30"
6855
+ "group w-full text-left rounded-lg px-2.5 py-1.5",
6856
+ "transition-all duration-150",
6857
+ "hover:bg-accent/50 hover:shadow-sm hover:-translate-y-0.5",
6858
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
6859
+ "text-sm font-medium",
6860
+ "border-l-[3px] bg-card/80"
6903
6861
  ),
6862
+ style: { borderLeftColor: e.color || "hsl(var(--primary))" },
6904
6863
  title: e.title,
6905
- children: [
6906
- /* @__PURE__ */ jsx30(
6907
- "span",
6908
- {
6909
- className: "h-2 w-2 rounded-full shrink-0 transition-transform duration-200 group-hover:scale-125",
6910
- style: { backgroundColor: e.color || "hsl(var(--primary))" }
6911
- }
6912
- ),
6913
- /* @__PURE__ */ jsx30("span", { className: "truncate flex-1 font-medium group-hover:text-foreground", children: e.title ?? "Event" }),
6914
- 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 })
6915
- ]
6864
+ children: /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
6865
+ /* @__PURE__ */ jsx30("span", { className: "truncate flex-1", children: e.title ?? "Event" }),
6866
+ showEventBadges && e.badge && /* @__PURE__ */ jsx30("span", { className: "shrink-0 text-[10px] px-1.5 py-0.5 rounded bg-muted/60 text-muted-foreground", children: e.badge })
6867
+ ] })
6916
6868
  },
6917
6869
  String(key)
6918
6870
  );
@@ -20342,7 +20294,7 @@ var EMOJI_LIST = [
20342
20294
  { emoji: "\u{1F1E6}\u{1F1F4}", name: "flag_angola" },
20343
20295
  { emoji: "\u{1F1E6}\u{1F1F6}", name: "flag_antarctica" },
20344
20296
  { emoji: "\u{1F1E6}\u{1F1F7}", name: "flag_argentina" },
20345
- { emoji: "\u{1F1E6}\u{1F1F8}", name: "flag_samoa" },
20297
+ { emoji: "\u{1F1E6}\u{1F1F8}", name: "flag_american_samoa" },
20346
20298
  { emoji: "\u{1F1E6}\u{1F1F9}", name: "flag_austria" },
20347
20299
  { emoji: "\u{1F1E6}\u{1F1FA}", name: "flag_australia" },
20348
20300
  { emoji: "\u{1F1E6}\u{1F1FC}", name: "flag_aruba" },