diff --git a/resources/js/packages/ui/src/Input/DateRangePicker.vue b/resources/js/packages/ui/src/Input/DateRangePicker.vue index 17f6c1d9..2ce47efc 100644 --- a/resources/js/packages/ui/src/Input/DateRangePicker.vue +++ b/resources/js/packages/ui/src/Input/DateRangePicker.vue @@ -1,157 +1,259 @@ - - + + - - - {{ formatDateLocalized(start, organization?.date_format) }} - - - {{ formatDateLocalized(end, organization?.date_format) }} - + :class=" + twMerge( + 'flex w-full items-center justify-between whitespace-nowrap rounded-md border border-input-border bg-input-background px-3 h-[34px] shadow-sm data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:truncate text-start', + !modelValue && 'text-muted-foreground' + ) + "> + + + + {{ formatDateLocalized(modelValue.start.toString(), organization?.date_format) }} + - + {{ formatDateLocalized(modelValue.end.toString(), organization?.date_format) }} + + + {{ formatDateLocalized(modelValue.start.toString(), organization?.date_format) }} + + + Pick a date - - - + + + - - Today - This Week - Last Week - Last 14 days - This Month - Last Month - Last 30 days - Last 90 days - Last 12 months - This year - Last year - - - - - Start Date - - - - - - End Date - - - - + class="text-text-primary text-sm flex flex-col space-y-0.5 items-start py-2 px-2 [&_button:hover]:bg-tertiary [&_button]:rounded [&_button]:px-2 [&_button]:py-1"> + Today + This Week + Last Week + Last 14 days + This Month + Last Month + Last 30 days + Last 90 days + Last 12 months + This year + Last year + + + - - + + - -