easykar-backoffice-ui 0.0.7 → 0.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.cjs +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4157,7 +4157,7 @@ function Calendar({
|
|
|
4157
4157
|
defaultClassNames.dropdown
|
|
4158
4158
|
),
|
|
4159
4159
|
caption_label: cn(
|
|
4160
|
-
"select-none font-medium",
|
|
4160
|
+
"select-none font-medium text-foreground",
|
|
4161
4161
|
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",
|
|
4162
4162
|
defaultClassNames.caption_label
|
|
4163
4163
|
),
|
|
@@ -4261,7 +4261,7 @@ function CalendarDayButton({
|
|
|
4261
4261
|
"data-range-end": modifiers.range_end,
|
|
4262
4262
|
"data-range-middle": modifiers.range_middle,
|
|
4263
4263
|
className: cn(
|
|
4264
|
-
"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 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",
|
|
4264
|
+
"text-foreground 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 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",
|
|
4265
4265
|
defaultClassNames.day,
|
|
4266
4266
|
className
|
|
4267
4267
|
),
|
|
@@ -4367,8 +4367,13 @@ var EasyDatePicker = React41.forwardRef(
|
|
|
4367
4367
|
onChange?.(date ?? void 0);
|
|
4368
4368
|
if (date) setOpen(false);
|
|
4369
4369
|
},
|
|
4370
|
-
fromDate,
|
|
4371
|
-
toDate,
|
|
4370
|
+
startMonth: fromDate,
|
|
4371
|
+
endMonth: toDate,
|
|
4372
|
+
disabled: (date) => {
|
|
4373
|
+
if (fromDate && date < fromDate) return true;
|
|
4374
|
+
if (toDate && date > toDate) return true;
|
|
4375
|
+
return false;
|
|
4376
|
+
},
|
|
4372
4377
|
initialFocus: true
|
|
4373
4378
|
}
|
|
4374
4379
|
)
|