crm-project-ui 0.1.23 → 0.1.25

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.css CHANGED
@@ -499,6 +499,10 @@
499
499
  .aspect-square {
500
500
  aspect-ratio: 1 / 1;
501
501
  }
502
+ .size-\(--cell-size\) {
503
+ width: var(--cell-size);
504
+ height: var(--cell-size);
505
+ }
502
506
  .size-4 {
503
507
  width: calc(var(--spacing) * 4);
504
508
  height: calc(var(--spacing) * 4);
@@ -515,9 +519,12 @@
515
519
  width: calc(var(--spacing) * 10);
516
520
  height: calc(var(--spacing) * 10);
517
521
  }
518
- .size-\[--cell-size\] {
519
- width: --cell-size;
520
- height: --cell-size;
522
+ .size-auto {
523
+ width: auto;
524
+ height: auto;
525
+ }
526
+ .h-\(--cell-size\) {
527
+ height: var(--cell-size);
521
528
  }
522
529
  .h-\(--radix-navigation-menu-viewport-height\) {
523
530
  height: var(--radix-navigation-menu-viewport-height);
@@ -564,9 +571,6 @@
564
571
  .h-12 {
565
572
  height: calc(var(--spacing) * 12);
566
573
  }
567
- .h-\[--cell-size\] {
568
- height: --cell-size;
569
- }
570
574
  .h-auto {
571
575
  height: auto;
572
576
  }
@@ -600,6 +604,9 @@
600
604
  .min-h-svh {
601
605
  min-height: 100svh;
602
606
  }
607
+ .w-\(--cell-size\) {
608
+ width: var(--cell-size);
609
+ }
603
610
  .w-2 {
604
611
  width: calc(var(--spacing) * 2);
605
612
  }
@@ -639,9 +646,6 @@
639
646
  .w-72 {
640
647
  width: calc(var(--spacing) * 72);
641
648
  }
642
- .w-\[--cell-size\] {
643
- width: --cell-size;
644
- }
645
649
  .w-\[--sidebar-width\] {
646
650
  width: --sidebar-width;
647
651
  }
@@ -678,6 +682,9 @@
678
682
  .max-w-sm {
679
683
  max-width: var(--container-sm);
680
684
  }
685
+ .min-w-\(--cell-size\) {
686
+ min-width: var(--cell-size);
687
+ }
681
688
  .min-w-\(--radix-select-trigger-width\) {
682
689
  min-width: var(--radix-select-trigger-width);
683
690
  }
@@ -696,9 +703,6 @@
696
703
  .min-w-10 {
697
704
  min-width: calc(var(--spacing) * 10);
698
705
  }
699
- .min-w-\[--cell-size\] {
700
- min-width: --cell-size;
701
- }
702
706
  .min-w-\[8rem\] {
703
707
  min-width: 8rem;
704
708
  }
@@ -1113,6 +1117,9 @@
1113
1117
  .p-px {
1114
1118
  padding: 1px;
1115
1119
  }
1120
+ .px-\(--cell-size\) {
1121
+ padding-inline: var(--cell-size);
1122
+ }
1116
1123
  .px-1 {
1117
1124
  padding-inline: calc(var(--spacing) * 1);
1118
1125
  }
@@ -1134,9 +1141,6 @@
1134
1141
  .px-8 {
1135
1142
  padding-inline: calc(var(--spacing) * 8);
1136
1143
  }
1137
- .px-\[--cell-size\] {
1138
- padding-inline: --cell-size;
1139
- }
1140
1144
  .py-0\.5 {
1141
1145
  padding-block: calc(var(--spacing) * 0.5);
1142
1146
  }
@@ -1475,15 +1479,6 @@
1475
1479
  --tw-ease: linear;
1476
1480
  transition-timing-function: linear;
1477
1481
  }
1478
- .animate-in {
1479
- animation-name: enter;
1480
- animation-duration: 150ms;
1481
- --tw-enter-opacity: initial;
1482
- --tw-enter-scale: initial;
1483
- --tw-enter-rotate: initial;
1484
- --tw-enter-translate-x: initial;
1485
- --tw-enter-translate-y: initial;
1486
- }
1487
1482
  .outline-none {
1488
1483
  --tw-outline-style: none;
1489
1484
  outline-style: none;
@@ -1493,32 +1488,8 @@
1493
1488
  -moz-user-select: none;
1494
1489
  user-select: none;
1495
1490
  }
1496
- .\[--cell-size\:2rem\] {
1497
- --cell-size: 2rem;
1498
- }
1499
- .duration-100 {
1500
- animation-duration: 100ms;
1501
- }
1502
- .duration-200 {
1503
- animation-duration: 200ms;
1504
- }
1505
- .duration-300 {
1506
- animation-duration: 300ms;
1507
- }
1508
- .duration-1000 {
1509
- animation-duration: 1000ms;
1510
- }
1511
- .ease-in-out {
1512
- animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1513
- }
1514
- .ease-linear {
1515
- animation-timing-function: linear;
1516
- }
1517
- .fade-in-0 {
1518
- --tw-enter-opacity: 0;
1519
- }
1520
- .zoom-in-95 {
1521
- --tw-enter-scale: .95;
1491
+ .\[--cell-size\:--spacing\(8\)\] {
1492
+ --cell-size: calc(var(--spacing) * 8);
1522
1493
  }
1523
1494
  .group-focus-within\/menu-item\:opacity-100 {
1524
1495
  &:is(:where(.group\/menu-item):focus-within *) {
@@ -2186,16 +2157,6 @@
2186
2157
  opacity: 50%;
2187
2158
  }
2188
2159
  }
2189
- .in-data-\[slot\=card-content\]\:bg-transparent {
2190
- :where(*[data-slot="card-content"]) & {
2191
- background-color: transparent;
2192
- }
2193
- }
2194
- .in-data-\[slot\=popover-content\]\:bg-transparent {
2195
- :where(*[data-slot="popover-content"]) & {
2196
- background-color: transparent;
2197
- }
2198
- }
2199
2160
  .in-data-\[slot\=tooltip-content\]\:bg-background\/20 {
2200
2161
  :where(*[data-slot="tooltip-content"]) & {
2201
2162
  background-color: var(--color-background);
@@ -2437,58 +2398,6 @@
2437
2398
  color: var(--color-destructive);
2438
2399
  }
2439
2400
  }
2440
- .data-\[motion\=from-end\]\:slide-in-from-right-52 {
2441
- &[data-motion="from-end"] {
2442
- --tw-enter-translate-x: 13rem;
2443
- }
2444
- }
2445
- .data-\[motion\=from-start\]\:slide-in-from-left-52 {
2446
- &[data-motion="from-start"] {
2447
- --tw-enter-translate-x: -13rem;
2448
- }
2449
- }
2450
- .data-\[motion\=to-end\]\:slide-out-to-right-52 {
2451
- &[data-motion="to-end"] {
2452
- --tw-exit-translate-x: 13rem;
2453
- }
2454
- }
2455
- .data-\[motion\=to-start\]\:slide-out-to-left-52 {
2456
- &[data-motion="to-start"] {
2457
- --tw-exit-translate-x: -13rem;
2458
- }
2459
- }
2460
- .data-\[motion\^\=from-\]\:animate-in {
2461
- &[data-motion^="from-"] {
2462
- animation-name: enter;
2463
- animation-duration: 150ms;
2464
- --tw-enter-opacity: initial;
2465
- --tw-enter-scale: initial;
2466
- --tw-enter-rotate: initial;
2467
- --tw-enter-translate-x: initial;
2468
- --tw-enter-translate-y: initial;
2469
- }
2470
- }
2471
- .data-\[motion\^\=from-\]\:fade-in {
2472
- &[data-motion^="from-"] {
2473
- --tw-enter-opacity: 0;
2474
- }
2475
- }
2476
- .data-\[motion\^\=to-\]\:animate-out {
2477
- &[data-motion^="to-"] {
2478
- animation-name: exit;
2479
- animation-duration: 150ms;
2480
- --tw-exit-opacity: initial;
2481
- --tw-exit-scale: initial;
2482
- --tw-exit-rotate: initial;
2483
- --tw-exit-translate-x: initial;
2484
- --tw-exit-translate-y: initial;
2485
- }
2486
- }
2487
- .data-\[motion\^\=to-\]\:fade-out {
2488
- &[data-motion^="to-"] {
2489
- --tw-exit-opacity: 0;
2490
- }
2491
- }
2492
2401
  .data-\[orientation\=vertical\]\:h-auto {
2493
2402
  &[data-orientation="vertical"] {
2494
2403
  height: auto;
@@ -2499,6 +2408,12 @@
2499
2408
  border-radius: var(--radius-md);
2500
2409
  }
2501
2410
  }
2411
+ .data-\[range-end\=true\]\:rounded-r-md {
2412
+ &[data-range-end="true"] {
2413
+ border-top-right-radius: var(--radius-md);
2414
+ border-bottom-right-radius: var(--radius-md);
2415
+ }
2416
+ }
2502
2417
  .data-\[range-end\=true\]\:bg-primary {
2503
2418
  &[data-range-end="true"] {
2504
2419
  background-color: var(--color-primary);
@@ -2529,6 +2444,12 @@
2529
2444
  border-radius: var(--radius-md);
2530
2445
  }
2531
2446
  }
2447
+ .data-\[range-start\=true\]\:rounded-l-md {
2448
+ &[data-range-start="true"] {
2449
+ border-top-left-radius: var(--radius-md);
2450
+ border-bottom-left-radius: var(--radius-md);
2451
+ }
2452
+ }
2532
2453
  .data-\[range-start\=true\]\:bg-primary {
2533
2454
  &[data-range-start="true"] {
2534
2455
  background-color: var(--color-primary);
@@ -2570,44 +2491,24 @@
2570
2491
  translate: var(--tw-translate-x) var(--tw-translate-y);
2571
2492
  }
2572
2493
  }
2573
- .data-\[side\=bottom\]\:slide-in-from-top-2 {
2574
- &[data-side="bottom"] {
2575
- --tw-enter-translate-y: -0.5rem;
2576
- }
2577
- }
2578
2494
  .data-\[side\=left\]\:-translate-x-1 {
2579
2495
  &[data-side="left"] {
2580
2496
  --tw-translate-x: calc(var(--spacing) * -1);
2581
2497
  translate: var(--tw-translate-x) var(--tw-translate-y);
2582
2498
  }
2583
2499
  }
2584
- .data-\[side\=left\]\:slide-in-from-right-2 {
2585
- &[data-side="left"] {
2586
- --tw-enter-translate-x: 0.5rem;
2587
- }
2588
- }
2589
2500
  .data-\[side\=right\]\:translate-x-1 {
2590
2501
  &[data-side="right"] {
2591
2502
  --tw-translate-x: calc(var(--spacing) * 1);
2592
2503
  translate: var(--tw-translate-x) var(--tw-translate-y);
2593
2504
  }
2594
2505
  }
2595
- .data-\[side\=right\]\:slide-in-from-left-2 {
2596
- &[data-side="right"] {
2597
- --tw-enter-translate-x: -0.5rem;
2598
- }
2599
- }
2600
2506
  .data-\[side\=top\]\:-translate-y-1 {
2601
2507
  &[data-side="top"] {
2602
2508
  --tw-translate-y: calc(var(--spacing) * -1);
2603
2509
  translate: var(--tw-translate-x) var(--tw-translate-y);
2604
2510
  }
2605
2511
  }
2606
- .data-\[side\=top\]\:slide-in-from-bottom-2 {
2607
- &[data-side="top"] {
2608
- --tw-enter-translate-y: 0.5rem;
2609
- }
2610
- }
2611
2512
  .data-\[slot\=checkbox-group\]\:gap-3 {
2612
2513
  &[data-slot="checkbox-group"] {
2613
2514
  gap: calc(var(--spacing) * 3);
@@ -2670,78 +2571,6 @@
2670
2571
  transition-duration: 300ms;
2671
2572
  }
2672
2573
  }
2673
- .data-\[state\=closed\]\:animate-out {
2674
- &[data-state="closed"] {
2675
- animation-name: exit;
2676
- animation-duration: 150ms;
2677
- --tw-exit-opacity: initial;
2678
- --tw-exit-scale: initial;
2679
- --tw-exit-rotate: initial;
2680
- --tw-exit-translate-x: initial;
2681
- --tw-exit-translate-y: initial;
2682
- }
2683
- }
2684
- .data-\[state\=closed\]\:duration-300 {
2685
- &[data-state="closed"] {
2686
- animation-duration: 300ms;
2687
- }
2688
- }
2689
- .data-\[state\=closed\]\:fade-out-0 {
2690
- &[data-state="closed"] {
2691
- --tw-exit-opacity: 0;
2692
- }
2693
- }
2694
- .data-\[state\=closed\]\:slide-out-to-bottom {
2695
- &[data-state="closed"] {
2696
- --tw-exit-translate-y: 100%;
2697
- }
2698
- }
2699
- .data-\[state\=closed\]\:slide-out-to-left {
2700
- &[data-state="closed"] {
2701
- --tw-exit-translate-x: -100%;
2702
- }
2703
- }
2704
- .data-\[state\=closed\]\:slide-out-to-left-1\/2 {
2705
- &[data-state="closed"] {
2706
- --tw-exit-translate-x: -50%;
2707
- }
2708
- }
2709
- .data-\[state\=closed\]\:slide-out-to-right {
2710
- &[data-state="closed"] {
2711
- --tw-exit-translate-x: 100%;
2712
- }
2713
- }
2714
- .data-\[state\=closed\]\:slide-out-to-top {
2715
- &[data-state="closed"] {
2716
- --tw-exit-translate-y: -100%;
2717
- }
2718
- }
2719
- .data-\[state\=closed\]\:slide-out-to-top-\[48\%\] {
2720
- &[data-state="closed"] {
2721
- --tw-exit-translate-y: -48%;
2722
- }
2723
- }
2724
- .data-\[state\=closed\]\:zoom-out-95 {
2725
- &[data-state="closed"] {
2726
- --tw-exit-scale: .95;
2727
- }
2728
- }
2729
- .data-\[state\=hidden\]\:animate-out {
2730
- &[data-state="hidden"] {
2731
- animation-name: exit;
2732
- animation-duration: 150ms;
2733
- --tw-exit-opacity: initial;
2734
- --tw-exit-scale: initial;
2735
- --tw-exit-rotate: initial;
2736
- --tw-exit-translate-x: initial;
2737
- --tw-exit-translate-y: initial;
2738
- }
2739
- }
2740
- .data-\[state\=hidden\]\:fade-out {
2741
- &[data-state="hidden"] {
2742
- --tw-exit-opacity: 0;
2743
- }
2744
- }
2745
2574
  .data-\[state\=on\]\:bg-accent {
2746
2575
  &[data-state="on"] {
2747
2576
  background-color: var(--color-accent);
@@ -2796,67 +2625,6 @@
2796
2625
  transition-duration: 500ms;
2797
2626
  }
2798
2627
  }
2799
- .data-\[state\=open\]\:animate-in {
2800
- &[data-state="open"] {
2801
- animation-name: enter;
2802
- animation-duration: 150ms;
2803
- --tw-enter-opacity: initial;
2804
- --tw-enter-scale: initial;
2805
- --tw-enter-rotate: initial;
2806
- --tw-enter-translate-x: initial;
2807
- --tw-enter-translate-y: initial;
2808
- }
2809
- }
2810
- .data-\[state\=open\]\:duration-500 {
2811
- &[data-state="open"] {
2812
- animation-duration: 500ms;
2813
- }
2814
- }
2815
- .data-\[state\=open\]\:fade-in-0 {
2816
- &[data-state="open"] {
2817
- --tw-enter-opacity: 0;
2818
- }
2819
- }
2820
- .data-\[state\=open\]\:slide-in-from-bottom {
2821
- &[data-state="open"] {
2822
- --tw-enter-translate-y: 100%;
2823
- }
2824
- }
2825
- .data-\[state\=open\]\:slide-in-from-left {
2826
- &[data-state="open"] {
2827
- --tw-enter-translate-x: -100%;
2828
- }
2829
- }
2830
- .data-\[state\=open\]\:slide-in-from-left-1\/2 {
2831
- &[data-state="open"] {
2832
- --tw-enter-translate-x: -50%;
2833
- }
2834
- }
2835
- .data-\[state\=open\]\:slide-in-from-right {
2836
- &[data-state="open"] {
2837
- --tw-enter-translate-x: 100%;
2838
- }
2839
- }
2840
- .data-\[state\=open\]\:slide-in-from-top {
2841
- &[data-state="open"] {
2842
- --tw-enter-translate-y: -100%;
2843
- }
2844
- }
2845
- .data-\[state\=open\]\:slide-in-from-top-\[48\%\] {
2846
- &[data-state="open"] {
2847
- --tw-enter-translate-y: -48%;
2848
- }
2849
- }
2850
- .data-\[state\=open\]\:zoom-in-90 {
2851
- &[data-state="open"] {
2852
- --tw-enter-scale: .9;
2853
- }
2854
- }
2855
- .data-\[state\=open\]\:zoom-in-95 {
2856
- &[data-state="open"] {
2857
- --tw-enter-scale: .95;
2858
- }
2859
- }
2860
2628
  .data-\[state\=open\]\:hover\:bg-accent {
2861
2629
  &[data-state="open"] {
2862
2630
  &:hover {
@@ -2907,22 +2675,6 @@
2907
2675
  background-color: var(--color-input);
2908
2676
  }
2909
2677
  }
2910
- .data-\[state\=visible\]\:animate-in {
2911
- &[data-state="visible"] {
2912
- animation-name: enter;
2913
- animation-duration: 150ms;
2914
- --tw-enter-opacity: initial;
2915
- --tw-enter-scale: initial;
2916
- --tw-enter-rotate: initial;
2917
- --tw-enter-translate-x: initial;
2918
- --tw-enter-translate-y: initial;
2919
- }
2920
- }
2921
- .data-\[state\=visible\]\:fade-in {
2922
- &[data-state="visible"] {
2923
- --tw-enter-opacity: 0;
2924
- }
2925
- }
2926
2678
  .data-\[variant\=label\]\:text-sm {
2927
2679
  &[data-variant="label"] {
2928
2680
  font-size: var(--text-sm);
@@ -3116,6 +2868,15 @@
3116
2868
  background-color: transparent;
3117
2869
  }
3118
2870
  }
2871
+ .dark\:hover\:text-accent-foreground {
2872
+ &:is(.dark *) {
2873
+ &:hover {
2874
+ @media (hover: hover) {
2875
+ color: var(--color-accent-foreground);
2876
+ }
2877
+ }
2878
+ }
2879
+ }
3119
2880
  .dark\:in-data-\[slot\=tooltip-content\]\:bg-background\/10 {
3120
2881
  &:is(.dark *) {
3121
2882
  :where(*[data-slot="tooltip-content"]) & {
@@ -3377,6 +3138,12 @@
3377
3138
  border-bottom-right-radius: var(--radius-md);
3378
3139
  }
3379
3140
  }
3141
+ .\[\&\:nth-child\(2\)\[data-selected\=true\]_button\]\:rounded-l-md {
3142
+ &:nth-child(2)[data-selected=true] button {
3143
+ border-top-left-radius: var(--radius-md);
3144
+ border-bottom-left-radius: var(--radius-md);
3145
+ }
3146
+ }
3380
3147
  .\[\&\>\*\]\:w-full {
3381
3148
  &>* {
3382
3149
  width: 100%;
@@ -3698,6 +3465,16 @@
3698
3465
  cursor: w-resize;
3699
3466
  }
3700
3467
  }
3468
+ .\[\[data-slot\=card-content\]_\&\]\:bg-transparent {
3469
+ [data-slot=card-content] & {
3470
+ background-color: transparent;
3471
+ }
3472
+ }
3473
+ .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent {
3474
+ [data-slot=popover-content] & {
3475
+ background-color: transparent;
3476
+ }
3477
+ }
3701
3478
  .\[\[data-variant\=legend\]\+\&\]\:-mt-1\.5 {
3702
3479
  [data-variant=legend]+& {
3703
3480
  margin-top: calc(var(--spacing) * -1.5);
@@ -3819,18 +3596,6 @@
3819
3596
  color: var(--color-foreground);
3820
3597
  }
3821
3598
  }
3822
- @keyframes enter {
3823
- from {
3824
- opacity: var(--tw-enter-opacity, 1);
3825
- transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));
3826
- }
3827
- }
3828
- @keyframes exit {
3829
- to {
3830
- opacity: var(--tw-exit-opacity, 1);
3831
- transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
3832
- }
3833
- }
3834
3599
  @property --tw-translate-x {
3835
3600
  syntax: "*";
3836
3601
  inherits: false;
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import "./chunk-AOSHQP7D.js";
2
3
 
3
4
  // src/components/ui/accordion/index.tsx
4
5
  import { ChevronDown } from "lucide-react";
@@ -435,7 +436,10 @@ import {
435
436
  ChevronRightIcon
436
437
  } from "lucide-react";
437
438
  import * as React7 from "react";
438
- import { DayPicker, getDefaultClassNames } from "react-day-picker";
439
+ import {
440
+ DayPicker,
441
+ getDefaultClassNames
442
+ } from "react-day-picker";
439
443
  import { jsx as jsx8 } from "react/jsx-runtime";
440
444
  function Calendar({
441
445
  className,
@@ -452,7 +456,7 @@ function Calendar({
452
456
  DayPicker,
453
457
  {
454
458
  className: cn(
455
- "bg-background group/calendar p-3 [--cell-size:2rem] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent",
459
+ "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
456
460
  String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
457
461
  String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
458
462
  className
@@ -460,70 +464,71 @@ function Calendar({
460
464
  classNames: {
461
465
  root: cn("w-fit", defaultClassNames.root),
462
466
  months: cn(
463
- "relative flex flex-col gap-4 md:flex-row",
467
+ "flex gap-4 flex-col md:flex-row relative",
464
468
  defaultClassNames.months
465
469
  ),
466
- month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
470
+ month: cn("flex flex-col w-full gap-4", defaultClassNames.month),
467
471
  nav: cn(
468
- "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
472
+ "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
469
473
  defaultClassNames.nav
470
474
  ),
471
475
  button_previous: cn(
472
476
  buttonVariants({ variant: buttonVariant }),
473
- "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",
477
+ "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
474
478
  defaultClassNames.button_previous
475
479
  ),
476
480
  button_next: cn(
477
481
  buttonVariants({ variant: buttonVariant }),
478
- "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",
482
+ "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
479
483
  defaultClassNames.button_next
480
484
  ),
481
485
  month_caption: cn(
482
- "flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",
486
+ "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
483
487
  defaultClassNames.month_caption
484
488
  ),
485
489
  dropdowns: cn(
486
- "flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",
490
+ "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
487
491
  defaultClassNames.dropdowns
488
492
  ),
489
493
  dropdown_root: cn(
490
- "has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",
494
+ "relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
491
495
  defaultClassNames.dropdown_root
492
496
  ),
493
497
  dropdown: cn(
494
- "bg-popover absolute inset-0 opacity-0",
498
+ "absolute bg-popover inset-0 opacity-0",
495
499
  defaultClassNames.dropdown
496
500
  ),
497
501
  caption_label: cn(
498
502
  "select-none font-medium",
499
- captionLayout === "label" ? "text-sm" : "[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",
503
+ captionLayout === "label" ? "text-sm" : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",
500
504
  defaultClassNames.caption_label
501
505
  ),
502
506
  table: "w-full border-collapse",
503
507
  weekdays: cn("flex", defaultClassNames.weekdays),
504
508
  weekday: cn(
505
- "text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",
509
+ "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
506
510
  defaultClassNames.weekday
507
511
  ),
508
- week: cn("mt-2 flex w-full", defaultClassNames.week),
512
+ week: cn("flex w-full mt-2", defaultClassNames.week),
509
513
  week_number_header: cn(
510
- "w-[--cell-size] select-none",
514
+ "select-none w-(--cell-size)",
511
515
  defaultClassNames.week_number_header
512
516
  ),
513
517
  week_number: cn(
514
- "text-muted-foreground select-none text-[0.8rem]",
518
+ "text-[0.8rem] select-none text-muted-foreground",
515
519
  defaultClassNames.week_number
516
520
  ),
517
521
  day: cn(
518
- "group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",
522
+ "relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
523
+ props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md" : "[&:first-child[data-selected=true]_button]:rounded-l-md",
519
524
  defaultClassNames.day
520
525
  ),
521
526
  range_start: cn(
522
- "bg-accent rounded-l-md",
527
+ "rounded-l-md bg-accent",
523
528
  defaultClassNames.range_start
524
529
  ),
525
530
  range_middle: cn("rounded-none", defaultClassNames.range_middle),
526
- range_end: cn("bg-accent rounded-r-md", defaultClassNames.range_end),
531
+ range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
527
532
  today: cn(
528
533
  "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
529
534
  defaultClassNames.today
@@ -568,7 +573,7 @@ function Calendar({
568
573
  },
569
574
  DayButton: CalendarDayButton,
570
575
  WeekNumber: ({ children, ...props2 }) => {
571
- return /* @__PURE__ */ jsx8("td", { ...props2, children: /* @__PURE__ */ jsx8("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children }) });
576
+ return /* @__PURE__ */ jsx8("td", { ...props2, children: /* @__PURE__ */ jsx8("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
572
577
  },
573
578
  ...components
574
579
  },
@@ -597,7 +602,7 @@ function CalendarDayButton({
597
602
  Button,
598
603
  {
599
604
  className: cn(
600
- "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md [&>span]:text-xs [&>span]:opacity-70",
605
+ "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
601
606
  defaultClassNames.day,
602
607
  className
603
608
  ),