diff --git a/apps/web/pages/insights/index.tsx b/apps/web/pages/insights/index.tsx index 1526bb6660d59e..0c0dd0b60b567d 100644 --- a/apps/web/pages/insights/index.tsx +++ b/apps/web/pages/insights/index.tsx @@ -69,17 +69,17 @@ export default function InsightsPage() { -
+
-
+
-
+
diff --git a/packages/features/ee/common/components/LicenseRequired.tsx b/packages/features/ee/common/components/LicenseRequired.tsx index e34134cc977112..411eb44c1a6181 100644 --- a/packages/features/ee/common/components/LicenseRequired.tsx +++ b/packages/features/ee/common/components/LicenseRequired.tsx @@ -5,7 +5,7 @@ import React, { Fragment, useEffect } from "react"; import { SUPPORT_MAIL_ADDRESS, WEBAPP_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; -import { EmptyScreen, TopBanner } from "@calcom/ui"; +import { EmptyScreen, Alert } from "@calcom/ui"; import { AlertTriangle } from "@calcom/ui/components/icon"; type LicenseRequiredProps = { @@ -37,9 +37,10 @@ const LicenseRequired = ({ children, as = "", ...rest }: LicenseRequiredProps) = ) : process.env.NODE_ENV === "development" ? ( /** We only show a warning in development mode, but allow the feature to be displayed for development/testing purposes */ <> - {t("enterprise_license")}.{" "} @@ -52,7 +53,6 @@ const LicenseRequired = ({ children, as = "", ...rest }: LicenseRequiredProps) = } - variant="warning" /> {children} diff --git a/packages/features/insights/components/BookingKPICards.tsx b/packages/features/insights/components/BookingKPICards.tsx index 2e385dfda95cc8..71e125ceccf815 100644 --- a/packages/features/insights/components/BookingKPICards.tsx +++ b/packages/features/insights/components/BookingKPICards.tsx @@ -67,7 +67,7 @@ export const BookingKPICards = () => { return ( <> - + {categories.map((item) => ( { const LoadingKPICards = (props: { categories: { title: string; index: string }[] }) => { const { categories } = props; return ( - + {categories.map((item) => ( diff --git a/packages/features/insights/components/LineChart.tsx b/packages/features/insights/components/LineChart.tsx index 0c338f44bcee4b..165a9df811b415 100644 --- a/packages/features/insights/components/LineChart.tsx +++ b/packages/features/insights/components/LineChart.tsx @@ -4,9 +4,5 @@ import type { LineChartProps } from "./tremor.types"; // Honestly this is a mess. Why are all chart libraries in existance horrible to theme export const LineChart = (props: LineChartProps) => { - return ( -
- -
- ); + return ; }; diff --git a/packages/features/insights/filters/DateSelect.css b/packages/features/insights/filters/DateSelect.css index 054f04208a1dcc..4b024872fbc841 100644 --- a/packages/features/insights/filters/DateSelect.css +++ b/packages/features/insights/filters/DateSelect.css @@ -1,6 +1,7 @@ .custom-date > .tremor-DateRangePicker-root > .tremor-DateRangePicker-button { box-shadow: none; width: 100%; + background-color: transparent; } /* Media query for screens larger than 768px */ @@ -10,23 +11,82 @@ } } +.recharts-cartesian-grid-horizontal line{ + @apply stroke-emphasis +} + +.tremor-DateRangePicker-button button{ + @apply !h-9 !max-h-9 border-default hover:border-emphasis +} + .tremor-DateRangePicker-calendarButton, .tremor-DateRangePicker-dropdownButton { @apply border-subtle bg-default focus-within:ring-emphasis hover:border-subtle dark:focus-within:ring-emphasis hover:bg-subtle text-sm leading-4 placeholder:text-sm placeholder:font-normal focus-within:ring-0; } +.tremor-DateRangePicker-dropdownModal{ + @apply divide-none +} + +.tremor-DropdownItem-root{ + @apply !h-9 !max-h-9 bg-default hover:bg-subtle text-default hover:text-emphasis +} + .tremor-DateRangePicker-calendarButtonText, .tremor-DateRangePicker-dropdownButtonText { @apply text-default; } +.tremor-DateRangePicker-calendarHeaderText{ + @apply !text-default +} + +.tremor-DateRangePicker-calendarHeader svg{ + @apply text-default +} + +.tremor-DateRangePicker-calendarHeader button{ + @apply hover:bg-emphasis shadow-none focus:ring-0 +} + + +.tremor-DateRangePicker-calendarHeader button:hover svg{ + @apply text-emphasis +} + +.tremor-DateRangePicker-calendarButtonIcon{ + @apply text-default +} + .tremor-DateRangePicker-calendarModal, .tremor-DateRangePicker-dropdownModal { - @apply dark:invert; + @apply bg-default border-subtle shadow-dropdown +} + +.tremor-DateRangePicker-calendarBodyDate button{ + @apply text-default hover:bg-emphasis +} + +.tremor-DateRangePicker-calendarBodyDate button:disabled, +.tremor-DateRangePicker-calendarBodyDate button[disabled]{ + @apply opacity-25 } +.tremor-DateRangePicker-calendarHeader button{ + @apply border-default text-default +} + +.tremor-DateRangePicker-calendarBodyDate .bg-gray-100{ + @apply bg-subtle +} + +.tremor-DateRangePicker-calendarBodyDate .bg-gray-500{ + @apply !bg-brand-default text-inverted +} + + .tremor-Card-root { - @apply p-5; + @apply p-5 bg-default; } .tremor-TableCell-root { diff --git a/packages/features/insights/filters/DateSelect.tsx b/packages/features/insights/filters/DateSelect.tsx index b4795287e5cc05..d16630bfdb3662 100644 --- a/packages/features/insights/filters/DateSelect.tsx +++ b/packages/features/insights/filters/DateSelect.tsx @@ -16,7 +16,7 @@ export const DateSelect = () => { const startValue = startDate?.toDate() || null; const endValue = endDate?.toDate() || null; return ( -
+
{ minDate={currentDate.subtract(2, "year").toDate()} maxDate={currentDate.toDate()} color="gray" - className="h-[42px]" />
); diff --git a/packages/features/insights/filters/index.tsx b/packages/features/insights/filters/index.tsx index cc5ab30a8b4210..a0521ca869af26 100644 --- a/packages/features/insights/filters/index.tsx +++ b/packages/features/insights/filters/index.tsx @@ -37,7 +37,7 @@ const ClearFilters = () => { export const Filters = () => { return ( -
+