crm-project-ui 0.1.22 → 0.1.24
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.cjs +24 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +58 -27
- package/dist/index.js +25 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -435,7 +435,10 @@ import {
|
|
|
435
435
|
ChevronRightIcon
|
|
436
436
|
} from "lucide-react";
|
|
437
437
|
import * as React7 from "react";
|
|
438
|
-
import {
|
|
438
|
+
import {
|
|
439
|
+
DayPicker,
|
|
440
|
+
getDefaultClassNames
|
|
441
|
+
} from "react-day-picker";
|
|
439
442
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
440
443
|
function Calendar({
|
|
441
444
|
className,
|
|
@@ -452,7 +455,7 @@ function Calendar({
|
|
|
452
455
|
DayPicker,
|
|
453
456
|
{
|
|
454
457
|
className: cn(
|
|
455
|
-
"bg-background group/calendar p-3 [--cell-size
|
|
458
|
+
"bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
456
459
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
457
460
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
458
461
|
className
|
|
@@ -460,70 +463,71 @@ function Calendar({
|
|
|
460
463
|
classNames: {
|
|
461
464
|
root: cn("w-fit", defaultClassNames.root),
|
|
462
465
|
months: cn(
|
|
463
|
-
"
|
|
466
|
+
"flex gap-4 flex-col md:flex-row relative",
|
|
464
467
|
defaultClassNames.months
|
|
465
468
|
),
|
|
466
|
-
month: cn("flex w-full
|
|
469
|
+
month: cn("flex flex-col w-full gap-4", defaultClassNames.month),
|
|
467
470
|
nav: cn(
|
|
468
|
-
"
|
|
471
|
+
"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
469
472
|
defaultClassNames.nav
|
|
470
473
|
),
|
|
471
474
|
button_previous: cn(
|
|
472
475
|
buttonVariants({ variant: buttonVariant }),
|
|
473
|
-
"
|
|
476
|
+
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
474
477
|
defaultClassNames.button_previous
|
|
475
478
|
),
|
|
476
479
|
button_next: cn(
|
|
477
480
|
buttonVariants({ variant: buttonVariant }),
|
|
478
|
-
"
|
|
481
|
+
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
479
482
|
defaultClassNames.button_next
|
|
480
483
|
),
|
|
481
484
|
month_caption: cn(
|
|
482
|
-
"flex h-
|
|
485
|
+
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
483
486
|
defaultClassNames.month_caption
|
|
484
487
|
),
|
|
485
488
|
dropdowns: cn(
|
|
486
|
-
"
|
|
489
|
+
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
487
490
|
defaultClassNames.dropdowns
|
|
488
491
|
),
|
|
489
492
|
dropdown_root: cn(
|
|
490
|
-
"has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px]
|
|
493
|
+
"relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
|
|
491
494
|
defaultClassNames.dropdown_root
|
|
492
495
|
),
|
|
493
496
|
dropdown: cn(
|
|
494
|
-
"bg-popover
|
|
497
|
+
"absolute bg-popover inset-0 opacity-0",
|
|
495
498
|
defaultClassNames.dropdown
|
|
496
499
|
),
|
|
497
500
|
caption_label: cn(
|
|
498
501
|
"select-none font-medium",
|
|
499
|
-
captionLayout === "label" ? "text-sm" : "
|
|
502
|
+
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
503
|
defaultClassNames.caption_label
|
|
501
504
|
),
|
|
502
505
|
table: "w-full border-collapse",
|
|
503
506
|
weekdays: cn("flex", defaultClassNames.weekdays),
|
|
504
507
|
weekday: cn(
|
|
505
|
-
"text-muted-foreground flex-1
|
|
508
|
+
"text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
|
|
506
509
|
defaultClassNames.weekday
|
|
507
510
|
),
|
|
508
|
-
week: cn("
|
|
511
|
+
week: cn("flex w-full mt-2", defaultClassNames.week),
|
|
509
512
|
week_number_header: cn(
|
|
510
|
-
"w-
|
|
513
|
+
"select-none w-(--cell-size)",
|
|
511
514
|
defaultClassNames.week_number_header
|
|
512
515
|
),
|
|
513
516
|
week_number: cn(
|
|
514
|
-
"text-
|
|
517
|
+
"text-[0.8rem] select-none text-muted-foreground",
|
|
515
518
|
defaultClassNames.week_number
|
|
516
519
|
),
|
|
517
520
|
day: cn(
|
|
518
|
-
"
|
|
521
|
+
"relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
|
|
522
|
+
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md" : "[&:first-child[data-selected=true]_button]:rounded-l-md",
|
|
519
523
|
defaultClassNames.day
|
|
520
524
|
),
|
|
521
525
|
range_start: cn(
|
|
522
|
-
"
|
|
526
|
+
"rounded-l-md bg-accent",
|
|
523
527
|
defaultClassNames.range_start
|
|
524
528
|
),
|
|
525
529
|
range_middle: cn("rounded-none", defaultClassNames.range_middle),
|
|
526
|
-
range_end: cn("
|
|
530
|
+
range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
|
|
527
531
|
today: cn(
|
|
528
532
|
"bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
|
|
529
533
|
defaultClassNames.today
|
|
@@ -568,7 +572,7 @@ function Calendar({
|
|
|
568
572
|
},
|
|
569
573
|
DayButton: CalendarDayButton,
|
|
570
574
|
WeekNumber: ({ children, ...props2 }) => {
|
|
571
|
-
return /* @__PURE__ */ jsx8("td", { ...props2, children: /* @__PURE__ */ jsx8("div", { className: "flex size-
|
|
575
|
+
return /* @__PURE__ */ jsx8("td", { ...props2, children: /* @__PURE__ */ jsx8("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
|
|
572
576
|
},
|
|
573
577
|
...components
|
|
574
578
|
},
|
|
@@ -597,7 +601,7 @@ function CalendarDayButton({
|
|
|
597
601
|
Button,
|
|
598
602
|
{
|
|
599
603
|
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
|
|
604
|
+
"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
605
|
defaultClassNames.day,
|
|
602
606
|
className
|
|
603
607
|
),
|