@embedreach/components 0.2.48 → 0.2.50
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/chunks/index.js +37 -38
- package/dist/index.umd.js +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/chunks/index.js
CHANGED
|
@@ -58307,10 +58307,9 @@ var Portal$2 = PopoverPortal;
|
|
|
58307
58307
|
var Content2$1 = PopoverContent$1;
|
|
58308
58308
|
const Popover = Root2$3;
|
|
58309
58309
|
const PopoverTrigger = Trigger$2;
|
|
58310
|
-
const PopoverContent = React__default.forwardRef(({ className: className2, align = "center", sideOffset = 4, ...props2 }, ref) => /* @__PURE__ */ jsx(Portal$2, {
|
|
58310
|
+
const PopoverContent = React__default.forwardRef(({ className: className2, align = "center", sideOffset = 4, ...props2 }, ref) => /* @__PURE__ */ jsx(Portal$2, { children: /* @__PURE__ */ jsx(
|
|
58311
58311
|
Content2$1,
|
|
58312
58312
|
{
|
|
58313
|
-
"data-reach-root": true,
|
|
58314
58313
|
ref,
|
|
58315
58314
|
align,
|
|
58316
58315
|
sideOffset,
|
|
@@ -77627,52 +77626,51 @@ function Calendar({
|
|
|
77627
77626
|
showOutsideDays = true,
|
|
77628
77627
|
...props2
|
|
77629
77628
|
}) {
|
|
77630
|
-
|
|
77629
|
+
const finalClassNames = {
|
|
77630
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
77631
|
+
month: "space-y-4",
|
|
77632
|
+
caption: "flex justify-center pt-1 relative items-center",
|
|
77633
|
+
caption_label: "text-sm font-medium",
|
|
77634
|
+
nav: "space-x-1 flex items-center",
|
|
77635
|
+
nav_button: cn$1(
|
|
77636
|
+
buttonVariants({ variant: "outline" }),
|
|
77637
|
+
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
77638
|
+
),
|
|
77639
|
+
nav_button_previous: "absolute left-1",
|
|
77640
|
+
nav_button_next: "absolute right-1",
|
|
77641
|
+
table: "w-full border-collapse space-y-1",
|
|
77642
|
+
head_row: "flex",
|
|
77643
|
+
head_cell: "text-[#6b7280] rounded-md w-8 font-normal text-[0.8rem]",
|
|
77644
|
+
row: "flex w-full mt-2",
|
|
77645
|
+
cell: "relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-[#f1f5f9] [&:has([aria-selected].day-outside)]:bg-[#f1f5f9]/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",
|
|
77646
|
+
day: cn$1(
|
|
77647
|
+
buttonVariants({ variant: "ghost" }),
|
|
77648
|
+
"h-8 w-8 p-0 font-normal aria-selected:opacity-100"
|
|
77649
|
+
),
|
|
77650
|
+
day_range_start: "day-range-start",
|
|
77651
|
+
day_range_end: "day-range-end",
|
|
77652
|
+
day_selected: "!bg-black !text-gray-200 hover:!bg-black hover:!text-gray-200 focus:!bg-black focus:!text-black",
|
|
77653
|
+
day_today: "bg-gray-200 text-black",
|
|
77654
|
+
day_outside: "day-outside text-[#94a3b8] aria-selected:bg-[#f1f5f9]/50 aria-selected:text-[#94a3b8]",
|
|
77655
|
+
day_disabled: "text-[#94a3b8] opacity-50",
|
|
77656
|
+
day_range_middle: "aria-selected:bg-[#f1f5f9] aria-selected:text-black",
|
|
77657
|
+
day_hidden: "invisible",
|
|
77658
|
+
...classNames
|
|
77659
|
+
};
|
|
77660
|
+
console.log(finalClassNames);
|
|
77661
|
+
return /* @__PURE__ */ jsx(
|
|
77631
77662
|
DayPicker,
|
|
77632
77663
|
{
|
|
77633
77664
|
showOutsideDays,
|
|
77634
77665
|
className: cn$1("p-3", className2),
|
|
77635
|
-
classNames:
|
|
77636
|
-
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
77637
|
-
month: "space-y-4",
|
|
77638
|
-
caption: "flex justify-center pt-1 relative items-center",
|
|
77639
|
-
caption_label: "text-sm font-medium",
|
|
77640
|
-
nav: "space-x-1 flex items-center",
|
|
77641
|
-
nav_button: cn$1(
|
|
77642
|
-
buttonVariants({ variant: "outline" }),
|
|
77643
|
-
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
77644
|
-
),
|
|
77645
|
-
nav_button_previous: "absolute left-1",
|
|
77646
|
-
nav_button_next: "absolute right-1",
|
|
77647
|
-
table: "w-full border-collapse space-y-1",
|
|
77648
|
-
head_row: "flex",
|
|
77649
|
-
head_cell: "text-muted-foreground! rounded-md w-8 font-normal text-[0.8rem]",
|
|
77650
|
-
row: "flex w-full mt-2",
|
|
77651
|
-
cell: cn$1(
|
|
77652
|
-
"relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent! [&:has([aria-selected].day-outside)]:bg-accent/50! [&:has([aria-selected].day-range-end)]:rounded-r-md",
|
|
77653
|
-
props2.mode === "range" ? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md" : "[&:has([aria-selected])]:rounded-md"
|
|
77654
|
-
),
|
|
77655
|
-
day: cn$1(
|
|
77656
|
-
buttonVariants({ variant: "ghost" }),
|
|
77657
|
-
"h-8 w-8 p-0 font-normal aria-selected:opacity-100"
|
|
77658
|
-
),
|
|
77659
|
-
day_range_start: "day-range-start",
|
|
77660
|
-
day_range_end: "day-range-end",
|
|
77661
|
-
day_selected: "bg-primary! text-primary-foreground! hover:bg-primary! hover:text-primary-foreground! focus:bg-primary! focus:text-primary-foreground!",
|
|
77662
|
-
day_today: "bg-accent! text-accent-foreground!",
|
|
77663
|
-
day_outside: "day-outside text-muted-foreground! aria-selected:bg-accent/50! aria-selected:text-muted-foreground!",
|
|
77664
|
-
day_disabled: "text-muted-foreground! opacity-50",
|
|
77665
|
-
day_range_middle: "aria-selected:bg-accent! aria-selected:text-accent-foreground!",
|
|
77666
|
-
day_hidden: "invisible",
|
|
77667
|
-
...classNames
|
|
77668
|
-
},
|
|
77666
|
+
classNames: finalClassNames,
|
|
77669
77667
|
components: {
|
|
77670
77668
|
IconLeft: () => /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }),
|
|
77671
77669
|
IconRight: () => /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })
|
|
77672
77670
|
},
|
|
77673
77671
|
...props2
|
|
77674
77672
|
}
|
|
77675
|
-
)
|
|
77673
|
+
);
|
|
77676
77674
|
}
|
|
77677
77675
|
Calendar.displayName = "Calendar";
|
|
77678
77676
|
const ComboboxDemo = ({
|
|
@@ -77818,6 +77816,7 @@ const SetScheduleTime = ({ setScheduleTime, setTimezone, timezone, scheduleTime,
|
|
|
77818
77816
|
},
|
|
77819
77817
|
initialFocus: true,
|
|
77820
77818
|
classNames: {
|
|
77819
|
+
head_cell: "text-[#6b7280] rounded-md w-8 font-normal text-[0.8rem]",
|
|
77821
77820
|
cell: "relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-[#f1f5f9] [&:has([aria-selected].day-outside)]:bg-[#f1f5f9]/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",
|
|
77822
77821
|
day_range_start: "day-range-start",
|
|
77823
77822
|
day_range_end: "day-range-end",
|