@binamik/components 0.2.6 → 0.2.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.
|
@@ -7712,9 +7712,11 @@ function Bf({
|
|
|
7712
7712
|
...r
|
|
7713
7713
|
}) {
|
|
7714
7714
|
const o = or(), a = m.useRef(null);
|
|
7715
|
-
|
|
7715
|
+
m.useEffect(() => {
|
|
7716
7716
|
n.focused && a.current?.focus();
|
|
7717
|
-
}, [n.focused])
|
|
7717
|
+
}, [n.focused]);
|
|
7718
|
+
const i = n.today;
|
|
7719
|
+
return /* @__PURE__ */ M(
|
|
7718
7720
|
Qn,
|
|
7719
7721
|
{
|
|
7720
7722
|
ref: a,
|
|
@@ -7726,9 +7728,10 @@ function Bf({
|
|
|
7726
7728
|
"data-range-end": n.range_end,
|
|
7727
7729
|
"data-range-middle": n.range_middle,
|
|
7728
7730
|
className: Y(
|
|
7729
|
-
"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",
|
|
7731
|
+
"bg-background 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",
|
|
7730
7732
|
o.day,
|
|
7731
|
-
e
|
|
7733
|
+
e,
|
|
7734
|
+
i && !n.selected && "bg-accent/50 text-accent-foreground"
|
|
7732
7735
|
),
|
|
7733
7736
|
...r
|
|
7734
7737
|
}
|
|
@@ -7750,7 +7753,7 @@ function Vr({
|
|
|
7750
7753
|
{
|
|
7751
7754
|
showOutsideDays: n,
|
|
7752
7755
|
className: Y(
|
|
7753
|
-
"
|
|
7756
|
+
"group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
7754
7757
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
7755
7758
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
7756
7759
|
e
|
|
@@ -7761,7 +7764,7 @@ function Vr({
|
|
|
7761
7764
|
...a
|
|
7762
7765
|
},
|
|
7763
7766
|
classNames: {
|
|
7764
|
-
root: Y("w-[280px] !p-2", l.root),
|
|
7767
|
+
root: Y("tw-preset w-[280px] !p-2", l.root),
|
|
7765
7768
|
months: Y(
|
|
7766
7769
|
"flex gap-4 flex-col md:flex-row relative",
|
|
7767
7770
|
l.months
|
|
@@ -7773,12 +7776,12 @@ function Vr({
|
|
|
7773
7776
|
),
|
|
7774
7777
|
button_previous: Y(
|
|
7775
7778
|
zn({ variant: o }),
|
|
7776
|
-
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
7779
|
+
"bg-background size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
7777
7780
|
l.button_previous
|
|
7778
7781
|
),
|
|
7779
7782
|
button_next: Y(
|
|
7780
7783
|
zn({ variant: o }),
|
|
7781
|
-
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
7784
|
+
"bg-background size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
7782
7785
|
l.button_next
|
|
7783
7786
|
),
|
|
7784
7787
|
month_caption: Y(
|
|
@@ -10853,7 +10856,7 @@ function bg({
|
|
|
10853
10856
|
variant: "outline",
|
|
10854
10857
|
id: "date",
|
|
10855
10858
|
className: Y(
|
|
10856
|
-
"w-48 justify-between font-normal hover:bg-background !py-[10px] !px-[20px] !text-[15px]",
|
|
10859
|
+
"tw-preset w-48 justify-between font-normal hover:bg-background !py-[10px] !px-[20px] !text-[15px]",
|
|
10857
10860
|
c
|
|
10858
10861
|
),
|
|
10859
10862
|
children: [
|